/* ==========================================================================
   CHAMONIX OUTERWEAR — style.css
   Feuille unique du site, reprise de la maquette v2. Thème sombre uniquement.

    0. Police
    1. Réglages : couleurs, échelle de texte, espacements
    2. Base
    3. Rôles typographiques, boutons, liens, champs
    4. Bandeau, navigation, menu mobile
    5. Pied de page
    6. Accueil : arrivée, rail des catégories, questions, fin
    7. Comment ça marche (section animée)
    8. Catalogue : catégories, grille d'une catégorie
    9. Fiche produit
   10. Info, Contact, Mentions légales
   11. États : chargement, vide, introuvable
   12. Téléphone et tablette
   13. Mouvement réduit
   ========================================================================== */


/* ==========================================================================
   0. POLICE — une seule : Quarry Mark Regular
   ========================================================================== */
@font-face {
  font-family: "Quarry Mark";
  src: url("fonts/QuarryMark-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   1. RÉGLAGES
   ========================================================================== */
:root {
  /* Couleurs */
  --bg: #000;
  --surface: #161616;
  --surface-2: #232323;
  --surface-3: #1c1c1c;
  --text: #fff;
  --text-2: rgba(255, 255, 255, .62);
  --text-3: rgba(255, 255, 255, .40);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .32);
  --btn-bg: #fff;
  --btn-fg: #000;
  --stage-bg: #161616;
  --stage-light: rgba(255, 255, 255, .075);
  --floor: rgba(0, 0, 0, .55);
  --scrim: rgba(0, 0, 0, .62);

  /* L'échelle de texte du site — la seule. Toute taille de texte en dépend. */
  --fs-display: clamp(42px, 3.4vw + 30px, 84px);   /* titre de l'arrivée */
  --fs-amount:  clamp(44px, 2.4vw + 34px, 64px);   /* montants en grand */
  --fs-h1:      clamp(34px, 1.6vw + 28px, 52px);   /* titres de page et de section */
  --fs-h2:      clamp(26px, .8vw + 22px, 34px);
  --fs-h3:      clamp(22px, .6vw + 19px, 28px);
  --fs-h4:      clamp(17px, .2vw + 16px, 19px);    /* questions, noms de produits */
  --fs-lead:    clamp(17px, .3vw + 15.5px, 20px);  /* chapô */
  --fs-body:    16px;                              /* texte courant, champs */
  --fs-text:    15px;                              /* réponses, textes secondaires */
  --fs-small:   14px;                              /* petites lignes */
  --fs-meta:    13px;                              /* notes, aides */
  --fs-btn:     12.5px;                            /* boutons (capitales) */
  --fs-label:   12px;                              /* étiquettes (capitales) */
  --fs-mini:    11px;                              /* bandeau, libellés de champ, badges */

  /* Espacements et gabarits */
  --g: clamp(16px, 3vw, 48px);                     /* marge latérale */
  --sec: clamp(72px, 7.5vw, 128px);                /* espace entre sections */
  --maxw: 1440px;
  --nav-h: 64px;
  --band-h: 36px;
  --btn-h: 48px;
  --r-card: 8px;
  --r-btn: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  /* Noms repris par panier.css et la page de paiement */
  --font: "Quarry Mark", "Helvetica Neue", Arial, sans-serif;
  --border: var(--line);
  --gutter: var(--g);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --t-hover: .2s;

  color-scheme: dark;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-synthesis: none;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
:where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote) { margin: 0; padding: 0; font-weight: 400; }
:where(ul, ol) { list-style: none; }
:where(a) { color: inherit; text-decoration: none; }
:where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:where(input, textarea, select) { font: inherit; color: inherit; }
:where(img) { display: block; max-width: 100%; }
:where(svg) { display: block; flex: none; }
:where(b, strong) { font-weight: 400; }
:where(em) { font-style: normal; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--g), var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--g), 880px); margin-inline: auto; }

