/* ==========================================================================
   RATAQ — thème boutique (feuille autonome de la vitrine ; l'administration
   garde style.css). Direction : maison de prêt-à-porter essentiel, éditoriale.
   Crème · vert profond · or. Police Jost (locale), logo en serif.

   Points de rupture (les media queries ne lisent pas les variables) :
     sm 640px · md 960px · lg 1200px
   ========================================================================== */
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- 1. Variables de design ---------- */
:root {
  color-scheme: light;
  /* Couleurs : blanc et noir, un seul gris de profondeur. Le thème sombre redéfinit les mêmes noms. */
  --bg: #FBF5EA;          /* fond de page */
  --bg-soft: #F2E8D5;     /* aplats secondaires */
  --surface: #FEFAF1;     /* cartes, panneaux */
  --field: #FFFDF8;       /* champs, puces, boutons de choix */
  --white: var(--field);
  --media: #EDE2CC;       /* fond des visuels produit (avant la photo) */
  --ink: #17251C;         /* texte principal, boutons */
  --ink-2: #3A463D;       /* texte secondaire fort */
  --muted: #6A6657;       /* texte discret (5,7:1 sur blanc) */
  --line: #E3D6BC;        /* bordures */
  --line-soft: #EBE0CB;
  --accent: #7D5F2E;      /* liens, surlignages : un gris foncé, plus de couleur chaude */
  --accent-soft: #CDB68A; /* halo de focus */
  --sale: #A3302A;        /* texte promo */
  --sale-bg: #A3302A;     /* pastille promo (texte blanc dessus) */
  --ok: #1F7A4D;
  --st-ok: #17623F;       /* textes d'état sur fonds teintés */
  --st-err: #9C1F18;
  --st-info: #2A3463;
  --st-ship: #1D4655;
  /* Bandes qui restent sombres dans les deux thèmes (bandeau, pied de page, histoire de marque) */
  --band-bg: #1B2D22;
  --band-ink: #F7EEDC;
  --band-muted: #B8B29C;
  --band-line: #34493B;
  --shadow: rgba(15, 28, 20, .5);
  --overlay: rgba(10, 20, 14, .45);
  /* Produits flottants : ombre portée, ombre au sol, fusion des photos à fond blanc */
  --gold: #C2A06A;       /* or du logo */
  --green: #1B2D22;      /* vert profond de l'emballage */
  --sketch-fx: drop-shadow(0 14px 12px rgba(23, 37, 28, .17));
  --floor: radial-gradient(closest-side, rgba(23, 37, 28, .22), transparent);
  --img-blend: multiply;

  /* Typographie */
  --serif: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;   /* police normale : plus de serif décoratif */
  --brand: Georgia, "Times New Roman", "Noto Serif", serif;              /* uniquement le logo RATAQ */
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.375rem;
  --fs-xl: clamp(1.4rem, 2.3vw, 1.8rem);
  --fs-2xl: clamp(2.3rem, 5vw, 4rem);
  --fs-3xl: clamp(3rem, 8vw, 6.4rem);
  --lh-tight: 1.04; --lh-body: 1.6;
  --track-caps: .16em;

  /* Espacements */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6rem;
  --section: clamp(3rem, 7vw, 6rem);

  /* Grille */
  --max: 1360px;
  --gut: clamp(1rem, 3.4vw, 2.5rem);
  --hd-h: 6.4rem;        /* hauteur d'en-tête (affinée par app.js) */

  /* Formes, ombres, mouvement */
  --r-1: 12px; --r-2: 22px; --r-3: 28px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .06);
  --sh-2: 0 14px 34px -14px rgba(0, 0, 0, .30);
  /* Système de mouvement : toutes les animations du site puisent ici */
  --dur-1: .16s; --dur-2: .32s; --dur-3: .6s; --dur-4: .95s; --dur-5: 1.3s;
  --ease: cubic-bezier(.22, .61, .36, 1);          /* sortie douce (défaut) */
  --ease-out: var(--ease);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);     /* fondus longs */
  --ease-cine: cubic-bezier(.16, 1, .3, 1);        /* arrivée cinématographique, freinage long */
  --ease-spring: cubic-bezier(.34, 1.28, .64, 1);  /* léger dépassement, jamais de rebond */
  --persp: 1800px;
  --t: var(--dur-2) var(--ease);
}

/* Thème sombre : choix explicite (data-theme) ou préférence du système si aucun choix n'a été fait */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1A14; --bg-soft: #16241B; --surface: #121E17; --field: #19281F; --media: #223228;
  --ink: #F7EEDC; --ink-2: #DCD3BE; --muted: #A8A18C; --line: #2C3F32; --line-soft: #223228;
  --accent: #D2B47A; --accent-soft: #6B5A3A;
  --sale: #FF9A8F; --sale-bg: #A3302A; --ok: #2E9E68;
  --st-ok: #7BD9A0; --st-err: #FF9C94; --st-info: #A9B8FF; --st-ship: #8CCBE0;
  --band-bg: #16261D; --band-ink: #F7EEDC; --band-muted: #B8B29C; --band-line: #2E4435;
  --shadow: rgba(0, 0, 0, .8); --overlay: rgba(5, 12, 8, .62);
  --sketch-fx: drop-shadow(0 0 .8px rgba(255, 255, 255, .55)) drop-shadow(0 16px 14px rgba(0, 0, 0, .65)); --floor: radial-gradient(closest-side, rgba(255, 255, 255, .11), transparent); --img-blend: normal;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0F1A14; --bg-soft: #16241B; --surface: #121E17; --field: #19281F; --media: #223228;
    --ink: #F7EEDC; --ink-2: #DCD3BE; --muted: #A8A18C; --line: #2C3F32; --line-soft: #223228;
    --accent: #D2B47A; --accent-soft: #6B5A3A;
    --sale: #FF9A8F; --sale-bg: #A3302A; --ok: #2E9E68;
    --st-ok: #7BD9A0; --st-err: #FF9C94; --st-info: #A9B8FF; --st-ship: #8CCBE0;
    --band-bg: #16261D; --band-ink: #F7EEDC; --band-muted: #B8B29C; --band-line: #2E4435;
    --shadow: rgba(0, 0, 0, .8); --overlay: rgba(5, 12, 8, .62);
  --sketch-fx: drop-shadow(0 0 .8px rgba(255, 255, 255, .55)) drop-shadow(0 16px 14px rgba(0, 0, 0, .65)); --floor: radial-gradient(closest-side, rgba(255, 255, 255, .11), transparent); --img-blend: normal;
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-base)/var(--lh-body) var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: var(--lh-tight); letter-spacing: -.012em; margin: 0 0 .5em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; margin-bottom: var(--s-5); line-height: 1.65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-1); }
::selection { background: var(--ink); color: var(--bg); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- 3. Utilitaires ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .7rem 1.2rem; z-index: 300; }
.skip:focus { left: 0; }
.i { width: 1.35rem; height: 1.35rem; flex: none; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gut), 30rem); margin-inline: auto; }
.narrow-lg { width: min(100% - 2 * var(--gut), 54rem); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.page { padding-block: clamp(1.25rem, 3vw, 2.5rem) var(--section); }
.eyebrow { display: block; font: 500 var(--fs-xs)/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4); }
.eyebrow.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.page-title { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.section-tight { padding-block: calc(var(--section) * .55) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); margin-bottom: clamp(1.4rem, 3vw, 2.4rem); flex-wrap: wrap; }
.sec-head h1, .sec-head h2 { margin: 0; }
h2.section-h { font-size: 1.4rem; margin: var(--s-6) 0 var(--s-4); }

/* ---------- 4. Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3rem; padding: 0 1.9rem; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: var(--r-1);
  font: 500 .78rem/1 var(--sans); letter-spacing: var(--track-caps); text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t), transform var(--t); }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-light { background: var(--band-ink); color: var(--band-bg); border-color: var(--band-ink); }
.btn-light:hover { background: transparent; color: var(--band-ink); border-color: var(--band-ink); }
.btn-lg { min-height: 3.4rem; padding: 0 2.4rem; }
.btn-sm { min-height: 2.5rem; padding: 0 1.1rem; font-size: .7rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled, .btn[aria-disabled="true"] { background: var(--bg-soft); border-color: var(--bg-soft); color: var(--muted); cursor: not-allowed; pointer-events: none; }
.btn .i { width: 1.05rem; height: 1.05rem; transition: transform var(--t); }
.btn:hover .i { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: .5rem; font: 500 .74rem/1 var(--sans); letter-spacing: var(--track-caps); text-transform: uppercase; text-decoration: none; padding: .25rem 0 .35rem; border-bottom: 1px solid currentColor; }
.link:hover { color: var(--accent); }
.link .i { width: 1rem; height: 1rem; transition: transform var(--t); }
.link:hover .i { transform: translateX(4px); }
.link-btn { background: none; border: 0; padding: .35rem 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font: inherit; font-size: var(--fs-sm); }
.link-btn:hover { color: var(--ink); }

/* ---------- 5. Formulaires ---------- */
input, select, textarea { font: inherit; color: var(--ink); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .field, .qty {
  width: 100%; min-height: 3rem; padding: .75rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-1); font-size: 1rem; transition: border-color var(--t), box-shadow var(--t); min-width: 0; }
.form input:hover, .form select:hover, .field:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.form input:focus, .form select:focus, .form textarea:focus, .field:focus { border-color: var(--ink); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.form input[aria-invalid="true"], .form input:user-invalid { border-color: var(--sale); }
.form { display: grid; gap: var(--s-5); }
.form label { display: grid; gap: .45rem; align-content: start; font: 500 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.form label small, .form label .hint { font: 400 .85rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { text-transform: none; letter-spacing: 0; font: 400 1rem/1.4 var(--sans); }
.form .two { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.2rem; min-width: 0; }
.form fieldset + fieldset { margin-top: var(--s-5); }
.form legend { font: 400 1.3rem/1.15 var(--serif); padding: 0; margin-bottom: 1.2rem; }
.form-section { padding-bottom: 1.2rem; }
.qty { text-align: center; }

/* ---------- 6. Messages, tableaux, pastilles ---------- */
.flashes { padding-top: var(--s-4); display: grid; gap: .5rem; }
.flash { padding: .85rem 1.1rem; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--r-1); margin: 0; font-size: .95rem; background: var(--surface); }
.flash ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.flash a { font-weight: 500; margin-left: .4rem; }
.flash-success { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 11%, var(--bg)); color: var(--st-ok); }
.flash-error { border-color: color-mix(in srgb, var(--sale-bg) 40%, var(--line)); border-left-color: var(--sale-bg); background: color-mix(in srgb, var(--sale-bg) 9%, var(--bg)); color: var(--st-err); }
.flash-info { border-left-color: var(--accent); color: var(--ink-2); }
.empty { border: 1px dashed var(--line); border-radius: var(--r-2); padding: clamp(2.5rem, 7vw, 5rem) var(--s-5); text-align: center; color: var(--muted); background: var(--surface); }
.empty h2 { color: var(--ink); font-size: 1.5rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0 var(--s-6); }
.table th, .table td { padding: .9rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font: 500 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); padding-top: .4rem; }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot td { border-bottom: 0; }
.table tfoot .grand td { font: 400 1.5rem/1 var(--serif); border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.badge { display: inline-block; padding: .38rem .65rem; border-radius: var(--r-1); font: 500 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--bg-soft); color: var(--ink); }
.badge-confirmed, .badge-processing, .badge-authorized, .badge-in_transit { background: color-mix(in srgb, var(--st-info) 14%, var(--bg)); color: var(--st-info); }
.badge-shipped { background: color-mix(in srgb, var(--st-ship) 14%, var(--bg)); color: var(--st-ship); }
.badge-delivered, .badge-paid { background: color-mix(in srgb, var(--st-ok) 14%, var(--bg)); color: var(--st-ok); }
.badge-cancelled, .badge-failed, .badge-returned, .badge-refunded { background: color-mix(in srgb, var(--st-err) 14%, var(--bg)); color: var(--st-err); }
.crumbs { font: 500 .68rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-5); }
.crumbs a { display: inline-block; padding: .4rem 0; text-decoration: none; } .crumbs a:hover { color: var(--ink); } .crumbs span { color: var(--ink); }

/* ---------- 7. Bandeau d'annonce ---------- */
.topbar { background: var(--band-bg); color: var(--band-ink); font: 500 .7rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-align: center; padding: .65rem var(--gut); }
.tb-rot span { display: none; }
.tb-rot span.on { display: block; animation: tbin .45s var(--ease); }
@keyframes tbin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ---------- 8. En-tête ---------- */
.hd { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); }
.hd-in { display: grid; grid-template-columns: 2.75rem 1fr auto; grid-template-areas: "menu logo tools" "search search search"; align-items: center; gap: .15rem .5rem; padding-block: .5rem .7rem; }
.logo { grid-area: logo; justify-self: center; display: inline-flex; align-items: center; min-height: 2.75rem; font: 600 1.55rem/1 var(--brand); letter-spacing: .22em; margin-right: -.22em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--accent); }
.hd-right { display: contents; }

/* Recherche : toujours visible (ligne dédiée sur mobile) */
.hd-search { grid-area: search; position: relative; }
.hd-search input { width: 100%; height: 2.6rem; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 3rem 0 1.15rem; font: 400 .95rem var(--sans); background: var(--surface); outline: 0; transition: border-color var(--t), box-shadow var(--t), background var(--t); }
.hd-search input::placeholder { color: var(--muted); }
.hd-search input:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.hd-search input:focus { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.hd-search button { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background var(--t), color var(--t); }
.hd-search button:hover { background: var(--ink); color: var(--bg); }
.hd-search button .i { width: 1.15rem; height: 1.15rem; }

/* Outils : compte, favoris, panier */
.hd-tools { grid-area: tools; display: flex; align-items: center; justify-self: end; }
.hd-tool { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--ink); text-decoration: none; border-radius: 50%; transition: color var(--t), background var(--t); }
.hd-tool:hover { color: var(--accent); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.hd-tool .i { width: 1.45rem; height: 1.45rem; }
.hd-tool.hide-m { display: none; }
.ico { position: relative; display: inline-grid; }
.cnt { position: absolute; top: -.4rem; right: -.55rem; min-width: 1.1rem; height: 1.1rem; padding: 0 .3rem; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font: 600 .64rem/1.1rem var(--sans); text-align: center; }

/* Menu mobile (tiroir <details> : fonctionne sans JavaScript) */
.drawer { grid-area: menu; }
.drawer > summary { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; transition: background var(--t); }
.drawer > summary:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.drawer > summary .i { width: 1.5rem; height: 1.5rem; }
.drawer[open] > summary .ic-open, .drawer:not([open]) > summary .ic-close { display: none; }
.drawer-bg { position: fixed; inset: var(--dw-top, var(--hd-h)) 0 0 0; background: var(--overlay); z-index: 1; animation: fadein .2s var(--ease); }
.drawer-panel { position: fixed; top: var(--dw-top, var(--hd-h)); left: 0; bottom: 0; width: min(26rem, 100%); z-index: 2; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-right: 1px solid var(--line); padding: var(--s-5) var(--gut) var(--s-7); animation: slidein .26s var(--ease); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { transform: translateX(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.dw-list { list-style: none; display: grid; }
.dw-list > li { border-bottom: 1px solid var(--line-soft); }
.dw-list a { display: block; padding: .8rem 0; font: 400 1.35rem/1.15 var(--serif); text-decoration: none; }
.dw-list a:hover { color: var(--accent); }
.dw-list .hot { color: var(--sale); }
.dw-sub { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 0 1rem; }
.dw-sub a { font: 500 .78rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); }
.dw-sub a:hover { border-color: var(--ink); color: var(--ink); }
.dw-aside { list-style: none; display: grid; gap: .2rem; margin-top: var(--s-6); }
.dw-aside a { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; font-size: .98rem; text-decoration: none; color: var(--ink-2); }
.dw-aside a:hover { color: var(--accent); }
.dw-aside .i { width: 1.2rem; height: 1.2rem; }
body.drawer-open { overflow: hidden; }

/* Navigation principale (bureau) */
.hd-nav { display: none; grid-area: nav; }
.cb { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem 1.7rem; padding: 0; margin: 0; }
.cb > li > a { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .7rem 0; font: 500 .76rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; }
.cb > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.cb > li:hover > a::after, .cb > li:focus-within > a::after, .cb > li > a[aria-current]::after { transform: scaleX(1); }
.cb .hot { color: var(--sale); }
.cb .hot .i { width: 1rem; height: 1rem; }
.has-sub { position: relative; }
.sub { display: none; position: absolute; left: -1.1rem; top: 100%; min-width: 13.5rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); padding: .6rem 0; z-index: 70; animation: fadein .18s var(--ease); }
.sub ul { list-style: none; }
.sub a { display: block; padding: .6rem 1.3rem; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.sub a:hover { background: var(--bg); color: var(--accent); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.mega-hint { display: none; }

@media (min-width: 1200px) {
  .hd-in { grid-template-columns: 1fr auto 1fr; grid-template-areas: "nav logo right"; gap: 1rem 2rem; padding-block: .6rem; min-height: 4.9rem; }
  .logo { font-size: 1.6rem; }
  .drawer { display: none; }
  .hd-nav { display: block; }
  .hd-right { display: flex; grid-area: right; align-items: center; justify-content: flex-end; gap: .5rem; }
  .hd-search { grid-area: auto; width: clamp(12.5rem, 16vw, 16rem); transition: width .3s var(--ease); }
  .hd-search:focus-within { width: clamp(14rem, 21vw, 20rem); }
  .hd-tools { grid-area: auto; }
  .hd-tool.hide-m { display: grid; }
}

/* ---------- 9. Barre d'onglets mobile ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 3.6rem; padding: .45rem 0; text-decoration: none; color: var(--muted); font: 500 .66rem/1 var(--sans); letter-spacing: .04em; transition: color var(--t); }
.tabbar a[aria-current] { color: var(--ink); font-weight: 600; }
.tabbar a[aria-current]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--ink); }
.tabbar .i { width: 1.4rem; height: 1.4rem; }
.tabbar .ico .cnt { top: -.35rem; right: -.6rem; }
body.store { padding-bottom: 3.7rem; }
body.no-tabbar { padding-bottom: 5rem; }
body.no-tabbar .tabbar { display: none; }
@media (min-width: 760px) { .tabbar { display: none; } body.store, body.no-tabbar { padding-bottom: 0; } }

/* ---------- 10. Engagements & pied de page ---------- */
.trust { background: var(--bg-soft); border-block: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; padding-block: 1.8rem; }
.trust-in > div { display: flex; gap: .85rem; align-items: flex-start; }
.trust-in .i { width: 1.6rem; height: 1.6rem; color: var(--accent); margin-top: .1rem; }
.trust-in b { display: block; font: 500 .9rem/1.3 var(--sans); }
.trust-in small { color: var(--muted); font-size: .82rem; display: block; margin-top: .15rem; }
.trust-in a { display: inline-block; padding: .2rem 0; color: var(--accent); }
@media (min-width: 860px) { .trust-in { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.footer { background: var(--band-bg); color: var(--band-muted); padding-block: clamp(3rem, 7vw, 5rem) 2rem; border-top: 1px solid var(--band-line); }
.footer a { text-decoration: none; }
.footer li a { display: inline-block; padding: .2rem 0; }
.footer a:hover { color: var(--band-ink); text-decoration: underline; }
.wordmark { font: 600 1.6rem/1 var(--brand); letter-spacing: .22em; margin-right: -.22em; text-transform: uppercase; text-decoration: none; color: var(--band-ink); display: inline-block; margin-bottom: 1.2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; } }
.footer h2 { font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--band-ink); margin-bottom: 1.2rem; }
.footer ul { list-style: none; display: grid; gap: .65rem; font-size: .95rem; }
.footer p { font-size: .95rem; max-width: 22rem; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--band-line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--band-muted); }

/* ---------- Bouton de thème (clair / sombre) ---------- */
button.hd-tool { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun, :root[data-theme="dark"] .dw-theme .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon, :root[data-theme="dark"] .dw-theme .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .ic-sun, :root:not([data-theme]) .dw-theme .ic-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .ic-moon, :root:not([data-theme]) .dw-theme .ic-moon { display: none; }
}
.dw-theme { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .6rem 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: .98rem; color: var(--ink-2); text-align: left; }
.dw-theme:hover { color: var(--ink); }
.dw-theme .i { width: 1.2rem; height: 1.2rem; }
.dw-theme .ic-sun { display: none; }
/* Fondu doux lors du changement de thème (seul !important du bloc : il doit passer au-dessus des transitions de composants) */
@media (prefers-reduced-motion: no-preference) {
  html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color var(--dur-3) var(--ease), color var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease), fill var(--dur-3) var(--ease), stroke var(--dur-3) var(--ease) !important; }
}

/* ---------- 11. Accueil : bandeaux, index, histoire (la scène est en section 19) ---------- */
/* Bandeaux d'offre (promotions / code promo / paiement à la livraison) */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; padding-top: clamp(1.2rem, 3vw, 2.2rem); }
@media (min-width: 640px) { .feature-row { grid-template-columns: 1fr 1fr; } }
.ft { position: relative; display: flex; align-items: center; min-height: 9.5rem; padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-2); text-decoration: none; color: #fff; overflow: hidden; transition: transform var(--t); }
a.ft:hover { transform: translateY(-2px); }
.ft-text { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.ft-sale { background: var(--sale-bg); }
.ft-top { background: var(--band-bg); }
.ft-code { background: var(--ink); color: var(--bg); }
.ft-cod { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.ft-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.ft-eyebrow .i { width: 1rem; height: 1rem; }
.ft-big { font: 400 clamp(1.4rem, 3vw, 1.9rem)/1.1 var(--serif); }
.ft-link { display: inline-flex; align-items: center; gap: .4rem; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .3rem; margin-top: .2rem; }
.ft-link .i { width: .9rem; height: .9rem; }
.code-row { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.code-row code { font: 600 1.05rem/1 var(--sans); letter-spacing: .16em; border: 1px dashed currentColor; padding: .5rem .75rem; border-radius: var(--r-1); }
.copy { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; background: var(--bg); color: var(--ink); border: 0; border-radius: var(--r-1); padding: .5rem .8rem; font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background var(--t), color var(--t); }
.copy .i { width: .95rem; height: .95rem; }
.copy:hover { background: var(--bg-soft); color: var(--ink); }
.copy.done { background: var(--ok); color: #fff; }

/* Catégories : arches */
.blk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.1rem, 2.5vw, 1.8rem); }
.blk-head h2 { margin: 0; display: flex; align-items: center; gap: .55rem; }
.blk-head h2 .i { color: var(--sale); width: 1.5rem; height: 1.5rem; }
.more { display: inline-flex; align-items: center; gap: .4rem; font: 500 .72rem/1 var(--sans); letter-spacing: var(--track-caps); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid transparent; padding: .45rem 0 .3rem; transition: border-color var(--t), color var(--t); }
.more .i { width: 1rem; height: 1rem; transition: transform var(--t); }
.more:hover { color: var(--accent); border-color: currentColor; }
.more:hover .i { transform: translateX(3px); }
.block { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

/* Bande code promo */
.promo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; background: var(--band-bg); color: var(--band-ink); border-radius: var(--r-2); padding: 1rem 1.3rem; margin-top: 1rem; }
.ps-main { display: flex; align-items: center; gap: .6rem; flex: 1 1 18rem; flex-wrap: wrap; }
.ps-main b { color: var(--band-ink); letter-spacing: .04em; font-weight: 500; }
.ps-end { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; opacity: .92; }
.ps-end b { font-variant-numeric: tabular-nums; }
.promo-strip .i { width: 1.2rem; height: 1.2rem; }

/* Histoire de marque */
.band-dark { background: var(--band-bg); color: var(--band-ink); }
.band-dark .eyebrow { color: var(--band-muted); }
.band-dark p { color: var(--band-muted); }
.story-b { margin-top: var(--section); padding-block: clamp(3rem, 7vw, 6rem); }
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1.15fr 1fr; gap: 5rem; } }
.story blockquote { margin: 0; font: 400 clamp(1.6rem, 3.2vw, 2.6rem)/1.15 var(--serif); letter-spacing: -.01em; }
.story blockquote em { color: var(--band-muted); }
.story p { max-width: 30rem; }
.band-dark .link { color: var(--band-ink); }
.band-dark .link:hover { color: var(--band-muted); }

