/* =====================================================
   STYLE.CSS — OLFACT (page d'accueil)
   Direction : luxe éditorial premium (réf. Aesop / Le Labo / Nez).
   Palette + typographie = ADN (voir layout.css :root). La forme est libre.
   Header / footer / tokens : voir layout.css.
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cormorant Upright", serif;
  background: var(--cream);
  color: var(--ink);
  counter-reset: sec;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { font-family: "Cormorant Upright", serif; font-weight: 500; }

::selection { background: rgba(135, 104, 48, 0.18); }

/* =====================================================
   GABARIT DES SECTIONS
   Fond crème unifié, rythme par numéro d'index + filet à
   losange. La couleur vient des contenus, pas d'aplats.
   ===================================================== */
.second-section,
.third-section,
.fourth-section,
.fifth-section,
.sixth-section,
.faq-section {
  position: relative;
  counter-increment: sec;
  border-top: 1px solid var(--line);
  padding-block: 130px;
  padding-inline: max(40px, calc((100% - 1200px) / 2));
}

/* Losange or posé sur le filet, en tête de chaque section */
.second-section::before,
.third-section::before,
.fourth-section::before,
.fifth-section::before,
.sixth-section::before,
.faq-section::before {
  content: "\25C6";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 16px;
  background: var(--cream);
  color: var(--gold);
  font-size: 0.5rem;
  line-height: 1;
}

/* =====================================================
   PRIMITIVES ÉDITORIALES (kicker, titres, leads, liens)
   ===================================================== */
.kicker {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 20px;
}
.kicker::before {
  content: counter(sec, decimal-leading-zero);
  margin-right: 0.85em;
  padding-right: 0.85em;
  border-right: 1px solid rgba(135, 104, 48, 0.4);
  font-weight: 600;
}

.section-head { max-width: 720px; margin-bottom: 70px; }
.section-head h2 {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  color: var(--ink);
}
.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  font-family: "DM Sans", sans-serif;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(47, 24, 71, 0.74);
  max-width: 58ch;
  margin-top: 22px;
}
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* Lien fléché réutilisable */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--gold-deep);
  transition: color 0.25s, gap 0.25s;
}
.link-arrow span { transition: transform 0.25s; }
.link-arrow:hover { color: var(--gold-text); gap: 18px; }
.link-arrow:hover span { transform: translateX(4px); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 74px 40px 0;

  background-image:
    linear-gradient(
      90deg,
      rgba(248, 244, 239, 0.96) 0%,
      rgba(248, 244, 239, 0.82) 38%,
      rgba(248, 244, 239, 0.34) 68%,
      rgba(248, 244, 239, 0.06) 100%
    ),
    url("img/accueil.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__inner { width: 100%; max-width: 1200px; margin: 0 auto; }

.overline {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 26px;
}
.overline::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold-deep);
  vertical-align: middle;
  margin-right: 14px;
  margin-bottom: 4px;
}

.hero__title {
  font-family: "Cormorant Upright", serif;
  font-weight: 500;
  font-size: clamp(2.9rem, 6.2vw, 5.4rem);
  line-height: 1.04;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 30px;
}
.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-text);
}

.hero__lead {
  font-family: "DM Sans", sans-serif;
  font-size: 1.16rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(47, 24, 71, 0.84);
  max-width: 46ch;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 30px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(47, 24, 71, 0.55);
}
.hero__meta span { position: relative; }
.hero__meta span + span { padding-left: 26px; }
.hero__meta span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--gold-deep);
}

/* Boutons éditoriaux réutilisables */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: 2px;
  text-decoration: none;
  transition: 0.25s ease;
}
.btn--solid { background-color: var(--plum); color: #fff; border: 1px solid var(--plum); }
.btn--solid:hover { background-color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn--ghost { color: var(--ink); border: 1px solid rgba(47, 24, 71, 0.45); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =====================================================
   01 — HISTOIRE (split éditorial + timeline + galerie)
   ===================================================== */
.second-section {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 92px;
  align-items: center;
}
.histoire__text { max-width: 560px; }
.histoire__text h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  line-height: 1.08;
  color: var(--ink);
}

/* Timeline verticale (3 jalons) */
.timeline {
  list-style: none;
  margin: 44px 0 8px;
  border-left: 1px solid var(--line);
}
.timeline__item { position: relative; padding: 0 0 30px 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--cream);
}
.timeline__era {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 7px;
}
.timeline__era sup { font-size: 0.62em; }
.timeline__item h3 {
  font-size: 1.5rem;
  color: var(--plum);
  margin-bottom: 7px;
}
.timeline__item p {
  font-family: "DM Sans", sans-serif;
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(47, 24, 71, 0.72);
}
.histoire__text .link-arrow { margin-top: 38px; }

/* Galerie asymétrique */
.histoire__gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  aspect-ratio: 1 / 1.04;
}
.histoire__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 22px 48px -22px rgba(47, 24, 71, 0.4);
}
.histoire__gallery .g-main { grid-row: span 2; }