.skip-link {
  position: fixed; left: var(--g); top: 12px; z-index: 200;
  height: var(--btn-h); display: inline-flex; align-items: center; padding: 0 18px; border-radius: var(--r-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-btn); letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Entrée de page (comme la maquette) */
main { animation: pageIn .5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


/* ==========================================================================
   3. RÔLES TYPOGRAPHIQUES, BOUTONS, LIENS, CHAMPS
   ========================================================================== */
.t-display { font-size: var(--fs-display); line-height: .98; letter-spacing: -.045em; }
.t-amount  { font-size: var(--fs-amount); line-height: 1; letter-spacing: -.04em; }
.t-h1      { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.035em; }
.t-h2      { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.025em; }
.t-h3      { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.02em; }
.t-h4      { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -.01em; }
.t-lead    { font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -.01em; }
.t-body    { font-size: var(--fs-body); line-height: 1.55; }
.t-small   { font-size: var(--fs-small); line-height: 1.5; }
.t-label   { font-size: var(--fs-label); line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.c1 { color: var(--text); }
.c2 { color: var(--text-2); }
.c3 { color: var(--text-3); }
.nowrap { white-space: nowrap; }

/* Boutons : 48 px de haut */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-btn);
  font-size: var(--fs-btn); letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  transition: opacity .2s, transform .2s var(--ease), border-color .2s, background-color .2s, color .2s;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { opacity: .86; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--glass {                                       /* verre : seulement posé sur une photo */
  color: #fff; border-color: rgba(255, 255, 255, .3);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--glass:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); }
.btn--quiet { color: var(--text-2); }
.btn--quiet:hover { color: var(--text); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: default; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: var(--text);
  padding-bottom: 3px; border-bottom: 1px solid var(--line-strong); transition: border-color .2s;
}
.link:hover { border-color: var(--text); }
.link svg { transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.ulink { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.ulink:hover { border-color: var(--text); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }

/* Champs : libellé en capitales posé dans la case */
.field { display: block; position: relative; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); padding: 8px 12px 9px; transition: border-color .2s; }
.field:focus-within { border-color: var(--text); }
.field.is-invalid { border-color: var(--text); border-style: dashed; }
.field__l { display: block; font-size: var(--fs-mini); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); line-height: 1.3; }
.field__l small { font-size: inherit; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 2px; padding: 0; border: 0; outline: 0; background: none;
  color: var(--text); font-size: var(--fs-body); line-height: 1.4; resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 1000px var(--surface) inset; caret-color: var(--text); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.fields .span2 { grid-column: 1 / -1; }
.ferr { margin-top: 6px; font-size: var(--fs-meta); line-height: 1.4; color: var(--text); }
.ferr::before { content: "– "; color: var(--text-2); }
.alert { padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-btn); font-size: var(--fs-small); line-height: 1.5; color: var(--text); }
.piege { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Accordéon (questions, détails) */
.acc { overflow: hidden; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; text-align: left; transition: background-color .2s;
}
.acc__q:hover { background: rgba(255, 255, 255, .03); }
.acc__q:focus-visible { outline-offset: -2px; }
.plus { position: relative; width: 14px; height: 14px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .4s var(--ease); }
.plus::after { transform: rotate(90deg); }
.acc__item.is-open .plus::after { transform: rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { min-height: 0; overflow: hidden; }
.acc__a p { padding: 0 24px 22px; max-width: 62ch; color: var(--text-2); font-size: var(--fs-text); line-height: 1.6; }
.acc__a p + p { margin-top: -10px; }
.acc__a a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.acc__a a:hover { border-color: var(--text); }

/* Scène produit : fond doux et ombre au sol, photo jamais déformée */
.stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(62% 56% at 50% 44%, var(--stage-light), transparent 72%), var(--stage-bg);
}
.stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 7%; height: 8%; border-radius: 50%; background: var(--floor); filter: blur(14px); z-index: 0; }
.stage img { position: relative; z-index: 1; width: 74%; height: 86%; object-fit: contain; transition: transform .7s var(--ease), opacity .4s; }
.stage--empty::after { display: none; }
.stage__ph { position: relative; z-index: 1; color: var(--text-3); }


/* ==========================================================================
   4. BANDEAU, NAVIGATION, MENU MOBILE
   ========================================================================== */
.band {
  height: var(--band-h); display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 var(--g); border-bottom: 1px solid var(--line); background: var(--bg);
  font-size: var(--fs-mini); letter-spacing: .09em; text-transform: uppercase; color: var(--text-2);
  white-space: nowrap; overflow: hidden;
}
.band b { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.band i { font-style: normal; color: var(--text-3); }

.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: rgba(0, 0, 0, .84);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo { justify-self: start; font-size: var(--fs-small); letter-spacing: .34em; text-transform: uppercase; line-height: 1; padding: 8px 0; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { position: relative; display: block; padding: 8px 0; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: var(--text-2); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.nav__cart { padding: 0 18px; font-size: var(--fs-label); }
.pn-compte[hidden] { display: inline !important; }        /* « Panier (0) » : le compteur reste affiché */
.burger { display: none; width: var(--btn-h); height: var(--btn-h); place-content: center; margin-right: -12px; }
.burger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mmenu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 39;
  background: var(--bg); border-bottom: 1px solid var(--line);
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .45s var(--ease), visibility 0s linear .45s;
}
.mmenu.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease); }
.mmenu > div { min-height: 0; overflow: hidden; }
.mmenu ul { padding: 8px var(--g) 0; }
.mmenu li a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mmenu li a[aria-current="page"] { color: var(--text); }
.mmenu__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px var(--g) 18px; }
.mmenu__foot a { display: inline-flex; align-items: center; min-height: var(--btn-h); }


/* ==========================================================================
   5. PIED DE PAGE — identique sur toutes les pages
   ========================================================================== */
.foot { margin-top: var(--sec); border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.foot__cell { padding: 36px 28px 40px; border-left: 1px solid var(--line); }
.foot__cell:first-child { padding-left: 0; border-left: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.foot__cell .t-label { margin-bottom: 18px; }
.foot__cell li + li { margin-top: 8px; }
.foot__cell li a { font-size: var(--fs-h4); letter-spacing: -.01em; line-height: 1.4; transition: color .2s; }
.foot__cell li a:hover { color: var(--text-2); }
.socials { display: flex; gap: 8px; }
.social { width: var(--btn-h); height: var(--btn-h); display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-btn); transition: background-color .2s, color .2s, border-color .2s; }
.social:hover { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.foot__bottom { border-top: 1px solid var(--line); }
.foot__bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; }
.foot__top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; transition: color .2s; }
.foot__top:hover { color: var(--text); }


/* ==========================================================================
   6. ACCUEIL
   ========================================================================== */
.sec { padding-top: var(--sec); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec__head .t-h1 { margin-top: 14px; }
.page-top { padding-top: clamp(40px, 6vw, 88px); }

/* ---------- Arrivée plein écran ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #000;
  height: max(560px, calc(100vh - var(--nav-h) - var(--band-h)));
  height: max(560px, calc(100svh - var(--nav-h) - var(--band-h)));
}
.no-band .hero { height: max(560px, calc(100vh - var(--nav-h))); height: max(560px, calc(100svh - var(--nav-h))); }
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__img.is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .45) 32%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 55%);
}
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(32px, 5vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero__label { color: rgba(255, 255, 255, .86); }
.hero__label::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 1px; margin: -2px 12px 0 0; background: currentColor; }
.hero__label em { color: rgba(255, 255, 255, .55); }
.hero__title { margin-top: 18px; }
.hero__title span { display: block; }
.hero__sub { margin-top: 20px; }
.hero__sub span:first-child { color: rgba(255, 255, 255, .6); }
.hero__note { margin-top: 6px; color: rgba(255, 255, 255, .6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__aside { display: grid; justify-items: end; gap: 10px; color: rgba(255, 255, 255, .62); }
.scrollcue { width: 1px; height: 44px; background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero [data-in] { animation: heroIn .9s var(--ease) both; animation-delay: var(--d, 0ms); }
}
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* ---------- Catégories : rail animé ---------- */
.rail { position: relative; overflow: hidden; padding: 6px 0 10px; }
.rail__track { display: flex; gap: 14px; width: max-content; padding: 0 max(var(--g), calc((100% - var(--maxw)) / 2)); will-change: transform; }
.rcard {
  position: relative; flex: none; display: block; width: clamp(260px, 25vw, 380px);
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface);
  transform-origin: 50% 100%; transition: border-color .3s;
}
.rcard:hover { border-color: var(--line-strong); }
.rcard .stage { aspect-ratio: 1 / 1; }
.rcard .stage img { width: 70%; height: 82%; transition: none; }
.rcard::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.rcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.rcard__foot .t-label { margin-bottom: 8px; }
.rcard__foot .t-small { margin-top: 4px; }
.rcard__go { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-btn); transition: background-color .25s, color .25s, border-color .25s; }
.rcard:hover .rcard__go { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.rail__bar { position: relative; height: 1px; margin-top: 22px; background: var(--line); }
.rail__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 22%; background: var(--text); border-radius: 2px; will-change: transform; }

/* ---------- Questions ---------- */
.split { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.35fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__aside .t-h1 { margin-top: 14px; }
.split__aside p.c2 { margin-top: 18px; max-width: 34ch; }
.split__aside .btn { margin-top: 28px; }
.btn-m { display: none; }

/* ---------- Fin ---------- */
.outro { position: relative; overflow: hidden; isolation: isolate; height: clamp(380px, 38vw, 520px); border-radius: var(--r-card); border: 1px solid var(--line); background: #000; }
.outro__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: 0; transition: opacity 1s var(--ease); }
.outro__img.is-ready { opacity: 1; }
.outro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .2) 70%); }
.outro__in { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(24px, 4.4vw, 64px); color: #fff; }
.outro__in .t-label { color: rgba(255, 255, 255, .7); }
.outro__in .t-h1 { margin-top: 14px; }
.outro__in .t-h1 span { display: block; }
.outro__in p.t-body { margin-top: 14px; color: rgba(255, 255, 255, .62); }
.outro__in .btn { margin-top: 28px; }


/* ==========================================================================
   7. COMMENT ÇA MARCHE — section animée (la mini-fenêtre a ses propres styles,
      isolés dans son Shadow DOM : ce sont les maquettes de l'animation)
   ========================================================================== */
.ccm {
  --stage-light: rgba(255, 255, 255, .07);
  --scrim: rgba(0, 0, 0, .6);
  --cur-fill: #fff;
  --cur-line: #000;
  --theme-t: background-color .4s ease, border-color .4s ease, color .4s ease, fill .4s ease, stroke .4s ease;
  --ease: cubic-bezier(.22, .61, .36, 1);
  position: relative;
  height: 280vh;                    /* section épinglée : ~280 vh de défilement */
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: clip;
}
.ccm :where(h2, p, ol, li) { margin: 0; padding: 0; font: inherit; }
.ccm :where(b, strong, em) { font-weight: 400; font-style: normal; }

.ccm__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  max-width: calc(var(--maxw) + 2 * var(--g)); margin: 0 auto;
  padding: var(--nav-h) var(--g) 0;
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.35fr);
  grid-template-rows: 1fr auto auto 1fr;           /* colonne de gauche centrée ; le panneau ne bouge jamais */
  grid-template-areas: ". panel" "head panel" "steps panel" ". panel";
  column-gap: clamp(32px, 6vw, 96px);
}
.ccm__stage { display: contents; }
.ccm__head { grid-area: head; padding-bottom: clamp(18px, 3.2vh, 34px); }
.ccm__eyebrow { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ccm__title { margin-top: 14px; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.035em; }
.ccm__title span { display: block; }

.ccm__steps { grid-area: steps; min-width: 0; }
.ccm__mods { position: relative; padding-left: 22px; }
.ccm__mods::before { content: ""; position: absolute; left: 3px; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
.ccm__mod {
  position: relative; display: block; width: 100%; margin: 3px 0; padding: 15px 20px 16px;
  border: 1px solid transparent; border-radius: var(--r-card);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  opacity: .7; transition: var(--theme-t), opacity .5s var(--ease);
}
.ccm__mod::before { content: ""; position: absolute; left: -22px; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text-2); }
.ccm__mod:not(.is-active):hover { opacity: .85; }
.ccm__mod:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
.ccm__mod.is-active { opacity: 1; background: var(--surface); border-color: var(--line); }
.ccm__mod.is-active::before { background: var(--text); border-color: var(--text); }
.ccm__top { display: flex; align-items: baseline; gap: 12px; }
.ccm__num { font-size: var(--fs-label); letter-spacing: .08em; color: var(--text-2); }
.ccm__name { font-size: var(--fs-h4); letter-spacing: -.01em; }
.ccm__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.ccm__mod.is-active .ccm__more { grid-template-rows: 1fr; }
.ccm__clip { display: block; min-height: 0; overflow: hidden; }
.ccm__text { display: block; padding-top: 8px; font-size: var(--fs-text); line-height: 1.6; color: var(--text-2); }
.ccm__text em { color: var(--text); }
.ccm__bar { position: relative; display: block; height: 2px; margin: 14px 0 1px; background: var(--line); overflow: hidden; }
.ccm__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--text); will-change: transform; }

