/* ============================================================
   MARLY ALTHAIR FRAGRANCE FINDER — V19
   Design system V3 : finder-header overlay + progress bar 5px
   Fonts Minion Pro (fallback EB Garamond) + Lato
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Colors */
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --moonlight: #F3EFE6;
  --white: #F3EFE6;
  --cream: #F5F1EA;
  --gold: rgb(205, 160, 85);
  --gold-dark: rgb(150, 115, 60);
  --gold-glow: rgba(205, 160, 85, 0.5);
  --muted: rgba(243, 239, 230, 0.6);
  --line: rgba(243, 239, 230, 0.15);

  /* Fonts */
  --serif: 'Minion Pro', 'EB Garamond', 'Garamond Premier Pro', Garamond, Georgia, serif;
  --sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Typography V3 — desktop */
  --fs-h1: 4.375rem;      /* 70pt */
  --lh-h1: 1.1;
  --ls-h1: 0.05em;

  --fs-h2: 2.3rem;         /* 40pt */
  --lh-h2: 1.2;
  --ls-h2: 0.05em;

  --fs-h3: 1.5rem;          /* 24pt (BACK / HOME) */
  --lh-h3: 1.2;
  --ls-h3: 0.10em;

  --fs-subtitle: 2.25rem;   /* Minion Pro non-italique FIND YOUR SIGNATURE */
  --lh-subtitle: 1.2;
  --ls-subtitle: 0.05em;

  --fs-eyebrow: 1.5rem;
  --lh-eyebrow: 1.2;
  --ls-eyebrow: 0.40em;

  --fs-body: 1.05rem;          /* 16-17pt */
  --lh-body: 1.3;
  --ls-body: 0.03em;

  --fs-cta: 0.8rem;
  --lh-cta: 1.2;
  --ls-cta: 0.10em;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* FX - légère ombre portée */
  --shadow-text: 0 2px 8px rgba(0, 0, 0, 0.55);
  --shadow-element: 0 4px 16px rgba(0, 0, 0, 0.45);

  /* Layout */
  --header-height: 88px;
  --progress-height: 5px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;        /* indispensable pour que .finder prenne 100% en iframe */
}

/* Font-size fluide : 10px plancher → 14px plafond, interpolation entre 1280 et 1920 */
html { font-size: clamp(10px, calc(10px + (100vw - 1280px) / 200), 14px); }

@media (max-width: 1440px) {
  .finder-step__content--single       { padding-top: 8%; }
  .finder-step--split .finder-step__content--split { padding-top: 8%; }
}
@media (max-width: 1280px) {
  .finder-step__content { padding: 8% 8%; }
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--moonlight);
  background-color: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ============================================================
   SITE HEADER (Parfums de Marly) — INTACT (V2)
   ============================================================ */
.site-header {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.site-header__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  gap: 32px;
}

.site-header__utilities { display: flex; align-items: center; gap: 20px; }
.site-header__utilities--left { justify-content: flex-start; }
.site-header__utilities--right { justify-content: flex-end; gap: 12px; }

.site-header__icon-btn {
  width: 22px; height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.site-header__icon-btn svg { width: 100%; height: 100%; }

.site-header__region {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
  text-transform: uppercase;
}
.site-header__chevron { font-size: 10px; margin-left: 4px; }

.site-header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.site-header__logo-main {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.15em;
  font-weight: 400;
}
.site-header__logo-main em { font-style: italic; font-family: var(--serif); }
.site-header__logo-sub {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.30em;
  margin-top: 2px;
}

.site-header__account {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--ink);
  gap: 2px;
}
.site-header__account-title {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.site-header__account-sub {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--gold);
  text-decoration: none;
}

.site-header__separator {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 4px;
}

.site-header__icon-btn--cart {
  position: relative;
}
.site-header__cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 12px 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header__nav-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  padding: 4px 0;
  transition: color 0.3s var(--ease-smooth);
}
.site-header__nav-link:hover { color: var(--gold); }

/* ============================================================
   FINDER — main container
   ============================================================ */
.finder {
  position: relative;
  width: 100%;
  /* 100% du conteneur parent (iframe ou body).
     Fallback min-height 100vh/dvh pour le mode standalone (hors iframe). */
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--ink);
}

/* --- FINDER HEADER (overlay top : BACK / TITLE / SOUND) --- */
.finder-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  pointer-events: none;
}
.finder-header > * { pointer-events: auto; }

.finder-header__back {
  justify-self: start;
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
  text-shadow: var(--shadow-text);
  transition: opacity 0.3s var(--ease-smooth);
}
.finder-header__back:hover { opacity: 0.75; }

