/* ==========================================================================
   SEVEN KLOWNS — Design system
   1. Tokens   2. Base   3. Mise en page   4. Composants
   5. En-tête / pied de page   6. Sections & pages   7. Animations
   ========================================================================== */

/* Polices hébergées sur le site (aucune requête vers Google) — sous-ensembles latin + latin étendu */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/polices/bodoni-italique-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/polices/bodoni-italique-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/polices/bodoni-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/polices/bodoni-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/polices/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/polices/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Couleurs — contrastes sur blanc : texte 18,9:1, muted 5,6:1, or 5:1, bordure forte 3,4:1 */
  --c-bg: #FFFFFF;
  --c-surface: #F5F4F2;       /* gris chaud : sections alternées, panneaux */
  --c-line: #E4E2DE;          /* filets décoratifs */
  --c-line-strong: #8F8A82;   /* contours des champs et boutons de taille (WCAG 3:1) */
  --c-text: #111111;
  --c-muted: #6B6760;
  --c-gold: #8A6A2E;          /* or vieilli : seul ton lisible sur blanc */
  --c-ivory: #FFFFFF;
  --c-ink: #111111;
  --c-ink-muted: #45413B;
  --c-bronze: #8A6A2E;
  --c-error: #C8262E;

  /* Typographies — 2 polices maximum */
  --f-display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --f-text: "Manrope", system-ui, sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --fs-h1: clamp(2.75rem, 1.4rem + 6.5vw, 6.5rem);
  --track: .18em;

  /* Espacements */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2.5rem;
  --s-6: 4rem;
  --s-7: clamp(3rem, 2rem + 4vw, 5.5rem);   /* sections : respiration sans grands vides */
  --container: 1320px;
  --gutter: clamp(1rem, .4rem + 2.5vw, 3rem);
  --header-h: 64px;
  --sticky-top: calc(var(--header-h) + var(--s-4)); /* sous l'en-tête collant */
  --chrome-h: calc(var(--header-h) + 40px); /* en-tête + bandeau noir */

  /* Mouvement */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .5s;
  color-scheme: light;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 var(--fs-md)/1.65 var(--f-text);   /* 400 : lisible en plein soleil sur mobile */
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "opsz" 11; /* déliés solides : titres lisibles même en très grand (l'optique 96 les rend presque invisibles) */
  line-height: 1.08;
  letter-spacing: .005em;   /* titres : capitales non écartées (lecture d'un seul tenant) */
  text-wrap: balance;
  text-transform: uppercase;
  margin: 0 0 var(--s-3);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s-3); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--c-text); color: var(--c-bg); }

.eyebrow {
  font: 500 var(--fs-xs)/1.2 var(--f-text);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--s-3);
}
.lead { font-size: var(--fs-lg); color: var(--c-muted); max-width: 54ch; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--c-muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* 3. MISE EN PAGE ---------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: var(--s-7); }
.section--tight { padding-block: var(--s-6); }
.section--light { background: var(--c-surface); color: var(--c-ink); }
.section--light .eyebrow { color: var(--c-bronze); }
.section--light .lead { color: var(--c-ink-muted); }
.section__head {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  justify-content: space-between; align-items: end;
  margin-bottom: var(--s-5);
}
.section__head h2 { margin: 0; }

.grid { display: grid; gap: var(--s-5) var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 599px) { .grid--3 { grid-template-columns: 1fr; } }   /* pièces signature : pleine largeur sur mobile */
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }

.page-head { padding-block: var(--s-5) var(--s-4); text-align: center; }
.page-head h1 { font-size: var(--fs-h2); }
.page-head .lead { margin-inline: auto; }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--s-5); }
.prose p, .prose li { color: var(--c-text); }
.prose ul { padding-left: 1.2em; }

/* 4. COMPOSANTS ------------------------------------------------------------ */

/* Ornement signature : filet doré + losange éclaté */
.rule { display: flex; align-items: center; gap: var(--s-3); color: var(--c-gold); margin-block: var(--s-4); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; }

/* Boutons — 1 seul primaire par section */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 2rem;
  border: 1px solid var(--c-text); background: transparent; color: var(--c-text);
  font: 500 var(--fs-xs)/1 var(--f-text); letter-spacing: var(--track); text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.btn:hover { background: var(--c-text); color: var(--c-bg); }
.btn--primary { background: var(--c-text); color: var(--c-bg); }
.btn--primary:hover { background: #2B2B2B; }
/* Reflet métallique au survol */
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .6s var(--ease);
}
.btn:hover::after { transform: translateX(110%); }
.btn--block { width: 100%; }
.btn--lg { min-height: 60px; font-size: var(--fs-sm); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]::after { display: none; }
.section--light .btn { border-color: var(--c-ink); color: var(--c-ink); }
.section--light .btn:hover { background: var(--c-ink); color: var(--c-bg); }

.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font-size: var(--fs-sm); letter-spacing: .06em;
  text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 5px;
}
.link:hover { color: var(--c-gold); }

/* Badges */
.badge {
  display: inline-block; margin: 0 0 var(--s-3);
  padding: .5em .85em;
  border: 1px solid var(--c-gold); color: var(--c-gold); background: rgba(255, 255, 255, .92);
  font: 500 .6875rem/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase;
}