.ccm__cta { padding: 18px 0 0 22px; opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden; transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s; }
.ccm__cta.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ccm__btn {
  display: inline-flex; align-items: center; gap: 12px; height: var(--btn-h); padding: 0 24px;
  border-radius: var(--r-btn); background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-btn); letter-spacing: .08em; text-transform: uppercase;
  transition: opacity .3s var(--ease);
}
.ccm__btn:hover { opacity: .86; }

.ccm__panel { grid-area: panel; align-self: center; width: 100%; min-width: 0; }
.ccm__browser { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.ccm__bar-top { position: relative; height: 40px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); }
.ccm__dots { display: flex; gap: 7px; }
.ccm__dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); }
.ccm__url {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; max-width: 64%; height: 25px; padding: 0 14px;
  border-radius: var(--r-btn); background: var(--surface-2);
  font-size: var(--fs-label); color: var(--text-2); white-space: nowrap;
}
.ccm__url svg { flex: none; }
.ccm__url span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; will-change: opacity; }
.ccm__vp { position: relative; aspect-ratio: 960 / 600; overflow: hidden; background: var(--bg); pointer-events: none; }


/* ==========================================================================
   8. CATALOGUE
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cat-head .t-h1 { margin-top: 12px; }
.cat-head .t-lead { margin-top: 12px; max-width: 46ch; }

/* Catégories : une carte par catégorie */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.cgrid .rcard { width: auto; }
.cgrid .rcard .stage { aspect-ratio: 4 / 3.4; }
.cgrid .rcard .stage img { width: 62%; height: 84%; transition: transform .7s var(--ease); }
.cgrid .rcard:hover .stage img { transform: scale(1.04); }

