/* ==========================================================================
   RED NAILS — styles.css
   Univers "vernis laqué" · mobile-first · sans framework
   Sommaire :
     1. Variables & base        6. Sections (comparaison, étapes, couleurs…)
     2. Utilitaires             7. FAQ, CTA final, footer
     3. Bandeau & header        8. Barre collante, panier, pop-up
     4. Fiche produit           9. Animations
     5. Boutons                10. prefers-reduced-motion
   ========================================================================== */

/* ---------- 1. Variables & base ---------- */
:root {
  --red: #C8102E;          /* rouge cerise signature (contraste 5,9:1 sur blanc) */
  --red-dark: #A00C24;
  --red-soft: #FFF0F2;
  --black: #0E0B0C;        /* noir profond */
  --ink: #1A1416;
  --muted: #5E4B50;        /* 7:1 sur le fond */
  --bg: #FFF8F8;           /* blanc légèrement rosé */
  --bg-tint: #FDEEF0;
  --card: #FFFFFF;
  --line: #EED6DA;
  --green: #17704A;        /* 5,6:1 sur blanc */

  --font-display: 'Unbounded', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px -12px rgba(58, 10, 20, .22);
  --shadow-red: 0 12px 26px -10px rgba(200, 16, 46, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
/* Empêche le défilement de la page derrière une fenêtre modale */
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-sticky { padding-bottom: 84px; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
s { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
  border-radius: 8px;
}
.section--dark :focus-visible,
.final :focus-visible,
.footer :focus-visible { outline-color: #fff; }

/* ---------- 2. Utilitaires ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--black); color: #fff; padding: 12px 16px; border-radius: 10px;
}
.skip-link:focus { top: 8px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 780px; }
.noscript { padding: 16px; text-align: center; background: var(--black); color: #fff; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px;
}
.eyebrow--light { color: #FF8A9C; }

/* ---------- 3. Bandeau défilant & header ---------- */
.announce {
  background: var(--black); color: #fff; overflow: hidden;
  font-size: .82rem; font-weight: 500; height: 36px; display: flex; align-items: center;
}
.announce__track {
  display: flex; width: max-content; white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.announce:hover .announce__track { animation-play-state: paused; }
.announce__clone { display: contents; }
.announce__item { display: inline-flex; align-items: center; padding: 0 18px; }
.announce__item::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  margin-left: 36px; box-shadow: 0 0 0 2px rgba(200, 16, 46, .35);
}

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: .04em; text-decoration: none; color: var(--black);
  min-height: 44px; display: inline-flex; align-items: center; gap: .3em;
}
.logo__red { color: var(--red); }
.logo--light { color: #fff; }
.logo--light .logo__red { color: #FF5470; }

.cart-btn {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: transparent; border: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.cart-btn:hover { background: var(--red-soft); }
.cart-btn__count {
  position: absolute; top: 3px; right: 1px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 21px; text-align: center;
  border: 2px solid var(--bg);
}
.cart-btn.is-bump { animation: bump .45s var(--ease); }

/* ---------- 4. Fiche produit ---------- */
.product { max-width: 1200px; margin: 0 auto; display: grid; gap: 18px; padding-bottom: 28px; }
.product__info { padding: 0 var(--gutter); display: grid; gap: 18px; min-width: 0; }

/* Galerie */
.gallery { position: relative; }
.gallery__viewport {
  position: relative; aspect-ratio: 1 / 1; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  background: var(--bg-tint); cursor: zoom-in;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__viewport.is-zoomed { overflow: hidden; touch-action: none; cursor: zoom-out; }
.gallery__track { display: flex; height: 100%; transition: opacity .2s ease; }
.gallery__track.is-swapping { opacity: .35; }
.gallery__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; }
.gallery__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s var(--ease);
  -webkit-user-drag: none; user-select: none;
}
.gallery__slide img.is-zoomed { transform: scale(2.5); transition: transform .25s var(--ease); }

/* Reflet brillant qui balaie les ongles */
.gallery::after, .shine::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 5s var(--ease) 1.4s infinite;
}
.gallery { overflow: hidden; }
.gallery::after { z-index: 1; }
.gallery.is-zoomed::after { display: none; }
.shine { position: relative; overflow: hidden; }

.gallery__count, .gallery__hint {
  position: absolute; z-index: 2; pointer-events: none;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 6px 11px;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .25);
}
.gallery__count { left: 12px; top: 12px; }
.gallery__hint { right: 12px; top: 12px; display: inline-flex; gap: 6px; align-items: center; }

.gallery__thumbs {
  display: flex; gap: 8px; padding: 10px var(--gutter) 0; overflow-x: auto; scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: 0 0 56px; width: 56px; height: 56px; padding: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: var(--bg-tint);
  transition: border-color .2s, transform .2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-2px); }
.thumb[aria-current="true"] { border-color: var(--black); }

/* Titre & promesses */
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.product__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 5.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em;
  color: var(--black); margin-top: -10px;
}
.promises { display: flex; flex-wrap: wrap; gap: 8px; }
.promises li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 9px; font-size: .86rem; font-weight: 500;
}
.promises svg { color: var(--red); flex: none; }