/* ---------- 12. Grille & cartes produit ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem .75rem; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.1rem; } }
@media (min-width: 1600px) { .shop-main .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pcard { position: relative; }
.pc-media { position: relative; aspect-ratio: 4 / 5; }
.pc-link { position: absolute; inset: 0; display: block; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--img-blend); transition: transform .8s var(--ease); }
.pc-media .sketch { position: absolute; left: 50%; top: 46%; width: 80%; transform: translate(-50%, -50%); filter: var(--sketch-fx); transition: transform .8s var(--ease); }
.pcard:hover .pc-media img { transform: scale(1.045); }
.pcard:hover .pc-media .sketch { transform: translate(-50%, -52%) scale(1.04); }
.pc-tags { position: absolute; left: .55rem; top: .55rem; display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; z-index: 2; pointer-events: none; }
.tag { background: transparent; color: var(--ink); font: 600 .64rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; padding: .35rem 0; }
.tag-sale { background: var(--sale-bg); color: #fff; padding: .4rem .55rem; border-radius: var(--r-1); }
.tag-top { background: var(--ink); color: var(--bg); padding: .4rem .55rem; border-radius: var(--r-1); }
.tag-out { background: var(--muted); color: var(--bg); padding: .4rem .55rem; border-radius: var(--r-1); }

/* Favoris */
.fav { margin: 0; }
.pc-media .fav { position: absolute; top: .45rem; right: .45rem; z-index: 4; }
.fav button, .fav a { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; color: var(--ink); background: color-mix(in srgb, var(--field) 92%, transparent); box-shadow: var(--sh-1); transition: color var(--t), background var(--t), transform var(--t); }
.fav button:hover, .fav a:hover { color: var(--sale); background: var(--field); transform: scale(1.06); }
.fav .i { width: 1.2rem; height: 1.2rem; }
.fav .is-on .i { fill: var(--sale); stroke: var(--sale); }
@media (pointer: coarse) { .fav button, .fav a { width: 2.75rem; height: 2.75rem; } }

/* Ajout rapide */
.qa { position: absolute; right: .45rem; bottom: .45rem; z-index: 5; }
.qa > summary { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-2); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background var(--t), color var(--t); }
.qa > summary:hover, .qa[open] > summary { background: var(--ink); color: var(--bg); }
.qa > summary .i { width: 1.3rem; height: 1.3rem; }
.qa-panel { position: absolute; right: 0; bottom: calc(100% + .5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--sh-2); padding: .85rem; width: max-content; max-width: min(15rem, 72vw); animation: fadein .15s var(--ease); }
.qa-title { margin: 0 0 .6rem; font: 600 .76rem/1.2 var(--sans); }
.qa-title small { color: var(--muted); font-weight: 400; margin-left: .3rem; }
.qa-sizes { display: flex; flex-wrap: wrap; gap: .35rem; }
.qa-sizes button { min-width: 2.6rem; height: 2.4rem; padding: 0 .55rem; border: 1px solid var(--line); background: var(--white); font: 500 .85rem var(--sans); cursor: pointer; border-radius: var(--r-1); transition: background var(--t), color var(--t), border-color var(--t); }
.qa-sizes button:hover:not([disabled]) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qa-sizes button[disabled] { color: var(--muted); text-decoration: line-through; cursor: not-allowed; background: var(--bg); }
@media (hover: hover) { .qa { opacity: 0; transition: opacity var(--t); } .pcard:hover .qa, .qa[open], .qa:focus-within { opacity: 1; } }

.pc-info { padding: .75rem .1rem 0; }
.pc-name { font: 400 .92rem/1.35 var(--sans); letter-spacing: 0; margin: 0 0 .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-name a { text-decoration: none; }
.pc-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pc-price { margin: 0; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.pc-price .now { font: 500 1rem/1.2 var(--sans); }
.pc-price .now.sale { color: var(--sale); }
.pc-price s { color: var(--muted); font-size: .85rem; }
.pc-low { margin: .3rem 0 0; color: var(--sale); font: 500 .78rem/1.2 var(--sans); }
.dots { list-style: none; display: flex; gap: .35rem; align-items: center; margin-top: .5rem; }
.dots li { width: .85rem; height: .85rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.dots .dots-more { width: auto; height: auto; border: 0; font-size: .75rem; color: var(--muted); text-transform: none; letter-spacing: 0; padding: 0; }
.sketch { overflow: visible; }

/* ---------- 13. Boutique ---------- */
/* (en-tête de boutique, panneau de filtres et grille : voir sections 21-22) */
.fgroup { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.fgroup h3 { font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin-bottom: .9rem; color: var(--ink-2); }
.flist { list-style: none; display: grid; gap: .1rem; }
.flist a { display: block; padding: .35rem 0; text-decoration: none; font-size: .96rem; transition: color var(--t); }
.flist a:hover { color: var(--accent); }
.flist a.is-on { font-weight: 600; color: var(--accent); }
.flist ul { list-style: none; padding-left: .9rem; border-left: 1px solid var(--line); margin: .15rem 0 .3rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.4rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; font: 500 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: border-color var(--t), background var(--t), color var(--t); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .i { width: .85rem; height: .85rem; }
.pricef { display: flex; align-items: center; gap: .4rem; }
.pricef input { width: 4.6rem; min-height: 2.6rem; padding: .5rem; text-align: center; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--white); font: inherit; min-width: 0; }
.pricef input:focus { border-color: var(--ink); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.fswatches { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem .5rem; }
.fswatches a { display: grid; justify-items: center; gap: .35rem; width: 3.7rem; text-decoration: none; font-size: .72rem; text-align: center; }
.fswatches .c { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); box-shadow: 0 0 0 3px var(--bg); transition: box-shadow var(--t); }
.fswatches a:hover .c { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line); }
.fswatches .is-on .c { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--ink); }
.fswatches .is-on { font-weight: 600; }
.sizechips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.sizechips a { display: grid; place-items: center; min-width: 2.8rem; height: 2.6rem; padding: 0 .55rem; border: 1px solid var(--line); border-radius: var(--r-1); text-decoration: none; font-size: .9rem; transition: border-color var(--t), background var(--t), color var(--t); }
.sizechips a:hover { border-color: var(--ink); }
.sizechips .is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1rem; flex-wrap: wrap; margin-bottom: var(--s-5); }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.sortform { display: flex; align-items: center; gap: .6rem; margin-left: auto; font-size: .85rem; color: var(--muted); }
.sortform select { min-height: 2.6rem; padding: .5rem 2rem .5rem .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font: 500 .88rem var(--sans); color: var(--ink); cursor: pointer; }
.sortform select:hover { border-color: var(--ink); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.6rem; margin-top: var(--s-8); font: 500 .74rem/1 var(--sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
.pager a { text-decoration: none; border: 1px solid var(--ink); border-radius: var(--r-pill); padding: .85rem 1.4rem; transition: background var(--t), color var(--t); }
.pager a:hover { background: var(--ink); color: var(--bg); }

/* ---------- 14. Fiche produit ---------- */
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
@media (min-width: 960px) { .product-grid { grid-template-columns: minmax(0, 1.3fr) minmax(24rem, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; } .buy { position: sticky; top: calc(var(--hd-h) + 1.5rem); } }
/* Galerie : carrousel à balayage sur mobile, mosaïque éditoriale sur grand écran */
.gallery { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: 0 0 86%; scroll-snap-align: start; }
.gallery > :only-child { flex-basis: 100%; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; mix-blend-mode: var(--img-blend); }
.gallery .media { position: relative; display: block; aspect-ratio: 4 / 5; }
.gallery .media .sketch { position: absolute; left: 50%; top: 50%; width: 70%; transform: translate(-50%, -50%); filter: var(--sketch-fx); }
@media (min-width: 960px) {
  .gallery { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin-inline: 0; padding-inline: 0; gap: .6rem; scroll-snap-type: none; }
  .gallery > * { flex: none; }
  .gallery > :first-child { grid-column: 1 / -1; }
  .gallery > :first-child:not(.media) { aspect-ratio: 4 / 4.6; }
  .gallery .media.big { aspect-ratio: 4 / 4.6; }
}
.buy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.buy h1 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: .4rem; }
.buy .fav button, .buy .fav a { border: 1px solid var(--line); box-shadow: none; background: transparent; width: 2.9rem; height: 2.9rem; }
.big-price { font: 400 1.6rem/1.2 var(--sans); margin: .4rem 0 var(--s-5); display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.big-price .now { font: 500 1.5rem/1 var(--sans); }
.big-price s { font-size: 1.05rem; color: var(--muted); }
.big-price.is-sale .now { color: var(--sale); }
.big-price .off { background: var(--sale-bg); color: #fff; padding: .35rem .55rem; border-radius: var(--r-1); font: 600 .7rem/1 var(--sans); letter-spacing: .1em; }
.saving { display: inline-flex; align-items: center; gap: .5rem; background: color-mix(in srgb, var(--ok) 11%, var(--bg)); color: var(--st-ok); padding: .55rem .85rem; border-radius: var(--r-1); font-size: .92rem; margin: -.9rem 0 1.5rem; }
.saving .i { width: 1.1rem; height: 1.1rem; }
.opt-label { display: flex; justify-content: space-between; margin: 0 0 .8rem; font: 500 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.opt-label b { font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--muted); font-size: .92rem; }
.swatches { list-style: none; display: flex; flex-wrap: wrap; gap: .85rem; margin: 0 0 var(--s-5); }
.swatch { display: block; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); box-shadow: 0 0 0 3px var(--bg); position: relative; transition: box-shadow var(--t), transform var(--t); }
.swatch:hover { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line); transform: scale(1.05); }
.swatch.is-on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--ink); }
.swatch.is-out::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(0, 0, 0, .55) 50%, transparent calc(50% + 1px)); }
.sizes { border: 0; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.sizes legend { padding: 0; width: 100%; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.size span { display: grid; place-items: center; min-width: 3.4rem; height: 3.1rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--white); font-size: .95rem; transition: background var(--t), color var(--t), border-color var(--t); }
.size:hover span { border-color: var(--ink); }
.size input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.size.is-out span { color: var(--muted); border-style: dashed; background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)); }
.size.is-out input { cursor: not-allowed; }
.stock-note { display: flex; align-items: center; gap: .5rem; color: var(--sale); font-weight: 500; font-size: .92rem; margin: 0 0 1.2rem; }
.stock-note .i { width: 1.1rem; height: 1.1rem; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: stretch; margin-bottom: 1.6rem; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--white); }
.stepper button { width: 2.9rem; background: none; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: background var(--t); }
.stepper button:hover { background: var(--bg-soft); }
.stepper .i { width: 1rem; height: 1rem; }
.stepper input { width: 3rem; text-align: center; border: 0; padding: 0; min-height: 0; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input:focus { box-shadow: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.assure { list-style: none; display: grid; gap: .9rem; padding: 1.4rem 0; border-block: 1px solid var(--line); margin-bottom: .5rem; }
.assure li { display: flex; gap: .9rem; align-items: center; font-size: .95rem; color: var(--ink-2); }
.assure .i { color: var(--accent); }
.acc { border-bottom: 1px solid var(--line); }
.acc > summary { display: flex; justify-content: space-between; align-items: center; min-height: 3.4rem; font: 500 .76rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.acc > summary .i { width: 1.1rem; height: 1.1rem; transition: transform .3s var(--ease); }
.acc[open] > summary .i { transform: rotate(180deg); }
.acc .acc-body { padding: 0 0 1.4rem; color: var(--ink-2); font-size: .98rem; }
.acc .acc-body p:last-child { margin-bottom: 0; }
.buybar { display: none; }
@media (max-width: 959px) {
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: .65rem var(--gut) calc(.65rem + env(safe-area-inset-bottom, 0)); gap: 1rem; align-items: center; justify-content: space-between; box-shadow: 0 -8px 22px rgba(0, 0, 0, .07); }
  .bb-price { display: grid; line-height: 1.15; }
  .bb-price b { font-size: 1.2rem; font-weight: 500; }
  .bb-price b.sale { color: var(--sale); }
  .bb-price s { color: var(--muted); font-size: .82rem; }
  .buybar .btn { flex: 1; max-width: 16rem; }
}

/* ---------- 15. Panier & commande ---------- */
.steps { display: flex; align-items: center; gap: 1rem; list-style: none; margin-bottom: var(--s-6); font: 500 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: .7rem; }
.steps li + li::before { content: ""; width: 2.2rem; height: 1px; background: var(--line); }
.steps .on { color: var(--ink); }
.steps .n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid currentColor; font-size: .68rem; letter-spacing: 0; }
.steps .n .i { width: .9rem; height: .9rem; }
.steps .on .n { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 960px) { .cart-grid { grid-template-columns: minmax(0, 1fr) 25rem; align-items: start; } }
.cart-lines { list-style: none; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .8rem 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cart-line { grid-template-columns: 7.5rem minmax(0, 1fr) auto; } }
.cart-line .media, .mini .media { position: relative; display: block; aspect-ratio: 4 / 5; }
.cart-line .media img, .mini .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--img-blend); }
.cart-line .media .sketch, .mini .media .sketch { position: absolute; left: 50%; top: 50%; width: 72%; transform: translate(-50%, -50%); }
.line-info { min-width: 0; }
.line-info p { margin: 0 0 .25rem; }
.line-name { font: 400 1.2rem/1.2 var(--serif); text-decoration: none; display: block; padding-block: .2rem; margin-bottom: .1rem; overflow-wrap: anywhere; }
.line-name:hover { color: var(--accent); }
.price { font: 500 .98rem/1.3 var(--sans); }
.line-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; }
@media (min-width: 640px) { .line-actions { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: space-between; } }
.qty-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.qty-form .qty { width: 4.4rem; padding: .6rem .4rem; }
.qty-form .stepper .qty { width: 3rem; padding: 0; }
.line-total { font: 500 1.05rem/1 var(--sans); margin: 0; }
.has-issue { background: color-mix(in srgb, var(--sale-bg) 9%, var(--bg)); margin-inline: -1rem; padding-inline: 1rem; }
.issue { color: var(--sale); font-weight: 500; font-size: .92rem; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: clamp(1.3rem, 3vw, 2rem); }
@media (min-width: 960px) { .summary { position: sticky; top: calc(var(--hd-h) + 1.5rem); } }
.summary h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.totals { margin: 0 0 1.4rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .98rem; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--ink); margin-top: .6rem; padding-top: 1rem; font: 400 1.3rem/1 var(--serif); }
.totals .disc dd { color: var(--ok); font-weight: 500; }
.coupon { margin-bottom: 1.4rem; }
.coupon label { display: block; font: 500 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: .6rem; }
.inline { display: flex; gap: .5rem; }
.inline input { flex: 1; width: auto; }
.mini { list-style: none; margin: 0 0 1.4rem; display: grid; gap: .9rem; }
.mini li { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: .9rem; align-items: center; font-size: .92rem; }
.mini small { color: var(--muted); display: block; }
.ship-progress { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-2); padding: .9rem 1rem; margin-bottom: 1.3rem; }
.ship-progress p { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: .92rem; }
.ship-progress .i { color: var(--accent); width: 1.25rem; height: 1.25rem; }
.ship-progress .bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .6s var(--ease); }
.ship-progress small { display: block; margin-top: .5rem; color: var(--muted); font-size: .78rem; }
.saved { display: flex; align-items: center; gap: .5rem; color: var(--st-ok); font-size: .88rem; margin: -.3rem 0 1.1rem; }
.saved .i { width: 1.1rem; height: 1.1rem; }
.pay-choice { margin: 0; padding: 1.1rem 1.3rem; border: 1px solid var(--ink); border-radius: var(--r-2); background: var(--white); display: flex; gap: 1rem; align-items: flex-start; }
.pay-choice .i { color: var(--accent); margin-top: .15rem; }
.pay-choice p { margin: 0; }
.pay-choice small { color: var(--muted); }
.confirm { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); margin-bottom: var(--s-6); }
.confirm .ok { width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; margin: 0 auto 1.4rem; color: var(--accent); }
.confirm h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.confirm h1 em { color: var(--accent); }
.confirm .lead { margin-inline: auto; }
.status-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.4rem; }
.timeline { list-style: none; margin: 0 0 var(--s-6); padding: 0 0 0 1.4rem; border-left: 1px solid var(--line); display: grid; gap: 1.1rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -1.78rem; top: .45rem; width: .65rem; height: .65rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); }
.timeline li:first-child::before { background: var(--accent); }