/* Grille d'une catégorie : une carte par couleur */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 12px; margin-top: 32px; }
.pcard { display: block; min-width: 0; }
.pcard .stage { aspect-ratio: 4 / 4.8; border-radius: var(--r-card); border: 1px solid var(--line); transition: border-color .3s; }
.pcard:hover .stage { border-color: var(--line-strong); }
.pcard:hover .stage img { transform: scale(1.04); }
.pcard__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.pcard__name { min-width: 0; }
.pcard__name span { color: var(--text-2); }


/* ==========================================================================
   9. FICHE PRODUIT
   ========================================================================== */
.prod-top { padding-top: clamp(24px, 3vw, 40px); }
.prod { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.prod__media .stage { aspect-ratio: 1 / 1.08; border-radius: var(--r-card); border: 1px solid var(--line); }
.prod__media .stage img { width: 64%; height: 84%; }
.prod__main.is-swap img { opacity: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumb-b { width: 72px; aspect-ratio: 1; border-radius: var(--r-btn); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s; }
.thumb-b .stage { width: 100%; height: 100%; }
.thumb-b .stage::after { display: none; }
.thumb-b .stage img { width: 80%; height: 80%; }
.thumb-b:hover { border-color: var(--line-strong); }
.thumb-b[aria-pressed="true"] { border-color: var(--text); }
.prod__info { position: sticky; top: calc(var(--nav-h) + 32px); }
.prod__info .t-h1 { margin-top: 12px; }
.price { margin-top: 10px; }
.prod__protection { margin-top: 6px; }
.prod__desc { margin-top: 22px; max-width: 52ch; white-space: pre-line; }
.prod__other { margin-top: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.prod__sizehead { margin-top: 26px; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-btn); }
.sizes.is-invalid { border-color: var(--text); border-style: dashed; }
.size { height: 44px; border-radius: 3px; font-size: var(--fs-small); letter-spacing: .08em; color: var(--text-2); text-align: center; transition: background-color .2s, color .2s; }
.size:hover { color: var(--text); }
.size[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.size--one { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.guide { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.guide.is-open { grid-template-rows: 1fr; }
.guide > div { min-height: 0; overflow: hidden; }
.guide .panel { margin-top: 10px; padding: 18px; }
.guide__in { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; margin-top: 14px; }
.fits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-btn); }
.fits button { border-radius: 3px; font-size: var(--fs-meta); color: var(--text-2); text-align: center; transition: background-color .2s, color .2s; }
.fits button:hover { color: var(--text); }
.fits button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.gtable { margin-top: 14px; font-size: var(--fs-small); }
.gtable > div { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; height: 40px; padding: 0 10px; border-radius: var(--r-btn); color: var(--text-2); transition: background-color .3s, color .3s; }
.gtable .gh { height: 28px; font-size: var(--fs-mini); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.gtable .is-on { background: var(--surface-2); color: var(--text); }
.guide__hint { margin-top: 12px; font-size: var(--fs-meta); color: var(--text-3); }
.badge { font-size: var(--fs-mini); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--btn-bg); color: var(--btn-fg); }
.prod__add { margin-top: 14px; }
.prod__ship { margin-top: 14px; }
.details { margin-top: 32px; border-top: 1px solid var(--line); }
.details .acc__q { padding: 18px 0; }
.details .acc__q:hover { background: none; }
.details .acc__a p { padding: 0 0 20px; }
.details .acc__item { border-bottom: 1px solid var(--line); }
.details .acc__item + .acc__item { border-top: 0; }

/* Barre d'achat fixe (téléphone) */
.buybar { display: none; }


/* ==========================================================================
   10. INFO, CONTACT, MENTIONS LÉGALES
   ========================================================================== */
/* Photo de fond d'une page (réglée dans le dashboard ; absente = fond noir) */
.pagebg { position: absolute; left: 0; right: 0; top: 0; z-index: -1; height: min(78vh, 760px); overflow: hidden; pointer-events: none; }
.pagebg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.pagebg img.is-ready { opacity: .5; }
.pagebg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .7) 55%, #000 100%); }
.has-pagebg { position: relative; isolation: isolate; }

.page-head .t-h1 { margin-top: 14px; }
.page-head .t-lead { margin-top: 12px; }
.faq-list { margin-top: 36px; }
.more { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 16px; padding: 26px 28px; }
.more p.c2 { margin-top: 6px; }

.contact { width: min(100% - 2 * var(--g), 640px); margin-inline: auto; }
.form { position: relative; padding: clamp(22px, 2.6vw, 32px); margin-top: 32px; }
.form .btn { margin-top: 16px; }
.form .alert { margin-top: 12px; }
.form__legal { margin-top: 12px; font-size: var(--fs-meta); color: var(--text-3); }
.form__legal a { color: var(--text-2); border-bottom: 1px solid var(--line); }
.contact .done { padding: clamp(28px, 4vw, 44px) clamp(22px, 2.6vw, 32px); margin-top: 32px; }
.contact .done .t-h3 { margin-top: 14px; }
.contact .done p.c2 { margin-top: 8px; }
.contact .done .btn { margin-top: 22px; }
.alt { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 18px; font-size: var(--fs-small); color: var(--text-2); }
.alt a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.alt a:hover { border-color: var(--text); }

/* Mentions légales & CGV */
.legal__layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(36px, 4vw, 56px); }
.legal__toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; padding: 22px; scrollbar-width: thin; }
.legal__toc .t-label { margin-bottom: 14px; }
.toc__part + .toc__part { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.toc__part > a { display: block; font-size: var(--fs-small); color: var(--text); }
.toc__part ol { margin-top: 8px; display: grid; gap: 2px; }
.toc__part li a { display: flex; gap: 8px; padding: 3px 0; font-size: var(--fs-meta); line-height: 1.45; color: var(--text-2); transition: color .2s; }
.toc__part li a:hover, .toc__part li a.is-on { color: var(--text); }
.toc__part .num { color: var(--text-3); }
.legal__body { max-width: 72ch; }
.legal__part + .legal__part { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.legal__date { margin-top: 10px; font-size: var(--fs-small); color: var(--text-3); }
.legal__art { margin-top: 36px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal__art h3 { display: flex; gap: 10px; }
.legal__art h3 .num { color: var(--text-3); }
.legal__art p, .legal__art li { font-size: var(--fs-text); line-height: 1.7; color: var(--text-2); }
.legal__art > * + * { margin-top: 12px; }
.legal__art h3 + * { margin-top: 14px; }
.legal__list { display: grid; gap: 8px; }
.legal__list li { position: relative; padding-left: 18px; }
.legal__list li::before { content: "—"; position: absolute; left: 0; color: var(--text-3); }
.legal__ol { counter-reset: lo; display: grid; gap: 10px; }
.legal__ol > li { counter-increment: lo; position: relative; padding-left: 28px; }
.legal__ol > li::before { content: counter(lo) "."; position: absolute; left: 0; color: var(--text-3); }
.legal__k { color: var(--text); }
.legal__art a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.legal__art a:hover { border-color: var(--text); }
.legal__note { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.legal__note p { font-size: var(--fs-small); }
.legal mark { background: var(--surface-2); color: var(--text); padding: 0 4px; border-radius: 3px; }
.legal [id] { scroll-margin-top: calc(var(--nav-h) + 24px); }


/* ==========================================================================
   10 b. SUIVRE MA COMMANDE — style « app de paiement » : cartes arrondies à 20 px,
         boutons pilule, montant en grand, colonne de 600 px
   ========================================================================== */
.app { width: min(100% - 2 * var(--g), 600px); margin-inline: auto; padding-top: clamp(28px, 4vw, 56px); }
.app__titre { margin-top: 14px; }
.app__chapo { margin-top: 12px; }
.app__form { margin-top: 28px; }
.app__form .pillbtn, .app__ok { margin-top: 16px; }
.app__alerte { margin-top: 12px; }
.app__astuce { margin-top: 16px; text-align: center; }
.app__suivre { margin-top: 10px; }
.app__lignes { margin-top: 10px; }
.fields--1 { grid-template-columns: minmax(0, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.stack > * + * { margin-top: 12px; }
.pillbtn {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-body); letter-spacing: -.01em; line-height: 1; text-align: center;
  transition: transform .2s var(--ease), opacity .2s;
}
.pillbtn:hover { opacity: .9; }
.pillbtn:active { transform: scale(.985); }
.pillbtn[disabled] { opacity: .55; cursor: progress; }
.pillbtn--ghost { background: var(--surface-2); color: var(--text); }
.app__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.app__top--retour { padding: 0 4px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-2); font-size: var(--fs-small); transition: color .2s; }
.back:hover { color: var(--text); }
.ico { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.status { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; }
.status p { margin-top: 4px; }
.status h1:focus { outline: none; }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); font-size: var(--fs-meta); color: var(--text); white-space: nowrap; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--text); animation: pulse 1.8s ease-in-out infinite; }
.tag--done i { animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.steps { position: relative; height: 48px; margin: 24px 4px 0; }
.steps__in { position: absolute; left: 8px; right: 8px; top: 0; bottom: 0; }
.steps__bar { position: absolute; left: 0; right: 0; top: 7px; height: 3px; border-radius: 3px; background: var(--surface-2); }
.steps__bar b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--text); width: 0; transition: width 1s var(--ease); }
.steps__dot { position: absolute; top: 2px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface); }
.steps__dot.done { background: var(--text); }
.steps__dot.now { top: -3px; width: 23px; height: 23px; margin-left: -11.5px; background: var(--surface); border: 2px solid var(--text); display: grid; place-items: center; }
.steps__dot.now::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--text); }
.steps__lbl { position: absolute; top: 28px; transform: translateX(-50%); font-size: var(--fs-label); color: var(--text-3); white-space: nowrap; }
.steps__lbl.first { transform: translateX(-8px); }
.steps__lbl.last { transform: translateX(calc(-100% + 8px)); }
.steps__lbl.now { color: var(--text); }