/* Prix : le plus gros et le plus contrasté */
.price-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 14px; box-shadow: var(--shadow);
}
.price-box__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price-now {
  font-family: var(--font-display); font-weight: 800; color: var(--black);
  font-size: clamp(2.5rem, 11.5vw, 3.6rem); line-height: 1; letter-spacing: -.03em;
}
.price-was { color: var(--muted); font-size: 1.15rem; font-weight: 500; }
.price-badge, .badge {
  display: inline-block; background: var(--red); color: #fff; font-weight: 800;
  font-size: .82rem; padding: 4px 9px; border-radius: 999px; letter-spacing: .02em;
  align-self: center;
}
.per-nail {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin-top: 8px;
  color: var(--red); font-family: var(--font-display); font-weight: 700; line-height: 1.05;
}
.per-nail__pre, .per-nail__suf { font-size: clamp(1.2rem, 5.2vw, 1.6rem); }
.per-nail__val {
  font-weight: 800; font-size: clamp(3rem, 15vw, 4.6rem); letter-spacing: -.035em;
  display: inline-block;
}
.per-nail__val.is-pop { animation: pop .45s var(--ease); }

.salon-line {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--red-soft); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: .95rem; font-weight: 500;
}
.salon-line strong { color: var(--red); white-space: nowrap; }
.salon-line svg { flex: none; color: var(--red); margin-top: 2px; }

/* Champs */
.field { display: grid; gap: 10px; }
.field__legend { font-size: .95rem; font-weight: 500; padding: 0; margin-bottom: 10px; }
.field__legend strong { font-weight: 700; }