/* Médias 4:5 + emplacement vide */
.media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-surface); }
.media > img, .media > video, .media > .placeholder {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.placeholder {
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 35%, #FBFAF8, var(--c-surface));
  color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: var(--track); text-transform: uppercase;
}

/* Carte produit */
.card__link { display: block; text-decoration: none; }
@media (hover: hover) { .card:hover .media > :first-child { transform: scale(1.04); } }
/* Survol : la photo de dos remplace la face (la 2e photo du produit) */
.media > .media__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
@media (hover: hover) { .card:hover .media__alt { opacity: 1; } }
@media (hover: none) { .media__alt { display: none; } }

/* Carrousel horizontal : une carte « dépasse » à droite pour inviter à faire défiler */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--s-3);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > .card { scroll-snap-align: start; }
@media (min-width: 600px) { .carousel { grid-auto-columns: calc((100% - 2 * var(--s-3)) / 3); } }
@media (min-width: 1024px) { .carousel { grid-auto-columns: calc((100% - 3 * var(--s-3)) / 4); } }
.section__actions { display: flex; align-items: center; gap: .5rem; }
.section__actions .link { margin-right: 1rem; }
.carousel__btn {
  display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
  background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-line-strong);
  transition: background .3s, color .3s;
}
.carousel__btn:hover:not(:disabled) { background: var(--c-text); color: var(--c-bg); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.card__badge { position: absolute; top: .75rem; left: .75rem; margin: 0; }

/* Favoris : cœur (plein et rouge quand la pièce est enregistrée) */
.card { position: relative; }
.fav { display: inline-grid; place-items: center; cursor: pointer; color: var(--c-text); -webkit-tap-highlight-color: transparent; }
.fav svg path, .lien-favoris svg path { transition: fill .2s, stroke .2s; }
.fav[aria-pressed="true"] svg path { fill: var(--c-rouge); stroke: var(--c-rouge); }
.fav:active { transform: scale(.88); transition: transform .1s ease-out; }
.fav--carte {
  position: absolute; top: .5rem; right: .5rem; z-index: 2; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); color: #111; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fav--carte svg { width: 18px; height: 18px; }
@media (hover: hover) { .fav--carte:hover { background: #fff; } }
/* Photo sur fond noir : rond sombre et cœur clair, qui se fondent dans la photo */
.card--sombre .fav--carte { background: rgba(0, 0, 0, .45); color: #F2EEE6; }
@media (hover: hover) { .card--sombre .fav--carte:hover { background: rgba(0, 0, 0, .75); } }
.fav--fiche {
  display: flex; gap: .6rem; justify-content: center; align-items: center; width: 100%; min-height: 52px; margin-top: .6rem;
  background: transparent; border: 1px solid var(--c-line-strong); font: 500 var(--fs-xs)/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase;
}
.fav--fiche:hover { border-color: var(--c-text); }
.lien-favoris.a-des-favoris svg path { fill: currentColor; }
@media (prefers-reduced-transparency: reduce) { .fav--carte { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } .card--sombre .fav--carte { background: #000; } }
.card__name {
  font: 400 var(--fs-sm)/1.4 var(--f-text); letter-spacing: .12em;
  margin: var(--s-3) 0 var(--s-1);
}
.card__meta { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.card__meta .price { color: var(--c-text); }
.price { font-weight: 500; }
.price s { color: var(--c-muted); font-weight: 300; margin-right: .4em; }

/* Note étoiles */
.rating { display: inline-flex; align-items: center; gap: .5em; font-size: var(--fs-sm); color: var(--c-muted); text-decoration: none; }
.stars { color: var(--c-gold); letter-spacing: .1em; }

/* Options produit : pastilles couleur, tailles */
.option { position: relative; border: 0; padding: 0; margin: 0 0 var(--s-4); }
.option legend { padding: 0; margin-bottom: var(--s-3); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.option legend span { color: var(--c-text); }
.option__aside { position: absolute; top: 0; right: 0; font-size: var(--fs-xs); }

.swatches { display: flex; flex-wrap: wrap; gap: .85rem; }
.swatch {
  width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 1px solid var(--c-line-strong);
  box-shadow: 0 0 0 3px var(--c-bg);
  transition: box-shadow .3s var(--ease);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 4px var(--c-text); }

.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: .5rem; }
@media (max-width: 359px) { .sizes { grid-template-columns: repeat(3, 1fr); } } /* 6 tailles : 3 + 3 plutôt que 5 + 1 sur les très petits écrans */
.size {
  min-height: 48px; cursor: pointer;
  background: transparent; border: 1px solid var(--c-line-strong);
  font-size: var(--fs-sm); letter-spacing: .08em;
  transition: border-color .3s, background .3s, color .3s;
}
.size:hover:not(:disabled) { border-color: var(--c-text); }
.size[aria-pressed="true"] { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }
.size:disabled { color: var(--c-muted); text-decoration: line-through; cursor: not-allowed; opacity: .7; }
.stock { min-height: 1.5em; margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--c-gold); }

/* Accordéons (natif <details>) */
.accordion { border-top: 1px solid var(--c-line); }
.accordion:last-child { border-bottom: 1px solid var(--c-line); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; content: "+" / ""; color: var(--c-gold); font-size: 1.2rem; font-weight: 300; }
.accordion[open] summary::after { content: "−"; content: "−" / ""; }
.accordion__body { padding-bottom: 1.25rem; font-size: var(--fs-sm); color: var(--c-muted); }
.accordion__body strong { color: var(--c-text); }
.accordion__body ul { margin: 0 0 var(--s-3); padding-left: 1.1em; }

/* Liste de réassurance (fiche produit, panier) */
.trust { list-style: none; padding: var(--s-4) 0; margin: var(--s-4) 0; border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-muted); }
.trust li { position: relative; padding-left: 1.4em; margin-bottom: .6em; }
.trust li::before { content: "◆"; content: "◆" / ""; position: absolute; left: 0; color: var(--c-gold); font-size: .6em; top: .45em; }
.trust strong { color: var(--c-text); }
.secure { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); text-align: center; margin-top: var(--s-3); }
.secure::before { content: "◆ "; content: "◆ " / ""; color: var(--c-gold); }

/* Formulaires */
.field { display: grid; gap: .4rem; margin-bottom: var(--s-3); }
.label, .field label { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
input:not([type="checkbox"], [type="radio"]), select, textarea {
  width: 100%; min-height: 48px; padding: .8rem 1rem;
  background: var(--c-bg); border: 1px solid var(--c-line-strong); border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--c-text); }
input:user-invalid, textarea:user-invalid { border-color: var(--c-error); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--c-text); width: 18px; height: 18px; flex: none; }
.check, .choice { display: flex; align-items: center; gap: .75rem; margin-bottom: var(--s-3); font-size: var(--fs-sm); cursor: pointer; }
.choice { padding: 1rem; border: 1px solid var(--c-line-strong); }
.choice:has(input:checked) { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
.choices { border: 0; padding: 0; margin: 0 0 var(--s-4); }
.form-grid { display: grid; gap: 0 var(--s-3); grid-template-columns: 1fr 1fr; }
.form-grid > .full, .form-grid > button, .form-grid > p { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: .5rem; max-width: 520px; margin: var(--s-4) auto var(--s-3); }
.inline-form input { flex: 1; }
@media (max-width: 599px) { .inline-form { flex-direction: column; } }
.form-ok { padding: var(--s-4); border: 1px solid var(--c-gold); color: var(--c-text); }
.alert { padding: var(--s-3); border: 1px solid var(--c-error); margin-block: var(--s-4); }

/* Tableaux (guide des tailles) */
.table-wrap { overflow-x: auto; margin-bottom: var(--s-5); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: .75rem; border-bottom: 1px solid var(--c-line); text-align: left; white-space: nowrap; }
.table th { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-gold); font-weight: 500; }

/* Fenêtre modale */
dialog {
  width: min(760px, calc(100% - 2rem)); max-height: 85vh; padding: 0;
  background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line);
}
dialog::backdrop { background: rgba(17, 17, 17, .45); }
.dialog__inner { padding: var(--s-5) var(--s-4); }
.dialog__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

/* 5. EN-TÊTE / PIED DE PAGE ------------------------------------------------- */
/* Structure : [menu + recherche] [grand logo espacé] [membre + panier] / catégories / bandeau noir */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow .3s var(--ease);
}
/* Pas de trait fixe : une ombre douce apparaît seulement quand le contenu passe dessous */
.header--defile { box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .05); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.header__left { display: flex; align-items: center; gap: .25rem; margin-left: -10px; }
.header__actions { justify-self: end; display: flex; align-items: center; margin-right: -10px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: none;
}
.icon-btn:hover { color: var(--c-muted); }
.cart-count {
  position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--c-text); color: var(--c-bg);
  font: 500 .625rem/16px var(--f-text); text-align: center;
}
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
.header__burger span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.header__burger { gap: 6px; place-content: center; }
.header__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Logo : capitales Bodoni très espacées — le nom fait office d'emblème */
.logo {
  --ls: clamp(.2em, .08em + .6vw, .38em);
  justify-self: center; display: flex; align-items: center; gap: calc(var(--ls) * 1.15);
  font: 500 clamp(1rem, .55rem + 2.2vw, 2.25rem)/1 var(--f-display);
  font-variation-settings: "opsz" 18; /* contraste modéré : déliés nets, sans traits qui disparaissent */
  letter-spacing: var(--ls); margin-right: calc(-1 * var(--ls)); /* compense l'espace après la dernière lettre */
  word-spacing: .35em; /* espace entre SEVEN et KLOWNS, proportionnel à l'espacement des lettres */
  text-decoration: none; white-space: nowrap;
  text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased;
}
@media (max-width: 599px) { .header .logo { --ls: .17em; font-size: 1rem; } }

/* Recherche : champ souligné (ordinateur), panneau sous l'en-tête (mobile) */
.search { position: relative; display: flex; align-items: center; }
.search__icon { position: absolute; left: 0; pointer-events: none; display: flex; }
.search input[type="search"] {
  width: 200px; min-height: 40px; padding: .4rem 0 .4rem 1.9rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--c-line-strong);
  font-size: 1rem; /* < 16px : iOS zoome au focus */
}
.search input[type="search"]:focus { border-bottom-color: var(--c-text); outline: none; }
.search input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1) brightness(.4); cursor: pointer; }
.search input[type="search"]:focus-visible { box-shadow: 0 2px 0 var(--c-text); }

/* Suggestions de recherche */
.search__resultats {
  position: absolute; top: calc(100% + .5rem); left: 0; z-index: 60;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  text-transform: none; letter-spacing: normal;
}
.sugg { display: flex; gap: .75rem; align-items: center; padding: .55rem .9rem; text-decoration: none; font-size: var(--fs-sm); }
.sugg:hover, .sugg:focus-visible { background: var(--c-surface); }
.sugg img { flex: none; width: 40px; height: 50px; object-fit: cover; background: var(--c-surface); }
.sugg small { display: block; color: var(--c-muted); }
.sugg__tout { display: block; padding: .8rem .9rem; border-top: 1px solid var(--c-line); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.sugg__tout:hover { background: var(--c-surface); }
.sugg__vide { margin: 0; padding: .9rem; font-size: var(--fs-sm); color: var(--c-muted); }
.search__resultats { top: 100%; left: var(--gutter); right: var(--gutter); width: auto; }

/* Recherche : la loupe ouvre un panneau sous l'en-tête (mobile et ordinateur) */
.search-toggle[aria-expanded="true"] { color: var(--c-muted); }
/* Panneau de recherche : glisse depuis l'en-tête (là où est la loupe) au lieu d'apparaître d'un coup */
.search {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: var(--s-3) var(--gutter); background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .2s ease, transform .3s var(--ease), visibility 0s .3s;
}
.search.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .3s var(--ease); }
.search__icon { left: var(--gutter); }
.search input[type="search"] { width: 100%; }
@media (min-width: 1024px) {   /* ordinateur : un vrai champ « Rechercher » toujours visible, à gauche des icônes */
  .search-toggle { display: none; }
  .search {
    position: relative; top: auto; left: auto; right: auto; padding: 0; background: none; border: 0;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .search__icon { left: .75rem; color: var(--c-muted); }
  .search input[type="search"] {
    width: clamp(150px, 15vw, 230px); min-height: 38px; padding: .35rem .9rem .35rem 2.3rem;
    background: var(--c-surface); border: 1px solid transparent; border-radius: 999px; font-size: .9rem;
    transition: border-color .2s, background .2s;
  }
  .search input[type="search"]:hover { border-color: var(--c-line); }
  .search input[type="search"]:focus { background: var(--c-bg); border-color: var(--c-line-strong); }
  .search input[type="search"]:focus-visible { box-shadow: 0 0 0 1px var(--c-text); }
  .search__resultats { top: calc(100% + .6rem); left: auto; right: 0; width: 380px; }
}

/* Bandeau au-dessus de l'en-tête : information secondaire, donc discret (gris clair) ; liens d'aide à droite sur ordinateur */
.topbar {
  margin: 0; padding: .45rem var(--gutter);
  background: var(--c-surface); color: var(--c-text); box-shadow: inset 0 -1px 0 var(--c-line); /* filet sans changer la hauteur */
  font-size: var(--fs-xs); letter-spacing: .08em;
}
.topbar__inner { display: flex; justify-content: center; align-items: center; gap: var(--s-4); height: 100%; }
.topbar__message { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* toujours sur une ligne */
.topbar__liens { display: none; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1024px) {
  .topbar { padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); }
  .topbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; }   /* message au centre exact, liens à droite */
  .topbar__message { grid-column: 2; }
  .topbar__liens { grid-column: 3; justify-self: end; display: flex; gap: var(--s-4); }
  .topbar__liens a { color: var(--c-muted); text-decoration: none; letter-spacing: .04em; }
  .topbar__liens a:hover { color: var(--c-text); }
}
@media (max-width: 599px) { .topbar { font-size: .6875rem; letter-spacing: .02em; } }