.amount { text-align: center; padding: 30px 22px 26px; }
.amount .t-amount { margin-top: 10px; }
.amount p:last-child { margin-top: 10px; }
.amount h1:focus { outline: none; }
.choices { display: grid; gap: 8px; margin-top: 16px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-3); text-align: left; transition: border-color .2s, background-color .2s; }
.choice:hover { border-color: var(--line-strong); }
.choice[aria-checked="true"] { border-color: var(--text); background: var(--surface-2); }
.choice__t { flex: 1; display: grid; gap: 2px; }
.choice__t small { font-size: var(--fs-meta); color: var(--text-2); }
.choice .ico { width: 38px; height: 38px; }
.choice--minor { padding: 12px 16px; background: transparent; }
.choice--minor .ico { width: 32px; height: 32px; }
.radio { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.choice[aria-checked="true"] .radio { border-color: var(--text); }
.choice[aria-checked="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.cta { margin-top: 16px; }
.cta > div { animation: ctaIn .35s var(--ease); }
.cta > div > p { margin-top: 10px; text-align: center; font-size: var(--fs-meta); color: var(--text-2); }
@keyframes ctaIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.okbox { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.okbox svg { flex: none; }
.okbox--card { background: var(--surface); }
.okbox--card .ico { background: var(--surface-2); }
.paid-q { display: flex; gap: 14px; align-items: flex-start; }
.paid-q p { font-size: var(--fs-small); line-height: 1.6; color: var(--text-2); }
.paid-q strong { display: block; margin-bottom: 4px; font-size: var(--fs-h4); color: var(--text); }

.sum__toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.sum__right { display: flex; align-items: center; gap: 10px; }
.sum .chev { transition: transform .4s var(--ease); }
.sum.is-open .chev { transform: rotate(180deg); }
.sum__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.sum.is-open .sum__body { grid-template-rows: 1fr; }
.sum__body > div { min-height: 0; overflow: hidden; }
.sum__body .line:first-child { margin-top: 10px; }

/* Lignes d'articles et totaux de la commande */
.app .line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.app .line .pn-vignette { width: 56px; height: 64px; }
.line__n { font-size: var(--fs-text); line-height: 1.3; }
.line__d { margin-top: 3px; font-size: var(--fs-mini); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.app .pn-totaux { gap: 8px; padding-top: 16px; font-size: var(--fs-small); }
.app .pn-totaux__total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-h4); }
.kv2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.kv2 p + p { margin-top: 4px; }

/* Suivi du colis */
.track-num { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); text-align: left; transition: background-color .2s; }
.track-num:hover { background: #2b2b2b; }
.track-num b { font-size: var(--fs-h4); letter-spacing: .06em; overflow-wrap: anywhere; }
.cp { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); color: var(--text-2); white-space: nowrap; }
.track-wait { margin-top: 14px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--text-2); font-size: var(--fs-small); line-height: 1.55; }