/* Pastilles de couleur */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span {
  display: block; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background:
    radial-gradient(circle at 32% 27%, rgba(255, 255, 255, .85) 0 9%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 50% 45%, var(--c) 52%, color-mix(in srgb, var(--c), #000 32%) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 0 var(--bg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.swatch span[data-tip] {
  background:
    radial-gradient(circle at 32% 27%, rgba(255, 255, 255, .85) 0 9%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(to bottom, var(--tip) 0 40%, var(--c) 42%);
}
.swatch span:hover { transform: scale(1.1); }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px var(--bg), 0 0 0 5px var(--black); }
.swatch input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 6px; }

/* Cartes de lots */
.bundles { display: grid; gap: 12px; }
.bundle {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 76px; padding: 14px 16px; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.bundle:hover { border-color: #DDA9B2; transform: translateY(-1px); }
.bundle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bundle:has(input:checked) { border-color: var(--red); background: #FFF6F7; box-shadow: 0 10px 24px -14px rgba(200, 16, 46, .6); }
.bundle:has(input:focus-visible) { outline: 3px solid var(--black); outline-offset: 3px; }
.bundle__radio {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9AEB4; display: grid; place-items: center;
  transition: border-color .2s;
}
.bundle__radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .2s var(--ease); }
.bundle:has(input:checked) .bundle__radio { border-color: var(--red); }
.bundle:has(input:checked) .bundle__radio::after { transform: scale(1); }
.bundle__main { display: grid; gap: 2px; min-width: 0; }
.bundle__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bundle__sub { font-size: .86rem; color: var(--muted); }
.bundle__sub strong { color: var(--red); font-weight: 700; }
.bundle__ship { font-size: .82rem; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.bundle__price { text-align: right; display: grid; gap: 0; }
.bundle__price strong { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.bundle__price s { color: var(--muted); font-size: .85rem; }
.bundle__flag {
  position: absolute; top: -11px; right: 14px; background: var(--black); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px;
}
.bundles.is-flash .bundle { animation: flash 1s var(--ease); }

.ship-line { font-size: .9rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: -4px; }
.ship-line.is-free { color: var(--green); font-weight: 700; }
.ship-line svg { flex: none; }

/* Promesse de livraison */
.eta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 14px; margin-top: -6px; }
.eta__text { font-size: .92rem; line-height: 1.5; }
.eta__text strong { color: var(--black); }
.eta__time { color: var(--red) !important; font-variant-numeric: tabular-nums; }
.eta__steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.eta__steps::before {
  content: ''; position: absolute; top: 15px; left: 16.66%; right: 16.66%; height: 2px;
  background: linear-gradient(to right, var(--red) 50%, var(--line) 50%);
}
.eta__step { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; font-size: .78rem; }
.eta__icon {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--line); color: var(--muted);
}
.eta__step.is-done .eta__icon { background: var(--red); border-color: var(--red); color: #fff; }
.eta__step.is-next .eta__icon { border-color: var(--red); color: var(--red); }
.eta__label { font-weight: 700; color: var(--ink); }
.eta__date { color: var(--muted); }

/* Réassurance */
.reassure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reassure li { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 10px 4px; font-size: .78rem; line-height: 1.3; }
.reassure svg { color: var(--red); }
.reassure strong { font-size: .82rem; }
.reassure span { color: var(--muted); }

/* ---------- 5. Boutons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(200, 16, 46, .6); }
.btn--primary:active { transform: translateY(0) scale(.98); }
/* reflet qui traverse le bouton au survol */
.btn--primary::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn--primary:hover::after { transition: transform .7s var(--ease); transform: translateX(120%); }
.btn--xl { width: 100%; min-height: 60px; font-size: 1rem; padding: 12px 16px; gap: 8px; }
@media (min-width: 400px) { .btn--xl { font-size: 1.08rem; } }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border-color: var(--black); color: var(--black); }
.btn--ghost:hover { background: var(--black); color: #fff; }
.btn--white { background: #fff; color: var(--red); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.btn--white:hover { transform: translateY(-2px); background: #fff; }
.btn__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--red)); box-shadow: 0 0 0 2px #fff; flex: none; }
.btn.is-added { animation: pop .4s var(--ease); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: transparent; transition: background .2s;
}
.icon-btn:hover { background: var(--bg-tint); }
.link-btn { background: none; border: 0; text-decoration: underline; color: var(--muted); min-height: 44px; padding: 8px 12px; }

/* CTA répétés */
.cta-band { display: grid; justify-items: center; gap: 10px; padding: 28px var(--gutter); text-align: center; }
.cta-band .btn { width: 100%; max-width: 440px; min-height: 58px; font-size: 1.05rem; }
.cta-band__note { font-size: .85rem; color: var(--muted); }
.cta-band--inverse .cta-band__note { color: #FFE3E7; }

/* ---------- 6. Sections ---------- */
.section { padding: 56px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--black); color: #fff; }
.section__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 6.5vw, 2.6rem); line-height: 1.1; margin-bottom: 14px;
}
.section__intro { color: var(--muted); margin-bottom: 26px; max-width: 60ch; }

/* Comparaison */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px; margin: 24px 0 20px; }
.compare__card { border-radius: var(--radius); padding: 18px 12px; text-align: center; display: grid; gap: 4px; align-content: center; }
.compare__card--salon { background: #221B1D; color: #D9CDD0; }
.compare__card--salon .compare__value { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.compare__card--ours { background: var(--red); color: #fff; box-shadow: 0 20px 40px -18px rgba(200, 16, 46, .8); }
.compare__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.compare__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 8.5vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.compare__unit { font-size: .85rem; }
.compare__vs { align-self: center; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: #FF8A9C; }
.compare__line { font-size: 1.05rem; font-weight: 500; max-width: 60ch; }
.compare__line strong { color: #FF8A9C; }
.bars { margin: 26px 0 10px; display: grid; gap: 10px; max-width: 640px; }
.bars__title { font-size: .85rem; color: #CDBFC3; }
.bars__row { display: grid; grid-template-columns: 86px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.bars__bar { height: 14px; border-radius: 999px; transform-origin: left; width: var(--w, 0%); transition: width 1.4s var(--ease); }
.bars__bar--salon { background: #5A4B4F; }
.bars__bar--ours { background: var(--red); }
.bars__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.compare__foot { font-size: .85rem; color: #CDBFC3; }

/* Étapes */
.steps { display: grid; gap: 14px; margin-top: 24px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
}
.step__num {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
}
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.step__text { color: var(--muted); font-size: .95rem; }

/* Grille des couleurs */
.color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.color-card {
  width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 0; padding: 0; text-align: left;
  background: var(--card); border: 2px solid transparent; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 20px -14px rgba(58, 10, 20, .4);
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.color-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.color-card[aria-pressed="true"] { border-color: var(--red); }
.color-card__media { display: block; aspect-ratio: 1; background: var(--bg-tint); }
.color-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.color-card:hover .color-card__media img { transform: scale(1.06); }
.color-card__body { padding: 12px 12px 14px; display: grid; gap: 4px; align-content: start; grid-template-rows: auto 1fr auto; }
.color-card__name { font-family: var(--font-display); font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.color-card__name i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.color-card__desc { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.color-card__pill { justify-self: start; margin-top: 6px; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--black); color: #fff; }
.color-card[aria-pressed="true"] .color-card__pill { background: var(--red); }

/* Contenu du kit */
.kit { display: grid; gap: 28px; align-items: center; }
.kit__media { border-radius: var(--radius); background: var(--bg-tint); }
.checklist { display: grid; gap: 12px; margin-top: 8px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 1rem; }
.checklist svg { color: #fff; background: var(--red); border-radius: 50%; padding: 5px; width: 26px; height: 26px; }

/* ---------- 7. FAQ, CTA final, footer ---------- */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  min-height: 58px; padding: 14px 18px; font-weight: 700; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: #DDA9B2; }
.faq__answer { padding: 0 18px 18px; color: var(--muted); }
.faq details[open] .faq__answer { animation: fadeDown .35s var(--ease); }

.final { background: var(--red); color: #fff; padding: 60px 0 36px; text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); pointer-events: none;
}
.final__inner { position: relative; }
.final__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 7vw, 3rem); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; margin: 0 auto 12px; }
.final__text { font-size: 1.05rem; max-width: 46ch; margin: 0 auto; }

.footer { background: var(--black); color: #E9DEE1; padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer__tagline { font-size: .9rem; color: #BFAFB4; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: .9rem; }
.footer__links a:hover { text-decoration: underline; color: #fff; }
.footer__copy { font-size: .8rem; color: #A9989D; }

/* ---------- 8. Barre collante, panier, pop-up ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -12px rgba(58, 10, 20, .3);
  transform: translateY(110%); transition: transform .35s var(--ease); visibility: hidden;
}
.sticky-buy.is-visible { transform: translateY(0); visibility: visible; }
.sticky-buy__thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--bg-tint); }
.sticky-buy__info { display: grid; line-height: 1.2; min-width: 0; }
.sticky-buy__name { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__price { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.sticky-buy__price small { font-family: var(--font-body); font-size: .78rem; font-weight: 700; color: var(--red); }
.sticky-buy__btn { min-height: 50px; padding: 12px 22px; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(14, 11, 12, .55); backdrop-filter: blur(2px); }

.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; width: min(420px, 100%);
  height: 100dvh; max-height: 100dvh; max-width: 100%; background: var(--bg);
}
.drawer[open] { animation: slideIn .35s var(--ease); }
.drawer[open]::backdrop { animation: fadeIn .3s ease; }
.drawer.is-closing { animation: slideOut .22s ease forwards; }
.drawer__panel { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.drawer__body { overflow-y: auto; padding: 16px 20px; display: grid; gap: 14px; align-content: start; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; display: grid; gap: 8px; }
.cart-empty { text-align: center; padding: 40px 0; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.line img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.line__title { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.line__meta { font-size: .82rem; color: var(--muted); }
.line__price { text-align: right; font-weight: 800; font-family: var(--font-display); font-size: .95rem; }
.line__price s { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; }
.qty button { width: 44px; height: 40px; border: 0; background: none; font-size: 1.2rem; font-weight: 700; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.line__remove { font-size: .8rem; }
.upsell { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--red-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; font-weight: 600; }
.upsell .btn { min-height: 44px; padding: 8px 16px; flex: none; }
.sum-row { display: flex; justify-content: space-between; font-size: .95rem; }
.sum-row--total { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; padding-top: 6px; }
.sum-row .is-free { color: var(--green); font-weight: 700; }
.demo-note { font-size: .78rem; color: var(--muted); text-align: center; }

.popup {
  padding: 0; border: 0; border-radius: 24px; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.popup[open] { animation: popIn .45s var(--ease); }
.popup[open]::backdrop { animation: fadeIn .35s ease; }
.popup.is-closing { animation: popOut .2s ease forwards; }
.popup__panel {
  position: relative; padding: 36px 24px 18px; text-align: center; display: grid; gap: 12px;
  background: radial-gradient(circle at 50% -20%, #FFE1E6, #fff 60%);
}
.popup__close { position: absolute; top: 8px; right: 8px; background: var(--bg-tint); }
.popup__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.1; color: var(--red); }
.popup__text { color: var(--muted); }
.popup__code { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 2px dashed var(--red); border-radius: 14px; padding: 8px 8px 8px 16px; background: #fff; }
.popup__code code { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; }
.popup__code .btn { min-height: 44px; padding: 8px 14px; font-size: .9rem; }

/* ---------- 9. Animations ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.2); } }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px rgba(200, 16, 46, .35); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideOut { to { transform: translateX(100%); } }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes popOut { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Séquence d'entrée de la fiche produit (uniquement si JS actif) */
.js .enter { animation: enter .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
/* La galerie (image LCP) n'est jamais transparente : seulement un léger glissement */
.js .product__gallery.enter { animation-name: enterSlide; }
@keyframes enterSlide { from { transform: translateY(14px) scale(.985); } }
/* Apparition au défilement : le contenu reste visible si JS ou l'observer échoue */
.reveal.is-pending { opacity: 0; }
.reveal.is-in { animation: rise .8s var(--ease) both; }

/* ---------- Tablette & desktop ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .color-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; }
  .step__num { grid-row: auto; margin-bottom: 8px; }
  .compare { gap: 18px; }
  .compare__card { padding: 30px 20px; }
}
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; padding: 32px var(--gutter) 40px; align-items: start; }
  .product__gallery { position: sticky; top: 20px; }
  .gallery { border-radius: 24px; }
  .gallery__thumbs { padding: 12px 0 0; }
  .thumb { flex-basis: 76px; width: 76px; height: 76px; }
  .product__info { padding: 0; }
  .sticky-buy { display: none; }
  body.has-sticky { padding-bottom: 0; }
  .kit { grid-template-columns: 1fr 1fr; gap: 56px; }
  .section { padding: 88px 0; }
  .cta-band { padding: 40px var(--gutter); }
}

/* ---------- 10. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .announce__track { animation: none !important; width: 100%; justify-content: center; flex-wrap: wrap; }
  .announce__track [data-clone] { display: none !important; }
  .announce { height: auto; min-height: 36px; padding: 6px 0; }
  .announce__item::after { margin-left: 18px; }
  .gallery::after, .shine::after { display: none; }
  .reveal.is-pending { opacity: 1; }
}

/* ---------- Pages légales ---------- */
.legal h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 28px 0 8px; }
.legal p { color: var(--muted); }
.popup__code { flex-wrap: wrap; justify-content: center; padding: 12px; }
.popup__code .btn { white-space: nowrap; }
.gallery.is-zoomed .gallery__hint { opacity: 0; }