/* Catégories */
.nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; } /* auto : garde la marge latérale du conteneur */
.nav a { text-decoration: none; }

@media (max-width: 1023px) {
  /* Menu mobile plein écran. absolute (pas fixed) : le flou de l'en-tête enfermerait un menu fixed dans ses 64 px */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--c-bg); padding: var(--s-4) 0 var(--s-6); border-top: 1px solid var(--c-line);
    visibility: hidden; opacity: 0; transform: translateY(-10px);   /* le menu descend de l'en-tête, et y remonte */
    transition: opacity .2s ease, transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .35s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--c-line); }
  .nav a {
    display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0;
    font: 600 clamp(1.6rem, 1rem + 4vw, 2.4rem)/1.1 var(--f-display); font-variation-settings: "opsz" 11;
    text-transform: uppercase; letter-spacing: .04em;
  }
  .nav a::after { content: "→"; content: "→" / ""; font: 300 1.2rem var(--f-text); color: var(--c-muted); }
  .nav .nav__extra { border: 0; }
  .nav li:not(.nav__extra) + .nav__extra { margin-top: var(--s-4); } /* 1er lien secondaire */
  .nav .nav__extra a { padding: .6rem 0; font: 500 var(--fs-sm)/1.2 var(--f-text); letter-spacing: .16em; color: var(--c-muted); }
  .nav .nav__extra a::after { content: none; }
}
@media (min-width: 1024px) {
  :root { --header-h: 72px; --sticky-top: calc(var(--header-h) + 40px + var(--s-4)); --chrome-h: calc(var(--header-h) + 40px + 30px); } /* + catégories (40) + bandeau (30) */
  .header__burger, .nav__extra { display: none; }
  .nav ul { justify-content: center; gap: 2.75rem; }
  .nav a { display: block; padding-block: 14px; font: 500 var(--fs-xs)/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; }
}

/* Blocs noirs : on redéfinit les couleurs de base, tous les composants (boutons, champs, textes) s'inversent seuls.
   Contrastes sur #111 : texte 16:1, muted 7,4:1, or clair 11:1, bordure forte 3,3:1 */
.section--dark, .footer {
  --c-bg: #111111; --c-surface: #1A1A1C; --c-text: #F2EEE6; --c-muted: #A8A39A;
  --c-line: #2A2A2F; --c-line-strong: #6E6A63; --c-gold: #E6CB8E; --c-ink: #F2EEE6;
  background: var(--c-bg); color: var(--c-text);
}
.section--dark .btn--primary:hover { background: #FFFFFF; }
.footer { padding-block: var(--s-6) var(--s-4); font-size: var(--fs-sm); }
.footer__grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer .logo { --ls: .22em; justify-self: start; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); white-space: nowrap; }
.footer__grid > div:first-child { grid-column: 1 / -1; } /* le nom seul sur sa ligne, au-dessus des colonnes de liens */
@media (min-width: 900px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer h2 { font: 500 var(--fs-xs)/1 var(--f-text); letter-spacing: var(--track); color: var(--c-text); margin-bottom: var(--s-3); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0; }
.footer li a { display: inline-block; padding-block: .3rem; }
.footer a { text-decoration: none; color: var(--c-muted); }
.footer a:hover { color: var(--c-text); }
@media (max-width: 599px) {
  /* pied de page compact sur mobile : 2 colonnes de liens, espacements réduits */
  .footer { padding-block: var(--s-5) var(--s-3); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-3); }
  .footer__grid > div:first-child, .footer__grid > div:nth-child(4), .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer__grid > div:nth-child(4) ul { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; } /* Légal : liens côte à côte */
  .footer h2 { margin-bottom: .75rem; }
  .footer li a { padding-block: .7rem; }   /* cibles tactiles ≥ 44 px */
  .footer__bottom { margin-top: var(--s-4) !important; padding-top: var(--s-3) !important; gap: .4rem !important; }
}
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: .08em; }

/* 6. SECTIONS & PAGES ------------------------------------------------------ */

/* Accueil — héros vidéo : le produit toujours ENTIER (capuche comprise), texte et bouton SOUS la vidéo.
   Le fond de la vidéo est noir pur : les éventuelles bandes de « contain » sont invisibles. */
.hero {
  position: relative; background: #000;
  height: calc(100svh - var(--chrome-h)); min-height: 360px; /* ordinateur : vidéo + bouton dans le 1er écran */
  display: flex; flex-direction: column;
}
.hero__media { position: relative; flex: 1; min-height: 0; }
.hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-pause {
  position: absolute; right: var(--gutter); bottom: var(--s-2); z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s, transform .1s ease-out; -webkit-tap-highlight-color: transparent;
}
.video-pause:hover { background: rgba(0, 0, 0, .65); }
.video-pause:active { transform: scale(.92); }
.video-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-pause .ic-lire, .video-pause.is-pause .ic-pause { display: none; }
.video-pause.is-pause .ic-lire { display: block; }
@media (prefers-reduced-transparency: reduce) { .video-pause { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.hero__content { display: grid; justify-items: center; gap: var(--s-3); padding-block: var(--s-3) var(--s-4); text-align: center; color: #F2EEE6; }
.hero__content .eyebrow { color: #E6CB8E; margin: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); } /* or clair, lisible même sur les gros plans crème */
.btn--hero {
  min-width: 260px; max-width: 100%; flex-wrap: wrap; column-gap: .5em; text-align: center; /* 2 lignes propres sur mobile */
  border-color: #F2EEE6; color: #F2EEE6;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); /* reste lisible sur les gros plans crème */
}
.btn--hero:hover { background: #F2EEE6; color: #000; }
.btn--hero:focus-visible { outline-color: #F2EEE6; }
#prix-hero { white-space: nowrap; }
@media (min-width: 1024px) {
  /* ordinateur : texte + bouton dans la marge noire en bas à gauche → la vidéo prend toute la hauteur (hoodie plus grand) */
  .hero__content {
    position: absolute; left: var(--gutter); bottom: var(--s-5); z-index: 1;
    justify-items: start; text-align: left; padding: 0;
  }
}
@media (max-width: 599px) {
  .hero { height: auto; min-height: 0; }
  .hero__media { flex: none; aspect-ratio: 10 / 9; } /* = format de la vidéo mobile : pleine largeur, rien de coupé */
  .btn--hero { padding: .9rem 1.25rem; letter-spacing: .12em; }
}

.assurances { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .assurances { grid-template-columns: repeat(5, 1fr); } }
.assurances li { border-top: 1px solid var(--c-text); padding-top: var(--s-3); }
.assurances h3 { font: 500 var(--fs-xs)/1.3 var(--f-text); letter-spacing: .14em; margin-bottom: var(--s-2); }
.assurances p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }


.product__visuel { min-width: 0; }
@media (min-width: 900px) {
  /* image + boutons Face / Dos toujours dans l'écran, même pendant le défilement */
  .product__visuel { position: sticky; top: var(--sticky-top); align-self: start; }
  .product__visuel .gallery > .media { width: min(100%, calc((100svh - var(--chrome-h) - 9.5rem) * .8)); /* 9,5rem : fil d'Ariane + boutons Face / Dos */ margin-inline: auto; }
}
.vues { display: flex; justify-content: center; gap: .5rem; margin-top: var(--s-3); }
.vues .size { min-width: 96px; padding: 0 1.25rem; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; }

/* Engagements (accueil) : une ligne fine entre deux filets */
.reassurance { border-top: 1px solid var(--c-line); }
.reassurance ul {
  list-style: none; margin: 0 auto; padding-block: var(--s-4);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6);
  font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted);
}
.reassurance li { display: flex; align-items: center; gap: .6rem; }
.reassurance svg { flex: none; color: var(--c-text); }
.reassurance a { color: inherit; text-decoration: none; }
.reassurance a:hover { color: var(--c-text); }
@media (max-width: 599px) { .reassurance ul { display: grid; gap: .85rem; width: fit-content; letter-spacing: .05em; } } /* mobile : 1 engagement par ligne, bloc centré */

.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* Carrousel : glisser, progression, fondu à droite */
.carousel { cursor: grab; }
/* Au doigt : une carte à la fois, la page ne part pas en arrière quand on arrive au bout */
@media (hover: none) { .carousel > .card { scroll-snap-stop: always; } .carousel { -webkit-overflow-scrolling: touch; } }
.carousel.is-drag { cursor: grabbing; scroll-snap-type: none; }
.carousel.anime { scroll-snap-type: none; }   /* pendant le ressort, le magnétisme natif ne doit pas interférer */
.carousel.is-drag a { pointer-events: none; }
.carousel img { -webkit-user-drag: none; user-select: none; }
.carousel.a-suivre { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 5rem), transparent); }
/* Barre de défilement tactile : on saisit le curseur (souris ou doigt), on touche la barre pour y sauter,
   ou on utilise les flèches du clavier. Zone de toucher de 44 px, trait fin qui s'épaissit sous le doigt. */
.carousel__progress { position: relative; height: 44px; margin-top: var(--s-2); cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.carousel__progress::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); border-radius: 2px; background: var(--c-line); transition: height .25s var(--ease); }
.carousel__progress span { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 4px; background: var(--c-text); cursor: grab; will-change: transform; transition: height .25s var(--ease), margin-top .25s var(--ease); }
.carousel__progress:hover::before, .carousel__progress.is-actif::before { height: 4px; }
.carousel__progress:hover span, .carousel__progress:focus-visible span, .carousel__progress.is-actif span { height: 8px; margin-top: -4px; }
.carousel__progress.is-actif span { cursor: grabbing; }
.carousel__progress:focus-visible { outline: none; }
.carousel__progress:focus-visible::before { box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-text); }
@media (hover: none) { .carousel__progress span { height: 5px; margin-top: -2.5px; } .carousel__progress::before { height: 3px; } }