.finder-header__title {
  justify-self: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: var(--gold);
  margin: 0;
  text-align: center;
  text-shadow: var(--shadow-text);
}

.finder-header__sound {
  justify-self: end;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  padding: 0;
  filter: drop-shadow(var(--shadow-text));
  transition: opacity 0.3s var(--ease-smooth);
}
.finder-header__sound:hover { opacity: 0.75; }
.finder-header__sound svg { width: 100%; height: 100%; }
.finder-header__sound .icon-sound-off { display: none; }
.finder-header__sound.is-muted .icon-sound-on { display: none; }
.finder-header__sound.is-muted .icon-sound-off { display: block; }

/* Header state modifiers */
.finder-header__title { visibility: hidden; }
.finder-header.is-choice .finder-header__title,
.finder-header.is-reveal .finder-header__title { visibility: visible; }

.finder-header__back { visibility: visible; }
.finder-header.is-first .finder-header__back { visibility: hidden; }

/* --- FINDER PROGRESS (fil d'ariane 5px en bas) --- */
.finder-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 12;
  height: var(--progress-height);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.finder-progress__fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.6s var(--ease-out-cubic);
}

/* ============================================================
   FINDER STEPS
   ============================================================ */
.finder-step {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-smooth), visibility 0.5s;
}
.finder-step.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Bypass transition — used during swap under opaque overlay to avoid
   the visible superposition of both steps mid-transition (flash cause #1) */
.finder-step.no-transition {
  transition: none !important;
}

/* Step background layer */
.finder-step__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.finder-step__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  transition: background 0.6s var(--ease-smooth);
}

/* Ken Burns wrapper — absorbs GSAP transforms */
.finder-step__image-wrap {
  position: absolute;
  inset: 0;
  transform-origin: center center;
}

.finder-step__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

/* Step content zone — grille 12 col × 16 rangs (charte V3) */
.finder-step__content {
  position: absolute;
  inset: 0;
  padding: 5% 12%;
  display: flex;
  z-index: 5;
}

.finder-step__content--single {
  justify-content: flex-start;
  padding-top: 10%;
}

.finder-step--split .finder-step__content--split {
  justify-content: space-between;
  padding-top: 10%;
  gap: 20px;
}

/* Split copies : chacune 50% du parent, très peu d'espace entre */
.finder-step--split .finder-copy {
  flex: 1 1 0;
  max-width: 50%;
}

/* Les 2 titres sur la même ligne : réserver 2 lignes dans tous les cas pour que
   SAFFRON (1 ligne) et ORANGE BLOSSOM (2 lignes) aient la même hauteur réservée.
   Idem AMARETTO (1 ligne) et PRALINE (1 ligne). Résultat : les body démarrent
   au même niveau et la mise en page reste symétrique. */
.finder-step--split .finder-copy__title {
  min-height: calc(2 * 1.1em);
  display: flex;
  align-items: flex-end;
}
.finder-copy--right .finder-copy__title { justify-content: flex-end; }

.finder-step__content--reveal {
  justify-content: flex-start;
  padding-top: 10%;
  width: 50%;
  right: auto;              /* override right:0 hérité de inset:0 */
}

/* Althair variant : bloc de contenu à droite, texte aligné right */
#step5.is-althair .finder-step__content--reveal {
  left: auto;
  right: 0;
}
#step5.is-althair .finder-copy--reveal {
  text-align: right;
  align-items: flex-end;
}
#step5.is-althair .finder-copy--reveal .btn { align-self: flex-end; }

/* Split step spotlight (hover on left / right) */
.finder-step--split:has(.finder-copy--left:hover) .finder-step__bg::after {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.finder-step--split:has(.finder-copy--right:hover) .finder-step__bg::after {
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

/* --- FINDER COPY (text block) --- */
.finder-copy {
  max-width: 520px;
  color: var(--moonlight);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.5s var(--ease-smooth);
}

.finder-copy--right {
  text-align: right;
  align-items: flex-end;
}

/* Buttons in right column stay right-aligned */
.finder-copy--right .btn { align-self: flex-end; }

.finder-copy--reveal {
  max-width: 520px;
}

.finder-copy__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  color: var(--moonlight);
  margin: 0;
  text-shadow: var(--shadow-text);
}
/* Multi-line title (Step 1 : ALTHAÏR / OR / ALTHAÏR EXCLUSIF?)
   Desktop : "ALTHAÏR OR" sur ligne 1, "ALTHAÏR EXCLUSIF?" sur ligne 2.
   Mobile : sur 3 lignes (block via media query 900) */
.finder-copy__title span { display: inline; }
#step1 .finder-copy__title .finder-copy__or + span { display: block; }
.finder-copy__or {
  font-size: 70%;        /* -30% par rapport au reste du titre */
  font-weight: 500;
}

.finder-copy__subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-subtitle);
  line-height: var(--lh-subtitle);
  letter-spacing: var(--ls-subtitle);
  color: var(--gold);
  margin: 0 0 2rem;
  text-shadow: var(--shadow-text);
}