/* =====================================================
   02 — PYRAMIDE OLFACTIVE
   ===================================================== */
.pyramide {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.pyramide__chart svg { width: 100%; height: auto; overflow: visible; }
.pyr-band {
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: filter 0.3s ease, transform 0.3s ease;
  transform-origin: center;
}
.pyr-band--tete { fill: #d8cbe1; }
.pyr-band--coeur { fill: #6e5685; }
.pyr-band--fond { fill: #2f1847; }
.pyramide__chart:hover .pyr-band { filter: saturate(1.05); }
.pyr-label {
  font-family: "Cormorant Upright", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 2px;
  text-anchor: middle;
  fill: var(--ink);
}
.pyr-label--light { fill: #f4ecdb; }

/* Notes décrites, calées sur les 3 étages */
.pyramide__notes { list-style: none; }
.note {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.note:first-child { border-top: none; padding-top: 0; }
.note:last-child { padding-bottom: 0; }
.note__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.note__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(47, 24, 71, 0.2);
}
.note--tete .note__dot { background: #d8cbe1; }
.note--coeur .note__dot { background: #6e5685; }
.note--fond .note__dot { background: #2f1847; }
.note__head h3 { font-size: 1.55rem; color: var(--plum); }
.note__dur {
  margin-left: auto;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  white-space: nowrap;
}
.note p {
  font-family: "DM Sans", sans-serif;
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(47, 24, 71, 0.74);
}

/* Facteurs influençant la tenue */
.facteurs {
  max-width: 880px;
  margin: 86px auto 0;
  text-align: center;
}
.facteurs__intro {
  font-family: "DM Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 26px;
}
.facteurs__grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.facteurs__grid li {
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--plum);
  padding: 12px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.facteurs__note {
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(47, 24, 71, 0.55);
  margin-top: 26px;
}

/* =====================================================
   03 — FAMILLES OLFACTIVES (grille + zoom au survol)
   ===================================================== */
.familles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 42px;
}
.famille { transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
.famille__media {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 18px 40px -16px rgba(47, 24, 71, 0.22);
}
.famille__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.famille:hover { transform: translateY(-6px); }
.famille:hover .famille__media img { transform: scale(1.06); }
.famille h3 {
  margin-top: 22px;
  font-size: 1.45rem;
  color: var(--ink);
  display: inline-block;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--gold-deep), var(--gold-deep));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
}
.famille:hover h3 { background-size: 100% 1px; }
.famille p {
  margin-top: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: #6a5c74;
  line-height: 1.6;
}

/* =====================================================
   04 — CONCENTRATIONS (comparatif + jauge d'intensité)
   ===================================================== */
.fifth-section .section-head { margin-bottom: 30px; }

.conc-scale {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto 56px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(47, 24, 71, 0.5);
}
.conc-scale__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(135,104,48,0.25), var(--gold-deep));
}

.conc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.conc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.conc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px -26px rgba(47, 24, 71, 0.34);
}
.conc-card--peak { border-color: rgba(135, 104, 48, 0.5); }
.conc-card--peak::after {
  content: "Le plus pur";
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.conc-meter { display: inline-flex; gap: 6px; margin-bottom: 26px; }
.conc-meter i {
  width: 28px;
  height: 5px;
  border-radius: 3px;
  background: rgba(47, 24, 71, 0.14);
}
.conc-meter i.on {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.conc-card h3 { font-size: 1.85rem; color: var(--ink); margin-bottom: 12px; }
.conc-card > p {
  font-family: "DM Sans", sans-serif;
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(47, 24, 71, 0.74);
  margin-bottom: 26px;
}
.conc-meta {
  display: flex;
  gap: 28px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.conc-meta dt {
  font-family: "DM Sans", sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 5px;
}
.conc-meta dd {
  font-family: "Cormorant Upright", serif;
  font-size: 1.3rem;
  color: var(--plum);
}

/* =====================================================
   05 — TYPES DE PARFUMS (index éditorial)
   ===================================================== */
.types-list { list-style: none; }
.type-row {
  display: grid;
  grid-template-columns: 80px 230px 1fr;
  gap: 40px;
  align-items: start;
  padding: 38px 24px;
  border-top: 1px solid var(--line);
  border-radius: 4px;
  transition: background 0.3s ease;
}
.type-row:last-child { border-bottom: 1px solid var(--line); }
.type-row:hover { background: var(--paper); }
.type-row__num {
  font-family: "Cormorant Upright", serif;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}
.type-row__head h3 { font-size: 1.85rem; color: var(--ink); margin-bottom: 8px; }
.type-row__tag {
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.type-row__points {
  list-style: none;
  font-family: "DM Sans", sans-serif;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(47, 24, 71, 0.76);
}
.type-row__points li { position: relative; padding-left: 22px; }
.type-row__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 10px;
  height: 1px;
  background: var(--gold-deep);
}

/* =====================================================
   06 — FAQ
   ===================================================== */
.faq-section { padding-inline: max(40px, calc((100% - 860px) / 2)); }
.faq-container { max-width: 860px; margin: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 28px 48px 28px 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: "Cormorant Upright", serif;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.25s;
}
.faq-question:hover { color: var(--plum); }
.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-text);
  font-size: 1.6rem;
  transition: transform 0.3s;
}
.faq-question[aria-expanded="true"]::after { content: "\2013"; }
.faq-reponse { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-reponse p {
  padding: 0 0 30px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(47, 24, 71, 0.76);
  max-width: 70ch;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .second-section,
  .pyramide { grid-template-columns: 1fr; gap: 56px; }
  .histoire__text { max-width: none; }
  .histoire__gallery { aspect-ratio: 16 / 10; max-width: 620px; }
  .conc-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .second-section,
  .third-section,
  .fourth-section,
  .fifth-section,
  .sixth-section,
  .faq-section { padding-block: 90px; }

  .section-head { margin-bottom: 52px; }
  .familles-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; }

  .type-row {
    grid-template-columns: 56px 1fr;
    gap: 14px 26px;
    padding: 30px 14px;
  }
  .type-row__num { font-size: 2rem; }
  .type-row__points { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .second-section,
  .third-section,
  .fourth-section,
  .fifth-section,
  .sixth-section,
  .faq-section { padding-inline: 22px; padding-block: 72px; }

  .familles-grid { grid-template-columns: 1fr; }
  .histoire__gallery { aspect-ratio: 4 / 3; }
  .conc-meta { flex-direction: column; gap: 14px; }
  .facteurs__grid { gap: 12px; }
  .type-row__head { grid-column: 2; }
}

/* =====================================================
   MOTION — entrée hero + révélations au scroll
   États masqués posés uniquement si .has-motion (motion.js).
   Coupé si prefers-reduced-motion: reduce. On anime « translate »
   (et non « transform ») pour ne pas casser les survols.
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
  .has-motion .overline,
  .has-motion .hero__title,
  .has-motion .hero__lead,
  .has-motion .hero__actions,
  .has-motion .hero__meta,
  .has-motion .histoire__text,
  .has-motion .histoire__gallery,
  .has-motion .third-section .section-head,
  .has-motion .pyramide,
  .has-motion .facteurs,
  .has-motion .fourth-section .section-head,
  .has-motion .famille,
  .has-motion .fifth-section .section-head,
  .has-motion .conc-scale,
  .has-motion .conc-card,
  .has-motion .sixth-section .section-head,
  .has-motion .type-row,
  .has-motion .faq-section .section-head,
  .has-motion .faq-item {
    opacity: 0;
    translate: 0 26px;
    transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
                translate 0.8s cubic-bezier(0.2, 0.6, 0.2, 1),
                transform 0.45s ease;
  }

  /* Entrée du hero en cascade */
  .has-motion .hero__title   { transition-delay: 0.08s; }
  .has-motion .hero__lead    { transition-delay: 0.16s; }
  .has-motion .hero__actions { transition-delay: 0.24s; }
  .has-motion .hero__meta    { transition-delay: 0.32s; }

  .has-motion .is-visible {
    opacity: 1 !important;
    translate: 0 !important;
  }
}