/* Événements : photos du stand */
.evenements { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .evenements { grid-template-columns: 1fr 1fr; } }
.evenements figure { margin: 0; }
.evenements img { width: 100%; height: auto; background: #000; }
.evenements figcaption { margin-top: .75rem; font-size: var(--fs-sm); color: var(--c-muted); }

/* Notre histoire — récit long sur fond noir (la nuit du cirque), mis en page pour être lu confortablement :
   colonne de ~65 signes, paragraphes regroupés, passages rythmés en italique, chapitres et motifs pour respirer. */
.recit { padding-bottom: var(--s-7); }
.recit__sommaire { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; margin-top: var(--s-4); font-size: var(--fs-sm); letter-spacing: .04em; }
.recit__sommaire a { color: var(--c-muted); text-decoration: none; padding-block: .6rem; }
.recit__sommaire a:hover { color: var(--c-text); }
.recit__sommaire span { color: var(--c-gold); font-size: .55em; align-self: center; }
.recit__duree { margin-top: .25rem; color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
.recit__corps { max-width: 37rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.75; color: #E6E1D8; }
.recit__corps p { margin: 0 0 1.15em; text-wrap: pretty; }
.recit__chapitre { text-align: center; margin: var(--s-7) 0 var(--s-5); scroll-margin-top: 7rem; }
.recit__corps > .recit__chapitre:first-child { margin-top: var(--s-4); }
.recit__chapitre h2 { margin: 0; }
.recit__numero { /* grand chiffre romain doré, au trait */
  display: block; margin-bottom: .15em; color: transparent; -webkit-text-stroke: 1px var(--c-gold);
  font: 400 clamp(4rem, 3rem + 4vw, 6.5rem)/1 var(--f-display); font-variation-settings: "opsz" 11;
}
.recit__ouverture { font: 400 clamp(1.35rem, 1.15rem + .9vw, 1.75rem)/1.45 var(--f-display); color: var(--c-text); }
.recit__ouverture::first-letter { /* lettrine dorée */
  float: left; margin: .05em .12em 0 0;
  font: 600 2.7em/.8 var(--f-display); font-variation-settings: "opsz" 11; color: var(--c-gold);
}
.recit .vers { /* passages rythmés : italique, filet doré */
  margin: 1.6em 0 !important; padding: .15em 0 .15em 1.1em; border-left: 2px solid var(--c-gold);
  font: italic 400 clamp(1.15rem, 1.05rem + .5vw, 1.4rem)/1.55 var(--f-display); color: var(--c-text);
}
.recit__pause { text-align: center; color: var(--c-gold); font-size: .8em; letter-spacing: .8em; margin-block: var(--s-6) !important; }
.recit__figure { max-width: 30rem; margin: var(--s-6) auto; text-align: center; }
.recit__figure img {
  width: 100%; height: auto; background: #201F1F; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(230, 203, 142, .28), 0 30px 60px -24px rgba(0, 0, 0, .9);
}
.recit__figure figcaption { margin-top: .5rem; color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: .08em; }
.recit__figure figcaption a { display: inline-block; padding-block: .55rem; color: var(--c-text); }
.recit__citation {
  margin: var(--s-6) 0; padding: var(--s-4) 0; border-block: 1px solid rgba(230, 203, 142, .35);
  font: italic 500 clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem)/1.4 var(--f-display); text-align: center; color: var(--c-text);
}
.recit__citation p { margin: 0 !important; }
.recit__fort { margin-block: 1.3em !important; font: italic 600 clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem)/1.3 var(--f-display); color: var(--c-text); }
.recit__suspens { margin: var(--s-5) 0 .2em !important; text-align: center; font: italic 400 1.25em/1.3 var(--f-display); }
.recit__fin {
  margin: 0 0 var(--s-6) !important; text-align: center;
  font: italic 600 clamp(2rem, 1.4rem + 3vw, 3.5rem)/1.1 var(--f-display); font-variation-settings: "opsz" 11; color: var(--c-gold);
}
.recit__progression { /* barre de lecture : suit le défilement (navigateurs récents), absente sinon */
  position: fixed; inset: 0 0 auto; z-index: 300; height: 3px; display: none;
  background: var(--c-gold); transform-origin: 0 50%; pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .recit__progression { display: block; animation: lecture linear both; animation-timeline: scroll(root); }
  @keyframes lecture { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Catégorie */
.filters {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: end;
  padding-block: var(--s-3); margin-bottom: var(--s-3);
  border-block: 1px solid var(--c-line);
}
.filters .field { flex: 1 1 calc(50% - .75rem); min-width: 0; margin: 0; }
@media (min-width: 900px) { .filters .field { flex: 1 1 150px; } }
.empty { grid-column: 1 / -1; text-align: center; padding-block: var(--s-6); color: var(--c-muted); }

/* Fiche produit */
.breadcrumb ol { list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; padding: var(--s-4) 0; margin: 0; font-size: var(--fs-xs); letter-spacing: .1em; color: var(--c-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; }
.breadcrumb a { display: inline-block; padding-block: .75rem; text-decoration: none; }
.product { display: grid; gap: var(--s-5); }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: .5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
}
.gallery { position: relative; overscroll-behavior-x: contain; }
.gallery > .media { scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.gallery > .media > img { transition: none; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-6); }
  .gallery { margin: 0; padding: 0; }
  .product__sticky { position: sticky; top: var(--sticky-top); }
}
.product__name { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); margin-bottom: var(--s-2); }
.product__price { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.product__certif { margin: -.25rem 0 var(--s-2); color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }
.product__certif span { color: var(--c-gold); margin-right: .3em; }
.product__short { font: italic 400 var(--fs-lg)/1.4 var(--f-display); margin-block: var(--s-4); }
.edition {
  margin: var(--s-3) 0 0; padding: .7rem 0;
  border-block: 1px solid rgba(138, 106, 46, .35);
  color: var(--c-gold); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase;
}
.edition::before { content: "◆ "; content: "◆ " / ""; }

.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review { padding: var(--s-4); background: var(--c-surface); }
.review blockquote { margin: var(--s-2) 0 var(--s-3); font: italic 400 var(--fs-lg)/1.5 var(--f-display); }

/* Panier & commande */
.cart, .checkout { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .cart, .checkout { grid-template-columns: minmax(0, 1fr) 380px; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s-3); padding-block: var(--s-4); border-bottom: 1px solid var(--c-line); }
.line__name { font: 400 var(--fs-sm)/1.4 var(--f-text); letter-spacing: .12em; margin-bottom: var(--s-1); }
.line__name a { text-decoration: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line-strong); margin-right: var(--s-3); }
.qty button { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty span { min-width: 2ch; text-align: center; }
.summary { background: var(--c-surface); padding: var(--s-4); }
@media (min-width: 900px) { .summary { position: sticky; top: var(--sticky-top); } }
.recap { margin: var(--s-4) 0; }
.recap div, .recap__line { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; font-size: var(--fs-sm); }
.recap dd { margin: 0; }
.recap__total { border-top: 1px solid var(--c-line); margin-top: .5rem; padding-top: .9rem !important; font-size: var(--fs-md) !important; font-weight: 500; }

.steps { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 0; margin: 0 0 var(--s-2); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.steps [aria-current] { color: var(--c-text); font-weight: 500; }
.progress { height: 2px; background: var(--c-line); margin-bottom: var(--s-5); }
.progress span { display: block; height: 100%; background: var(--c-text); transform: scaleX(.3333); transform-origin: left; transition: transform var(--t) var(--ease); }

/* 7. ANIMATIONS — fondu des sections, zoom produit, reflet bouton. Rien de plus. */
/* Seuls les blocs encore sous l'écran au chargement apparaissent en douceur ; rien n'est masqué sans JavaScript */
.reveal { transition: opacity .5s ease-out, transform .5s var(--ease); }
.reveal.a-venir { opacity: 0; transform: translateY(12px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal.a-venir { opacity: 1; transform: none; }
}

/* 8. FINITIONS « FAÇON APPLE » ---------------------------------------------
   Retour immédiat à l'appui, chargements sans saut, transitions courtes et réversibles. */

/* Retour visuel dès que le doigt ou la souris appuie (pas seulement au relâchement) */
.btn, .size, .swatch, .icon-btn, .carousel__btn, .qty button, .vues .size {
  transition: transform .1s ease-out, background .25s, color .25s, border-color .25s, box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .size:active:not(:disabled), .carousel__btn:active:not(:disabled), .qty button:active:not(:disabled) { transform: scale(.97); }
.icon-btn:active, .swatch:active { transform: scale(.92); }
.card__link:active .media { transform: scale(.985); transition: transform .1s ease-out; }
.card__link .media { transition: transform .35s var(--ease); }
.btn::after { transition-duration: .6s; }

/* Bandeau : hauteur fixe (calcul de la hauteur du héros) */
.topbar { line-height: 16px; }

/* Silhouettes de chargement : la place est réservée, rien ne saute quand le catalogue arrive */
.squelette { display: block; height: .9rem; margin-top: var(--s-3); border-radius: 2px; background: var(--c-surface); }
.squelette--court { width: 40%; margin-top: .5rem; }
.squelette--titre { height: 2.4rem; width: 80%; margin-top: 0; }
.squelette--bouton { height: 60px; margin-top: var(--s-5); }
.card--squelette .media, .squelette, .produit--squelette .media { animation: lueur 1.4s ease-in-out infinite; }
@keyframes lueur { 50% { opacity: .55; } }

/* Message éphémère (« Ajouté », « Retiré — Annuler ») */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 1rem; align-items: center; width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  padding: .85rem 1.25rem; background: #111; color: #F2EEE6; font-size: var(--fs-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s ease, transform .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .link { color: #E6CB8E; text-decoration-color: currentColor; font-size: var(--fs-sm); padding-block: .5rem; }
body[data-page="panier"] .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* Fiche produit : « Guide des tailles » sur la ligne du titre, jamais par-dessus les tailles */
.option--tailles legend { float: left; }
.option--tailles .option__aside { position: static; float: right; min-height: 44px; padding-block: .5rem; margin-top: -.85rem; }
.option--tailles .sizes { clear: both; }
.line__retirer, .filters .link { padding-block: .7rem; }

/* Catégories : filtres repliés derrière un bouton sur mobile */
.filtres__ouvrir { display: none; }
@media (max-width: 599px) {
  .filtres__ouvrir { display: flex; width: 100%; margin-bottom: var(--s-3); }
  .filters { display: none; }
  .filters.is-open { display: flex; }
  .page-head { padding-block: var(--s-4) var(--s-3); }
}
#compte { min-height: 1.6em; }

/* Panier et commande sur mobile : titre plus compact, total et bouton toujours à portée de pouce */
.barre-commande { display: none; }
@media (max-width: 599px) {
  body[data-page="panier"] .page-head h1, body[data-page="commande"] .page-head h1 { font-size: var(--fs-h3); margin: 0; }
  body[data-page="panier"] main { padding-bottom: 88px; }
  .barre-commande {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .06);
  }
  .barre-commande .btn { min-height: 48px; padding-inline: 1.5rem; }
}

/* Commande : étapes du paiement par lien, récapitulatif à copier */
.etapes-paiement { padding: var(--s-4); margin-bottom: var(--s-4); background: var(--c-surface); font-size: var(--fs-sm); }
.etapes-paiement ol { margin: 0; padding-left: 1.2em; }
.etapes-paiement li + li { margin-top: .4rem; }
textarea[readonly] { font: 400 var(--fs-sm)/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--c-muted); }
.actions-commande { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: var(--s-3); }

/* Erreurs de formulaire : un message clair sous le champ, pas seulement une bordure rouge */
.field__erreur { margin: .35rem 0 0; font-size: var(--fs-sm); color: var(--c-error); }
.field__erreur::before { content: "! "; content: "! " / ""; font-weight: 600; }
[aria-invalid] { border-color: var(--c-error) !important; }
.check [aria-invalid] { outline: 2px solid var(--c-error); outline-offset: 2px; }


/* Guide des tailles : la fenêtre se matérialise au lieu d'apparaître d'un coup */
dialog[open] { animation: materialise .3s var(--ease); }
dialog[open]::backdrop { animation: voile .3s ease; }
@keyframes materialise { from { opacity: 0; transform: scale(.97); } }
@keyframes voile { from { opacity: 0; } }
/* Fermeture : même chemin en sens inverse, un peu plus rapide (on part, on ne découvre plus rien) */
dialog[open].se-ferme { animation: dematerialise .22s cubic-bezier(.4, 0, 1, 1) forwards; }
dialog[open].se-ferme::backdrop { animation: voile-sortie .22s ease forwards; }
@keyframes dematerialise { to { opacity: 0; transform: scale(.97); } }
@keyframes voile-sortie { to { opacity: 0; } }

/* Pages légales */
.sommaire { margin-bottom: var(--s-4); font-size: var(--fs-sm); }
.sommaire a { display: inline-block; padding-block: .6rem; }
.prose h3 { font: 600 var(--fs-sm)/1.4 var(--f-text); letter-spacing: .06em; margin: var(--s-4) 0 var(--s-2); }

/* Préférences d'accessibilité du système */
@media (prefers-reduced-transparency: reduce) {
  .header, .barre-commande { background: var(--c-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--hero { backdrop-filter: none; background: #000; }
}
@media (prefers-contrast: more) {
  :root { --c-muted: #45413B; --c-line: #8F8A82; --c-line-strong: #45413B; }
  .header { background: var(--c-bg); }
}
@media (prefers-reduced-motion: reduce) {
  .card--squelette .media, .squelette, .produit--squelette .media { animation: none; }
}

/* Stabilité au chargement : hauteurs fixes de l'en-tête (la police qui arrive ne fait rien bouger)
   et place réservée pour la fiche produit (le pied de page n'apparaît pas puis ne saute pas). */
.topbar { height: 30px; }
@media (min-width: 1024px) { .nav ul { height: 40px; align-items: center; } .nav a { padding-block: 0; line-height: 40px; } }
#produit, #panier { min-height: calc(100svh - var(--chrome-h)); }

/* 9. FICHE PRODUIT, EN-TÊTE, MODE SOMBRE --------------------------------------- */

/* Bouton « agrandir » discret sur chaque photo */
.media__zoom {
  position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: zoom-in;
  background: rgba(255, 255, 255, .85); color: #111; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: transform .1s ease-out;
}
.media__zoom:active { transform: scale(.92); }

/* Photo en plein écran : un toucher zoome à l'endroit touché, le doigt promène la loupe */
.loupe { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #FFF; }
.loupe::backdrop { background: #FFF; }
.loupe__zone { display: flex; width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.loupe__zone img { flex: none; margin: auto; max-width: 100%; max-height: 100%; width: auto; cursor: zoom-in; }
.loupe__zone.is-zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.loupe__fermer { position: fixed; top: calc(.75rem + env(safe-area-inset-top, 0px)); right: .75rem; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #111; }
.loupe__aide { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; padding: .4rem .9rem; border-radius: 999px; background: rgba(17, 17, 17, .75); color: #F2EEE6; font-size: var(--fs-xs); letter-spacing: .06em; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.loupe__zone.is-zoom + .loupe__fermer + .loupe__aide { opacity: 0; }
@media (hover: hover) { .loupe__aide { display: none; } }

/* Confirmation d'ajout : sort de l'icône panier (en haut à droite) */
.ajout-pop {
  position: fixed; z-index: 110; right: var(--gutter); width: min(360px, calc(100vw - 2 * var(--gutter)));
  padding: var(--s-4); background: var(--c-bg); color: var(--c-text);
  border: 1px solid var(--c-line); box-shadow: 0 18px 48px rgba(0, 0, 0, .14);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right;
  transition: opacity .2s ease, transform .35s var(--ease);
}
.ajout-pop.is-visible { opacity: 1; transform: none; }
.ajout-pop__titre { margin: 0 0 var(--s-3); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
.ajout-pop__ligne { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
.ajout-pop__ligne img { flex: none; width: 56px; height: 70px; object-fit: cover; background: #F5F4F2; }
.ajout-pop__ligne p { display: grid; gap: .15rem; margin: 0; line-height: 1.35; }
.ajout-pop__actions { display: grid; gap: .25rem; justify-items: center; }
.ajout-pop__actions .link { padding-block: .7rem; }
@media (max-width: 599px) { .ajout-pop { left: var(--gutter); width: auto; transform-origin: top center; } }

/* Barre « Ajouter au panier » de la fiche produit (mobile) : glisse depuis le bas */
.barre-produit .btn { white-space: nowrap; padding-inline: 1.25rem; }
.barre-produit__nom { display: grid; margin: 0; line-height: 1.3; min-width: 0; }
.barre-produit__nom strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 599px) {
  .barre-produit { transform: translateY(110%); transition: transform .4s var(--ease); }
  .barre-produit.is-visible { transform: none; }
  body[data-page="produit"] .footer { padding-bottom: calc(var(--s-6) + 80px); }
  body.avec-barre .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* En-tête : le logo se compacte en douceur au défilement (ordinateur) */
@media (min-width: 1024px) {
  .header .logo { transition: transform .45s var(--ease); }
  .header--compact .logo { transform: scale(.78); }
}

/* Recherche : accès rapides avant la saisie */
.sugg__titre { margin: 0; padding: .9rem .9rem .3rem; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.sugg--lien { padding-block: .7rem; font-size: var(--fs-md); }

/* Page 404 */
.introuvable { padding-block: var(--s-6) var(--s-4); }
.introuvable__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }

/* Titres sur mobile : capitales plus compactes, jamais plus de 2-3 lignes */
@media (max-width: 599px) {
  :root { --fs-h2: clamp(1.55rem, 1.1rem + 2.4vw, 2rem); }
  h2 { letter-spacing: .01em; line-height: 1.12; }
}

/* Mode sombre automatique (réglage du téléphone ou de l'ordinateur).
   Les photos restent sur leur fond clair : les produits gardent leurs vraies couleurs. */
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #000000; --c-surface: #161618; --c-line: #2A2A2F; --c-line-strong: #6E6A63;
    --c-text: #F2EEE6; --c-muted: #A8A39A; --c-gold: #E6CB8E; --c-ink: #F2EEE6; --c-ink-muted: #C9C4BA;
    --c-bronze: #E6CB8E; --c-error: #FF7A7A;
    color-scheme: dark;
  }
  .section--dark, .footer { --c-bg: #111111; }
  .footer { border-top: 1px solid var(--c-line); }
  .header { background: rgba(0, 0, 0, .78); }
  .header--defile { box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
  .btn--primary:hover { background: #FFFFFF; }
  .btn::after { background: linear-gradient(110deg, transparent 30%, rgba(0, 0, 0, .12) 50%, transparent 70%); }
  .media, .sugg img { background: #F5F4F2; }
  .placeholder { background: #F5F4F2; color: #6B6760; }
  .badge { background: rgba(0, 0, 0, .85); }
  .barre-commande { background: rgba(0, 0, 0, .82) !important; box-shadow: 0 -1px 0 rgba(255, 255, 255, .08) !important; }
  .toast { background: #F2EEE6; color: #111; }
  .toast .link { color: #8A6A2E; }
  .search__resultats, .ajout-pop { box-shadow: 0 18px 48px rgba(0, 0, 0, .6); }
  dialog::backdrop { background: rgba(0, 0, 0, .7); }
}
@media (prefers-color-scheme: dark) and (prefers-reduced-transparency: reduce) {
  .header, .barre-commande { background: var(--c-bg) !important; }
}

/* Ordinateur : logo et catégories sur une seule ligne — [logo] [catégories] [loupe · panier] */
@media (min-width: 1024px) {
  :root { --sticky-top: calc(var(--header-h) + var(--s-4)); --chrome-h: calc(var(--header-h) + 30px); } /* en-tête (72) + bandeau (30) */
  .header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: var(--s-4); /* 2 colonnes égales : catégories au centre exact de la page */
    height: var(--header-h); padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  }
  .header__inner { display: contents; }
  .header .logo { grid-column: 1; grid-row: 1; justify-self: start; --ls: .3em; font-size: 1.45rem; transform-origin: left center; }
  .nav { grid-column: 2; grid-row: 1; }
  .nav ul { width: auto; margin: 0; gap: clamp(1.5rem, 2.6vw, 2.75rem); }
  .header__left { grid-column: 3; grid-row: 1; justify-self: end; margin: 0 78px 0 0; } /* 78 = compte + panier (2 × 44) - décalage (10) */
  .header__actions { grid-column: 3; grid-row: 1; justify-self: end; margin: 0 -10px 0 0; }
  .nav__mobile { display: none; } /* Événements : seulement dans le menu mobile */
  .header--compact .logo { transform: scale(.9); }
}
@media (max-width: 379px) { .topbar { font-size: .64rem; letter-spacing: 0; padding-inline: .5rem; } } /* petits écrans (iPhone SE) : le bandeau tient sur une ligne */

/* Liens texte seuls sur leur ligne : zone de toucher d'au moins 44 px de haut (recommandation Apple) */
.section__head .link, .trust a, .assurances a, .reassurance a, .prose li > a[href^="mailto"], .prose li > a[href^="tel"] {
  display: inline-block; padding-block: .7rem; margin-block: -.7rem;
}

/* Mon compte */
.compte { display: grid; gap: var(--s-5); padding-bottom: var(--s-6); }
@media (min-width: 900px) { .compte { grid-template-columns: 1.1fr 1fr; align-items: start; } .compte__bloc:last-child { grid-column: 1 / -1; } }
.compte__bloc { padding: var(--s-4); border: 1px solid var(--c-line); }
.compte__bloc > h2 { margin-bottom: var(--s-3); }
.commandes { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: var(--s-3); }
.commande { padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-line); }
.commande__tete, .commande__pied { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin: 0; }
.commande ul { margin: .5rem 0; padding-left: 1.1em; }
.compte__liens { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: grid; gap: 0; }
.compte__liens a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--c-line); text-decoration: none; }
.compte__liens a::after { content: "→"; content: "→" / ""; float: right; color: var(--c-muted); }
#effacer-compte { padding-block: .7rem; color: var(--c-muted); }

/* Information RGPD sous les formulaires */
.info-rgpd { margin: .75rem 0 0; }
.info-rgpd a { display: inline-block; padding-block: .6rem; margin-block: -.6rem; }

/* Introduction de l'accueil */
html.intro::after { content: ""; position: fixed; inset: 0; z-index: 300; background: var(--c-bg); } /* fond blanc dès le 1er affichage */
.intro-ecran { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none; }
.intro-fond { position: absolute; inset: 0; background: var(--c-bg); }
.intro-titre {   /* « SEVEN KLOWNS » tracé à la plume : contour dessiné, puis rempli d'encre */
  position: relative; display: block; height: 1em; overflow: visible; color: var(--c-text);
  fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 9; stroke-linejoin: round; stroke-linecap: round;
  transform-origin: center; will-change: transform;
}


/* TOUCHES DE ROUGE — le nez du clown : quelques accents, jamais plus d'un ou deux par écran ------------------------
   Rouge #C1121F : 6,6:1 sur blanc (lisible même en texte) ; version claire sur fonds noirs. */
:root { --c-rouge: #C1121F; }
.section--dark, .footer { --c-rouge: #E5383B; }
@media (prefers-color-scheme: dark) { :root { --c-rouge: #E5383B; } }
::selection { background: var(--c-rouge); color: #fff; }

/* Trace de pinceau rouge sous les grands titres, peinte quand le titre arrive à l'écran */
.section__head h2::after, .page-head h1::after, .section--dark .center h2::after {
  content: ""; display: block; width: clamp(92px, 12vw, 170px); height: clamp(11px, 1.3vw, 17px); margin-top: .32em;
  background: var(--c-rouge); -webkit-mask: url(../assets/trace.svg) center / 100% 100% no-repeat; mask: url(../assets/trace.svg) center / 100% 100% no-repeat;
  transform: rotate(-1.5deg); clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1) .2s;
}
.page-head h1::after, .section--dark .center h2::after { margin-inline: auto; }
.a-venir h2::after, .a-venir h1::after { clip-path: inset(0 100% 0 0); }

/* Détails : pastille du panier, liens, catégories survolées, barres de progression, badges */
.cart-count { background: var(--c-rouge); color: #fff; }
.link { text-decoration-color: var(--c-rouge); }
.link:hover { color: var(--c-rouge); }
.carousel__progress span { background: var(--c-rouge); }
.badge { border-color: var(--c-rouge); color: var(--c-rouge); }
@media (min-width: 1024px) {
  .nav a { background: linear-gradient(var(--c-rouge), var(--c-rouge)) no-repeat 0 calc(100% - 9px) / 0 2px; transition: background-size .35s var(--ease), color .2s; }
  .nav a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; }
}
/* En-tête de page : la trace se peint à l'ouverture de la page */
.page-head h1::after { animation: peindre .9s cubic-bezier(.65, 0, .35, 1) .35s both; }
@keyframes peindre { from { clip-path: inset(0 100% 0 0); } }

/* PUBLICITÉ DE NOËL (accueil, sous les hoodies) ------------------------------------------------------------- */
.pub-noel { position: relative; overflow: hidden; background: #2a0508; color: #F2EEE6; --c-rouge: #E5383B; }
.pub-noel.reveal.a-venir { opacity: 1; transform: none; }          /* la section reste en place ; seuls l'image et le texte s'animent */
.pub-noel__visuel { display: block; overflow: hidden; }
.pub-noel__visuel img { display: block; width: 100%; height: clamp(420px, 56vw, 860px); object-fit: cover; object-position: 50% 45%;
  transition: transform 2.6s cubic-bezier(.22, 1, .36, 1); }
.pub-noel.a-venir .pub-noel__visuel img { transform: scale(1.08); }
@media (hover: hover) { .pub-noel__visuel:hover img { transform: scale(1.025); transition-duration: 1.2s; } }
.pub-noel__texte .eyebrow { color: #E6CB8E; }
.pub-noel__titre { margin: 0 0 var(--s-3); font: italic 400 clamp(2.6rem, 1.6rem + 4.2vw, 5.4rem)/1 var(--f-display); font-variation-settings: "opsz" 48; text-transform: none; letter-spacing: 0; color: #F7F1E8; }
.pub-noel__accroche { margin: 0 0 var(--s-4); max-width: 34ch; color: #E2D6C8; }
.pub-noel__texte > * { transition: opacity .8s ease, transform .9s var(--ease); }
.pub-noel__texte > :nth-child(2) { transition-delay: .1s; }
.pub-noel__texte > :nth-child(3) { transition-delay: .2s; }
.pub-noel__texte > :nth-child(4) { transition-delay: .3s; }
.pub-noel.a-venir .pub-noel__texte > * { opacity: 0; transform: translateY(16px); }
/* Ordinateur et tablette : texte posé sur l'image, à gauche, sur un voile sombre (lisibilité) */
@media (min-width: 600px) {
  .pub-noel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(18, 2, 4, .86) 0%, rgba(18, 2, 4, .62) 26%, rgba(18, 2, 4, 0) 52%); }
  .pub-noel__texte { position: absolute; z-index: 1; left: max(var(--gutter), calc((100% - var(--container)) / 2)); top: 50%; transform: translateY(-50%); max-width: min(36rem, 42%); }
}
/* Mobile : image 4:5 cadrée sur le coffret, texte dessous */
@media (max-width: 599px) {
  .pub-noel__visuel img { height: auto; aspect-ratio: 4 / 5; }
  .pub-noel__texte { padding: var(--s-4) var(--gutter) var(--s-6); text-align: center; }
  .pub-noel__accroche { margin-inline: auto; }
}

/* CAMPAGNE HIVER « SANG-FROID » (accueil, au-dessus des hoodies) -------------------------------------------------------
   Nuit bleue, neige qui tombe (canvas), titre givré + trace rouge, 3 visuels 4:5 qui défilent seuls. */
.hiver {
  position: relative; overflow: hidden; isolation: isolate; padding-block: var(--s-7);
  background: radial-gradient(120% 90% at 85% 0%, #1A2938 0%, #0B1118 55%, #05080C 100%);
  --c-bg: #0B1118; --c-text: #EEF3F8; --c-muted: #9DB0C3; --c-line: #24323F; --c-line-strong: #5E7083; --c-rouge: #E5383B;
  color: var(--c-text);
}
.hiver__neige { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hiver__grille { display: grid; gap: var(--s-5); align-items: center; }
.hiver__texte .eyebrow { color: #A9C7E3; }
.hiver__titre {
  margin: 0 0 var(--s-4) -.1em; padding: .06em .12em .04em .1em;   /* place pour l'italique : rien n'est rogné par le dégradé du texte */
  font: italic 400 clamp(3rem, 1.8rem + 5vw, 6.5rem)/.95 var(--f-display); font-variation-settings: "opsz" 48;
  text-transform: none; letter-spacing: 0; color: #F4F8FB;
  background: linear-gradient(175deg, #FFFFFF 35%, #B7D0E6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hiver__titre::after {
  content: ""; display: block; width: clamp(92px, 12vw, 170px); height: clamp(11px, 1.3vw, 17px); margin: .18em 0 0 .1em;
  background: var(--c-rouge); -webkit-mask: url(../assets/trace.svg) center / 100% 100% no-repeat; mask: url(../assets/trace.svg) center / 100% 100% no-repeat;
  transform: rotate(-1.5deg); clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1) .2s;
}
.a-venir .hiver__titre::after { clip-path: inset(0 100% 0 0); }
.hiver__accroche { margin: 0 0 var(--s-2); max-width: 34ch; font-size: var(--fs-lg); color: #D8E3ED; }
.hiver__detail { margin: 0 0 var(--s-4); max-width: 40ch; font-size: var(--fs-sm); color: var(--c-muted); }
.hiver__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.hiver .btn--hero { min-width: 0; }
.carousel--hiver { grid-auto-columns: 78%; }
.carousel--hiver > .hiver__diapo { scroll-snap-align: start; }
@media (hover: none) { .carousel--hiver > .hiver__diapo { scroll-snap-stop: always; } }
.hiver__diapo { position: relative; margin: 0; overflow: hidden; background: #0E141B; }
.hiver__diapo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.4s var(--ease); }
@media (hover: hover) { .hiver__diapo:hover img { transform: scale(1.03); } }
.hiver__diapo figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--s-6) var(--s-3) var(--s-3);
  background: linear-gradient(to top, rgba(4, 8, 12, .88), rgba(4, 8, 12, 0));
  font: italic 400 clamp(1.05rem, .9rem + .6vw, 1.4rem)/1.25 var(--f-display); color: #F4F8FB;
}
.hiver__diapo figcaption span { display: block; margin-bottom: .45rem; font: 500 var(--fs-xs)/1 var(--f-text); font-style: normal; letter-spacing: var(--track); text-transform: uppercase; color: #A9C7E3; }
@media (min-width: 600px) { .carousel--hiver { grid-auto-columns: 46%; } }
@media (min-width: 1024px) {
  .hiver__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); }
  .carousel--hiver { grid-auto-columns: 58%; margin-inline: 0 calc(-1 * var(--gutter)); padding-inline: 0 var(--gutter); scroll-padding-inline: 0; }
}
@media (max-width: 599px) { .hiver__actions .btn--hero { flex: 1; } }

/* Fiche produit : bouton « ‹ Retour » (comme dans les apps iPhone) à côté du fil d'Ariane */
.fiche-haut { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; padding-top: var(--s-3); }
.fiche-haut .breadcrumb ol { padding-block: 0; }
.retour { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; margin-left: -6px; padding: 0 .9rem 0 .35rem;
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; letter-spacing: .02em; text-decoration: none; color: var(--c-text);
  transition: background .2s, transform .1s ease-out; -webkit-tap-highlight-color: transparent; }
.retour svg { transition: transform .25s var(--ease); }
.retour:hover { background: var(--c-surface); }
.retour:hover svg { transform: translateX(-3px); }
.retour:active { transform: scale(.96); }
@media (max-width: 599px) { .fiche-haut .breadcrumb { display: none; } }   /* téléphone : le bouton Retour suffit, place gagnée pour la photo */

/* SOUS-ONGLETS DU MENU (Tout voir · Hoodies · T-shirts) ---------------------------------------------------- */
@media (max-width: 1023px) {
  /* téléphone : la ligne « Femme » déplie ses sous-onglets en dessous (hauteur animée, sans saut) */
  .nav .nav__groupe > .nav__principal::after { content: "›"; content: "›" / ""; font: 300 1.6rem/1 var(--f-text); transform: rotate(90deg); transition: transform .35s var(--ease); }
  .nav .nav__groupe.is-ouvert > .nav__principal::after { transform: rotate(-90deg); }
  .nav .nav__sous { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
  .nav .nav__groupe.is-ouvert > .nav__sous { grid-template-rows: 1fr; }
  .nav .nav__sous > ul { min-height: 0; overflow: hidden; margin: 0; width: 100%; }
  .nav .nav__sous li { border: 0; }
  .nav .nav__sous li:last-child { padding-bottom: var(--s-3); }
  .nav .nav__sous a { padding: .8rem 0 .8rem 1.1rem; font: 500 var(--fs-sm)/1.2 var(--f-text); letter-spacing: .16em; color: var(--c-text);
    opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .35s var(--ease); }
  .nav .nav__groupe.is-ouvert .nav__sous a { opacity: 1; transform: none; }
  .nav .nav__groupe.is-ouvert .nav__sous li:nth-child(2) a { transition-delay: .04s; }
  .nav .nav__groupe.is-ouvert .nav__sous li:nth-child(3) a { transition-delay: .08s; }
  .nav .nav__sous a::after { content: "→"; content: "→" / ""; font-size: 1rem; }
  .nav .nav__sous a[aria-current="page"] { color: var(--c-rouge); }
}
@media (min-width: 1024px) {
  /* ordinateur : petit menu déroulant sous la catégorie survolée (ou atteinte au clavier) */
  .nav__groupe { position: relative; }
  .nav .nav__sous { position: absolute; z-index: 70; top: 100%; left: 50%; padding-top: 14px; /* pont invisible : la souris peut descendre */
    opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity .2s ease, transform .3s var(--ease), visibility 0s .3s; }
  .nav__groupe:hover > .nav__sous, .nav__groupe:focus-within > .nav__sous { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s ease, transform .3s var(--ease); }
  .nav .nav__sous ul { display: block; height: auto; width: auto; margin: 0; padding: .5rem 0; min-width: 200px;
    background: var(--c-bg); border: 1px solid var(--c-line); box-shadow: 0 16px 36px rgba(0, 0, 0, .1); }
  .nav .nav__sous a { line-height: 1.2; padding: .75rem 1.4rem; white-space: nowrap; background: none; letter-spacing: .16em; }
  .nav .nav__sous a:hover, .nav .nav__sous a:focus-visible { background: var(--c-surface); }
  .nav .nav__sous a[aria-current="page"] { color: var(--c-rouge); }
}

/* Onglets en haut de la rubrique (page catégorie) */
.onglets { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: var(--s-4); }
.onglets a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--c-line-strong); border-radius: 999px;
  font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .1s ease-out; }
.onglets a:hover { border-color: var(--c-text); }
.onglets a:active { transform: scale(.96); }
.onglets a[aria-current="page"] { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }

/* Guide des tailles : chiffres alignés, colonne des tailles en gras */
.table--tailles td, .table--tailles th[scope="row"] { font-variant-numeric: tabular-nums; }
.table--tailles th[scope="row"] { font-weight: 500; }
.table--tailles td { text-align: center; }
.table--tailles thead th:not(:first-child) { text-align: center; }
#guide-contenu [data-guide] + [data-guide] { margin-top: var(--s-5); }
html { scroll-padding-top: calc(var(--header-h) + 1rem); }   /* les ancres (#guide-tshirts…) ne passent pas sous l'en-tête collant */
.table--tailles th { white-space: normal; }
@media (max-width: 599px) { .table--tailles th, .table--tailles td { padding-inline: .5rem; letter-spacing: .06em; } }

/* Récapitulatif : mode de livraison et poids du colis sous « Livraison » */
.recap__detail { display: block; margin-top: .15rem; font-size: var(--fs-xs); letter-spacing: .02em; color: var(--c-muted); font-weight: 400; }

/* SAVOIR-FAIRE — du dessin au vêtement ---------------------------------------------------------
   Ouverture sombre, 3 étapes alternées (visuel / texte), procédé DTF en frise, chiffres, entretien.
   Mouvements liés au défilement seulement s'ils sont pris en charge, et jamais avec « réduire les animations ». */
.sf-ouverture { padding-block: var(--s-6) var(--s-7); overflow: hidden; }
.sf-ouverture__grille { display: grid; gap: var(--s-5); align-items: center; }
.sf-ouverture h1 { font-size: var(--fs-h1); margin-bottom: var(--s-3); }
.sf-ouverture .lead { color: var(--c-muted); }
.sf-sommaire { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: .1rem; counter-reset: none; }
.sf-sommaire a { display: flex; align-items: baseline; gap: 1rem; padding-block: .55rem; color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--c-line); transition: color .2s, padding-left .35s var(--ease); }
.sf-sommaire a span { font: 400 .8rem/1 var(--f-display); color: var(--c-gold); letter-spacing: .05em; }
@media (hover: hover) { .sf-sommaire a:hover { padding-left: .5rem; color: var(--c-gold); } }
.sf-ouverture__visuel { margin: 0; position: relative; justify-self: center; width: min(100%, 30rem); }
.sf-ouverture__visuel img { display: block; width: 100%; height: auto; background: #201F1F; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(230, 203, 142, .3), 0 40px 80px -30px rgba(0, 0, 0, .95); transform: rotate(2deg); }
.sf-ouverture__visuel figcaption { margin-top: .9rem; text-align: center; color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 900px) { .sf-ouverture__grille { grid-template-columns: 1.1fr .9fr; } }

.sf-etapes { overflow: hidden; }
.sf-etape { display: grid; gap: var(--s-4); align-items: center; scroll-margin-top: 6rem; }
.sf-etape + .sf-etape { margin-top: var(--s-7); }
.sf-etape__visuel { position: relative; }
.sf-cadre, .sf-loupe { position: relative; overflow: hidden; border-radius: 2px; background: var(--c-surface); }
.sf-cadre img, .sf-loupe img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.sf-etape__texte { max-width: 34rem; }
.sf-etape__texte h2 { margin-bottom: var(--s-3); }
.sf-etape__texte > p:not(.eyebrow) { line-height: 1.7; }
.sf-num { display: block; margin-bottom: .2rem; color: transparent; -webkit-text-stroke: 1px var(--c-gold);
  font: 400 clamp(3.5rem, 2.6rem + 3.5vw, 6rem)/1 var(--f-display); font-variation-settings: "opsz" 11; }
@media (min-width: 900px) {
  .sf-etape { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
  .sf-etape--inverse .sf-etape__visuel { order: 2; }
}

/* Loupe sur l'illustration (appareils avec souris) */
.sf-loupe__verre { position: absolute; left: 0; top: 0; width: 170px; height: 170px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .15);
  background-repeat: no-repeat; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .2s, transform .3s var(--ease); }
.sf-loupe.is-active .sf-loupe__verre { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sf-loupe.is-active { cursor: none; }
.sf-astuce { margin: .8rem 0 0; color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: .08em; }
@media (hover: none) { .sf-astuce, .sf-loupe__verre { display: none; } }

/* Procédé DTF : frise verticale, le fil doré se remplit au défilement */
.sf-procede { position: relative; list-style: none; margin: var(--s-4) 0 0; padding: 0 0 0 2.2rem; counter-reset: etape; }
.sf-procede::before, .sf-procede::after { content: ""; position: absolute; left: .6rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--c-line); }
.sf-procede::after { background: var(--c-gold); transform-origin: top; transform: scaleY(1); }
.sf-procede li { position: relative; padding-bottom: 1.1rem; color: var(--c-muted); line-height: 1.55; counter-increment: etape; }
.sf-procede li:last-child { padding-bottom: 0; }
.sf-procede li::before { content: counter(etape); position: absolute; left: -2.2rem; top: 0; display: grid; place-items: center; width: 1.25rem; height: 1.25rem;
  border: 1px solid var(--c-gold); border-radius: 50%; background: var(--c-bg); color: var(--c-gold); font: 500 .7rem/1 var(--f-text); z-index: 1; }
.sf-procede strong { display: block; color: var(--c-text); font-weight: 600; letter-spacing: .04em; }

/* Chiffres des matières */
.sf-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); margin: var(--s-4) 0 var(--s-3); }
.sf-chiffres div { border-top: 1px solid var(--c-line); padding-top: .8rem; }
.sf-chiffres dt { color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.sf-chiffres dd { margin: .3rem 0 0; font: 400 1.05rem/1.2 var(--f-text); }
.sf-chiffres dd span { font: 500 clamp(2rem, 1.6rem + 1.6vw, 2.9rem)/1 var(--f-display); font-variant-numeric: tabular-nums; margin-right: .15em; }

/* Entretien */
.sf-soin .lead { color: var(--c-muted); }
.sf-soin__liste { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.sf-soin__liste li { display: grid; gap: .45rem; align-content: start; padding: var(--s-4) var(--s-3); border: 1px solid var(--c-line); border-radius: 2px; transition: border-color .3s, transform .4s var(--ease); }
.sf-soin__liste li:nth-child(2) { transition-delay: .06s; } .sf-soin__liste li:nth-child(3) { transition-delay: .12s; } .sf-soin__liste li:nth-child(4) { transition-delay: .18s; }
@media (hover: hover) { .sf-soin__liste li:hover { border-color: var(--c-gold); transform: translateY(-4px); } }
.sf-soin__icone { color: var(--c-gold); margin-bottom: .4rem; }
.sf-soin__liste strong { font: 600 1.15rem/1.2 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.sf-soin__liste span { color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.55; }
.sf-fin__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: var(--s-4); }
.sf-fin .lead { margin-inline: auto; }

/* Mouvements au défilement (navigateurs récents) : zoom doux des visuels, ouverture en léger parallaxe, fil du procédé */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sf-cadre img, .sf-loupe img { animation: sf-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    @keyframes sf-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
    .sf-ouverture__visuel img { animation: sf-flotte linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes sf-flotte { from { transform: rotate(2deg) translateY(0); } to { transform: rotate(-1deg) translateY(-12%); } }
    .sf-procede::after { animation: sf-fil linear both; animation-timeline: view(); animation-range: entry 40% cover 60%; }
    @keyframes sf-fil { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}

/* Confirmation de paiement : le titre reçoit le focus (lecteurs d’écran) sans cadre visible */
.confirmation h2:focus { outline: none; }

/* Logo de l'en-tête : zone tactile de 44 px de haut (retour à l'accueil), sans changer sa taille visible */
.header .logo { min-height: 44px; }

/* Fondus (navigateurs récents) : entre deux pages du site, et entre deux photos d'une fiche — pas de saut blanc ↔ noir */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: .22s; }

/* Femme / Homme : rappel « coupes unisexes » sous l'introduction */
.note-unisexe { margin: var(--s-3) auto 0; max-width: 52ch; font-size: .9375rem; color: var(--c-muted); text-align: center; }
.note-unisexe a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Commande : choix du mode de livraison (Point Relais / domicile), prix comparés, carte des Points Relais */
.field[hidden], .carte-relais[hidden] { display: none; }
.choix-livraison { border: 0; padding: 0; min-width: 0; gap: .6rem; }
.choix-livraison legend { padding: 0; margin-bottom: .6rem; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.choix-livraison .option-livraison { display: flex; align-items: center; gap: .9rem; min-height: 56px; padding: .8rem 1rem; border: 1px solid var(--c-line-strong);
  cursor: pointer; text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); color: var(--c-text); }
.option-livraison:has(input:checked) { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
.option-livraison input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-text); flex: none; }
.option-livraison__texte { display: grid; gap: .15rem; flex: 1; }
.option-livraison__texte small { color: var(--c-muted); font-size: var(--fs-xs); }
.option-livraison__prix { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.comparatif-livraison { margin: .2rem 0 0; color: var(--c-muted); }
.comparatif-livraison:empty { display: none; }
.relais-saisie { display: flex; gap: .5rem; }
.relais-saisie input { flex: 1; min-width: 0; }
.relais-saisie .btn { flex: none; white-space: nowrap; }
@media (max-width: 479px) { .relais-saisie { flex-direction: column; } }
.carte-relais { margin-top: .75rem; border: 1px solid var(--c-line); }

/* Code promo : champ du récapitulatif, ligne de remise */
@media (hover: hover) { .promo-form { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.promo-form label { display: block; margin-bottom: .4rem; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.promo-saisie { display: flex; gap: .5rem; }
.promo-saisie input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; }
.promo-saisie .btn { flex: none; }
#promo-msg { margin: .5rem 0 0; }
#promo-msg:empty { display: none; }
.promo-ok { color: var(--c-text); }
.promo-ko { color: var(--c-error); }
.recap__remise dd { color: var(--c-text); font-weight: 600; }

/* CGV : encadré légal des garanties (texte réglementaire) */
.encadre-legal { margin: var(--s-3) 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--c-line-strong); }
.encadre-legal p { margin: 0 0 .6rem; }
.encadre-legal p:last-child { margin-bottom: 0; }

/* Carte Mondial Relay : le module garde son propre style, toujours en version claire.
   Sans ça, les réglages des champs du site (largeur 100 %, hauteur 48 px, texte clair en mode sombre, libellés en capitales)
   s'appliquent aussi à ses champs Ville / CP, et le texte devient invisible. */
#carte-relais { color-scheme: light; background: #fff; color: #222; overflow-x: auto; }
#carte-relais label { text-transform: none; letter-spacing: normal; font-size: 14px; color: #555; }
#carte-relais input:not([type="checkbox"], [type="radio"]), #carte-relais select {
  width: auto; max-width: 100%; min-height: 0; padding: 4px 8px; border: 1px solid #ccc; border-radius: 4px;
  background: #fff; color: #222; font-size: 16px; /* 16 px : l'iPhone ne zoome pas en touchant le champ */
}
#carte-relais img { max-width: none; }   /* les tuiles de la carte (Leaflet) ne doivent pas être redimensionnées */
/* Carte seule : sans la liste des Points Relais ni le formulaire de recherche du module (l'adresse vient déjà du formulaire).
   On choisit en touchant un repère sur la carte ; en la déplaçant, le module charge les Points Relais alentour. */
#carte-relais .MRW-Title, #carte-relais .MRW-Search, #carte-relais .MRW-RList, #carte-relais .MRW-ShowList { display: none !important; }
#carte-relais .MRW-Results { height: auto !important; min-height: 0 !important; padding: 0 !important; overflow: visible !important; }
#carte-relais .MRW-Map { position: relative !important; float: none !important; width: 100% !important; max-width: 100% !important; height: min(62vh, 480px) !important; }
#carte-relais .MR-Widget { width: 100% !important; height: auto !important; margin: 0 !important; }
#carte-relais .carte-relais__aide { margin: 0; padding: .6rem .8rem; font-size: 14px; line-height: 1.4; color: #333; background: #f4f2ee; border-bottom: 1px solid #e4e2de; }