.finder-copy__eyebrow {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  text-shadow: var(--shadow-text);
}

.finder-copy__body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--moonlight);
  margin: 0 0 2rem;
  max-width: 46ch;
  text-shadow: var(--shadow-text);
}
.finder-copy--right .finder-copy__body { max-width: 46ch; margin-left: auto; }

/* CTA stack (reveal step : ADD TO CART + SWITCH) */
.finder-copy__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  align-items: flex-start;
}
.finder-copy--right .finder-copy__ctas { align-items: flex-end; }

/* CTAs step 5 (ADD TO CART + SEE ALTHAÏR/EXCLUSIF) : min-width fixe pour lisibilité */
.finder-copy__ctas .btn { min-width: 225px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-cta);
  line-height: var(--lh-cta);
  letter-spacing: var(--ls-cta);
  text-transform: uppercase;
  color: var(--gold);
  padding: 1em 2.5em;
  border: 1px solid var(--gold);
  background-color: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s var(--ease-smooth),
              color 0.3s var(--ease-smooth),
              border-color 0.3s var(--ease-smooth),
              opacity 0.3s var(--ease-smooth);
  align-self: flex-start;    /* ne prend pas 100% du parent flex */
  text-align: center;
}
.btn:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #000;
}

/* CTA base (bordure blanche) — START THE EXPERIENCE */
.btn--cta {
  align-self: flex-start;
}

/* CTA rempli (or plein) — ADD TO CART */
.btn--cta-filled {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn--cta-filled:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--ink);
}

/* Homepage (step 1) — layout spécifique : pas de gap, margins par élément */
#step1 .finder-copy {
  max-width: none;
  gap: 0;
}

#startExperienceBtn {
  border-width: 2px;
}

/* Select button (ingredient choice) : click colorise le CTA (bg or) sans
   changer le label — le texte reste "SELECT" dans toutes les langues */
.btn--select {
  position: relative;
}
.btn--select.is-active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  cursor: default;
}

/* Switch variant button (reveal step) */
.btn--switch {
  background: transparent;
  color: var(--moonlight);
  border: 1px solid var(--moonlight);
}
.btn--switch:hover {
  background-color: var(--moonlight);
  color: var(--ink);
  border-color: var(--moonlight);
}

/* ============================================================
   TRANSITION VIDEO OVERLAY
   ============================================================ */
.transition-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease-smooth), visibility 0.32s;
  pointer-events: none;
  background-color: var(--ink);
}
.transition-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.transition-overlay__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

/* ============================================================
   VANILLA STEP FX (smoke + particles)
   ============================================================ */
.vanilla-smoke {
  position: absolute;
  bottom: 20%;
  left: 50%;
  width: 55%;
  height: 65%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center bottom,
    rgba(255, 200, 130, 0.15) 0%,
    rgba(255, 180, 100, 0.08) 30%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: 2;
  animation: smokeFloat 8s ease-in-out infinite;
}

@keyframes smokeFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.7; }
  50%      { transform: translateX(-50%) translateY(-8px) scale(1.05); opacity: 0.9; }
}

.vanilla-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.vanilla-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 130, 0.9) 0%, transparent 70%);
  box-shadow: 0 0 6px rgba(255, 200, 130, 0.6);
  animation: particleRise linear infinite;
}
.vanilla-particles .particle:nth-child(1) { left: 32%; bottom: 25%; animation-duration: 7s; animation-delay: 0s;   }
.vanilla-particles .particle:nth-child(2) { left: 40%; bottom: 30%; animation-duration: 9s; animation-delay: 1s;   }
.vanilla-particles .particle:nth-child(3) { left: 48%; bottom: 20%; animation-duration: 8s; animation-delay: 2s;   }
.vanilla-particles .particle:nth-child(4) { left: 55%; bottom: 28%; animation-duration: 10s; animation-delay: 0.5s;}
.vanilla-particles .particle:nth-child(5) { left: 60%; bottom: 22%; animation-duration: 7.5s; animation-delay: 3s; }
.vanilla-particles .particle:nth-child(6) { left: 46%; bottom: 35%; animation-duration: 9.5s; animation-delay: 1.5s;}
.vanilla-particles .particle:nth-child(7) { left: 38%; bottom: 24%; animation-duration: 8.5s; animation-delay: 2.5s;}
.vanilla-particles .particle:nth-child(8) { left: 52%; bottom: 32%; animation-duration: 11s; animation-delay: 0.8s;}

