/* ============================================================
   EAA — Expertise Avant Achat | Global Stylesheet
   Palette, typo, composants réutilisables
   ============================================================ */

/* ---------- Import Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Couleurs */
  --eaa-copper:      #C8834A;
  --eaa-copper-dark: #A96A35;
  --eaa-dark:        #1C2B2D;
  --eaa-dark-mid:    #243335;
  --eaa-white:       #FFFFFF;
  --eaa-beige:       #F5F0EB;
  --eaa-beige-mid:   #EDE6DC;
  --eaa-text:        #2C2C2C;
  --eaa-text-light:  #6B6B6B;
  --eaa-border:      #E0D8CE;

  /* Typographie */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  /* Espacements */
  --section-pad-y:  80px;
  --section-pad-x:  40px;
  --container-max:  1200px;

  /* Rayons */
  --radius-btn:  4px;
  --radius-card: 8px;

  /* Ombres */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-btn:  0 2px 12px rgba(200,131,74,0.30);

  /* Transitions */
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--eaa-text);
  background: var(--eaa-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Conteneur global ---------- */
.eaa-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

/* ---------- Sections ---------- */
.eaa-section {
  padding: var(--section-pad-y) 0;
}
.eaa-section--beige  { background: var(--eaa-beige); }
.eaa-section--dark   { background: var(--eaa-dark); color: var(--eaa-white); }
.eaa-section--white  { background: var(--eaa-white); }

/* ---------- Titres de section ---------- */
.eaa-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eaa-copper);
  margin-bottom: 16px;
}
.eaa-section-label::before,
.eaa-section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--eaa-copper);
  opacity: 0.5;
}

.eaa-section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--eaa-dark);
  text-align: center;
}
.eaa-section--dark .eaa-section-title { color: var(--eaa-white); }

.eaa-section-subtitle {
  font-size: 16px;
  color: var(--eaa-text-light);
  text-align: center;
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
}
.eaa-section--dark .eaa-section-subtitle { color: rgba(255,255,255,0.7); }

/* ---------- Boutons ---------- */
.eaa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.eaa-btn--primary {
  background: var(--eaa-copper);
  color: var(--eaa-white);
  border-color: var(--eaa-copper);
}
.eaa-btn--primary:hover {
  background: var(--eaa-copper-dark);
  border-color: var(--eaa-copper-dark);
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}

.eaa-btn--outline {
  background: transparent;
  color: var(--eaa-dark);
  border-color: var(--eaa-dark);
}
.eaa-btn--outline:hover {
  background: var(--eaa-dark);
  color: var(--eaa-white);
  transform: translateY(-1px);
}

.eaa-btn--outline-white {
  background: transparent;
  color: var(--eaa-white);
  border-color: var(--eaa-white);
}
.eaa-btn--outline-white:hover {
  background: var(--eaa-white);
  color: var(--eaa-dark);
  transform: translateY(-1px);
}

.eaa-btn svg, .eaa-btn i { font-size: 16px; flex-shrink: 0; }

/* ---------- Cards ---------- */
.eaa-card {
  background: var(--eaa-white);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.eaa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ---------- Icon Circle ---------- */
.eaa-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--eaa-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eaa-icon-circle--dark {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(200,131,74,0.5);
}
.eaa-icon-circle svg { width: 28px; height: 28px; color: var(--eaa-white); }

/* ---------- Divider copper ---------- */
.eaa-divider {
  width: 48px;
  height: 3px;
  background: var(--eaa-copper);
  margin: 16px 0;
}
.eaa-divider--center { margin: 16px auto; }

/* ---------- Stars ---------- */
.eaa-stars {
  color: #F5A623;
  font-size: 14px;
  letter-spacing: 2px;
}

/* ---------- Tag / Badge ---------- */
.eaa-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--eaa-beige);
  border: 1px solid var(--eaa-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eaa-text-light);
}

/* ---------- Grille 3 colonnes ---------- */
.eaa-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.eaa-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* ---------- Animations ---------- */
@keyframes eaa-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eaa-anim-fadeup {
  animation: eaa-fadeUp 0.6s ease forwards;
}
.eaa-anim-delay-1 { animation-delay: 0.1s; }
.eaa-anim-delay-2 { animation-delay: 0.2s; }
.eaa-anim-delay-3 { animation-delay: 0.3s; }

/* Intersection observer class */
.eaa-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.eaa-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: 60px;
    --section-pad-x: 24px;
  }
  .eaa-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 48px;
    --section-pad-x: 16px;
  }
  .eaa-grid-3,
  .eaa-grid-2 { grid-template-columns: 1fr; gap: 24px; }
}