/* Livraison estimée : la date en grand, puis une barre fine du paiement à la date maximale */
.eta__date { margin-top: 8px; }
.eta { margin-top: 30px; }
.eta__bar { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); }
.eta__passe { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.eta__fen { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(255, 255, 255, .88); }
.eta__auj { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text); }
.eta__auj-lbl { position: absolute; bottom: calc(100% + 10px); transform: translateX(-50%); font-size: var(--fs-label); color: var(--text); white-space: nowrap; }
.eta__auj-lbl.is-start { transform: translateX(-7px); }
.eta__auj-lbl.is-end { transform: translateX(calc(-100% + 7px)); }
.eta__legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: var(--fs-label); color: var(--text-3); }

/* Virement */
.bank { padding: 8px; }
.rowc { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; text-align: left; transition: background-color .2s; }
.rowc + .rowc { margin-top: 4px; }
.rowc:hover { background: var(--surface-2); }
.rowc small { display: block; font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.rowc b { display: block; margin-top: 3px; font-size: var(--fs-h4); letter-spacing: .02em; overflow-wrap: anywhere; }
.rowc.key { background: var(--surface-2); }
.how { margin-top: 8px; }
.how li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 8px 0; font-size: var(--fs-text); color: var(--text-2); }
.how li span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: var(--fs-mini); color: var(--text); }
.help { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 6px; }