/* ---------- 16. Compte, authentification, pages de contenu ---------- */
.auth { padding-block: clamp(2rem, 6vw, 5rem) var(--section); }
.auth h1 { text-align: center; margin-bottom: var(--s-6); }
.auth .alt { text-align: center; margin-top: 1.6rem; color: var(--muted); font-size: .95rem; }
.auth .form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: clamp(1.3rem, 4vw, 2.2rem); }
.auth .alt a { color: var(--ink); font-weight: 500; }
.acc-nav { display: flex; gap: 2rem; border-bottom: 1px solid var(--line); margin-bottom: var(--s-6); flex-wrap: wrap; }
.acc-nav a { padding: .9rem 0; font: 500 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); transition: color var(--t); }
.acc-nav a:hover { color: var(--ink); }
.acc-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
@media (min-width: 900px) { .acc-grid { grid-template-columns: 1fr 19rem; } }
.acc-grid h2 { font-size: 1.3rem; }
.sec-head h1 em, .prose-page h1 em { font-style: normal; color: var(--accent); }
.prose-page h1 { margin-bottom: 1rem; }
.prose-page h2 { font-size: 1.5rem; margin: 2rem 0 .7rem; }
.prose-page p, .prose-page li { color: var(--ink-2); max-width: 44rem; }
.prose-page ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.zone-table { max-width: 44rem; }

/* ---------- 17. Mouvement & accessibilité ---------- */
/* Apparition douce au défilement : activée uniquement par app.js (sans JS, tout reste visible) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(16px); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
/* Notification d'ajout rapide au panier (créée par app.js) */
.toast { position: fixed; left: 50%; bottom: calc(4.6rem + env(safe-area-inset-bottom, 0)); transform: translateX(-50%); z-index: 120; max-width: min(92vw, 26rem); display: flex; align-items: center; gap: .9rem; background: var(--band-bg); color: var(--band-ink); border: 1px solid var(--band-line); padding: .85rem 1.1rem; border-radius: var(--r-2); box-shadow: var(--sh-2); font-size: .92rem; animation: toastin .25s var(--ease); }
.toast a { color: var(--band-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; white-space: nowrap; }
.toast.is-error { background: var(--sale-bg); color: #fff; border-color: transparent; }
.toast.is-error a { color: #fff; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }
@media (min-width: 760px) { .toast { bottom: 1.6rem; } }
@media (prefers-reduced-motion: reduce) {
  /* Seul !important de la feuille : un reset global doit l'emporter sur toute règle de composant. */
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}
@media print { .topbar, .hd, .footer, .tabbar, .buybar, .btn, .trust, .toast { display: none; } body { background: #fff; padding: 0; } .js-reveal [data-reveal] { opacity: 1; transform: none; } }

/* ---------- 18. Compléments ---------- */
.cta-row { margin: var(--s-6) 0 0; text-align: center; }
.feature-row > :only-child { grid-column: 1 / -1; }
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mx-auto { margin-inline: auto; }
.cart-note { margin: var(--s-4) 0 0; }
.form-aside { margin: -.6rem 0 .4rem; }
.steps-center { justify-content: center; }
.auth .flash, .page .form + .flash, .page > .flash { margin-bottom: var(--s-5); }

/* ==========================================================================
   19. SHOWROOM — scène produit interactive (accueil)
   Sans JavaScript : liste de produits défilante (scroll-snap). Avec JavaScript (.is-3d) :
   carrousel en profondeur, informations, fond et typographie synchronisés.
   ========================================================================== */
.is-home .hd { margin-bottom: calc(var(--hd-h) * -1); background: transparent; border-bottom-color: transparent; transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.is-home .hd.is-solid { background: var(--bg); border-bottom-color: var(--line); }

.stage { --ui-h: 17rem; --top-pad: 6.5rem; --scene-h: calc(100svh - 2.2rem - var(--hd-h) - var(--top-pad) - var(--ui-h)); --sw: min(66vw, calc(var(--scene-h) * .8), 21rem);
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: max(42rem, calc(100svh - 2.2rem)); outline-offset: -6px; }
@media (min-width: 960px) { .stage { --ui-h: 12rem; --top-pad: 1.2rem; --sw: min(25vw, calc(var(--scene-h) * .8), 26rem); } }

/* Couches de fond : teinte du produit actif + typographie géante */
@media (max-width: 759px) { .stage { min-height: max(40rem, calc(100svh - 2.2rem - 3.7rem)); } }
.stage-bgs, .stage-ghosts { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.stage-bg { display: none; }   /* plus de voile coloré : le produit flotte sur le fond de la page */
.stage-bg:first-child, .stage-bg.is-active { opacity: 1; }
.stage-photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.ghost { position: absolute; left: 50%; top: calc(var(--hd-h) + 9%); font: 400 clamp(5rem, 15vw, 15rem)/.8 var(--serif); letter-spacing: -.04em; white-space: nowrap; color: color-mix(in srgb, var(--ink) 5%, transparent); opacity: 0; transform: translate3d(calc(-50% + var(--px, 0) * -2.6vw), 0, 0); transition: opacity var(--dur-5) var(--ease-in-out), transform var(--dur-3) var(--ease-out); }
.ghost:first-child, .ghost.is-active { opacity: 1; }
.stage.is-3d .ghost:first-child:not(.is-active) { opacity: 0; }
.stage.is-3d .stage-bg:first-child:not(.is-active) { opacity: 0; }

/* Scène et carrousel */
.stage-scene { position: absolute; left: 0; right: 0; top: calc(var(--hd-h) + var(--top-pad)); bottom: var(--ui-h); z-index: 1; display: flex; align-items: center; }
.stage-track { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; gap: 1rem; padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-y; }
.stage-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 var(--sw); scroll-snap-align: center; aspect-ratio: 4 / 5; position: relative; }
.slide-link { display: block; width: 100%; height: 100%; text-decoration: none; color: inherit; border-radius: 999px 999px 6px 6px; }
.slide-card { position: relative; display: block; width: 100%; height: 100%; }
.slide-art { position: absolute; inset: 0; display: grid; place-items: center; }
.slide-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--img-blend); }
.slide-art .sketch { width: 82%; filter: var(--sketch-fx); }
.slide-cap { position: static; padding: .7rem 0 0; text-align: center; color: var(--ink); font: 500 .95rem/1.3 var(--sans); }
.slide-cap b { display: block; font: 400 1.35rem/1.1 var(--serif); }

.stage.is-3d .stage-scene { perspective: var(--persp); perspective-origin: 50% 40%; }
.stage.is-3d .stage-track { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; position: relative; height: 100%; overflow: visible; display: block; padding: 0; scroll-snap-type: none; transform-style: preserve-3d; cursor: grab; }
.stage.is-3d .slide { position: absolute; left: 50%; top: 50%; width: var(--sw); height: auto; transform-style: preserve-3d; z-index: calc(10 - var(--a, 0));
  transform: translate3d(calc(-50% + var(--o, 0) * 80%), -50%, calc(var(--a, 0) * -200px)) rotateY(calc(var(--o, 0) * -22deg));
  opacity: 1; opacity: clamp(0, calc(3.1 - var(--a, 0) * 1.3), 1);
  transition: transform var(--dur-4) var(--ease-cine), opacity var(--dur-3) var(--ease), visibility 0s linear 0s; }
.stage.is-3d .slide[aria-hidden="true"] { visibility: hidden; pointer-events: none; transition: transform var(--dur-4) var(--ease-cine), opacity var(--dur-3) var(--ease), visibility 0s linear var(--dur-4); }
.stage.is-3d .slide-cap { display: none; }
.stage.is-3d .slide:not(.is-active) .slide-card { filter: saturate(.7) brightness(.96); }
.stage.is-3d .slide.is-active .slide-card { transform: translateZ(40px) rotateY(calc(var(--px, 0) * 8deg)) rotateX(calc(var(--py, 0) * -6deg)); transition: transform var(--dur-2) var(--ease); }
.stage.is-3d .slide.is-active .slide-art { transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -9px), 30px); transition: transform var(--dur-2) var(--ease); }
.stage.is-3d .slide-link { cursor: pointer; }
.stage.is-3d .slide:not(.is-active) .slide-link { cursor: pointer; }

/* Interface : titre de campagne, navigation, fiche synchronisée */
.stage-lead { position: absolute; z-index: 3; left: var(--gut); top: calc(var(--hd-h) + .9rem); max-width: 17rem; }
.stage-title { font: 400 clamp(1.6rem, 7vw, 2rem)/1.05 var(--serif); letter-spacing: -.02em; margin: 0; }
.stage-title em { font-style: normal; color: var(--accent); }
.stage-lead .eyebrow { margin-bottom: .6rem; }
.stage-sub, .stage-lead .link { display: none; }
@media (min-width: 960px) {
  .stage-lead { top: auto; bottom: clamp(1.4rem, 3.4vw, 2.8rem); max-width: 25rem; }
  .stage-title { font-size: clamp(2rem, 2.8vw, 2.8rem); margin-bottom: .8rem; }
  .stage-sub { display: block; color: var(--ink-2); max-width: 21rem; margin-bottom: 1.4rem; font-size: 1.05rem; }
  .stage-lead .link { display: inline-flex; }
}
.stage-ui { position: relative; z-index: 2; margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 0 var(--gut) clamp(1rem, 3.4vw, 2.8rem); pointer-events: none; }
.stage-ui > * { pointer-events: auto; }
@media (min-width: 960px) { .stage-ui { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; } .stage-nav { grid-column: 2; } .stage-infos { grid-column: 3; justify-self: end; width: min(100%, 21rem); } }
.stage-infos { display: grid; text-align: left; order: -1; }
@media (min-width: 960px) { .stage-infos { order: 0; } }
.info { grid-area: 1 / 1; align-self: end; display: grid; gap: .45rem; justify-items: start; opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease), visibility 0s linear var(--dur-2); }
.info.is-active { opacity: 1; visibility: visible; transition: opacity var(--dur-2) var(--ease), visibility 0s; }
.info > * { margin: 0; transform: translate3d(0, 18px, 0); opacity: 0; transition: transform var(--dur-3) var(--ease-cine), opacity var(--dur-2) var(--ease); }
.info.is-active > * { transform: none; opacity: 1; transition-delay: calc(var(--d, 0) * 1ms + 90ms); }
.info > :nth-child(1) { --d: 0; } .info > :nth-child(2) { --d: 60; } .info > :nth-child(3) { --d: 120; } .info > :nth-child(4) { --d: 180; } .info > :nth-child(5) { --d: 240; }
.stage:not(.is-3d) .stage-infos, .stage:not(.is-3d) .stage-nav { display: none; }
.info-cat { font: 500 var(--fs-xs)/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.info-name { font: 400 clamp(1.5rem, 3.2vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.02em; }
.info-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; font: 500 1.05rem/1.2 var(--sans); }
.info-price .now.sale { color: var(--sale); }
.info-price s { color: var(--muted); font-size: .95rem; font-weight: 400; }
.info-off { background: var(--sale-bg); color: #fff; padding: .3rem .5rem; border-radius: var(--r-1); font: 600 .68rem/1 var(--sans); letter-spacing: .1em; }
.info-state { font: 500 .85rem/1.2 var(--sans); color: var(--ink-2); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.info-state .low { color: var(--sale); } .info-state .out { color: var(--muted); text-decoration: line-through; }
.info-state .dots { margin: 0; }
.info .btn { margin-top: .3rem; }

.stage-nav { display: flex; align-items: center; justify-content: center; gap: .3rem; }
.stage-arrow { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-spring), opacity var(--dur-2) var(--ease); }
.stage-arrow:hover:not([disabled]) { background: var(--ink); color: var(--bg); transform: scale(1.06); }
.stage-arrow:active:not([disabled]) { transform: scale(.95); }
.stage-arrow[disabled] { opacity: .35; cursor: default; }
.stage-arrow .i { width: 1.15rem; height: 1.15rem; }
.stage-prev .i { transform: scaleX(-1); }
.stage-rail { list-style: none; display: flex; align-items: center; margin: 0 .4rem; padding: 0; }
.rail-dot { position: relative; display: block; width: 1.5rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.rail-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: .55rem; height: 2px; background: color-mix(in srgb, var(--ink) 38%, transparent); transform: translate(-50%, -50%); transition: width var(--dur-3) var(--ease-cine), background var(--dur-2) var(--ease); }
.rail-dot:hover::before { background: var(--ink); }
.rail-dot[aria-current="true"]::before { width: 1.5rem; background: var(--ink); }
.stage-count { font: 400 1.1rem/1 var(--serif); letter-spacing: .06em; min-width: 4.4rem; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 959px) { .stage-rail { display: none; } .stage-nav { justify-content: space-between; } .stage-count { order: 0; } }
.stage-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Entrée de la scène au chargement (désactivée en mouvement réduit par le reset global) */
.stage.is-3d .stage-lead, .stage.is-3d .stage-ui { animation: rise var(--dur-5) var(--ease-cine) both; }
.stage.is-3d .stage-ui { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }

/* ---------- 20. Index des catégories : liste sobre avec vignette ---------- */
.index { list-style: none; border-top: 1px solid var(--line); margin: 0; padding: 0; }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: .95rem .6rem; margin-inline: -.6rem; text-decoration: none; border-radius: var(--r-2); transition: background var(--dur-2) var(--ease); }
.index a:hover, .index a:focus-visible { background: var(--bg-soft); }
.ix-n { font: 500 .7rem/1 var(--sans); letter-spacing: .18em; color: var(--muted); }
.ix-name { font: 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.15 var(--serif); letter-spacing: -.01em; transition: transform var(--dur-3) var(--ease-cine); }
.ix-thumb { position: relative; display: block; width: 2.6rem; height: 3.25rem; }
.ix-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--img-blend); }
.ix-thumb .sketch { position: absolute; left: 50%; top: 50%; width: 74%; transform: translate(-50%, -50%); }
.ix-go .i { width: 1.2rem; height: 1.2rem; color: var(--muted); transition: transform var(--dur-3) var(--ease-cine), color var(--dur-2) var(--ease); }
.index a:hover .ix-name { transform: translateX(.4rem); }
.index a:hover .ix-go .i { transform: translateX(5px); color: var(--ink); }

/* ---------- 21. Grille des produits : côte à côte, alignée, régulière ---------- */
.pgrid-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .5rem; align-items: start; }
@media (min-width: 640px) { .pgrid-edit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1rem; } }
@media (min-width: 1100px) { .pgrid-edit { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem 1.2rem; } }
@media (min-width: 1500px) { .pgrid-edit { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Profondeur au survol : inclinaison pilotée par showroom.js ([data-tilt]) */
/* z-index: 2 > lien étendu du nom (1) : le transform crée un contexte d'empilement, sans cela favori et ajout rapide passeraient dessous */
.pcard[data-tilt] .pc-media { z-index: 2; transform: perspective(1100px) rotateY(calc(var(--tx, 0) * 7deg)) rotateX(calc(var(--ty, 0) * -6deg)); transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease); }
.pcard:hover .pc-media .sketch { transform: translate(-50%, -52%) scale(1.04); }

/* ---------- 22. Boutique : filtres en panneau, titre monumental ---------- */
.shop-top { align-items: baseline; margin-bottom: clamp(1rem, 2.4vw, 1.8rem); }
.shop-top h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.shop-top p { font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.shop-layout { position: relative; display: block; }
.sidebar { position: absolute; top: 0; left: 0; }   /* pas de z-index : le panneau ouvert doit passer au-dessus de l'en-tête */
.shop-bar { padding-left: 8.4rem; min-height: 3rem; border-top: 1px solid var(--ink); padding-top: .9rem; align-items: center; }
@media (max-width: 639px) { .shop-bar { padding-left: 0; padding-top: 4.6rem; } .sortform { margin-left: 0; width: 100%; justify-content: space-between; } .sortform select { flex: 1; min-width: 0; } }
.filters > summary { position: relative; display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: 0 1.2rem; margin-top: .9rem; border: 1px solid var(--ink); border-radius: var(--r-pill); background: var(--bg); font: 500 .74rem/1 var(--sans); letter-spacing: var(--track-caps); text-transform: uppercase; cursor: pointer; pointer-events: auto; transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.filters > summary:hover, .filters[open] > summary { background: var(--ink); color: var(--bg); }
.filters[open] > summary { z-index: 131; }
.filters > summary .i { width: 1.05rem; height: 1.05rem; }
.filters[open]::before { content: ""; position: fixed; inset: 0; z-index: 120; background: var(--overlay); animation: fadein var(--dur-2) var(--ease); cursor: pointer; }
.filter-body { position: fixed; z-index: 125; top: 0; right: 0; bottom: 0; width: min(27rem, 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: 5.2rem clamp(1.2rem, 3vw, 2rem) 3rem; box-shadow: var(--sh-2); animation: panelin var(--dur-3) var(--ease-cine); }
@keyframes panelin { from { transform: translate3d(2.5rem, 0, 0); opacity: 0; } to { transform: none; opacity: 1; } }
.filters-close { display: none; position: absolute; top: 1.2rem; right: 1.2rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); place-items: center; cursor: pointer; }
.js .filters-close { display: grid; }
.filter-head { font: 400 2rem/1 var(--serif); position: absolute; top: 1.3rem; left: clamp(1.2rem, 3vw, 2rem); }
body.overlay-open { overflow: hidden; }
.shop-main .pgrid { margin-top: clamp(2rem, 4vw, 3.5rem); }

/* ---------- 23. Fiche produit : atmosphère, typographie fantôme, entrée chorégraphiée ---------- */
.product { position: relative; isolation: isolate; }
.pdp-ghost { position: absolute; z-index: -1; left: 0; top: 2.5rem; max-width: 100%; overflow: hidden; font: 400 clamp(4.5rem, 13vw, 12rem)/.8 var(--serif); letter-spacing: -.04em; white-space: nowrap; color: color-mix(in srgb, var(--ink) 4.5%, transparent); pointer-events: none; user-select: none; animation: fadein var(--dur-5) var(--ease-in-out) .15s both; }
.gallery .media.big, .gallery > img:first-child { transition: transform var(--dur-3) var(--ease); }
.gallery .media.big { overflow: visible; }
.gallery .media.big .sketch { width: 76%; filter: var(--sketch-fx); }
.gallery [data-tilt] { transform: perspective(1200px) rotateY(calc(var(--tx, 0) * 6deg)) rotateX(calc(var(--ty, 0) * -5deg)); }
.product-grid .gallery > *, .product-grid .buy > * { animation: rise var(--dur-4) var(--ease-cine) both; }
.product-grid .buy > :nth-child(2) { animation-delay: .07s; } .product-grid .buy > :nth-child(3) { animation-delay: .14s; } .product-grid .buy > :nth-child(4) { animation-delay: .21s; }
.product-grid .buy > :nth-child(5) { animation-delay: .28s; } .product-grid .buy > :nth-child(n+6) { animation-delay: .35s; }
.swatch, .size span { transition-timing-function: var(--ease-spring); }

/* Transitions de page natives (navigateurs compatibles) : la pièce « voyage » de la carte à sa fiche */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out var(--dur-2) var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in var(--dur-3) var(--ease-cine) both; }
  ::view-transition-group(pimg) { animation-duration: var(--dur-4); animation-timing-function: var(--ease-cine); }
  @keyframes vt-out { to { opacity: 0; } } @keyframes vt-in { from { opacity: 0; } }
}

/* ---------- 24. Compléments ---------- */
.info-state .dots { display: inline-flex; gap: .35rem; align-items: center; margin: 0; }
.info-state .dots i { display: block; width: .9rem; height: .9rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.all-cta { padding-bottom: 0; }
.all-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(1.2rem, 3vw, 2rem) 0; border-block: 1px solid var(--line); text-decoration: none; font: 400 clamp(1.5rem, 3.4vw, 2.4rem)/1.1 var(--serif); letter-spacing: -.02em; transition: color var(--dur-2) var(--ease); }
.all-link .i { width: 1.6rem; height: 1.6rem; transition: transform var(--dur-3) var(--ease-cine); }
.all-link:hover { font-style: normal; color: var(--accent); }
.all-link:hover .i { transform: translateX(14px); }
@media (min-width: 960px) { .is-home .feature-row { padding-top: clamp(1.6rem, 3vw, 2.6rem); } }

/* ---------- 25. Produits flottants : ombre au sol + lévitation lente ---------- */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.65rem; } }
@keyframes floor { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.84); opacity: .65; } }
.pcard { --fd: 0s; }
.pcard:nth-child(4n+2) { --fd: -1.5s; } .pcard:nth-child(4n+3) { --fd: -3s; } .pcard:nth-child(4n+4) { --fd: -4.5s; }
.pc-media .sketch, .pc-media img { animation: float 6s ease-in-out var(--fd) infinite; }
.pc-media::after, .gallery .media.big::after, .slide-card::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 5%; height: 6%; background: var(--floor); pointer-events: none; animation: floor 6s ease-in-out var(--fd, 0s) infinite; }
.slide-card::after { left: 12%; right: 12%; bottom: 7%; }
.stage.is-3d .slide.is-active .slide-art { animation: float 6.5s ease-in-out infinite; }
.gallery .media.big .sketch { animation: float 6.5s ease-in-out infinite; }
.pcard:hover .pc-media .sketch, .pcard:hover .pc-media img { animation-play-state: paused; }