@keyframes particleRise {
  0%   { transform: translateY(0);      opacity: 0;   }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(-200px); opacity: 0;   }
}

/* Light sweep step 1 */
.light-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 220, 160, 0.05) 50%,
    transparent 60%,
    transparent 100%
  );
  animation: lightSweep 12s ease-in-out infinite;
}

@keyframes lightSweep {
  0%, 100% { transform: translateX(-100%); opacity: 0;   }
  50%      { transform: translateX(100%);  opacity: 1;   }
}

/* ============================================================
   HIDE LEGACY COMPONENTS (V2)
   Kept in DOM if referenced but never rendered
   ============================================================ */
.finder-nav, .sound-pill { display: none !important; }

/* ============================================================
   SITE FOOTER — INTACT (V2)
   ============================================================ */
.site-footer {
  padding: 64px 0 32px;
  background-color: var(--white);
  color: var(--ink);
}
.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}
.site-footer__title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: 0.05em;
}
.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__list--two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}
.site-footer__list li {
  padding: 6px 0;
}
.site-footer__list a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}
.site-footer__list a:hover { color: var(--gold); }

.site-footer__address {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 28px 0 20px;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
}
.site-footer__payment {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-footer__payment-label {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.05em;
}
.site-footer__payment-icons {
  display: flex;
  gap: 8px;
}
.pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.03em;
  border-radius: 2px;
}
.site-footer__language {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE — mobile (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --fs-h1: 2.5rem;
    --fs-h2: 1.375rem;
    --fs-h3: 1rem;
    --fs-subtitle: 1.125rem;
    --fs-eyebrow: 1rem;
    --fs-body: 0.9375rem;
    --fs-cta: 0.875rem;

    --header-height: 100px;
    --progress-height: 5px;
  }

  /* Mobile : 80% du conteneur iframe (fallback min-height 80vh/dvh en standalone) */
  .finder {
    height: 80%;
    min-height: 80vh;
    min-height: 80dvh;
  }

  /* Mobile uniquement : -10% par rapport au clamp desktop */
  html { font-size: 90%; }

  /* Site header mobile */
  .site-header__top {
    grid-template-columns: auto 1fr auto;
    padding: 12px 16px;
    gap: 12px;
  }
  .site-header__utilities--left .site-header__region,
  .site-header__account,
  .site-header__separator,
  .site-header__icon-btn[aria-label="Store locator"],
  .site-header__icon-btn[aria-label="Account"],
  .site-header__icon-btn[aria-label="Wishlist"] { display: none; }
  .site-header__logo-main { font-size: 16px; }
  .site-header__logo-sub  { font-size: 8px; letter-spacing: 0.25em; }
  .site-header__nav { display: none; }

  /* Finder header layout 2 rows */
  .finder-header {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    padding: 14px 20px 10px;
    height: auto;
    row-gap: 10px;
    align-items: center;
  }
  .finder-header__back  { grid-column: 1; grid-row: 1; justify-self: start; }
  .finder-header__sound { grid-column: 2; grid-row: 1; justify-self: end;   }
  .finder-header__title {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
    max-width: 100%;
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  /* Base content mobile — 25px gauche/droite pour recentrer le texte */
  .finder-step__content {
    padding: calc(var(--header-height) + 12px) 25px 10%;
  }

  .finder-copy {
    max-width: none;
    gap: 0.75rem;
  }
  /* En mobile, le body ne doit jamais déborder (le 46ch desktop déborde en portrait étroit) */
  .finder-copy__body { max-width: 100%; }
  .finder-copy--right .finder-copy__body { max-width: 100%; }

  /* ---- Décalage vertical images bg + vidéos de transition en mobile ----
     Valeur à ajuster selon besoin (translateY négatif = image remonte). */
  .finder-step__image {
    transform: translateY(0);
    transform-origin: center;
  }
  .transition-overlay__video {
    transform: translateY(0);
    transform-origin: center;
  }

  /* CTA mobile : padding uniquement, border blanche + fond transparent, color gold, hover gold bold */
  .btn {
    padding: 1em 2.5em;
    font-size: var(--fs-cta);
    letter-spacing: 0.05em;
    line-height: 1.2;
    border-color: var(--moonlight);
    background: transparent;
    color: var(--gold);
  }
  .btn:hover,
  .btn:active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #000;
  }
  .btn--cta-filled {
    background: transparent;
    border-color: var(--moonlight);
    color: var(--gold);
  }
  .btn--cta-filled:hover,
  .btn--cta-filled:active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #000;
  }

  /* ---- STEP 1 : titre en haut centered (3 lignes), body + CTA en bas ---- */
  #step1 .finder-step__content--single {
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 25%;
  }
  #step1 .finder-copy {
    height: 95%;
    align-items: center;
    gap: 0.25rem;
  }
  #step1 .finder-copy__title,
  #step1 .finder-copy__subtitle { text-align: center; }
  /* Sur mobile, titre step 1 sur 3 lignes */
  #step1 .finder-copy__title span { display: block; }
  #step1 .finder-copy__body {
    text-align: left;
    max-width: none;
    margin-top: auto;      /* pousse le body + CTA vers le bas */
    align-self: stretch;
    margin-bottom: 1rem;
  }
  /* CTA à gauche (align-self default = flex-start du .btn global) */

  /* ---- STEP 2 (Vanilla) : contenu en bas à gauche ---- */
  #step2 .finder-step__content--single {
    align-items: flex-end;    /* en bas verticalement */
    padding-bottom: 10%;
    /* pas de justify-content : par défaut flex-start = gauche horizontalement */
  }
  #step2 .finder-copy {
    flex: 1 1 auto;       /* shrink 1 au lieu de 0 pour éviter débordement */
    max-width: 100%;
    text-align: left;
  }
  #step2 .finder-copy__title,
  #step2 .finder-copy__body { text-align: left; }
  /* Body desktop a max-width: 46ch — override en mobile pour qu'il wrap dans le container */
  #step2 .finder-copy__body { max-width: 100%; }

  /* ---- STEPS 3, 4 : split row 50/50 en bas ---- */
  .finder-step--split .finder-step__content--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 10%;
  }
  .finder-step--split .finder-copy {
    flex: 1 1 0;
    max-width: 50%;
    gap: 0.5rem;
  }
  .finder-copy--left  { text-align: left; align-items: flex-start; }
  .finder-copy--right { text-align: right; align-items: flex-end; }
  .finder-copy--right .btn { align-self: auto; }

  /* ---- STEP 5 REVEAL ---- */
  .finder-step__content--reveal {
    width: 100%;
    left: 0;
    right: 0;
    padding-top: calc(var(--header-height) + 16px);
    justify-content: center;         /* centered horizontalement */
    align-items: stretch;
  }
  #step5.is-althair .finder-step__content--reveal {
    left: 0;
    right: 0;
  }
  .finder-copy--reveal { max-width: none; }

  /* Titre centered avec ombre noire prononcée */
  #step5 .finder-copy--reveal .finder-copy__title {
    text-align: center;
    font-size: 2.5rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: auto;
  }
  /* Body aligné à gauche */
  #step5 .finder-copy--reveal .finder-copy__body {
    text-align: left;
    margin-top: 0;
  }
  #step5.is-althair .finder-copy--reveal {
    text-align: left;
    align-items: stretch;
  }

  /* 2 CTAs : un à gauche, un à droite (aux extrémités) */
  #step5 .finder-copy__ctas {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-self: stretch;
    gap: 12px;
  }
  #step5 .finder-copy__ctas .btn {
    flex: 0 0 auto;
    min-width: 0;         /* override le desktop 225px */
  }

  /* Footer mobile */
  .site-footer { padding: 40px 0 24px; }
  .site-footer__inner { padding: 0 20px; }
  .site-footer__cols {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  .site-footer__list--two-cols { grid-template-columns: 1fr; }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .site-footer__payment-icons { flex-wrap: wrap; }
}

/* ============================================================
   RESPONSIVE — small phones (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --fs-h1: 2rem;
    --fs-h2: 1.125rem;
    --fs-body: 0.875rem;
    --fs-cta: 0.8125rem;
  }

  .finder-header { padding: 14px 14px 10px; }
  .finder-header__title { font-size: 1.2rem; }

  .finder-step__content {
    padding: calc(var(--header-height) + 12px) 25px 10%;
  }

  .btn { padding: 0.85em 1.4em; }

  /* SELECT plus large en 480 */
  .btn--select { padding: 0.85em 4em; }

  /* Steps 3/4 : split colonnes plus étroites → réduire H1 sans wrap trop */
  .finder-step--split .finder-copy__title { font-size: 1.5rem; }

  /* Step 5 CTAs padding précis en 480 */
  #step5 .finder-copy__ctas { gap: 8px; }
  #step5 .finder-copy__ctas .btn { padding: 0.85em 3.5em; }
}
