/* ================================================================
   LOVE SCENT — Feuille de styles principale
   ================================================================

   TABLE DES MATIÈRES
   ------------------
   1. Variables (couleurs, typographie, espacements)  ← COMMENCER ICI
   2. Reset & Base
   3. Navigation
   4. Section Hero
   5. Sections génériques
   6. Layouts (colonnes, grilles)
   7. Composants (cartes, boutons, badges)
   8. Sections spécifiques
   9. Footer
   10. Responsive (mobile)

================================================================ */


/* ----------------------------------------------------------------
   1. VARIABLES — Tout l'identité visuelle est ici.
      Modifier ces valeurs pour changer les couleurs, polices
      et espacements sur toute la page en une seule fois.
   ---------------------------------------------------------------- */
:root {

  /* --- COULEURS --- */
  /* Fond principal (très clair, crème) */
  --color-bg:           #faf7f2;
  /* Fond alternatif (légèrement plus foncé) */
  --color-bg-alt:       #f0ebe1;
  /* Fond section engagement */
  --color-bg-warm:      #e8d5c4;
  /* Fond sombre (sections dark) */
  --color-dark:         #2c2118;
  /* Accent principal (brun chaud) */
  --color-accent:       #7a5c42;
  /* Accent secondaire (beige doré) */
  --color-accent-light: #c4a98a;
  /* Texte principal */
  --color-text:         #3d2e22;
  /* Texte secondaire / muted */
  --color-muted:        #9a8070;
  /* Bordures légères */
  --color-border:       rgba(196, 169, 138, 0.25);

  /* --- TYPOGRAPHIE --- */
  /* Police des titres — changer ici si vous importez une autre police */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  /* Police du corps de texte */
  --font-sans:    'Inter', system-ui, sans-serif;

  /* Tailles de texte */
  --text-xs:    0.7rem;
  --text-sm:    0.85rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;

  /* --- ESPACEMENTS --- */
  --section-padding-y: 7rem;
  --container-width:   1000px;
  --gap-col:           5rem;

  /* --- BORDURES & OMBRES --- */
  --radius: 4px;
  --shadow: 0 4px 24px rgba(44, 33, 24, 0.07);
}


/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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


/* ----------------------------------------------------------------
   3. NAVIGATION
   ---------------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(44, 33, 24, 0.08);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--color-accent); }

/* Bouton CTA dans la nav */
.nav-links a.nav-cta {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent);
  transition: background 0.2s, color 0.2s;
}
.nav-links a.nav-cta:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--color-accent);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ----------------------------------------------------------------
   4. HERO
   ---------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;

  /* ---- Fond : couleur dégradée par défaut ----
     Pour ajouter une image, décommenter et adapter :
     background-image: url('../images/hero-bg.jpg');
     background-size: cover;
     background-position: center;
  */
  background: linear-gradient(160deg, var(--color-bg) 55%, var(--color-bg-alt) 100%);
}

.hero-content { position: relative; z-index: 1; }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1.8rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--color-dark);
  margin-bottom: 1.6rem;
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 440px;
  margin: 0 auto 2.8rem;
  line-height: 1.8;
}

/* Indicateur de défilement */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-light);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px; height: 40px;
  background: var(--color-accent-light);
  transform-origin: top;
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.5); }
  50%       { opacity: 1;    transform: scaleY(1); }
}


/* ----------------------------------------------------------------
   5. SECTIONS GÉNÉRIQUES
   ---------------------------------------------------------------- */
.section-base       { background-color: var(--color-bg); }
.section-alt        { background-color: var(--color-bg-alt); }
.section-engagement { background: linear-gradient(140deg, var(--color-bg-alt), var(--color-bg-warm)); }

.section-base,
.section-alt,
.section-dark,
.section-quote,
.section-engagement,
.section-cta {
  padding: var(--section-padding-y) 2rem;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-bg);
}
.section-dark .section-label { color: var(--color-accent-light); }
.section-dark .section-title { color: var(--color-bg); }
.section-dark .section-body  { color: rgba(250,247,242,0.6); }

/* En-tête de section centré */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--color-dark);
  margin-bottom: 1.2rem;
}

.section-body {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.section-body:last-child { margin-bottom: 0; }


/* ----------------------------------------------------------------
   6. LAYOUTS
   ---------------------------------------------------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.container-center {
  text-align: center;
  max-width: 560px;
}

/* Deux colonnes */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-col);
  align-items: center;
}

/* Inverser l'ordre (image à droite) */
.two-col.reverse .col-visual { order: 2; }
.two-col.reverse .col-text   { order: 1; }

/* Grilles */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3.5rem;
}


/* ----------------------------------------------------------------
   7. COMPOSANTS
   ---------------------------------------------------------------- */

/* Bouton principal */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--color-dark);
  transform: translateY(-2px);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.4rem;
}

/* Placeholder image (affiché tant que l'image réelle n'est pas là) */
.col-visual {
  position: relative;
}

.placeholder-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--color-bg-warm);
  border-radius: var(--radius);
  border: 1px dashed var(--color-accent-light);
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-accent-light);
  line-height: 1.5;
}

/* Cartes innovation */
.card {
  padding: 2.4rem 1.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--color-accent-light);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.4rem;
  object-fit: contain;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-bg);
  margin-bottom: 0.8rem;
}

.card-body {
  font-size: var(--text-sm);
  color: rgba(250,247,242,0.55);
  line-height: 1.8;
}

/* Cartes produit */
.product-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44, 33, 24, 0.12);
}

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image .img-placeholder {
  aspect-ratio: unset;
  width: 100%; height: 100%;
}

.product-body {
  padding: 1.5rem 1.6rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

/* Bénéfices */
.benefit-group {}

.benefit-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-bg-warm);
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.benefit-list li {
  font-size: 0.93rem;
  color: var(--color-muted);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}
.benefit-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent-light);
}


/* ----------------------------------------------------------------
   8. SECTIONS SPÉCIFIQUES
   ---------------------------------------------------------------- */

/* Section CTA */
.section-cta .container-center { margin: 0 auto; }
.section-cta .section-body    { margin-bottom: 2.5rem; }

/* Citation */
.section-quote {
  background: var(--color-dark);
  text-align: center;
}

.quote {
  font-style: normal;
  max-width: 700px;
  margin: 0 auto;
}

.quote-mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.4;
  color: var(--color-accent-light);
  margin-bottom: 1.8rem;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-bg);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.quote-source {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}


/* ----------------------------------------------------------------
   9. FOOTER
   ---------------------------------------------------------------- */
footer {
  background: var(--color-dark);
  color: var(--color-muted);
  text-align: center;
  padding: 2.2rem 2rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(196,169,138,0.1);
}

footer strong { color: var(--color-accent-light); }


/* ----------------------------------------------------------------
   10. RESPONSIVE — Mobile (< 768px)
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --section-padding-y: 5rem;
    --gap-col: 2.5rem;
  }

  .cards-grid,
  .product-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Nav mobile */
  #navbar { padding: 1rem 1.5rem; }

  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--color-bg);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
  }
  .nav-links a.nav-cta {
    border: none;
    padding: 0.8rem 0;
    margin-top: 0.5rem;
  }

  /* Layout colonnes → pile */
  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
  }

  .two-col.reverse .col-visual,
  .two-col.reverse .col-text {
    order: unset;
  }

  .placeholder-img,
  .img-placeholder { aspect-ratio: 3/2; }
}

@media (max-width: 480px) {
  :root { --section-padding-y: 4rem; }
  .hero { padding: 6rem 1.5rem 5rem; }
}