/* Image de remplacement quand une photo ne peut pas être chargée */
img.is-placeholder { object-fit: contain; mix-blend-mode: normal; padding: 14%; opacity: .9; }

/* ---------- 26. Photos réelles : affichées normalement (entières, avec leur fond), SANS effet flottant ---------- */
.pc-media.has-photo { background: var(--bg-soft); border-radius: var(--r-2); overflow: hidden; }
.pc-media.has-photo img { object-fit: cover; mix-blend-mode: normal; animation: none; }
.pc-media.has-photo::after { display: none; }
.pc-media.has-photo img.is-placeholder { object-fit: contain; padding: 14%; }
.slide-card.has-photo { background: var(--bg-soft); border-radius: 20px; overflow: hidden; box-shadow: var(--sh-2); }
.slide-card.has-photo::after { display: none; }
.slide-card.has-photo .slide-art img { object-fit: cover; mix-blend-mode: normal; }
.stage.is-3d .slide.is-active .slide-card.has-photo .slide-art { animation: none; }
.gallery img { object-fit: cover; mix-blend-mode: normal; background: var(--bg-soft); border-radius: var(--r-2); }
.cart-line .media img, .mini .media img { object-fit: cover; mix-blend-mode: normal; background: var(--bg-soft); border-radius: var(--r-1); }
.ix-thumb.has-photo { background: var(--bg-soft); border-radius: var(--r-1); overflow: hidden; }
.ix-thumb img { object-fit: cover; mix-blend-mode: normal; }

/* ---------- 27. Contact : cartes d'action + bouton WhatsApp ---------- */
.contact-cards { display: grid; gap: .8rem; margin: 1.6rem 0 2.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .contact-cards { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); text-decoration: none; color: var(--ink); transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.contact-card:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--sh-2); }
.cc-ico { flex: none; width: 3.1rem; height: 3.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); }
.cc-ico .i { width: 1.5rem; height: 1.5rem; }
.cc-text { display: grid; gap: .12rem; min-width: 0; } .cc-text strong { font: 600 1rem/1.2 var(--sans); } .cc-text small { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.cc-text em { font-style: normal; font-size: .8rem; color: var(--accent); font-weight: 500; }
.contact-wa .cc-ico { background: #128C7E; color: #fff; } .contact-wa { border-color: color-mix(in srgb, #128C7E 55%, var(--line)); }
.wa-float { position: fixed; right: 1rem; bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px)); z-index: 44; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: #128C7E; color: #fff; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .45); text-decoration: none; transition: transform var(--dur-2) var(--ease-spring); }
.wa-float:hover { transform: scale(1.08); } .wa-float .i { width: 1.8rem; height: 1.8rem; }
body.no-tabbar .wa-float { bottom: calc(5.9rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) { .wa-float, body.no-tabbar .wa-float { bottom: 1.5rem; right: 1.5rem; } }
/* Accueil mobile : le bouton se poserait sur la flèche « pièce suivante » du carrousel -> masqué (WhatsApp reste dans le menu, Contact et le pied de page) */
@media (max-width: 759px) { body.is-home .wa-float { display: none; } }
@media print { .wa-float { display: none; } }


/* =====================================================================
   28. Refonte 2026 — noir & blanc (palette d'origine inchangée) — présentation uniquement
   Aucun sélecteur, identifiant, attribut ni comportement existant n'est modifié.
   ===================================================================== */
html { scrollbar-color: color-mix(in srgb, var(--ink) 40%, transparent) transparent; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -.03em; line-height: .96; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.topbar { font-size: .66rem; letter-spacing: .26em; }

/* Boutons : pilule, balayage d'inversion noir/blanc au survol */
.btn { min-height: 3.4rem; padding: 0 2.3rem; border-radius: var(--r-pill); letter-spacing: .2em; font-size: .72rem; border: 1px solid var(--ink); color: var(--bg);
  background: linear-gradient(var(--bg), var(--bg)) no-repeat left center / 0% 100% var(--ink); transition: background-size .55s var(--ease-cine), color .3s var(--ease), transform .3s var(--ease), box-shadow .4s var(--ease); }
.btn:hover { background-size: 100% 100%; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.btn-ghost { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) no-repeat left center / 0% 100% transparent; }
.btn-ghost:hover { background-size: 100% 100%; color: var(--bg); }
.btn-light { color: var(--band-bg); border-color: var(--band-ink); background: linear-gradient(var(--band-bg), var(--band-bg)) no-repeat left center / 0% 100% var(--band-ink); }
.btn-light:hover { background-size: 100% 100%; color: var(--band-ink); }
.btn-lg { min-height: 3.8rem; padding: 0 3rem; }
.btn-sm { min-height: 2.7rem; padding: 0 1.3rem; }
.link, .more { letter-spacing: .2em; }

/* Formulaires */
.form label { font: 500 .85rem/1.3 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--ink-2); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .field, .qty { min-height: 3.4rem; border-radius: 14px; }
.form input:focus, .form select:focus, .form textarea:focus, .field:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.form legend { font-size: 1.7rem; }
.auth .form, .summary { border-radius: var(--r-3); box-shadow: var(--sh-1); }
.auth h1 { font-size: var(--fs-2xl); }
.steps { letter-spacing: .2em; }
.crumbs { font: 400 .82rem/1.4 var(--sans); letter-spacing: .01em; text-transform: none; }

/* En-tête : verre dépoli (pseudo-élément, pour ne pas piéger le menu mobile), fil de progression, deux niveaux sur bureau */
.hd, .is-home .hd.is-solid { background: transparent; }
.hd::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); transition: opacity var(--dur-2) var(--ease); }
.is-home .hd:not(.is-solid)::before { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: scroll()) {
  .hd::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(0); animation: hd-progress linear both; animation-timeline: scroll(root); }
  @keyframes hd-progress { to { transform: scaleX(1); } }
} }
.logo { letter-spacing: .3em; margin-right: -.3em; }
.hd-search input { border-radius: var(--r-pill); }
.sub { border-radius: 20px; padding: .7rem; }
.sub a { border-radius: 12px; }
@media (min-width: 1200px) {
  .hd-in { grid-template-columns: 1fr auto 1fr; grid-template-areas: ". logo right" "nav nav nav"; gap: 0 2rem; padding-block: .85rem 0; min-height: 0; }
  .logo { font-size: 2.4rem; min-height: 3.2rem; transition: font-size .45s var(--ease); }
  .hd.is-solid .logo { font-size: 1.8rem; }
  .hd-nav { justify-self: center; }
  .cb { justify-content: center; flex-wrap: nowrap; gap: 0 clamp(1.6rem, 2.8vw, 3rem); }
  .cb > li > a { padding: .9rem 0 1.05rem; font-size: .7rem; letter-spacing: .22em; white-space: nowrap; line-height: 1; }
  .cb > li > a::after { bottom: .62rem; }
  .cb .hot .i { flex: none; margin-top: -.12rem; }
  .sub { left: 50%; translate: -50% 0; min-width: 14rem; }
  .hd-search { width: clamp(13rem, 15vw, 16rem); }
  .hd-search:focus-within { width: clamp(14rem, 19vw, 19rem); }
  .hd-search input { font-size: .9rem; }
}

/* Scène d'accueil : projecteur qui suit le pointeur, mot géant en contour, cartes en verre */
.stage { isolation: isolate; background: radial-gradient(36rem 30rem at calc(50% + var(--px, 0) * 16%) calc(48% + var(--py, 0) * 12%), color-mix(in srgb, var(--ink) 8%, transparent), transparent 70%), radial-gradient(80% 50% at 50% 112%, color-mix(in srgb, var(--ink) 9%, transparent), transparent 70%); }
.ghost { font-size: clamp(6rem, 24vw, 24rem); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 18%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 9%, transparent), transparent 80%); -webkit-background-clip: text; background-clip: text; }
.slide-card { isolation: isolate; border-radius: 32px; }
.slide-card:not(.has-photo)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 32px; background: linear-gradient(155deg, color-mix(in srgb, var(--ink) 7%, transparent), color-mix(in srgb, var(--ink) 1.5%, transparent) 55%); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bg) 80%, transparent), 0 40px 70px -36px rgba(0, 0, 0, .4); }
.slide-card.has-photo { border-radius: 32px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), 0 44px 80px -36px rgba(0, 0, 0, .5); }
.stage-title { font-size: clamp(2.1rem, 4.4vw, 4.6rem); line-height: .98; letter-spacing: -.03em; }
@media (min-width: 960px) { .stage-lead { max-width: min(34rem, 36vw); } .stage-title { font-size: clamp(2.8rem, 4.4vw, 4.6rem); } }
.info-name { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.stage-arrow { background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.45rem; } }