/* Fenêtres PayPal et espèces */
dialog.sheet {
  width: min(100% - 32px, 440px); max-height: calc(100% - 32px); margin: auto; padding: 26px 24px 22px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text);
}
dialog.sheet[open] { animation: sheetIn .45s var(--spring); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .62); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet .ico { margin-bottom: 16px; }
.sheet__liste { margin-top: 16px; display: grid; gap: 10px; }
.sheet__liste li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: var(--fs-text); color: var(--text-2); }
.sheet__liste li svg { margin-top: 4px; }
.sheet__liste b { color: var(--text); }
.sheet__texte { margin-top: 10px; font-size: var(--fs-text); color: var(--text-2); }
.sheet__warn { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: var(--fs-meta); color: var(--text); }
.sheet .pillbtn { margin-top: 20px; }
.sheet .pillbtn + .pillbtn, .sheet .sheet__warn + .pillbtn--ghost { margin-top: 8px; }
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 99px; background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-small); line-height: 1.2; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* ==========================================================================
   11. ÉTATS : CHARGEMENT, VIDE, INTROUVABLE
   ========================================================================== */
.skel { pointer-events: none; }
.skel .stage { animation: skel 1.6s ease-in-out infinite; }
.skel__line { display: block; height: 14px; width: 60%; border-radius: 3px; background: var(--surface-2); animation: skel 1.6s ease-in-out infinite; }
.skel__line + .skel__line { width: 30%; margin-top: 8px; }
@keyframes skel { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.state { padding: clamp(28px, 4vw, 44px) clamp(22px, 2.6vw, 32px); margin-top: 32px; max-width: 640px; }
.state .t-h3 { margin-bottom: 8px; }
.state .btn { margin-top: 22px; }


/* ==========================================================================
   12. TÉLÉPHONE ET TABLETTE
   ========================================================================== */
@media (max-width: 1279px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
}
@media (max-width: 860px) {
  .nav__in { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .burger { display: grid; }
  .nav__cart { padding: 0 14px; }
  .band span, .band i { display: none; }

  .hero { height: max(600px, calc(100svh - var(--nav-h) - var(--band-h))); }
  .no-band .hero { height: max(600px, calc(100svh - var(--nav-h))); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__aside { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }

  .sec__head { flex-direction: column; align-items: flex-start; }
  .rcard { width: min(76vw, 380px); }
  .rcard__go { display: none; }
  .split, .prod { grid-template-columns: minmax(0, 1fr); }
  .split__aside .btn { display: none; }
  .btn-m { display: flex; }
  .acc__q { padding: 18px; }
  .acc__a p { padding: 0 18px 20px; }
  .outro { height: 460px; }
  .outro::before { background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .25)); }
  .outro__in { justify-content: flex-end; }
  .outro__in .btn { width: 100%; }

  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__cell:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .foot__cell { padding: 24px 0 28px; }
  .foot__cell:nth-child(2) { border-left: 0; padding-right: 12px; }
  .foot__cell:nth-child(3) { padding-left: 20px; }

  .cat-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .cgrid .rcard .stage { aspect-ratio: 1 / 1; }
  .cgrid .rcard__foot { padding: 14px 14px 16px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 8px; margin-top: 24px; }
  .pcard__meta { flex-direction: column; gap: 2px; margin-top: 10px; }

  .prod-top { padding-top: 12px; }
  .prod { gap: 28px; }
  .prod__info { position: static; }
  .thumb-b { width: 60px; }
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    display: flex; align-items: center; gap: 12px;
    padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .buybar.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .buybar__size { display: grid; gap: 2px; min-width: 0; flex: 1; min-height: var(--btn-h); align-content: center; text-align: left; }
  .buybar__size .t-label { color: var(--text-3); }
  .buybar__size b { font-size: var(--fs-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .buybar .btn { flex: none; }
  .has-buybar .foot { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .more { flex-direction: column; align-items: flex-start; }
  .more .btn { width: 100%; }
  .form .fields { grid-template-columns: minmax(0, 1fr); }

  .legal__layout { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; border-radius: 18px; }
  .bank { padding: 6px; }
  .amount { padding: 26px 18px 22px; }
  dialog.sheet { width: calc(100% - 16px); margin: auto auto 8px; border-radius: 22px; }
  .legal__toc { position: static; max-height: none; }

  /* Comment ça marche : la fenêtre en haut, les trois modules toujours visibles dessous */
  .ccm { height: auto; }
  .ccm__pin { position: relative; height: auto; display: block; padding: 0; max-width: none; }
  .ccm__pin::after { content: ""; display: block; height: 190svh; }      /* longueur de défilement des trois étapes */
  .ccm__head { padding: 14vh var(--g) 26px; }
  .ccm__stage {
    position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h));
    display: flex; flex-direction: column; gap: 12px;
    padding: 10px 14px 12px; overflow: hidden;
  }
  .ccm__panel { flex: none; }
  .ccm__bar-top { height: 32px; padding: 0 12px; }
  .ccm__dots i { width: 7px; height: 7px; }
  .ccm__url { height: 21px; font-size: var(--fs-mini); padding: 0 10px; }
  .ccm__steps { flex: 1; min-height: 0; }
  .ccm__mods { padding-left: 18px; }
  .ccm__mods::before { left: 2px; top: 20px; bottom: 20px; }
  .ccm__mod { margin: 2px 0; padding: 11px 14px 12px; }
  .ccm__mod::before { left: -19px; top: 18px; }
  .ccm__name { font-size: var(--fs-body); }
  .ccm__text { font-size: var(--fs-meta); line-height: 1.55; padding-top: 6px; }
  .ccm__bar { margin-top: 10px; }
  .ccm__cta { padding: 8px 0 0 18px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .ccm__text { font-size: var(--fs-label); }
}
@media (max-width: 560px) {
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .cgrid .rcard .stage { aspect-ratio: 16 / 11; }
  .cgrid .rcard__foot { padding: 16px 18px 18px; }
  .guide__in { grid-template-columns: minmax(0, 1fr); }
  .fits { height: 44px; }
}


/* ==========================================================================
   13. MOUVEMENT RÉDUIT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .rail { overflow-x: auto; scroll-snap-type: x mandatory; }
  .rcard { scroll-snap-align: start; }
  .ccm__bar { display: none; }
}


/* ==========================================================================
   12. PHOTOS PRODUIT « STUDIO »
   Toutes les photos ont le même fond beige studio : la zone image reprend
   ce dégradé, bord à bord, et les bords de la photo s'y fondent.
   La photo n'est jamais agrandie au-delà de sa taille réelle (pas de flou) :
   si elle est petite, c'est le fond qui grandit autour.
   Pour changer la teinte : les trois variables --studio-*.
   ========================================================================== */
:root {
  --studio-top: #b7aea5;
  --studio-mid: #cbc4bb;
  --studio-floor: #e6e2dc;
  --studio: radial-gradient(120% 90% at 50% 92%, var(--studio-floor) 0%, var(--studio-mid) 42%, var(--studio-top) 100%);
  --studio-fondu:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.stage { background: var(--studio-mid) var(--studio); place-items: end center; }
.stage::after { display: none; }
.stage img {
  width: auto; height: auto; max-width: 80%; max-height: 92%;
  margin-bottom: 4%;
  -webkit-mask-image: var(--studio-fondu); -webkit-mask-composite: source-in;
  mask-image: var(--studio-fondu); mask-composite: intersect;
}
.stage--empty { place-items: center; }
.stage__ph { color: rgba(0, 0, 0, .28); }

/* Cartes : photo bord à bord en haut, sans trait entre la photo et le texte */
.rcard .stage, .cgrid .rcard .stage { aspect-ratio: 4 / 5; }
.rcard .stage img, .cgrid .rcard .stage img { width: auto; height: auto; max-width: 80%; max-height: 92%; }
.rcard__foot { border-top: 0; }
.rcard::after { z-index: 2; }   /* l'assombrissement du rail couvre aussi la photo */
.pcard .stage { aspect-ratio: 4 / 5; border: 0; }

/* Fiche produit : grand panneau, miniatures au même fond */
.prod__media .stage { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--nav-h, 64px) - 120px); min-height: 420px; border: 0; }
.prod__media .stage img { width: auto; height: auto; max-width: 80%; max-height: 92%; }
.thumb-b .stage { place-items: center; }
.thumb-b .stage img { max-width: 86%; max-height: 86%; margin-bottom: 0; }

@media (max-width: 560px) {
  .cgrid .rcard .stage { aspect-ratio: 1 / 1; }
}

/* Page Contact : téléphone et horaires d'appel */
.alt-tel { margin-top: 10px; font-size: var(--fs-small); color: var(--text-2); }
.alt-tel a { color: var(--text); border-bottom: 1px solid var(--line-strong); white-space: nowrap; transition: border-color .2s; }
.alt-tel a:hover { border-color: var(--text); }
.alt-tel__h { display: block; margin-top: 4px; color: var(--text-3); }


/* ==========================================================================
   13. RÉDUCTION EN % — badge « –20 % » + prix d'origine barré + prix payé
   Cartes du catalogue, fiche produit, barre d'achat (téléphone). Le badge
   et le prix barré sont communs au panier (panier.css : .pn-badge, .pn-barre).
   ========================================================================== */
.pcard__prix { flex: none; justify-content: flex-end; }
.pcard__prix .pn-barre { font-size: var(--fs-small); }
.price.pn-remise { gap: 6px 12px; }
.price .pn-barre { font-size: var(--fs-body); }
.price .pn-badge { height: 22px; padding: 0 7px; font-size: var(--fs-label); }
.buybar__prix { gap: 2px 8px; }
.buybar__prix .pn-barre { font-size: var(--fs-meta); font-weight: 400; }

@media (max-width: 860px) {
  .pcard__prix { justify-content: flex-start; }
}