/* Bandeaux, index, histoire */
.ft { border-radius: var(--r-3); min-height: 12rem; background-image: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .14), transparent 55%); }
a.ft:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.ft-big { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.02em; }
.blk-head h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -.03em; }
.promo-strip { border-radius: var(--r-2); }
.story-b { padding-block: clamp(4.5rem, 10vw, 9rem); }
.story blockquote { font-size: clamp(2.2rem, 5.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.03em; }
.index a { padding: 1.5rem .8rem; border-radius: var(--r-2); }
.index a:hover, .index a:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ix-name { font-size: clamp(2.2rem, 5.2vw, 4.4rem); letter-spacing: -.03em; }
.ix-thumb { width: 3.4rem; height: 4.2rem; border-radius: 14px; overflow: hidden; }

/* Cartes produit : tuiles arrondies, reflet qui suit le pointeur, élévation au survol, plus de lévitation permanente */
.pgrid-edit { gap: 2.2rem .7rem; }
@media (min-width: 640px) { .pgrid-edit { gap: 3rem 1.2rem; } }
@media (min-width: 1100px) { .pgrid-edit { gap: 3.4rem 1.4rem; } }
.pc-media { border-radius: var(--r-2); overflow: hidden; transition: box-shadow .5s var(--ease), translate .5s var(--ease-cine); }
.pc-media.has-photo { border-radius: var(--r-2); }
.pc-media .sketch, .pc-media img, .pc-media::after { animation: none; }
.pcard:hover .pc-media { translate: 0 -6px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .45); }
.pcard[data-tilt] .pc-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(16rem circle at calc(50% + var(--tx, 0) * 50%) calc(50% + var(--ty, 0) * 50%), rgba(255, 255, 255, .5), transparent 62%); mix-blend-mode: soft-light; }
.pcard:hover .pc-media::before { opacity: 1; }
.pc-info { padding: 1rem .2rem 0; }
.pc-name { font: 400 1rem/1.35 var(--sans); }
.pc-price .now { font: 500 1rem/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.tag { letter-spacing: .16em; }
.tag-sale, .tag-top, .tag-out { border-radius: var(--r-pill); padding: .45rem .75rem; }
.fav button, .fav a, .qa > summary { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.qa-panel { border-radius: 20px; }

/* Boutique */
.shop-top h1 { font-size: clamp(3.4rem, 11vw, 9.5rem); letter-spacing: -.045em; line-height: .86; background: linear-gradient(180deg, var(--ink) 40%, color-mix(in srgb, var(--ink) 25%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-top p { letter-spacing: .24em; }
.filters > summary { border-radius: var(--r-pill); letter-spacing: .2em; }
.filter-body { border-radius: 28px 0 0 28px; }

/* Fiche produit : images à taille maîtrisée (la hauteur imposée par l'attribut HTML étirait la photo), panneau d'achat flottant */
.gallery img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; max-height: min(72svh, 46rem); border-radius: var(--r-3); background: var(--media); }
.gallery .media { max-height: min(72svh, 46rem); border-radius: var(--r-3); }
.gallery > :only-child { flex-basis: min(100%, 30rem); margin-inline: auto; }
@media (min-width: 960px) {
  .gallery > :first-child:not(.media) { aspect-ratio: 4 / 4.6; max-height: 44rem; }
  .gallery > :only-child { flex-basis: auto; margin-inline: 0; }
  .buy { padding: clamp(1.6rem, 2.6vw, 2.6rem); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--sh-2); }
}
.cart-line .media img, .mini .media img { border-radius: var(--r-2); background: var(--media); }
.buy h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); letter-spacing: -.035em; line-height: .96; }
.big-price .now { font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.opt-label { font: 500 .85rem/1 var(--sans); letter-spacing: .01em; text-transform: none; }
.size span { min-width: 3.6rem; height: 3.3rem; border-radius: 14px; }
.stepper { border-radius: var(--r-pill); overflow: hidden; }
.buy-row .btn { min-height: 3.7rem; }
.acc > summary { letter-spacing: .2em; min-height: 3.7rem; }
.pdp-ghost { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 14%, transparent); }
.buybar { background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .acc::details-content { block-size: 0; overflow: clip; transition: block-size .55s var(--ease-cine), content-visibility .55s allow-discrete; }
  .acc[open]::details-content { block-size: auto; }
}

/* Engagements, pied de page monumental */
.trust { background: transparent; border-block: 1px solid var(--line); }
@media (min-width: 860px) { .trust-in > div { padding-inline: 1.6rem; border-left: 1px solid var(--line); } .trust-in > div:first-child { padding-left: 0; border-left: 0; } }
.footer { padding-top: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.footer-grid > :first-child { grid-column: 1 / -1; }
.wordmark { display: block; font-size: clamp(4.6rem, 20vw, 18rem); line-height: .8; letter-spacing: .06em; margin: 0 0 2rem; background: linear-gradient(180deg, var(--band-ink) 0%, color-mix(in srgb, var(--band-ink) 45%, transparent) 45%, color-mix(in srgb, var(--band-ink) 4%, transparent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer li a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color var(--t); }
.footer li a:hover { background-size: 100% 1px; text-decoration: none; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr 1.2fr; } .footer-grid > :first-child p { max-width: 30rem; } }
.contact-card { border-radius: var(--r-2); }
.toast { border-radius: var(--r-2); }

/* =====================================================================
   29. Éditorial — d'après la référence du client : photo plein cadre avec titre en italique et bouton pilule,
   vignettes sur fond gris clair avec très peu de texte, bannière sombre. Noir et blanc uniquement.
   Présentation uniquement : aucun sélecteur, identifiant ni comportement existant n'est modifié.
   ===================================================================== */
:root { --serif: var(--sans); --display: var(--sans); --fs-2xl: clamp(1.5rem, 2.6vw, 2.1rem); --fs-3xl: clamp(2rem, 4vw, 3rem); }
h1, h2, h3, legend { font-weight: 500; }
h1 { letter-spacing: -.02em; line-height: 1.08; }
h1 em, h2 em, h3 em { font-style: normal; background: none; -webkit-text-fill-color: currentColor; }
@keyframes lead-in { from { opacity: 0; translate: 0 1.2rem; } }

/* En-tête : marque à gauche, liens discrets au centre, icônes à droite */
@media (min-width: 1200px) {
  .hd-in { grid-template-columns: 1fr auto 1fr; grid-template-areas: "logo nav right"; gap: 0 1.5rem; padding-block: .9rem; align-items: center; min-height: 0; }
  .logo { justify-self: start; margin-right: 0; min-height: 0; font-size: 1.35rem; letter-spacing: .3em; }
  .hd.is-solid .logo { font-size: 1.35rem; }
  .hd-nav { justify-self: center; }
  .cb { flex-wrap: nowrap; gap: 0 2.2rem; }
  .cb > li > a { padding: .7rem 0; font-size: .68rem; letter-spacing: .18em; line-height: 1; }
  .hd-search { width: clamp(13rem, 15vw, 16rem); }
}
.is-home:has(.hero-photo) .hd:not(.is-solid) { --ink: #fff; --ink-2: rgba(255, 255, 255, .88); --muted: rgba(255, 255, 255, .7); --bg: #16261D; --line: rgba(255, 255, 255, .34); --surface: rgba(255, 255, 255, .12); --field: rgba(255, 255, 255, .14); --accent: #D2B47A; --sale: #FFC2B8; color: #fff; }
.is-home:has(.hero-photo) .hd:not(.is-solid)::before { opacity: 1; background: linear-gradient(rgba(10, 22, 15, .55), transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Hero : grande photo plein cadre (3 volets côte à côte sur ordinateur, un seul sur mobile) */
.stage.is-3d { --hero-pad: clamp(1rem, 2.6vw, 2.4rem); margin: 0; border-radius: 0; background: #16261D; color: #fff; overflow: hidden; isolation: isolate; min-height: max(34rem, min(calc(100svh - 2.2rem), 56vw));
  --ink: #fff; --ink-2: rgba(255, 255, 255, .88); --muted: rgba(255, 255, 255, .7); --line: rgba(255, 255, 255, .34); --accent: #D2B47A; --bg: #16261D; --sale: #fff; --surface: #1d3126; --media: #243a2d;
  --sketch-fx: brightness(1.12) drop-shadow(0 0 .8px rgba(255, 255, 255, .85)) drop-shadow(0 24px 20px rgba(0, 0, 0, .5)); --img-blend: normal; box-shadow: none; }
.stage.is-3d::before { display: none; }
.stage.is-3d::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(10, 22, 15, .45) 0, transparent 24%, transparent 56%, rgba(10, 22, 15, .55) 100%), rgba(10, 22, 15, .1); }
.stage.is-3d .stage-bg, .stage.is-3d .stage-ghosts { display: none; }
.stage.is-3d .stage-scene { position: absolute; inset: 0; z-index: 1; perspective: none; top: 0; bottom: 0; left: 0; right: 0; }
.stage.is-3d .stage-track { transform-style: flat; height: 100%; }
.stage.is-3d .stage-track .slide { position: absolute; top: 0; height: 100%; margin: 0; width: 100%; left: calc(var(--o, 0) * 100%); transform: none; opacity: 0; filter: none; pointer-events: none; transition: left 1s var(--ease-cine), opacity .6s var(--ease); }
.stage.is-3d .stage-track .slide.is-active { opacity: 1; pointer-events: auto; }
.stage.is-3d .slide-link { position: absolute; inset: 0; display: block; border-radius: 0; }
.stage.is-3d .slide-card { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: radial-gradient(90% 90% at 50% 40%, #2f4a3a, #16261D); isolation: isolate; transition: filter .6s var(--ease); }
.stage.is-3d .slide-card.has-photo { background: #1d3126; }
.stage.is-3d .slide-card::before, .stage.is-3d .slide-card::after { display: none; }
.stage.is-3d .slide-art { position: absolute; inset: 0; display: grid; place-items: center; animation: none; transform: none; }
.stage.is-3d .slide-art img { width: 100%; height: 100%; object-fit: cover; }
.stage.is-3d .slide-art .sketch, .stage.is-3d .slide-art svg { width: 58%; height: auto; max-height: 70%; filter: var(--sketch-fx); }
.stage.is-3d .slide-cap { display: none; }
@media (max-width: 759px) {
  .stage.is-3d { min-height: calc(100svh - 2.2rem - 4.8rem); }
}

/* Titre en italique centré, bouton pilule blanc */
.stage.is-3d .stage-lead { position: absolute; z-index: 4; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(92%, 46rem); max-width: none; text-align: center; display: grid; justify-items: center; gap: 1.1rem; pointer-events: none; animation: lead-in 1s var(--ease-cine) both; }
.stage.is-3d .stage-lead .eyebrow, .stage.is-3d .stage-sub { display: none; }
.stage.is-3d .stage-title { font: 500 clamp(2.4rem, 6vw, 5.4rem)/1.02 var(--sans); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 26px rgba(0, 0, 0, .4); }
.stage.is-3d .stage-title em { display: block; font-style: normal; color: var(--gold); padding-left: 0; }
.stage.is-3d .stage-lead .link { pointer-events: auto; display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.6rem; border: 0; border-radius: var(--r-pill); background: #F7EEDC; color: #17251C; font: 600 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.stage.is-3d .stage-lead .link:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .6); color: #17251C; }

/* Nom + prix discrets en bas à gauche, flèches en bas au centre */
.stage.is-3d .stage-ui { position: static; animation: none; transform: none; }
.stage.is-3d .stage-infos { position: absolute; z-index: 4; left: var(--hero-pad); bottom: var(--hero-pad); width: auto; max-width: 40vw; text-align: left; }
.stage.is-3d .info { display: grid; justify-items: start; gap: .25rem; }
.stage.is-3d .info-cat, .stage.is-3d .info-state, .stage.is-3d .info .btn { display: none; }
.stage.is-3d .info-name { font: 500 .8rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.stage.is-3d .info-price { font: 500 1rem/1.2 var(--sans); gap: .2rem .6rem; font-variant-numeric: tabular-nums; }
.stage.is-3d .info-price .now.sale { color: #fff; }
.stage.is-3d .info-price s { font-size: .8rem; color: rgba(255, 255, 255, .65); }
.stage.is-3d .stage-nav { position: absolute; z-index: 4; left: 50%; bottom: var(--hero-pad); transform: translateX(-50%); display: flex; gap: .6rem; }
.stage.is-3d .stage-rail, .stage.is-3d .stage-count { display: none; }
.stage.is-3d .stage-arrow { width: 2.7rem; height: 2.7rem; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.stage.is-3d .stage-arrow:hover:not([disabled]) { background: #F7EEDC; color: #17251C; border-color: #F7EEDC; }

/* Titres de sections : petits, centrés, en capitales espacées */
.blk-head { justify-content: center; text-align: center; margin-bottom: 1.4rem; }
.blk-head h2 { font: 600 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.blk-head .more { display: none; }
.all-link { border: 0; border-top: 1px solid var(--line); border-radius: 0; justify-content: center; padding: 1.5rem 0; font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.all-link .i { display: none; }
.all-link:hover { background: none; color: var(--accent); }

/* Vignettes : fond gris clair, photo en grand, texte minuscule centré */
.pgrid-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .6rem; }
@media (min-width: 900px) { .pgrid-edit { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem 1rem; } }
.pc-media, .pc-media.has-photo { border-radius: 0; background: var(--bg-soft); box-shadow: none; --sketch-fx: initial; }
.pc-media::before { display: none; }
.pcard:hover .pc-media { translate: none; box-shadow: none; }
.pcard:hover .pc-media img { transform: scale(1.04); }
.pc-info { padding: .9rem .2rem 0; text-align: center; }
.pc-name { font: 500 .72rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.pc-price { justify-content: center; }
.pc-price .now { font: 500 .9rem/1.2 var(--sans); }
.pc-price s { font-size: .75rem; }
.pc-info .dots { justify-content: center; }
.tag, .tag-sale, .tag-top, .tag-out { border-radius: 0; padding: .35rem .55rem; letter-spacing: .14em; }

/* Bandeaux, catégories, bannière sombre, pied de page : plats et sobres */
.ft { border-radius: 0; min-height: 6.5rem; padding: 1.2rem 1.5rem; color: #fff; background-image: none; }
.ft-eyebrow, .ft-link { display: none; }
.ft-sale { background: var(--sale-bg); }
.ft-top, .ft-cod, .ft-code { background: #12211A; box-shadow: none; }
.ft-big { font: 500 clamp(1.1rem, 1.7vw, 1.4rem)/1.1 var(--sans); letter-spacing: -.01em; }
.promo-strip { border-radius: 0; background-image: none; box-shadow: none; }
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .index { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; } }
.index > li { border: 0; }
.index a { display: grid; gap: .7rem; padding: 0; border-radius: 0; background: none; transition: opacity .3s var(--ease); }
.index a:hover, .index a:focus-visible { background: none; color: inherit; transform: none; opacity: .75; }
.ix-n, .ix-go { display: none; }
.ix-thumb { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; background: var(--bg-soft); overflow: hidden; display: grid; place-items: center; }
.ix-thumb .sketch { width: 68%; }
.ix-thumb.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.ix-name { font: 500 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 0; }
.band-dark.story-b { margin: 0; border-radius: 0; padding-block: clamp(4rem, 9vw, 7rem); background: radial-gradient(70% 130% at 50% 0%, #2C4636, #0F1A14); text-align: center; }
.story { display: grid; justify-items: center; gap: 1.4rem; }
.story blockquote { font: 400 clamp(2rem, 4.6vw, 3.8rem)/1.1 var(--display); letter-spacing: -.01em; }
.story blockquote em { font-style: normal; background: none; color: inherit; -webkit-text-fill-color: currentColor; opacity: .75; }
.story-b .story .eyebrow, .story-b .story p { display: none; }
.story-b .story .link { display: inline-flex; padding: .85rem 1.6rem; border: 0; border-radius: var(--r-pill); background: #F7EEDC; color: #17251C; font: 600 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.trust-in { padding-block: 1.2rem; }
.trust-in small { display: none; }
.trust-in b { font-size: .82rem; }
.footer { margin: 0; border-radius: 0; background-image: none; padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.2rem; }
.wordmark { display: inline-block; font-size: 1.4rem; line-height: 1; letter-spacing: .3em; margin: 0 0 1rem; background: none; -webkit-text-fill-color: currentColor; color: var(--band-ink); }
.footer-grid > :first-child { grid-column: auto; }
.footer-grid > :first-child p { display: none; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

/* Pages intérieures : titres discrets */
.shop-top h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -.02em; line-height: 1.05; background: none; -webkit-text-fill-color: currentColor; color: var(--ink); }
.shop-top p { letter-spacing: .12em; color: var(--muted); }
.buy h1 { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.02em; line-height: 1.08; }
.big-price .now { font-size: 1.6rem; }
.auth h1 { font-size: var(--fs-2xl); }
.summary h2 { font-size: 1.2rem; }
.pdp-ghost { display: none; }
.assure li:nth-child(3) { display: none; }

/* Apparition douce des éléments (fondu + légère dérive) */
.js-reveal [data-reveal] .pcard, .js-reveal [data-reveal] .index > li, .js-reveal [data-reveal] .ft { opacity: 0; translate: 0 1.2rem; transition: opacity .8s var(--ease), translate 1s var(--ease-cine); }
.js-reveal [data-reveal].in .pcard, .js-reveal [data-reveal].in .index > li, .js-reveal [data-reveal].in .ft { opacity: 1; translate: 0 0; }
.js-reveal [data-reveal].in :is(.pcard, .index > li, .ft):nth-child(2) { transition-delay: .07s; }
.js-reveal [data-reveal].in :is(.pcard, .index > li, .ft):nth-child(3) { transition-delay: .14s; }
.js-reveal [data-reveal].in :is(.pcard, .index > li, .ft):nth-child(4) { transition-delay: .21s; }
.js-reveal [data-reveal].in :is(.pcard, .index > li, .ft):nth-child(n+5) { transition-delay: .28s; }

/* WhatsApp : bouton agrandi, visible aussi sur l'accueil mobile */
.wa-float { width: 5.4rem; height: 5.4rem; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .5); }
.wa-float .i { width: 3rem; height: 3rem; }
@media (max-width: 759px) { body.is-home .wa-float { display: grid; } .wa-float { width: 5rem; height: 5rem; right: .7rem; } .wa-float .i { width: 2.8rem; height: 2.8rem; } }

/* Choix du thème */
.theme-pop { position: fixed; z-index: 120; min-width: 12.5rem; padding: .4rem; border-radius: 20px; display: grid; gap: .15rem; background: var(--surface, var(--white, #fff)); color: var(--ink, #111); border: 1px solid var(--line, #ddd); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .5); animation: pop-in .22s var(--ease, ease) both; }
@keyframes pop-in { from { opacity: 0; translate: 0 -6px; scale: .98; } }
.theme-pop button { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 2.9rem; padding: 0 .9rem; border: 0; border-radius: 14px; background: none; color: inherit; font: 500 .92rem/1 var(--sans, system-ui, sans-serif); letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer; }
.theme-pop button:hover, .theme-pop button:focus-visible { background: color-mix(in srgb, currentColor 9%, transparent); outline: 0; }
.theme-pop button[aria-checked="true"] { background: var(--ink, #111); color: var(--bg, var(--white, #fff)); }
.theme-pop .tp-dot { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.theme-pop [data-c="light"] .tp-dot { background: #fff; } .theme-pop [data-c="dark"] .tp-dot { background: #111; } .theme-pop [data-c="auto"] .tp-dot { background: linear-gradient(90deg, #fff 50%, #111 50%); }

/* Catégories : une vignette par catégorie, nom dessous */
.index a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; }
.index .ix-thumb { grid-column: 1; grid-row: 1; border-radius: 0; }
.index .ix-name { grid-column: 1; grid-row: 2; justify-self: center; }
.stage.is-3d .stage-arrow { opacity: 1; }

/* Lisibilité des commandes du hero sur toutes les photos */
.stage.is-3d::after { background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0, transparent 24%, transparent 46%, rgba(0, 0, 0, .66) 100%); }
.stage.is-3d .stage-infos { text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.stage.is-3d .stage-arrow { background: rgba(0, 0, 0, .38); border-color: rgba(255, 255, 255, .7); }

/* =====================================================================
   33. Une photo par ligne sur téléphone, grande photo + grand prix ; avis clients
   ===================================================================== */
.pgrid-edit { grid-template-columns: minmax(0, 1fr); gap: 2.6rem 0; }
@media (min-width: 600px) { .pgrid-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 1rem; } }
@media (min-width: 900px) { .pgrid-edit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.2rem; } }
.pc-info { padding: 1.1rem .2rem 0; }
.pc-name { font-size: .85rem; letter-spacing: .1em; }
.pc-price .now { font: 600 1.55rem/1.15 var(--sans); }
.pc-price s { font-size: 1rem; }
@media (min-width: 900px) { .pc-price .now { font-size: 1.4rem; } }

.stars { display: inline-block; font-size: 1.05rem; letter-spacing: .08em; line-height: 1; white-space: nowrap; }
.stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--ink) calc(var(--r, 0) / 5 * 100%), color-mix(in srgb, var(--ink) 22%, transparent) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.reviews { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.rv-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.5rem; margin-bottom: 1.3rem; }
.rv-head h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.rv-score { display: flex; align-items: center; gap: .6rem; margin: 0; }
.rv-big { font: 600 1.9rem/1 var(--sans); }
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-item { padding: 1.2rem 1.3rem; background: var(--bg-soft); }
.rv-item p { margin: .6rem 0 0; line-height: 1.55; }
.rv-top { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; font-size: .9rem; }
.rv-ok { padding: .2rem .5rem; border: 1px solid var(--line); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rv-empty { margin: 0 0 1.4rem; }
.rv-login { margin: 1.4rem 0 0; }
.rv-form { max-width: 36rem; margin-top: 1.8rem; display: grid; gap: 1rem; }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; }
.rv-rate input { position: absolute; opacity: 0; pointer-events: none; }
.rv-rate label { font-size: 2.2rem; line-height: 1; color: color-mix(in srgb, var(--ink) 22%, transparent); cursor: pointer; padding: 0 .1rem; transition: color .2s var(--ease); }
.rv-rate input:checked ~ label, .rv-rate label:hover, .rv-rate label:hover ~ label { color: var(--ink); }
.rv-rate input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.rv-form textarea { min-height: 7rem; resize: vertical; }
.rv-note { margin: 0; font-size: .8rem; }
.reviews-home .rv-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0 0 .8rem; -webkit-overflow-scrolling: touch; }
.rv-card { flex: 0 0 min(84%, 22rem); scroll-snap-align: start; display: grid; gap: .8rem; align-content: start; padding: 1.4rem; background: var(--bg-soft); }
.rv-card p { margin: 0; font-size: 1rem; line-height: 1.5; }
.rv-card footer { display: grid; gap: .2rem; font-size: .8rem; color: var(--muted); }
.rv-card footer strong { color: var(--ink); font-weight: 600; }
.rv-card footer a { text-decoration: underline; text-underline-offset: 3px; }

/* Bandeaux « promotions / paiement à la livraison » : placés en bas de l'accueil, juste avant le pied de page */
.feature-row { margin-block: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem); }

/* =====================================================================
   34. Version arabe (droite-à-gauche) — actif seulement avec <html dir="rtl">
   ===================================================================== */
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-arabic-400-normal.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-arabic-700-normal.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E; }
html[dir="rtl"] { --sans: "Cairo", "Jost", system-ui, sans-serif; --display: "Cairo", "Jost", system-ui, sans-serif; --serif: "Cairo", "Jost", system-ui, sans-serif; }
html[dir="rtl"] body *:not(.logo):not(.wordmark) { letter-spacing: 0 !important; }
html[dir="rtl"] body { line-height: 1.7; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.3; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: 0 .7rem; font: 600 .7rem/1 var(--sans); letter-spacing: .06em; border: 1px solid var(--line); border-radius: var(--r-pill); }
/* Hero en arabe : la pellicule de photos garde son sens physique ; titre en Cairo gras ; nom + prix à droite */
html[dir="rtl"] .stage.is-3d .stage-scene, html[dir="rtl"] .stage.is-3d .stage-nav { direction: ltr; }
html[dir="rtl"] .stage.is-3d .stage-title { font: 700 clamp(2.4rem, 6vw, 5.2rem)/1.3 var(--sans); font-style: normal; text-shadow: 0 2px 26px rgba(0, 0, 0, .45); }
html[dir="rtl"] .stage.is-3d .stage-title em { font-style: normal; padding: 0; }
html[dir="rtl"] .stage.is-3d .stage-infos { left: auto; right: var(--hero-pad); text-align: right; }
html[dir="rtl"] .stage.is-3d .info-name { font-size: .95rem; }
html[dir="rtl"] .skip { left: auto; right: -999px; }
html[dir="rtl"] .skip:focus { right: 0; }
html[dir="rtl"] .rv-hp { left: auto; right: -9999px; }
/* Pictos fléchés inversés, bouton WhatsApp à gauche (pour ne pas couvrir le prix) */
html[dir="rtl"] .link .i, html[dir="rtl"] .btn .i, html[dir="rtl"] .more .i, html[dir="rtl"] .all-link .i, html[dir="rtl"] .ix-go { transform: scaleX(-1); }
html[dir="rtl"] .wa-float { right: auto; left: 1.4rem; }
@media (max-width: 759px) { html[dir="rtl"] .wa-float { right: auto; left: .7rem; } }

/* =====================================================================
   35. Assistant « Trouver ma taille »
   ===================================================================== */
.fit-open { display: inline-flex; align-items: center; gap: .5rem; margin: .2rem 0 1.1rem; padding: .35rem 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--ink); font: 500 .85rem/1.2 var(--sans); cursor: pointer; }
.fit-open[hidden] { display: none; }
.fit-open .i { width: 1.1rem; height: 1.1rem; }
.fit { width: min(34rem, 100%); max-width: 100%; max-height: min(92svh, 46rem); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 28px; background: var(--bg); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); overflow: auto; }
.fit::backdrop { background: rgba(0, 0, 0, .55); }
.fit[open] { animation: fit-in .35s var(--ease-cine) both; }
@keyframes fit-in { from { opacity: 0; translate: 0 1.2rem; } }
@media (max-width: 600px) { .fit { margin: auto 0 0; width: 100%; max-height: 94svh; border-radius: 28px 28px 0 0; border-bottom: 0; } }
.fit-box { padding: 1.4rem 1.5rem 1.2rem; display: grid; gap: 1.1rem; }
.fit-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fit-step { margin: 0; font: 600 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fit-close { width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; background: none; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.fit h2 { margin: 0; font: 500 clamp(1.6rem, 4vw, 2rem)/1.1 var(--sans); letter-spacing: -.02em; }
.fit .muted { margin: 0; }
.fit-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: var(--r-pill); overflow: hidden; }
.fit-seg input, .fit-opts input { position: absolute; opacity: 0; pointer-events: none; }
.fit-seg span { display: block; padding: .8rem; text-align: center; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.fit-seg input:checked + span { background: var(--ink); color: var(--bg); }
.fit-seg input:focus-visible + span, .fit-opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -4px; }
.fit-grid { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; align-items: end; }
.fit-figure { display: grid; place-items: end center; height: 12.5rem; color: var(--ink); }
.fit-figure svg { height: 100%; width: auto; overflow: visible; }
.fit-man { transform-origin: 50% 100%; transform-box: fill-box; transition: transform .25s var(--ease); }
.fit-sliders { display: grid; gap: 1.3rem; }
.fit-lab { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .5rem; }
.fit-lab label { font: 600 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fit-val { font: 500 1.8rem/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fit-unit { margin-inline-start: auto; display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.fit-unit button { padding: .35rem .6rem; border: 0; background: none; color: inherit; font: 600 .6rem/1 var(--sans); letter-spacing: .1em; cursor: pointer; }
.fit-unit button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fit input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 1.6rem; background: transparent; cursor: pointer; --p: 50%; }
.fit input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line) var(--p)); }
.fit input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line); }
.fit input[type=range]::-moz-range-progress { height: 3px; background: var(--ink); }
.fit input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.5rem; height: 1.5rem; margin-top: -.65rem; border-radius: 50%; border: 3px solid var(--bg); background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.fit input[type=range]::-moz-range-thumb { width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 3px solid var(--bg); background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.fit input[type=range]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.fit-opts { display: grid; gap: .6rem; }
.fit-opts label span { display: grid; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.fit-opts b { font: 600 1rem/1.2 var(--sans); } .fit-opts small { color: var(--muted); }
.fit-opts input:checked + span { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1px var(--ink); }
.fit-live { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 18px; }
.fit-live span { font: 600 .62rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.fit-live small { flex: 1; color: var(--muted); text-align: end; }
.fit-live b { font: 600 1.7rem/1 var(--sans); }
.fit-result { margin: 0; font: 500 clamp(4rem, 14vw, 6rem)/1 var(--sans); letter-spacing: -.03em; }
.fit-note { margin: 0; line-height: 1.5; } .fit-note:empty { display: none; } .fit-note.small, .fit-privacy.small { font-size: .78rem; color: var(--muted); }
.fit-nav { display: flex; align-items: center; gap: .7rem; }
.fit-nav .btn { flex: 1; } .fit-nav .btn-ghost { flex: 0 0 auto; }
.fit-privacy { margin: 0; text-align: center; }
.fit-box [hidden] { display: none !important; }
html[dir="rtl"] .fit-man, html[dir="rtl"] .fit-grid { direction: ltr; }
html[dir="rtl"] .fit-sliders, html[dir="rtl"] .fit-lab { direction: rtl; }


/* ---------- Hero : grande photo d'ambiance (envoyée depuis Admin > Réglages), titre et bouton par-dessus ---------- */
.hero-photo { --ink: #fff; --accent: #D2B47A; position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; text-align: center; color: #fff;
  min-height: max(34rem, min(calc(100svh - 2.2rem), 56vw)); background: radial-gradient(90% 90% at 50% 40%, #2f4a3a, #16261D); }
.hero-photo .hp-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 22, 15, .5) 0, transparent 30%, transparent 55%, rgba(10, 22, 15, .5) 100%), rgba(10, 22, 15, .08); }
.hp-copy { display: grid; justify-items: center; gap: 1.2rem; width: min(92%, 52rem); padding: calc(var(--hd-h) + 1rem) var(--gut) 3rem; }
.hp-title { margin: 0; font: 500 clamp(2.4rem, 6vw, 5.2rem)/1.04 var(--sans); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .35); }
.hp-title em { display: block; font-style: normal; color: #EBD5A5; }
.hp-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.8rem; border-radius: var(--r-pill); background: #F7EEDC; color: #17251C; text-decoration: none; font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .6); color: #17251C; }
.hp-btn .i { width: 1rem; height: 1rem; }
html[dir="rtl"] .hp-title { font-weight: 700; line-height: 1.3; text-shadow: 0 2px 26px rgba(0, 0, 0, .45); }
html[dir="rtl"] .hp-btn .i { transform: scaleX(-1); }
.hero-photo picture { display: contents; }

/* Téléphone : la photo commence SOUS l'en-tête (le visage n'est plus caché), le texte descend en bas de l'image */
@media (max-width: 759px) {
  .hero-photo { min-height: calc(100svh - 2.2rem - 4.8rem); align-items: end; }
  .hero-photo .hp-img { top: var(--hd-h); height: calc(100% - var(--hd-h)); }
  .hero-photo.has-mob { min-height: calc(100vw * 1.25 + var(--hd-h)); }   /* photo portrait 4:5 : affichée en entier, sans zoom ni rognage */
  .hero-photo::after { background: linear-gradient(180deg, transparent 42%, rgba(10, 22, 15, .82) 100%); }
  .hp-copy { padding: 1rem var(--gut) 1.6rem; gap: .9rem; }
  .hp-title { font-size: clamp(1.9rem, 8.4vw, 2.6rem); line-height: 1.08; }
  .hp-btn { padding: .8rem 1.4rem; }
}

/* Logo envoyé depuis l'admin : blanc sur la photo / en thème sombre, couleurs d'origine sur fond clair */
.logo.has-img, .wordmark.has-img { letter-spacing: 0; margin-right: 0; line-height: 0; }
.logo.has-img img { height: 2.3rem; width: auto; max-width: 11rem; display: block; object-fit: contain; }
.wordmark.has-img img { height: 3.2rem; width: auto; max-width: 14rem; display: block; margin-bottom: .6rem; filter: brightness(0) invert(1); }
html[data-theme="dark"] .logo.has-img img, .is-home:has(.hero-photo) .hd:not(.is-solid) .logo.has-img img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .logo.has-img img { filter: brightness(0) invert(1); } }

/* Bannière d'accueil (photo + titre + bouton) */
.banner { position: relative; display: grid; align-items: end; overflow: hidden; min-height: clamp(16rem, 38vw, 30rem); border-radius: var(--r, 0); color: #fff; text-decoration: none; isolation: isolate; background: #16261D; }
.banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10, 22, 15, .72) 100%); }
.banner:hover img { transform: scale(1.03); }
.banner-copy { display: grid; justify-items: start; gap: .7rem; padding: clamp(1.2rem, 4vw, 2.6rem); }
.banner-copy .eyebrow { color: #EBD5A5; }
.banner-title { font: 500 clamp(1.7rem, 4.4vw, 3.2rem)/1.08 var(--sans); letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }

/* Guide des tailles */
.size-chart { overflow-x: auto; }
.size-chart table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-chart th, .size-chart td { padding: .6rem .7rem; text-align: center; border-bottom: 1px solid var(--line); }
.size-chart thead th { background: var(--bg-soft); font-weight: 600; }
.size-chart tbody th { font-weight: 600; }

/* Monogramme R + pelote devant le nom, dans l'en-tête et le pied de page */
.logo, .wordmark:not(.has-img) { display: inline-flex; align-items: center; gap: .7rem; }
.logo-mark { height: 2.4rem; width: auto; display: block; flex: none; }
.wordmark .logo-mark { height: 2.8rem; filter: brightness(0) invert(1); }
html[data-theme="dark"] .logo-mark, .is-home:has(.hero-photo) .hd:not(.is-solid) .logo-mark { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .logo-mark { filter: brightness(0) invert(1); } }
@media (max-width: 759px) { .logo { gap: .5rem; } .logo-mark { height: 1.7rem; } }

/* Ordinateurs portables / fenêtres de 1040 à 1199 px : le menu (Nouveautés, Promos, Top ventes, Homme, Femme) reste visible, version compacte */
@media (min-width: 1040px) and (max-width: 1199.98px) {
  .hd-in { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav right"; gap: 0 1rem; padding-block: .8rem; align-items: center; min-height: 0; }
  .drawer { display: none; }
  .hd-nav { display: block; justify-self: center; }
  .logo { justify-self: start; margin-right: 0; min-height: 0; font-size: 1.15rem; letter-spacing: .24em; }
  .logo-mark { height: 1.9rem; }
  .cb { flex-wrap: nowrap; gap: 0 1.25rem; }
  .cb > li > a { padding: .7rem 0; font-size: .62rem; letter-spacing: .12em; line-height: 1; white-space: nowrap; }
  .hd-right { display: flex; grid-area: right; align-items: center; justify-content: flex-end; gap: .35rem; }
  .hd-search { grid-area: auto; width: 10rem; }
  .hd-search:focus-within { width: 12rem; }
  .hd-tools { grid-area: auto; }
  .hd-tool.hide-m { display: grid; }
}

/* Logo choisi dans l'admin : remplace le monogramme + le nom */
.logo.has-img img.logo-custom { height: 3rem; width: auto; max-width: 16rem; display: block; object-fit: contain; }
@media (min-width: 1040px) and (max-width: 1199.98px) { .logo.has-img img.logo-custom { height: 2.6rem; max-width: 12rem; } }
@media (max-width: 759px) { .logo.has-img img.logo-custom { height: 2.4rem; max-width: 11rem; } }

/* =====================================================================================
   TÉLÉPHONE — barre d'onglets flottante (pilule en verre, façon Facebook / iOS) + ressenti « app iOS »
   ===================================================================================== */
@media (max-width: 759px) {
  :root { --tab-b: max(.15rem, calc(env(safe-area-inset-bottom, 0px) - 1rem)); }   /* distance de la barre du bas au bord : tout en bas */
  body.store { padding-bottom: calc(var(--tab-b) + 3.5rem); }
  .tabbar {
    left: 1rem; right: 1rem; bottom: var(--tab-b); margin-inline: auto; max-width: 19.5rem;
    padding: .22rem; border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 76%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
    box-shadow: 0 8px 24px -8px rgba(15, 28, 20, .3), 0 1px 6px rgba(15, 28, 20, .08), inset 0 1px 0 rgba(255, 255, 255, .45);
    transform: translateY(0); opacity: 1; will-change: transform;
  }
  .tabbar a { z-index: 1; min-height: 2.55rem; padding: 0; gap: 0; border-radius: 999px; color: var(--ink-2); -webkit-tap-highlight-color: transparent; }
  .tabbar a[aria-current] { color: var(--ink); font-weight: 400; }
  .tabbar a[aria-current]::before { display: none; }
  .tabbar:not(.has-pill) a[aria-current] { background: color-mix(in srgb, var(--accent) 22%, transparent); }   /* sans JavaScript */
  .tabbar .i { width: 1.35rem; height: 1.35rem; transition: transform .35s var(--ease-spring); }
  .tabbar a:active .i { transform: scale(.82); }
  .tabbar a > span:not(.ico) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* libellés lus par les lecteurs d'écran, non affichés */
  .tabbar .ico { position: relative; display: inline-grid; place-items: center; }
  .tabbar .ico .cnt { top: -.4rem; right: -.6rem; min-width: 1rem; height: 1rem; line-height: 1rem; font-size: .58rem; background: #E0301E; color: #fff; box-shadow: 0 0 0 2px var(--surface); }
  /* pastille qui glisse d'un onglet à l'autre */
  .tab-pill { position: absolute; top: .22rem; bottom: .22rem; inset-inline-start: .22rem; width: calc((100% - .44rem) / 5); border-radius: 999px; pointer-events: none;
    background: color-mix(in srgb, var(--accent) 22%, transparent); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s cubic-bezier(.32, .72, 0, 1), opacity .25s; }
  html[dir="rtl"] .tab-pill { transform: translateX(calc(var(--i, 0) * -100%)); }
  /* disparaît quand on défile vers le bas, revient quand on remonte */
  @media (prefers-reduced-motion: no-preference) {
    .tabbar { transition: transform .5s cubic-bezier(.32, .72, 0, 1), opacity .35s ease; }
    .wa-float { transition: bottom .5s cubic-bezier(.32, .72, 0, 1), transform var(--dur-2) var(--ease-spring); }
  }
  body.tab-away .tabbar { transform: translateY(calc(100% + var(--tab-b) + .6rem)); opacity: 0; pointer-events: none; }
  .wa-float { bottom: calc(var(--tab-b) + 3.9rem); }
  body.tab-away .wa-float { bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(var(--tab-b) + 4.1rem); }
  /* un iPhone ne zoome pas dans les champs de saisie */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px; }
}

/* Tous les écrans tactiles : courbe d'animation iOS, retour visuel à l'appui, pas de surbrillance grise ni de délai de clic */
@media (hover: none) and (pointer: coarse) {
  :root { --ease: cubic-bezier(.32, .72, 0, 1); --ease-cine: cubic-bezier(.32, .72, 0, 1); }
  html { -webkit-tap-highlight-color: transparent; }
  a, button, summary, label, select, input, [role="button"] { touch-action: manipulation; }
  .btn { transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s, opacity .25s, box-shadow .25s; }
  .card { transition: transform .35s var(--ease); }
  .hd-tool { transition: transform .3s var(--ease), color var(--t), background var(--t); }
  .btn:active, .hd-tool:active, .card:active, .size span:active { transform: scale(.96); }
  .card:active { transform: scale(.985); }
}

/* =====================================================================================
   « Trouver ma taille » — bouton bien visible + feuille animée (silhouette, compteurs à rouleaux, jauge)
   ===================================================================================== */
@keyframes fit-ring { 0% { transform: scale(.85); opacity: .75; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@keyframes fit-shine { 0%, 62% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(520%) skewX(-20deg); } }
@keyframes fit-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }

.fit-open { position: relative; overflow: hidden; display: flex; align-items: center; gap: .9rem; width: 100%; margin: .6rem 0 1.2rem; padding: .75rem 1rem .75rem .8rem; text-align: start; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 20px; color: var(--ink); font: inherit; isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--surface)), color-mix(in srgb, var(--accent) 7%, var(--surface)));
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .35s var(--ease), box-shadow .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.fit-open[hidden] { display: none; }
.fit-open:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.fit-open:active { transform: scale(.975); }
.fit-open::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 28%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-150%) skewX(-20deg); animation: fit-shine 4.8s ease-in-out 1.4s infinite; }
.fit-open-ico { position: relative; flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--ink); color: var(--bg); }
.fit-open-ico .i { width: 1.25rem; height: 1.25rem; animation: fit-wiggle 1.1s ease 1.8s 2; transform-origin: 50% 80%; }
.fit-open-ico::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: fit-ring 2.6s ease-out 1.2s 4; }
.fit-open.is-nudge .fit-open-ico::after { animation-iteration-count: infinite; }
.fit-open-txt { display: grid; gap: .22rem; flex: 1; min-width: 0; }
.fit-open-txt b { font: 600 1rem/1.15 var(--sans); }
.fit-open-txt small { color: var(--muted); font: 400 .78rem/1.2 var(--sans); }
.fit-open > .i { flex: none; width: 1.1rem; height: 1.1rem; transition: transform .35s var(--ease); }
.fit-open:hover > .i { transform: translateX(4px); }
html[dir="rtl"] .fit-open > .i { transform: scaleX(-1); }
.fit-picked { animation: fit-picked 1.2s var(--ease) both; }
@keyframes fit-picked { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); transform: scale(1); } 25% { transform: scale(1.12); } 100% { box-shadow: 0 0 0 .9rem transparent; transform: scale(1); } }

/* ----- la feuille ----- */
.fit { --fit-from: 2.2rem; --fit-to: 1.2rem; --fit-op: 0; border: 0; border-radius: 30px; box-shadow: 0 50px 100px -30px rgba(10, 22, 15, .6), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); overscroll-behavior: contain; }
.fit::backdrop { background: rgba(10, 22, 15, .5); -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2); }
.fit[open] { animation: fit-rise .6s cubic-bezier(.32, .72, 0, 1) backwards; }
.fit[open]::backdrop { animation: fit-fade .45s ease backwards; }
.fit.is-closing { animation: fit-fall .34s cubic-bezier(.4, 0, .6, 1) forwards !important; }
.fit.is-closing::backdrop { animation: fit-fade-out .34s ease forwards; }
@keyframes fit-rise { from { opacity: 0; translate: 0 var(--fit-from); scale: .97; } }
@keyframes fit-fall { to { opacity: var(--fit-op); translate: 0 var(--fit-to); scale: .98; } }
@keyframes fit-fade { from { opacity: 0; } }
@keyframes fit-fade-out { to { opacity: 0; } }
html.fit-lock { overflow: hidden; }
@media (max-width: 600px) { .fit { --fit-from: 100%; --fit-to: 100%; --fit-op: 1; border-radius: 30px 30px 0 0; } }
.fit-box { padding: .5rem 1.4rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); gap: 1.15rem; }
.fit-head { display: grid; gap: .8rem; margin: 0 -1.4rem; padding: .4rem 1.4rem 0; }
.fit-grab { display: none; }
@media (max-width: 600px) { .fit-head { touch-action: none; } .fit-grab { display: grid; place-items: center; padding-top: .15rem; } .fit-grab i { width: 2.8rem; height: .32rem; border-radius: 9px; background: color-mix(in srgb, var(--ink) 24%, transparent); } }
.fit-close { transition: transform .35s var(--ease), background .25s; }
.fit-close:active { transform: scale(.88); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.fit-prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.fit-prog i { height: .3rem; border-radius: 9px; background: linear-gradient(var(--accent), var(--accent)) no-repeat left / 0% 100%, color-mix(in srgb, var(--ink) 10%, transparent); transition: background-size .7s var(--ease); }
html[dir="rtl"] .fit-prog i { background-position: right; }
.fit-prog i.on { background-size: 100% 100%; }

/* changement d'étape : glissement + fondu */
@keyframes fit-in-fwd { from { opacity: 0; transform: translateX(2rem); } }
@keyframes fit-in-back { from { opacity: 0; transform: translateX(-2rem); } }
.fit-pane { display: grid; gap: 1.1rem; }
.fit-pane.in-fwd { animation: fit-in-fwd .55s cubic-bezier(.32, .72, 0, 1) both; }
.fit-pane.in-back { animation: fit-in-back .55s cubic-bezier(.32, .72, 0, 1) both; }
html[dir="rtl"] .fit-pane.in-fwd { animation-name: fit-in-back; } html[dir="rtl"] .fit-pane.in-back { animation-name: fit-in-fwd; }
.fit-pane[hidden] { display: none; }

/* Femme / Homme : la pastille glisse */
@supports selector(:has(*)) {
  .fit-seg { position: relative; padding: 3px; border-color: color-mix(in srgb, var(--ink) 18%, transparent); background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .fit-seg::before { content: ""; position: absolute; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--ink); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55); transition: transform .55s cubic-bezier(.32, .72, 0, 1); }
  .fit-seg:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
  html[dir="rtl"] .fit-seg:has(label:nth-child(2) input:checked)::before { transform: translateX(-100%); }
  .fit-seg label { position: relative; z-index: 1; }
  .fit-seg span { border-radius: 999px; transition: color .35s var(--ease); }
  .fit-seg input:checked + span { background: transparent; color: var(--bg); }
}

/* ----- silhouette vivante ----- */
.fit-grid { grid-template-columns: 6.6rem 1fr; gap: 1rem; align-items: center; }
.fit-figure { position: relative; display: block; height: 14.5rem; color: var(--ink); isolation: isolate; --sy: .9; --sx: 1; --wf: .5; }
.fit-figure::before { content: ""; position: absolute; z-index: -1; inset: 6% -8% -2%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent); }
.fit-svg { position: absolute; bottom: 0; inset-inline-end: 0; width: calc(100% - 1.7rem); height: 100%; overflow: visible; transform-origin: 50% 100%; transform: scale(var(--sx), var(--sy)); transition: transform .65s cubic-bezier(.34, 1.4, .64, 1); }
.fit-svg * { vector-effect: non-scaling-stroke; }
.sil { opacity: 0; transition: opacity .45s var(--ease); }
.fit[data-sex="f"] .sil-f, .fit[data-sex="m"] .sil-m { opacity: 1; }
.fit-floor { position: absolute; bottom: -.4rem; inset-inline-end: 0; width: calc(100% - 1.7rem); height: .8rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 28, 20, .34), transparent); transform: scaleX(calc(.5 + var(--wf) * .55)); transition: transform .65s cubic-bezier(.34, 1.4, .64, 1); }
.fit-rule { position: absolute; bottom: 0; inset-inline-start: .2rem; width: 0; height: calc(var(--sy) * 100%); border-inline-start: 1.5px dashed var(--accent); transition: height .65s cubic-bezier(.34, 1.4, .64, 1); }
.fit-rule::before { content: ""; position: absolute; top: 0; inset-inline-start: -.45rem; width: .9rem; border-top: 1.5px solid var(--accent); }
.fit-rule b { position: absolute; top: 0; inset-inline-start: 0; transform: translate(-50%, -135%); min-width: 2.1rem; padding: .22rem .4rem; border-radius: 999px; background: var(--accent); color: #fff; font: 700 .64rem/1 var(--sans); text-align: center; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 80%, black); }
html[dir="rtl"] .fit-rule b { transform: translate(50%, -135%); }

/* ----- valeurs à rouleaux ----- */
.fit-sliders { gap: 1.4rem; }
.fit-lab { flex-wrap: nowrap; align-items: center; gap: .5rem; margin-bottom: .15rem; }
.fit-lab label { flex: none; }
.fit-val { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: baseline; justify-content: flex-end; white-space: nowrap; font: 600 2.1rem/1 var(--sans); letter-spacing: -.03em; }
.fit-val.pop { animation: fit-pop-sm .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes fit-pop-sm { from { transform: scale(.85); opacity: .4; } }
.odo { display: inline-flex; height: 1em; overflow: hidden; line-height: 1; font-variant-numeric: tabular-nums; }
.odo-c { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo-s { display: block; transform: translateY(calc(var(--d, 0) * -1em)); transition: transform .6s cubic-bezier(.2, .9, .25, 1.12); will-change: transform; }
.odo-s i { display: block; height: 1em; line-height: 1; font-style: normal; }
.odo-u { font-size: .46em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-inline-start: .1em; }
.fit-unit { flex: none; margin-inline-start: .2rem; }

/* ----- règle graduée + poignée dorée ----- */
.fit-ruler { position: relative; padding-block: .2rem; --tick: color-mix(in srgb, var(--ink) 28%, transparent); }
.fit-ruler::before, .fit-ruler::after { content: ""; position: absolute; top: 50%; inset-inline: 1rem; pointer-events: none; transform: translateY(-50%); }
.fit-ruler::before { height: 1rem; background: repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px calc(100% / var(--n))), linear-gradient(var(--tick), var(--tick)) right / 1px 100% no-repeat; }
.fit-ruler::after { height: 1.5rem; background: repeating-linear-gradient(90deg, var(--tick) 0 1.5px, transparent 1.5px calc(200% / var(--n))); opacity: .85; }
.fit input[type=range] { position: relative; z-index: 1; height: 2.2rem; touch-action: pan-y; }
.fit input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), color-mix(in srgb, var(--ink) 14%, transparent) var(--p)); }
.fit input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.fit input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.fit input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 2rem; height: 2rem; margin-top: -.85rem; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent) 85%, black), 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.fit input[type=range]::-moz-range-thumb { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 3px solid #fff; background: var(--accent); box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent) 85%, black); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.fit input[type=range]:active::-webkit-slider-thumb { transform: scale(1.22); box-shadow: 0 10px 22px -4px color-mix(in srgb, var(--accent) 90%, black), 0 0 0 9px color-mix(in srgb, var(--accent) 22%, transparent); }
.fit input[type=range]:active::-moz-range-thumb { transform: scale(1.22); }

/* ----- jauge de tailles en direct ----- */
@keyframes fit-swap { from { transform: translateY(70%) scale(.8); opacity: 0; filter: blur(4px); } }
.fit-live { display: grid; gap: .75rem; padding: .95rem 1rem 1rem; border-radius: 22px; background: color-mix(in srgb, var(--accent) 8%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.fit-live[hidden] { display: none; }
.fit-live-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fit-live-top span { font: 600 .62rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.fit-live-top b { display: inline-block; min-width: 2.6ch; text-align: end; font: 700 1.9rem/1 var(--sans); }
.fit-live-top b.swap { animation: fit-swap .5s cubic-bezier(.2, .9, .3, 1.2); }
.fit-scale { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(7, 1fr); direction: ltr; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.fit-scale span { position: relative; z-index: 1; padding: .55rem 0; text-align: center; font: 600 .66rem/1 var(--sans); letter-spacing: .03em; color: var(--muted); transition: color .3s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.fit-scale span.is-on { color: var(--bg); transform: scale(1.1); }
.fit-scale span.is-off { opacity: .3; }
.fit-needle { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 7); border-radius: 999px; background: var(--ink); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .6); transform: translateX(calc(var(--r, 0) * 100%)); transition: transform .65s cubic-bezier(.34, 1.5, .64, 1); }
.fit-live small { text-align: center; color: var(--muted); }

/* ----- résultat : la taille « jaillit » ----- */
@keyframes fit-pop { 0% { transform: scale(.3) translateY(.6rem); opacity: 0; filter: blur(12px); } 55% { transform: scale(1.14); opacity: 1; filter: blur(0); } 100% { transform: scale(1); } }
@keyframes fit-halo-in { from { transform: scale(.2); opacity: 0; } }
@keyframes fit-breathe { from { transform: scale(.94); } to { transform: scale(1.06); } }
@keyframes fit-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--dist) * -1)) scale(.2); } }
.fit-hero { position: relative; display: grid; place-items: center; padding: .6rem 0 .4rem; }
.fit-halo { position: absolute; width: 12rem; height: 12rem; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 32%, transparent), transparent); animation: fit-breathe 2.8s ease-in-out infinite alternate; }
.fit-burst { position: absolute; inset: 0; pointer-events: none; }
.fit-burst i { position: absolute; left: 50%; top: 50%; width: .5rem; height: .5rem; margin: -.25rem; border-radius: 50%; background: var(--accent); opacity: 0; }
.fit-result { position: relative; text-align: center; background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--accent) 80%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.fit-pane.reveal .fit-result { animation: fit-pop .9s cubic-bezier(.34, 1.56, .64, 1) both; }
.fit-pane.reveal .fit-halo { animation: fit-halo-in 1s var(--ease) both, fit-breathe 2.8s ease-in-out 1s infinite alternate; }
.fit-pane.reveal .fit-burst i { animation: fit-spark .95s cubic-bezier(.2, .8, .3, 1) .1s both; }
.fit .btn:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  .fit-open *, .fit-open::before, .fit *, .fit::backdrop, .fit-picked { animation: none !important; transition: none !important; }
}
.fit-nav .link { border: 0; background: none; padding: .8rem 1rem; color: var(--ink); font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }

/* ---- Correctif téléphone : la feuille « Trouver ma taille » ne doit jamais défiler de côté ---- */
.fit { overflow-x: hidden; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; }
.fit-box, .fit-box > *, .fit-sliders, .fit-row, .fit-lab { min-width: 0; max-width: 100%; }
.fit-sliders { grid-template-columns: minmax(0, 1fr); }
.fit-grid { grid-template-columns: 6.4rem minmax(0, 1fr); gap: .8rem; }
.fit-figure { width: 6.4rem; height: 14rem; }
.fit-svg { width: auto; height: 100%; aspect-ratio: 100 / 220; inset-inline-end: 0; }   /* la silhouette occupe toute la hauteur : le repère doré tombe pile sur le haut de la tête */
.fit-floor { inset-inline-end: 0; width: 100%; }
/* l'en-tête (croix de fermeture) reste visible quand on défile */
.fit-head { position: sticky; top: 0; z-index: 5; background: var(--bg); margin-top: -.5rem; padding-top: .9rem; padding-bottom: .55rem; }
@media (max-width: 600px) {
  .fit-lab { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: .15rem; column-gap: .5rem; }
  .fit-lab label { grid-column: 1; grid-row: 1; }
  .fit-unit { grid-column: 2; grid-row: 1; margin: 0; }
  .fit-val { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; font-size: 2rem; }
  .fit-sliders { gap: 1.1rem; }
}

/* =====================================================================================
   Application installée (écran d'accueil) : zone de l'heure / encoche, carte d'installation
   ===================================================================================== */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
@supports (padding-top: env(safe-area-inset-top)) {
  body { padding-top: env(safe-area-inset-top, 0px); }
  body::before { content: ""; position: fixed; z-index: 300; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--band-bg); pointer-events: none; }
  .hd { top: env(safe-area-inset-top, 0px); }
}
html.is-standalone { overscroll-behavior-y: contain; }

.pwa-card { position: fixed; z-index: 140; left: .8rem; right: .8rem; bottom: calc(var(--tab-b) + 4.2rem); margin-inline: auto; max-width: 24rem;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem .8rem; padding: .85rem 2.2rem .85rem .85rem; border-radius: 24px;
  color: var(--ink); background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: 0 18px 44px -14px rgba(15, 28, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
  opacity: 0; transform: translateY(1.4rem) scale(.96); transition: transform .6s cubic-bezier(.32, .72, 0, 1), opacity .4s ease, bottom .5s cubic-bezier(.32, .72, 0, 1); }
.pwa-card.is-in { opacity: 1; transform: none; }
body.tab-away .pwa-card { bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
.pwa-ico { width: 3rem; height: 3rem; border-radius: 14px; box-shadow: 0 6px 14px -6px rgba(15, 28, 20, .6); }
.pwa-txt { display: grid; gap: .2rem; min-width: 0; }
.pwa-txt b { font: 600 .92rem/1.2 var(--sans); }
.pwa-txt small { color: var(--muted); font: 400 .78rem/1.35 var(--sans); }
.pwa-share { display: inline-block; vertical-align: -.25em; color: var(--accent); }
.pwa-go { padding: .65rem 1.05rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: transform .3s cubic-bezier(.32, .72, 0, 1); }
.pwa-go:active { transform: scale(.94); }
.pwa-x { position: absolute; top: .3rem; inset-inline-end: .45rem; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pwa-card { transition: opacity .2s; transform: none; } }

/* Notifications : icône de la carte, lien du pied de page */
.push-ico { display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: 0 6px 14px -6px rgba(15, 28, 20, .6); }
.push-toggle { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; text-decoration: none; }
.push-toggle:hover { text-decoration: underline; }

/* =====================================================================================
   RESSENTI « APPLICATION iOS » (téléphone)
   ===================================================================================== */

/* ---- Transitions de page : glissement iOS, la barre du bas reste en place ---- */
@media (max-width: 759px) and (prefers-reduced-motion: no-preference) {
  :root { --vt-dir: 1; }
  html[dir="rtl"] { --vt-dir: -1; }
  .tabbar { view-transition-name: rtq-tabbar; }
  ::view-transition-group(rtq-tabbar) { animation: none; }
  ::view-transition-old(rtq-tabbar) { display: none; }
  ::view-transition-new(rtq-tabbar) { animation: none; mix-blend-mode: normal; }

  /* avancer : la nouvelle page glisse depuis le bord, l'ancienne recule en s'assombrissant */
  :root:active-view-transition-type(forward):not(:active-view-transition-type(product))::view-transition-old(root) { animation: rtq-push-old .5s cubic-bezier(.32, .72, 0, 1) both; mix-blend-mode: normal; z-index: 1; }
  :root:active-view-transition-type(forward):not(:active-view-transition-type(product))::view-transition-new(root) { animation: rtq-push-new .5s cubic-bezier(.32, .72, 0, 1) both; mix-blend-mode: normal; z-index: 2; box-shadow: calc(var(--vt-dir) * -14px) 0 36px rgba(15, 28, 20, .28); }
  /* reculer : la page actuelle repart vers le bord, la précédente réapparaît dessous */
  :root:active-view-transition-type(back)::view-transition-old(root) { animation: rtq-pop-old .46s cubic-bezier(.32, .72, 0, 1) both; mix-blend-mode: normal; z-index: 2; box-shadow: calc(var(--vt-dir) * -14px) 0 36px rgba(15, 28, 20, .28); }
  :root:active-view-transition-type(back)::view-transition-new(root) { animation: rtq-pop-new .46s cubic-bezier(.32, .72, 0, 1) both; mix-blend-mode: normal; z-index: 1; }
  /* onglets de la barre du bas : fondu, comme les onglets d'iOS */
  :root:active-view-transition-type(tab)::view-transition-old(root) { animation: rtq-tab-out .16s ease both; }
  :root:active-view-transition-type(tab)::view-transition-new(root) { animation: rtq-tab-in .34s cubic-bezier(.32, .72, 0, 1) both; }
  @keyframes rtq-push-new { from { transform: translateX(calc(var(--vt-dir, 1) * 100%)); } }
  @keyframes rtq-push-old { to { transform: translateX(calc(var(--vt-dir, 1) * -24%)); filter: brightness(.82); } }
  @keyframes rtq-pop-old { to { transform: translateX(calc(var(--vt-dir, 1) * 100%)); } }
  @keyframes rtq-pop-new { from { transform: translateX(calc(var(--vt-dir, 1) * -24%)); filter: brightness(.82); } }
  @keyframes rtq-tab-out { to { opacity: 0; } }
  @keyframes rtq-tab-in { from { opacity: 0; transform: scale(.985); } }
}

/* ---- Ajout au panier : la pièce s'envole vers le panier ---- */
.fly-ghost { position: fixed; z-index: 400; pointer-events: none; border-radius: 18px; background: var(--media, #ddd) center / cover no-repeat; box-shadow: 0 14px 34px -10px rgba(15, 28, 20, .55); will-change: transform; }
@keyframes cart-bump { 0% { transform: scale(1); } 30% { transform: scale(1.32) rotate(-8deg); } 55% { transform: scale(.92) rotate(5deg); } 80% { transform: scale(1.08); } 100% { transform: scale(1); } }
.cart-bump { animation: cart-bump .6s cubic-bezier(.34, 1.56, .64, 1); }
.cart-bump .cnt { animation: cart-bump .6s cubic-bezier(.34, 1.56, .64, 1) .08s; }
@keyframes shake-x { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.sizes.shake { animation: shake-x .45s cubic-bezier(.36, .07, .19, .97); }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--bg) 35%, transparent); border-top-color: var(--bg); animation: ptr-spin .7s linear infinite; }
.toast { animation: toast-in .5s cubic-bezier(.32, .72, 0, 1) both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(1.2rem) scale(.94); } }

/* ---- Tirer pour actualiser (application installée) ---- */
.ptr { position: fixed; z-index: 310; left: 50%; top: calc(env(safe-area-inset-top, 0px) + .5rem); width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; opacity: 0; transform: translate(-50%, -40px);
  color: var(--ink); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 8px 24px -8px rgba(15, 28, 20, .45); pointer-events: none; }
.ptr.is-ready { color: var(--accent); }
.ptr.is-spin svg { animation: ptr-spin .7s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* ---- Gestes tactiles : pas de menu de copie / sélection sur les éléments d'interface, comme dans une application ---- */
@media (hover: none) and (pointer: coarse) {
  a, button, .tabbar, .hd, .pcard, .btn, .chip, summary, label.size, .swatch, .topbar, .footer a { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
  .drawer-bg { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .drawer-panel { box-shadow: 0 0 60px rgba(10, 22, 15, .35); }
  body.drawer-open .drawer-panel { animation: drawer-in .5s cubic-bezier(.32, .72, 0, 1) backwards; }
  @keyframes drawer-in { from { transform: translateX(-102%); } }
  html[dir="rtl"] body.drawer-open .drawer-panel { animation-name: drawer-in-rtl; }
  @keyframes drawer-in-rtl { from { transform: translateX(102%); } }
}
@media (prefers-reduced-motion: reduce) { .fly-ghost, .ptr { display: none; } .cart-bump, .cart-bump .cnt, .sizes.shake { animation: none; } }
:root { --tab-b: max(.15rem, calc(env(safe-area-inset-bottom, 0px) - 1rem)); }

/* =====================================================================================
   EXPÉRIENCE « APPLICATION MOBILE » : barre d'en-tête, Mon espace, recherche, galerie, mini-barre, panier, paiement…
   ===================================================================================== */
.hd-back, .hd-title, .hd-searchbtn { display: none; }
.hx { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (max-width: 759px) {
  /* en-tête sur une seule ligne : flèche retour (ou menu), logo / titre, recherche et panier */
  .hd-in { grid-template-areas: "menu logo tools"; padding-block: .35rem; }
  .hd-search { display: none; }
  .hd-tools .lang-switch, .hd-tools .theme-toggle { display: none; }
  .hd-tools .hd-searchbtn { display: grid; }
  .hd-back { grid-area: menu; width: 2.75rem; height: 2.75rem; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .3s var(--ease), background .25s; }
  .hd-back:active { transform: scale(.88); background: color-mix(in srgb, var(--ink) 10%, transparent); }
  html[dir="rtl"] .hd-back svg { transform: scaleX(-1); }
  body.is-sub .hd-back { display: grid; }
  body.is-sub .drawer { display: none; }
  .hd-title { display: block; grid-area: logo; justify-self: center; max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 1rem/1.2 var(--sans); letter-spacing: -.005em; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .4s var(--ease); pointer-events: none; }
  .hd.is-titled .hd-title { opacity: 1; transform: none; }
  .hd .logo { transition: opacity .25s; }
  .hd.is-titled .logo { opacity: 0; }
  /* plus de pied de page sur téléphone : tout est dans l'onglet « Mon espace » */
  .footer, .trust { display: none; }
}

/* ----- Mon espace (réglages façon iOS) ----- */
.myspace { padding-block: 1rem 3rem; }
.more-title { margin: .4rem 0 1.2rem; font: 700 2.1rem/1.1 var(--sans); letter-spacing: -.02em; }
.ios-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease); }
.ios-card:active { transform: scale(.98); }
.ios-profile .avatar { flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 1.3rem/1 var(--sans); }
.ios-profile .avatar .i { width: 1.5rem; height: 1.5rem; }
.ios-profile .who { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.ios-profile .who b { font: 600 1.05rem/1.2 var(--sans); }
.ios-profile .who small { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .82rem; }
.ios-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .8rem; }
.ios-actions .btn { min-height: 3rem; padding: 0 1rem; letter-spacing: .1em; }
.ios-h { margin: 1.8rem .5rem .55rem; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ios-list { margin: 0; padding: 0; list-style: none; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ios-list > li { position: relative; }
.ios-list > li + li::before { content: ""; position: absolute; top: 0; inset-inline: 3.9rem 0; border-top: 1px solid var(--line); }
.ios-list a, .ios-list button { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 3.4rem; padding: .7rem 1rem; border: 0; background: none; color: var(--ink); font: 400 1rem/1.2 var(--sans); text-align: start; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s; }
.ios-list a:active, .ios-list button:active { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ico-sq { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--ink); color: #fff; }
.ico-sq .i { width: 1.1rem; height: 1.1rem; }
.ico-sq.rose { background: #D1566A; } .ico-sq.green { background: #2F7A55; } .ico-sq.blue { background: #3B7BD8; } .ico-sq.amber { background: #C98A1E; } .ico-sq.wa { background: #25A667; } .ico-sq.dark { background: #3A463D; }
.ios-list .lbl { flex: 1; min-width: 0; }
.ios-list .lbl small { display: block; margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.ios-list .val { color: var(--muted); font-size: .92rem; }
.ios-list > li > a > .i:last-child, .ios-list > li > button > .i:last-child, .ios-profile > .i { flex: none; width: 1rem; height: 1rem; color: var(--muted); opacity: .7; transform: rotate(-90deg); }
html[dir="rtl"] .ios-list > li > a > .i:last-child, html[dir="rtl"] .ios-list > li > button > .i:last-child, html[dir="rtl"] .ios-profile > .i { transform: rotate(90deg); }
.ios-switch { position: relative; flex: none; width: 3rem; height: 1.85rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: background .3s; }
.ios-switch::after { content: ""; position: absolute; top: .15rem; inset-inline-start: .15rem; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
[aria-checked="true"] > .ios-switch { background: #34C759; }
[aria-checked="true"] > .ios-switch::after { transform: translateX(1.15rem); }
html[dir="rtl"] [aria-checked="true"] > .ios-switch::after { transform: translateX(-1.15rem); }
.ios-danger { margin-top: 1.6rem; }
.ios-danger button { justify-content: center; color: var(--sale); font-weight: 500; }
.ios-foot { margin: 1.6rem 0 0; text-align: center; color: var(--muted); font-size: .78rem; }

/* ----- Recherche plein écran ----- */
.srch { position: fixed; inset: 0; z-index: 500; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); background: var(--bg); opacity: 0; transform: translateY(1.4rem); transition: opacity .3s ease, transform .5s cubic-bezier(.32, .72, 0, 1); }
.srch[hidden] { display: none; }
.srch.is-open { opacity: 1; transform: none; }
.srch-bar { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; }
.srch-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; height: 2.8rem; padding: 0 .85rem; border-radius: 14px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.srch-field .i { flex: none; width: 1.15rem; height: 1.15rem; color: var(--muted); }
.srch-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 1rem/1.2 var(--sans); -webkit-appearance: none; appearance: none; }
.srch-clear { flex: none; width: 1.4rem; height: 1.4rem; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--bg); font-size: 1rem; line-height: 1; cursor: pointer; }
.srch-cancel { flex: none; border: 0; background: none; color: var(--accent); font: 500 1rem/1 var(--sans); cursor: pointer; }
.srch-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .2rem 1rem 2rem; }
.srch-body h2 { display: flex; align-items: center; justify-content: space-between; margin: 1.4rem 0 .6rem; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.srch-body h2 button { border: 0; background: none; color: var(--accent); font: 500 .8rem/1 var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; }
.srch-recent { margin: 0; padding: 0; list-style: none; }
.srch-recent button { display: block; width: 100%; padding: .85rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 400 1rem/1.2 var(--sans); text-align: start; cursor: pointer; }
.srch-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.srch-chips a { padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font: 400 .92rem/1 var(--sans); background: var(--surface); }
.srch-chips a.hot { color: var(--sale); border-color: color-mix(in srgb, var(--sale) 40%, transparent); }
.srch-chips a:active { transform: scale(.95); }
body.srch-lock, body.lb-lock { overflow: hidden; }

/* ----- Images : squelette qui brille, puis fondu ----- */
.img-wait { opacity: 0; }
.img-in { animation: img-in .6s cubic-bezier(.32, .72, 0, 1) both; }
@keyframes img-in { from { opacity: 0; transform: scale(1.04); filter: blur(8px); } }
.skel { position: relative; }
.skel::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--ink) 9%, transparent) 50%, transparent 80%) 120% 0 / 220% 100% no-repeat; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }

/* ----- Fiche produit : points, partage, cœur, plein écran ----- */
.gal-wrap { position: relative; }
.gal-share { position: absolute; z-index: 5; top: .7rem; inset-inline-end: .9rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 6px 18px -8px rgba(15, 28, 20, .5); transition: transform .3s var(--ease); }
.gal-share:active { transform: scale(.88); }
.gal-dots { position: relative; z-index: 4; display: flex; justify-content: center; gap: .4rem; height: 0; transform: translateY(-1.7rem); pointer-events: none; }
.gal-dots i { width: .42rem; height: .42rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 28%, transparent); transition: width .4s cubic-bezier(.32, .72, 0, 1), background .3s; }
.gal-dots i.on { width: 1.2rem; background: var(--ink); }
.heart-burst { position: fixed; z-index: 420; color: #fff; pointer-events: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .4)); animation: heart-pop .85s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes heart-pop { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; } 45% { transform: translate(-50%, -50%) scale(.95); } 70% { transform: translate(-50%, -58%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -90%) scale(1); opacity: 0; } }
.lb { position: fixed; inset: 0; z-index: 450; display: grid; background: rgba(8, 16, 11, .96); touch-action: none; animation: lb-in .35s ease both; }
.lb.is-out { animation: lb-out .28s ease both; }
@keyframes lb-in { from { opacity: 0; } } @keyframes lb-out { to { opacity: 0; } }
.lb-stage { display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 50% 50%; -webkit-user-drag: none; user-select: none; will-change: transform; mix-blend-mode: normal; }
.lb-x { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + .7rem); inset-inline-end: 1rem; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lb-count { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 1.2rem); inset-inline-start: 1.2rem; color: #fff; font: 500 .85rem/1 var(--sans); opacity: .8; }

/* ----- Mini-barre « Ajouté au panier » ----- */
.minicart { position: fixed; z-index: 260; left: .8rem; right: .8rem; bottom: calc(var(--tab-b) + 4.2rem); margin-inline: auto; max-width: 26rem; display: flex; align-items: center; gap: .8rem; padding: .55rem; border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 22px; color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 18px 44px -14px rgba(15, 28, 20, .5); opacity: 0; transform: translateY(1.4rem) scale(.96); transition: transform .55s cubic-bezier(.32, .72, 0, 1), opacity .35s; touch-action: none; }
body.no-tabbar .minicart { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
.minicart.is-in { opacity: 1; transform: none; }
.mc-img { flex: none; width: 3rem; height: 3.7rem; overflow: hidden; border-radius: 12px; background: var(--media); }
.mc-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.mc-txt { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.mc-txt b { font: 600 .92rem/1.2 var(--sans); }
.mc-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font: 400 .78rem/1.2 var(--sans); }
.mc-go { flex: none; padding: .65rem 1rem; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

/* ----- Panier : glisser pour supprimer ; totaux qui comptent ----- */
.cart-line.swipe { position: relative; display: block; padding: 0; overflow: hidden; transition: height .38s cubic-bezier(.32, .72, 0, 1), opacity .3s; }
.cl-slide { position: relative; z-index: 1; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .8rem 1.2rem; padding: 1.4rem 0; background: var(--bg); touch-action: pan-y; }
@media (min-width: 640px) { .cl-slide { grid-template-columns: 7.5rem minmax(0, 1fr) auto; } }
.cl-del { position: absolute; z-index: 0; top: 0; bottom: 0; inset-inline-end: 0; width: 96px; border: 0; background: var(--sale-bg); color: #fff; font: 600 .85rem/1 var(--sans); cursor: pointer; }
.cart-line.is-removing { height: 0 !important; opacity: 0; border-bottom-width: 0; }
.counting { color: var(--accent); }

/* ----- Paiement : bouton fixe en bas ----- */
@media (max-width: 759px) {
  .cta-bar { position: sticky; bottom: 0; z-index: 30; margin: 1rem calc(var(--gut, 1rem) * -1) 0; padding: .9rem var(--gut, 1rem) calc(.9rem + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 64%, transparent); }
}

/* ----- Confirmation de commande : coche dessinée + confettis ----- */
.confirm .ok.ok-anim { animation: ok-pop .8s cubic-bezier(.34, 1.56, .64, 1) both; }
.confirm .ok.ok-anim svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: ok-draw .6s .4s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes ok-pop { 0% { transform: scale(.3); opacity: 0; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); box-shadow: 0 0 0 1.4rem transparent; } }
@keyframes ok-draw { to { stroke-dashoffset: 0; } }
.confetti { position: fixed; z-index: 380; width: .5rem; height: .9rem; border-radius: 2px; pointer-events: none; }

/* ----- Appui long sur une carte : menu d'actions ----- */
.pcard.lp-held { transform: scale(.95); transition: transform .3s cubic-bezier(.32, .72, 0, 1); }
.asheet { position: fixed; inset: 0; z-index: 470; }
.as-bg { position: absolute; inset: 0; background: rgba(10, 22, 15, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.as-panel { position: absolute; left: .7rem; right: .7rem; bottom: calc(.7rem + env(safe-area-inset-bottom, 0px)); max-width: 26rem; margin-inline: auto; display: grid; transform: translateY(115%); transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
.asheet.is-in .as-bg { opacity: 1; } .asheet.is-in .as-panel { transform: none; }
.as-title { margin: 0; padding: .95rem 1rem .6rem; border-radius: 18px 18px 0 0; text-align: center; color: var(--muted); font: 500 .85rem/1.3 var(--sans); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.as-act { display: block; width: 100%; padding: 1rem; border: 0; border-top: 1px solid var(--line); text-align: center; text-decoration: none; cursor: pointer; color: var(--accent); font: 500 1.05rem/1.2 var(--sans); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.as-act:active { background: color-mix(in srgb, var(--ink) 9%, var(--surface)); }
.as-act:nth-last-child(2) { border-radius: 0 0 18px 18px; }
.as-cancel { margin-top: .5rem; border-top: 0; border-radius: 18px; font-weight: 600; }

/* ----- Hors connexion ----- */
.offline-pill { position: fixed; z-index: 480; top: calc(env(safe-area-inset-top, 0px) + .6rem); left: 50%; padding: .55rem 1.1rem; border-radius: 999px; background: #1B2D22; color: #F7EEDC; font: 600 .78rem/1 var(--sans); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .6); transform: translate(-50%, -190%); transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
.offline-pill.is-in { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { .img-in, .heart-burst, .confirm .ok.ok-anim, .confirm .ok.ok-anim svg path, .skel::after { animation: none !important; } .confetti { display: none; } }

.app-note { display: none; }
/* =====================================================================================
   « LOOK MAX » TÉLÉPHONE : police système, boutons / titres / formulaires façon iOS, barre translucide, accueil en cartes arrondies
   ===================================================================================== */
@media (max-width: 759px) {
  /* police du système : San Francisco sur iPhone, Roboto sur Android (le logo garde son serif) */
  html:not([dir="rtl"]) { --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; --serif: var(--sans); --display: var(--sans); }
  body { font-size: 1.0625rem; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; caret-color: var(--accent); accent-color: var(--accent); }
  * { scrollbar-width: none; }
  *::-webkit-scrollbar { display: none; }

  /* grands titres iOS */
  main h1, .page-title, .more-title { font: 700 2.125rem/1.1 var(--sans); letter-spacing: -.025em; text-transform: none; }
  .blk-head { justify-content: space-between; align-items: center; text-align: start; margin-bottom: .85rem; }
  .blk-head h2 { font: 700 1.5rem/1.15 var(--sans); letter-spacing: -.022em; text-transform: none; }
  .blk-head .more { display: inline-flex; padding: 0; border: 0; color: var(--accent); font: 500 1rem/1 var(--sans); letter-spacing: 0; text-transform: none; }
  .blk-head .more .i { width: .85rem; height: .85rem; transform: rotate(0deg); }

  /* boutons iOS : rectangle arrondi, texte en casse normale */
  .btn { min-height: 3.1rem; padding: 0 1.4rem; border-radius: 14px; font: 600 1.0625rem/1 var(--sans); letter-spacing: -.01em; text-transform: none; }
  .btn-lg { min-height: 3.3rem; }
  .btn-ghost { border-color: transparent; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
  .link { font: 500 1rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
  .hp-btn { padding: .95rem 1.7rem; font: 600 1rem/1 var(--sans); letter-spacing: -.01em; text-transform: none; }
  .size, .swatch, .chip, .qty button { -webkit-tap-highlight-color: transparent; transition: transform .3s var(--ease); }
  .size:active, .swatch:active, .chip:active { transform: scale(.93); }

  /* formulaires : champs remplis, étiquette discrète au-dessus */
  .form label { gap: .4rem; padding-inline: .2rem; font: 400 .8125rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
  .form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea { min-height: 3.1rem; padding: 0 1rem; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.0625rem; letter-spacing: -.011em; }
  .form textarea { padding-block: .8rem; }
  .form input:focus, .form select:focus, .form textarea:focus { border: 0; box-shadow: 0 0 0 2px var(--accent); }

  /* barre du haut : matière translucide, filet fin ; plus de bandeau promo (remplacé par les cartes de l'accueil) */
  .topbar { display: none; }
  .hd::before { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 .5px 0 color-mix(in srgb, var(--ink) 14%, transparent); }

  /* accueil : l'en-tête n'est plus posé sur la photo ; la photo devient une carte arrondie */
  .is-home .hd { margin-bottom: 0; }
  .is-home:has(.hero-photo) .hd:not(.is-solid) { --ink: unset; --ink-2: unset; --muted: unset; --bg: unset; --line: unset; --surface: unset; --field: unset; --accent: unset; --sale: unset; color: var(--ink); }
  .is-home:has(.hero-photo) .hd:not(.is-solid)::before { opacity: 1; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); }
  html:not([data-theme="dark"]) .is-home:has(.hero-photo) .hd:not(.is-solid) .logo-mark { filter: none; }
  @media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .is-home:has(.hero-photo) .hd:not(.is-solid) .logo-mark { filter: brightness(0) invert(1); } }
  .hero-photo { margin: .35rem .8rem 0; border-radius: 28px; min-height: min(calc(100svh - 15rem), 34rem); box-shadow: 0 22px 44px -22px rgba(15, 28, 20, .6); }
  .hero-photo .hp-img { top: 0; height: 100%; }
  .hero-photo.has-mob { min-height: calc((100vw - 1.6rem) * 1.25); }
  .hp-copy { padding: 1rem 1.2rem 1.5rem; }
  .app-note { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
  .app-note > div { display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
  .app-note .i { flex: none; width: 1.5rem; height: 1.5rem; color: var(--accent); }
  .app-note b { display: block; font: 600 .86rem/1.15 var(--sans); letter-spacing: -.01em; }
  .app-note small { display: block; margin-top: .1rem; color: var(--muted); font: 400 .74rem/1.2 var(--sans); }

  /* cartes produit */
  .pcard .pc-media { border-radius: 18px; overflow: hidden; }
  .pc-name { font: 500 .95rem/1.25 var(--sans); letter-spacing: -.01em; text-transform: none; }
  .toast { border-radius: 16px; font: 500 .95rem/1.3 var(--sans); letter-spacing: -.01em; text-transform: none; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .wa-float { width: 3.3rem; height: 3.3rem; }
  .wa-float svg { width: 1.75rem; height: 1.75rem; }
  /* clavier ouvert : la barre du bas et le bouton WhatsApp s'effacent */
  body.kb-open .tabbar, body.kb-open .wa-float, body.kb-open .minicart { transform: translateY(160%); opacity: 0; pointer-events: none; }
}

/* =====================================================================================
   NOUVELLE GÉNÉRATION : vrais ressorts (CSS linear()), verre liquide, animations liées au défilement, ombres et dégradés modernes
   ===================================================================================== */
:root { --spring: linear(0, 0.0466, 0.1632, 0.3184, 0.4869, 0.65, 0.7948, 0.9142, 1.0052, 1.0685, 1.1066, 1.124, 1.1252, 1.115, 1.0978, 1.0771, 1.0559, 1.0361, 1.0191, 1.0055, 0.9955, 0.9889, 0.9853, 0.9841, 0.9846, 0.9863, 0.9887, 0.9914, 0.994, 0.9964, 0.9984, 0.9999, 1.001, 1.0016, 1.002, 1.002, 1.0019, 1.0016, 1.0013, 1.0009, 1); --spring-soft: linear(0, 0.0327, 0.1132, 0.2197, 0.3368, 0.4536, 0.563, 0.6609, 0.7454, 0.816, 0.8732, 0.9182, 0.9525, 0.9778, 0.9955, 1.0074, 1.0147, 1.0185, 1.0199, 1.0195, 1.0181, 1.0161, 1.0138, 1.0115, 1.0092, 1.0072, 1.0055, 1.004, 1.0028, 1.0018, 1.0011, 1.0006, 1.0002, 0.9999, 0.9997, 0.9996, 0.9996, 0.9996, 0.9996, 0.9997, 1); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
h1, h2, .hp-title, .blk-head h2 { text-wrap: balance; }
p, .lbl small, .mc-txt small { text-wrap: pretty; }
.pc-price, .big-price, .summary dd, .mc-txt small { font-variant-numeric: tabular-nums; }
@media (color-gamut: p3) { :root { --gold: color(display-p3 .82 .64 .33); } }

@media (max-width: 759px) {
  /* ---------- verre liquide : reflets sur les bords, matière lumineuse, profondeur ---------- */
  :root { --glass: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .1) 55%, rgba(255, 255, 255, .22)); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(255, 255, 255, .22), inset 0 0 22px rgba(255, 255, 255, .1); }
  :root[data-theme="dark"] { --glass: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .09)); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 22px rgba(255, 255, 255, .04); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glass: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .09)); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 22px rgba(255, 255, 255, .04); } }
  .tabbar, .minicart, .pwa-card, .toast, .gal-share, .as-title, .as-act, .ptr, .srch-field {
    background: var(--glass), color-mix(in srgb, var(--surface) 52%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(2.1) brightness(1.04); backdrop-filter: blur(20px) saturate(2.1) brightness(1.04);
    border: .5px solid rgba(255, 255, 255, .38);
    box-shadow: var(--glass-edge), 0 18px 40px -14px rgba(15, 28, 20, .38);
  }
  .tabbar { position: fixed; overflow: hidden; }
  .tabbar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) -120% 0 / 60% 100% no-repeat; }
  .tabbar.sheen::after { animation: sheen .9s cubic-bezier(.32, .72, 0, 1); }
  @keyframes sheen { to { background-position: 260% 0; } }
  .hd::before { background: var(--glass), color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(26px) saturate(2); backdrop-filter: blur(26px) saturate(2); box-shadow: 0 .5px 0 color-mix(in srgb, var(--ink) 14%, transparent), inset 0 -1px 0 rgba(255, 255, 255, .25); }

  /* ---------- ressorts physiques (rebond naturel) ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .tab-pill { transition: transform .85s var(--spring), opacity .25s; }
    .tabbar { transition: transform .8s var(--spring-soft), opacity .35s ease; }
    .minicart { transition: transform .8s var(--spring), opacity .35s; }
    .as-panel { transition: transform .8s var(--spring-soft); }
    .pwa-card { transition: transform .8s var(--spring), opacity .4s, bottom .6s var(--spring-soft); }
    .srch { transition: opacity .3s ease, transform .7s var(--spring-soft); }
    .btn, .size, .swatch, .chip, .ios-card, .hd-back, .gal-share { transition: transform .5s var(--spring), background-color .25s, color .25s, box-shadow .25s; }
    .btn:active, .size:active, .swatch:active, .chip:active, .ios-card:active { transform: scale(.95); }
    .ios-switch::after { transition: transform .55s var(--spring); }
  }

  /* ---------- animations liées au défilement (Chrome, Safari 26) ---------- */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .hero-photo .hp-img { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
      .hero-photo .hp-copy { animation: hero-copy linear both; animation-timeline: scroll(root); animation-range: 0 45vh; }
      @keyframes hero-parallax { to { transform: translateY(9%) scale(1.1); } }
      @keyframes hero-copy { to { opacity: 0; transform: translateY(-28px) scale(.96); } }
      .pcard, .app-note > div, .hrv-item, .rv-card { animation: card-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
      @keyframes card-in { from { opacity: 0; transform: translateY(34px) scale(.95); filter: blur(7px); } }
      .gallery > img { animation: gal-tilt linear both; animation-timeline: view(inline); }
      @keyframes gal-tilt { 0% { transform: perspective(900px) rotateY(22deg) scale(.9); opacity: .55; } 50% { transform: none; opacity: 1; } 100% { transform: perspective(900px) rotateY(-22deg) scale(.9); opacity: .55; } }
      .hd .hd-title { animation: title-in linear both; animation-timeline: scroll(root); animation-range: 60px 140px; }
      @keyframes title-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    }
  }
  /* bords de défilement : le contenu se fond sous la barre du bas, comme iOS 26 */
  html::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tab-b) + 5.2rem); pointer-events: none;
    background: linear-gradient(to top, color-mix(in srgb, var(--bg) 88%, transparent), transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to top, #000 35%, transparent); mask-image: linear-gradient(to top, #000 35%, transparent); }
  html:has(body.no-tabbar)::after { display: none; }
  html:has(body.kb-open)::after { opacity: 0; }

  /* ---------- cartes d'avantages : liseré lumineux animé ---------- */
  .app-note > div { position: relative; }
  .app-note > div::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--ang), transparent 0 62%, var(--gold, #C2A06A) 80%, transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: spin-ang 6s linear infinite; }
  @keyframes spin-ang { to { --ang: 360deg; } }
  .block:not(:first-of-type) { content-visibility: auto; contain-intrinsic-size: auto 540px; }

  /* ---------- récemment consulté ---------- */
  .rv-row { display: flex; gap: .8rem; margin: 0 calc(var(--gut, 1rem) * -1); padding: .2rem var(--gut, 1rem) .6rem; overflow-x: auto; scroll-snap-type: x proximity; }
  .rv-card { flex: none; width: 8.2rem; display: grid; gap: .4rem; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
  .rv-card .rv-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--media); box-shadow: 0 12px 26px -16px rgba(15, 28, 20, .55); }
  .rv-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
  .rv-card b { font: 500 .85rem/1.2 var(--sans); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rv-card small { color: var(--muted); font: 400 .78rem/1 var(--sans); font-variant-numeric: tabular-nums; }
  .rv-card:active { transform: scale(.96); }
}

/* ---------- animation de lancement (application installée) ---------- */
.launch { position: fixed; inset: 0; z-index: 900; display: grid; place-content: center; justify-items: center; gap: 1.1rem; background: radial-gradient(90% 90% at 50% 40%, #2F4A3A, #16261D); transition: opacity .55s ease, transform .7s cubic-bezier(.32, .72, 0, 1); }
.launch.is-out { opacity: 0; transform: scale(1.08); pointer-events: none; }
.launch img { width: 8rem; height: auto; filter: brightness(0) invert(1); opacity: 0; transform: scale(.7); animation: launch-in .9s var(--spring) .1s forwards; }
.launch span { color: #F7EEDC; font: 600 1.3rem/1 Georgia, "Times New Roman", serif; letter-spacing: .3em; text-transform: uppercase; opacity: 0; animation: launch-fade .6s ease .55s forwards; }
@keyframes launch-in { to { opacity: 1; transform: none; } }
@keyframes launch-fade { to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .launch img, .launch span { animation: none; opacity: 1; transform: none; } .app-note > div::before { animation: none; } }

/* ---------- vidéo explicative d'installation ---------- */
.pwa-vlink { justify-self: start; margin-top: .15rem; padding: 0; border: 0; background: none; color: var(--accent); font: 600 .82rem/1.2 var(--sans); cursor: pointer; }
.demo { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem); }
.demo-bg { position: absolute; inset: 0; background: rgba(8, 16, 11, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .4s ease; }
.demo-panel { position: relative; width: min(100%, calc((100svh - 2.5rem) * .45), 26rem); aspect-ratio: 720 / 1600; border-radius: 28px; overflow: hidden; background: #0b130f; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(210, 180, 122, .35); transform: translateY(2.5rem) scale(.94); opacity: 0; transition: transform .8s var(--spring, cubic-bezier(.32, .72, 0, 1)), opacity .4s; }
.demo.is-in .demo-bg { opacity: 1; } .demo.is-in .demo-panel { transform: none; opacity: 1; }
.demo-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0b130f; }
.demo-x { position: absolute; z-index: 2; top: .6rem; inset-inline-end: .6rem; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.demo-lock { overflow: hidden; }
