/* Socle de la maison Blondélice (DESIGN.md) : jetons, typographie, boutons, champs, coquille (annonce, en-tête,
   menu, onglets, tiroir du panier, pied) et composants partagés (cartes, carrousels, fil, accordéons, choix).
   Les pages ont leur feuille : accueil.css, produit.css ; le reste vit encore dans cercle.css et vues-2.css.
   Titres et texte : Instrument Sans (le serif des titres a été refusé le 03/12) ; Latin Modern Roman, le serif de la
   charte, ne sert plus qu'au logo et aux chiffres insécables. Le cerise signe l'engagement, jamais un aplat. */

@font-face { font-family: 'LM Roman'; src: url(../polices/lmroman17-regular.otf) format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'LM Roman Texte'; src: url(../polices/lmroman10-regular.otf) format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'LM Roman Texte'; src: url(../polices/lmroman10-italic.otf) format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
/* L'espace insécable du Latin Modern fait un demi-cadratin (« 189   € ») : celle d'Instrument Sans la remplace.
   Déclarée après, elle passe devant pour ce seul caractère. */
@font-face { font-family: 'LM Roman'; src: url(../polices/instrument-sans.woff2) format('woff2'); unicode-range: U+00A0; font-display: swap; }
@font-face { font-family: 'LM Roman Texte'; src: url(../polices/instrument-sans.woff2) format('woff2'); unicode-range: U+00A0; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(../polices/instrument-sans.woff2) format('woff2');
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(../polices/instrument-sans-italique.woff2) format('woff2');
  font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; font-display: swap; }

:root {
  /* Couleurs de la charte, comme la maquette C choisie par la fondatrice : crème au fond, chocolat pour lire, cerise
     pour les titres et l'action principale, or et or clair pour les filets. (« porcelaine » garde son nom : c'est le fond.) */
  --porcelaine: #F5EFE6;     /* charte : crème */
  --creme: #F5EFE6;          /* charte */
  --puits: #ECE3D6;          /* crème un ton plus bas, comme les cartes de la maquette C */
  --sable: #DFD2C1;
  --encre: #3B2418;          /* charte : chocolat, jamais de noir */
  --voile: #6E5C52;          /* texte secondaire, 5,3:1 sur la crème */
  --filet: rgba(59, 36, 24, .14);
  --filet-fort: rgba(59, 36, 24, .32);
  --cerise: #5C0F1C;         /* charte */
  --cerise-fonce: #470A15;
  --chocolat: #3B2418;       /* charte */
  --or: #9A7448; --or-clair: #E3C79A; --or-texte: #7A5A34; /* or lisible pour les surtitres (DESIGN.md) */
  --blanc-85: rgba(255, 255, 255, .86);
  /* Anciens noms, gardés pour les feuilles pas encore reprises (cercle.css, vues-2.css). */
  --carte: var(--puits); --encre-70: rgba(59, 36, 24, .76); --encre-62: var(--voile); --encre-15: var(--filet);
  --cerise-pale: rgba(92, 15, 28, .38);

  /* Titres en Instrument Sans (retour du 03/12 sur le serif) ; le Latin Modern reste au logo. Les noms gardent leur
     rôle : --serif pour les titres, --serif-texte pour les noms et citations. */
  --serif: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;
  --serif-texte: var(--serif);
  --sans: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;
  --f: var(--sans);

  /* Échelle (1440 px / 390 px). Le titre d'affiche ne dépasse pas 64 px : la taille n'est pas la hiérarchie. */
  --t-affiche: clamp(38px, 4.3vw, 62px);
  --t-titre: clamp(32px, 3.05vw, 44px);
  --t-section: clamp(26px, 2.36vw, 34px);
  --t-sous: clamp(20px, 1.6vw, 23px);
  --t-lead: clamp(16.5px, 1.25vw, 18px);

  /* Espace : marges latérales larges, un seul pas entre deux sections (jamais additionné). */
  --marge: clamp(20px, 5.56vw, 80px);
  --g: var(--marge);
  --contenu: 1280px;
  --bord: max(var(--marge), calc((100% - var(--contenu)) / 2));
  --pas: clamp(56px, 6vw, 88px);
  --pas-court: clamp(40px, 4.45vw, 64px);
  --r: 2px;
  --r-feuille: 14px;
  --annonce: 32px;
  --entete: 76px;
  --onglets: 0px;
  --doux: cubic-bezier(.32, .72, 0, 1);
  --sortie: cubic-bezier(.2, .6, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } /* pas de voile bleu au toucher : le lien enfoncé (.presse, mouvement.css) répond */
body { margin: 0; background: var(--porcelaine); color: var(--encre); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; padding-bottom: var(--onglets); font-feature-settings: 'kern'; }
::selection { background: var(--or-clair); color: var(--encre); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--chocolat); outline-offset: 3px; border-radius: 1px; }
.bld-sans-defilement, .bld-sans-defilement body { overflow: hidden; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--encre); color: var(--porcelaine); padding: 12px 16px; border-radius: var(--r); }
.evitement:focus { top: 8px; }

/* ---------- Typographie ---------- */
.t-hero, .t-h2, .t-h3, .t-titre { font-family: var(--serif); font-weight: 400; color: var(--encre); font-kerning: normal; }
/* Maquette C : les titres de campagne et de section en cerise. */
.t-hero, .t-h2 { color: var(--encre); } /* titres chocolat partout, comme l'accueil */
.t-hero { font-size: var(--t-affiche); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.t-titre { font-size: var(--t-titre); line-height: 1.1; letter-spacing: -.024em; }
.t-h2 { font-size: var(--t-section); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
.t-h3 { font-size: var(--t-sous); line-height: 1.22; }
.t-lead { font-size: var(--t-lead); line-height: 1.6; color: var(--voile); }
.t-corps { font-size: 16px; line-height: 1.6; }
.t-petit { font-size: 14px; line-height: 1.5; }
.t-gris { color: var(--voile); }
.t-titre-carte { font-family: var(--sans); font-size: 15.5px; line-height: 1.35; font-weight: 500; letter-spacing: .002em; }
.t-prix { font-family: var(--sans); font-size: 15px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Ancien surtitre : un repère discret là où il reste, jamais en capitales criardes. */
.surtitre { font-size: 13px; line-height: 1.4; letter-spacing: .01em; color: var(--voile); }


/* ---------- Boutons et liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--r); font: 500 15px/1.15 var(--sans); letter-spacing: .005em; text-align: center;
  transition: background-color .3s var(--sortie), color .3s var(--sortie), border-color .3s var(--sortie); }
.btn svg { width: 13px; height: 13px; flex: none; transition: transform .4s var(--doux); }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn--cerise { background: var(--cerise); color: var(--porcelaine); }
.btn--cerise:hover:not(:disabled) { background: var(--cerise-fonce); }
.btn--creme { background: var(--porcelaine); color: var(--encre); }
.btn--creme:hover { background: #fff; }
.btn--verre { color: #fff; border-color: rgba(255, 255, 255, .72); }
.btn--verre:hover { background: rgba(255, 255, 255, .12); }
.btn--sombre { background: var(--encre); color: var(--porcelaine); }
.btn--sombre:hover:not(:disabled) { background: var(--chocolat); }
.btn--contour { border-color: var(--filet-fort); color: var(--encre); background: transparent; }
.btn--contour:hover:not(:disabled) { border-color: var(--encre); }
.btn--plein { width: 100%; }
.btn--fin { min-height: 42px; padding: 0 20px; font-size: 14px; }
.lien, .lien-cerise { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 500 15px/1.3 var(--sans); color: var(--encre);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--filet-fort); transition: text-decoration-color .3s, color .3s; }
.lien:hover, .lien-cerise:hover { text-decoration-color: currentColor; color: var(--cerise); }
.lien svg, .lien-cerise svg { width: 12px; height: 12px; }
.fleches { display: flex; gap: 8px; align-items: center; }
.fleche { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--filet-fort); color: var(--encre); background: transparent; transition: border-color .3s, opacity .3s, background-color .3s; }
.fleche:hover:not(:disabled) { border-color: var(--encre); }
.fleche--pale { border-color: var(--filet-fort); }
.fleche:disabled { opacity: .35; cursor: default; }
.fleche svg { width: 14px; height: 14px; }

/* Étiquette posée sur une photo : un fait réel, en casse de phrase, sans pastille. */
.etiquette { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 10px; border-radius: var(--r);
  background: rgba(245, 239, 230, .92); color: var(--encre); font: 500 12.5px/1.2 var(--sans); letter-spacing: .01em; }
/* Photo de banque ou générée, en attendant la séance : toujours dite (sur l'image, ou sous une grille de petites cartes). */
.note-provisoire { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--voile); }
.provisoire { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 3px 8px; border-radius: var(--r); background: rgba(245, 239, 230, .9);
  color: var(--encre); font: 500 12px/1.3 var(--sans); letter-spacing: .01em; pointer-events: none; }
.etiquette i { display: none; }
.etiquette--pale { background: var(--creme); }

/* ---------- Champs ---------- */
.champ:is(input, select, textarea), .formulaire input:not([type="checkbox"]):not([type="radio"]), .formulaire select, .formulaire textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--filet-fort); border-radius: var(--r); background: #fff;
  font-size: 16px; transition: border-color .25s; }
/* Champ en erreur : la bordure rouge passe devant la bordure normale (plus spécifique ci-dessus). */
.formulaire :is(input, select, textarea)[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]) { border-color: #9B1C2E; }
.champ:is(input, select, textarea):focus, .formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--encre); }

/* ---------- Bandeau d'annonce et en-tête ---------- */
.annonce { height: var(--annonce); display: flex; align-items: center; justify-content: center; padding: 0 16px; background: var(--cerise);
  color: var(--porcelaine); font-size: 12.5px; letter-spacing: .02em; text-align: center; line-height: 1.2; }
.entete { position: absolute; z-index: 40; top: var(--annonce); left: 0; right: 0; height: var(--entete); display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 0 var(--marge); color: var(--encre);
  border-bottom: 1px solid var(--filet); transition: transform .5s var(--doux), background-color .35s, border-color .35s, color .35s; }
.entete__marque { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.entete__logo { position: relative; width: clamp(150px, 12.2vw, 176px); }
.entete__logo img { width: 100%; height: auto; transition: opacity .35s; }
.entete__logo .logo-creme { position: absolute; inset: 0; opacity: 0; }
.entete__ligne { display: none; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); min-width: 0; }
.nav--droite { justify-content: flex-end; }
.nav a, .nav__mot { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; letter-spacing: .005em; white-space: nowrap; }
.nav a::after, .nav__mot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--doux); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav__mot:hover::after { transform: scaleX(1); }
.nav__panier { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; }
.nav__panier svg { display: none; }
.nav__panier svg, .nav__menu svg, .nav__compte svg { width: 20px; height: 20px; }
.nav__compte { display: none; }
.nav__menu { display: none; align-items: center; justify-content: center; min-width: 44px; height: 44px; margin-left: -10px; }
.nav__fermer { font-size: 14px; }
.compte-bulle { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cerise); color: var(--porcelaine); font-size: 11px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.compte-bulle[data-vide] { display: none; }
.nav__panier .compte-bulle { background: none; color: inherit; font-size: 14.5px; padding: 0; min-width: 0; }
.nav__panier .compte-bulle::before { content: '('; } .nav__panier .compte-bulle::after { content: ')'; }

/* Sur la photo de l'accueil, des pages de saison et du Hair Finder : en-tête clair, sans filet. */
[data-vue="noel"] .entete:not(.entete--flottant), [data-vue="finder"] .entete:not(.entete--flottant) { color: #fff; border-bottom-color: rgba(255, 255, 255, .22); }
[data-vue="noel"] .entete:not(.entete--flottant) .logo-creme, [data-vue="finder"] .entete:not(.entete--flottant) .logo-creme { opacity: 1; }
[data-vue="noel"] .entete:not(.entete--flottant) .logo-cerise, [data-vue="finder"] .entete:not(.entete--flottant) .logo-cerise { opacity: 0; }
/* En-tête qui revient en remontant */
.entete--flottant { position: fixed; top: 0; height: 64px; background: rgba(245, 239, 230, .9); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); }
.entete--cache { transform: translateY(-105%); }
.menu-ouvert .entete { position: fixed; top: 0; z-index: 85; color: var(--encre); background: var(--porcelaine); transform: none; }
.menu-ouvert .entete .logo-creme { opacity: 0 !important; }
.menu-ouvert .entete .logo-cerise { opacity: 1 !important; }

/* ---------- Vue courante ---------- */
main { display: block; min-height: 60vh; outline: none; }
main.entree { animation: vueEntree .6s var(--sortie) both; }
@keyframes vueEntree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.vue-haut { padding-top: calc(var(--entete) + clamp(24px, 2.8vw, 40px)); }
.section { padding: var(--pas) var(--bord); }
.section--sans-haut { padding-top: 0; }
.section--courte { padding-block: var(--pas-court); }
/* Tête de section : titre, une phrase dessous, l'éventuel lien sous la phrase, alignés à gauche. Jamais de colonne de droite. */
.entete-section { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: clamp(32px, 3.3vw, 48px); max-width: 760px; }
.entete-section__droite { display: contents; }
.entete-section__droite > p { max-width: 35em; color: var(--voile); }
.entete-section__droite > :not(p) { margin-top: 4px; }

/* ---------- Mouvement : un fondu calme, coupé si mouvement réduit ou capture automatisée ---------- */
[data-titre] { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--sortie), transform .6s var(--doux); }
[data-titre].vu { opacity: 1; transform: none; }
[data-titre] .mot { display: inline; }
[data-anim] { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--sortie), transform .55s var(--doux); transition-delay: var(--retard, 0ms); }
[data-anim].vu { opacity: 1; transform: none; }
.zoom-lent img, img.zoom-lent { transition: transform 1.6s var(--doux), opacity .7s var(--sortie); }
a:hover .zoom-lent img, a:hover img.zoom-lent, .carte-lien:hover .zoom-lent img { transform: scale(1.03); }
.calme [data-titre], .calme [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
/* Au doigt, le contenu est là d'emblée, comme dans une application : un coup de pouce va plus vite que n'importe quel
   fondu, les blocs apparaissaient en retard sur un écran déjà arrivé (mesuré le 04/12). Les fondus restent à la souris. */
@media (hover: none) { [data-titre], [data-anim] { opacity: 1; transform: none; transition: none; } }
.calme main.entree { animation: none; }
.calme *, .calme *::before, .calme *::after { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Carrousels (au doigt, flèches, ligne de progression) ---------- */
.carrousel { position: relative; min-width: 0; }
.carrousel__piste { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carrousel__piste::-webkit-scrollbar { display: none; }
.carrousel__piste > * { scroll-snap-align: start; flex: none; }
.carrousel__progres { position: relative; height: 1px; background: var(--filet); margin-top: 36px; }
.carrousel__progres span { position: absolute; top: -.5px; left: 0; height: 2px; background: var(--encre); width: 40%; transition: transform .25s linear; transform-origin: left; }
.carrousel__points { display: none; justify-content: center; margin-top: 8px; }
.carrousel__points button { width: 44px; height: 44px; display: grid; place-items: center; }
.carrousel__points button::before { content: ''; width: 5px; height: 5px; border-radius: 3px; background: var(--filet-fort); transition: width .4s var(--doux), background-color .3s; }
.carrousel__points button[aria-current="true"]::before { width: 16px; background: var(--encre); }
/* Flèches au pied du carrousel, sur la ligne de progression (jamais à côté d'un titre). */
.carrousel:has(> .fleches--pied) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 32px; }
.carrousel:has(> .fleches--pied) > * { grid-column: 1 / -1; }
.carrousel:has(> .fleches--pied) > .carrousel__progres { grid-column: 1; grid-row: 2; margin-top: 32px; }
.carrousel > .fleches--pied { grid-column: 2; grid-row: 2; margin-top: 32px; }

/* ---------- Cartes produit : photo sur puits, texte dessous, ni boîte ni badge ---------- */
.grille-produits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 3.4vw, 48px) clamp(12px, 1.4vw, 20px); }
.grille-produits--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.produit { display: flex; flex-direction: column; min-width: 0; }
.produit__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--puits); }
.produit__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.produit__media .produit__survol { opacity: 0; }
.produit:hover .produit__media .produit__survol { opacity: 1; }
.produit__media .etiquette { position: absolute; top: 12px; left: 12px; }
.produit__texte { padding-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; }
.produit__texte .t-gris, .produit__info { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.45; color: var(--voile); }
.produit__texte .t-gris { margin-top: 2px; }
.actions-droite { display: flex; justify-content: flex-start; margin-top: 40px; }

/* ---------- Tête de page : sans fil d'Ariane, alignée à gauche ---------- */
.boutique-tete { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 760px; }
.boutique-tete h1 { font-family: var(--serif); font-weight: 400; font-size: var(--t-titre); line-height: 1.08; letter-spacing: -.024em; color: var(--encre); }
.boutique-tete h1 small { display: block; margin-top: 14px; font: 400 14px/1 var(--sans); letter-spacing: 0; color: var(--voile); }
/* Le compte de produits hors du titre (un H1 propre pour les moteurs), même rendu : l'écart vient du gap. */
.boutique-tete > small { display: block; font: 400 14px/1 var(--sans); letter-spacing: 0; color: var(--voile); }
.boutique-tete p { color: var(--voile); max-width: 50em; }

/* ---------- Filtres, choix, quantités ---------- */
.filtres { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; margin: 24px 0 28px; padding: 10px 0; border-block: 1px solid var(--filet); }
.filtres .puces--nuances { grid-column: 1 / -1; grid-row: 2; padding-top: 10px; border-top: 1px solid var(--filet); }
.puces { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; min-width: 0; }
.puce { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: var(--r); border: 1px solid transparent; font-size: 14.5px; white-space: nowrap; color: var(--voile); transition: color .25s, border-color .25s, background-color .25s; }
.puce:hover { color: var(--encre); }
.puce[aria-pressed="true"] { color: var(--encre); border-color: var(--encre); }
.puce:disabled { opacity: .42; cursor: not-allowed; }
.puces__sep { width: 1px; height: 20px; background: var(--filet); margin: 0 8px; }
.teinte { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(43, 27, 19, .12); flex: none; vertical-align: -3px; margin-right: 8px; }
.puce .teinte { margin-right: 0; width: 16px; height: 16px; }
.selecteurs { display: flex; gap: 8px; flex: none; }
.selecteur { position: relative; }
.selecteur select { -webkit-appearance: none; appearance: none; height: 40px; min-width: 0; padding: 0 36px 0 14px; border-radius: var(--r); border: 1px solid var(--filet-fort); background: transparent; font-size: 14.5px; cursor: pointer; }
.selecteur::after { content: ''; position: absolute; right: 15px; top: 50%; width: 6px; height: 6px; border-right: 1.2px solid var(--encre); border-bottom: 1.2px solid var(--encre); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.vide { padding: 64px 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.option { min-height: 46px; min-width: 64px; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--filet-fort); background: transparent; font-size: 15px; line-height: 1.2; text-align: left; transition: border-color .25s, box-shadow .25s, background-color .25s; }
.option small { display: block; font-size: 12.5px; color: var(--voile); margin-top: 3px; }
.option:hover:not(:disabled) { border-color: var(--encre); }
.option[aria-pressed="true"] { border-color: var(--encre); box-shadow: inset 0 0 0 .5px var(--encre); background: #fff; }
.option:disabled { opacity: .38; cursor: not-allowed; }
.option.fixe { background: var(--creme); border-color: transparent; box-shadow: none; }
.options--l { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.options--l .option { min-width: 0; padding: 8px 6px; text-align: center; }
.teintes { display: flex; gap: 6px; flex-wrap: wrap; }
.teintes a, .teintes button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid transparent; transition: border-color .25s; }
.teintes a i, .teintes button i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(43, 27, 19, .1); }
.teintes a:hover, .teintes button:hover { border-color: var(--filet-fort); }
.teintes a[aria-current="true"], .teintes button[aria-current="true"] { border-color: var(--encre); }
.qte { display: inline-flex; align-items: center; border: 1px solid var(--filet-fort); border-radius: var(--r); }
.qte button { width: 44px; height: 46px; font-size: 17px; color: var(--voile); transition: color .2s; }
.qte button:hover { color: var(--encre); }
.qte output { min-width: 28px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- Accordéons ---------- */
.accordeon { border-top: 1px solid var(--filet); }
.accordeon details { border-bottom: 1px solid var(--filet); }
.accordeon summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; cursor: pointer;
  font-size: 16.5px; font-weight: 500; line-height: 1.35; }
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::after { content: ''; flex: none; width: 11px; height: 11px; background: linear-gradient(currentColor, currentColor) center / 11px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 11px no-repeat; transition: transform .45s var(--doux); }
.accordeon details[open] summary::after { transform: rotate(45deg); }
.accordeon .reponse { padding: 0 0 22px; color: var(--voile); max-width: 640px; display: grid; gap: 10px; }
.accordeon--petit summary { font-size: 16px; min-height: 56px; }

/* ---------- Barre d'achat (téléphone) ---------- */
.barre-achat { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--marge) calc(10px + env(safe-area-inset-bottom)); background: rgba(245, 239, 230, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--filet); transform: translateY(110%); transition: transform .5s var(--doux); }
.barre-achat.visible { transform: none; }
.barre-achat div { min-width: 0; }
.barre-achat strong { display: block; font: 500 15px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-achat span { font-size: 14px; color: var(--voile); }
.barre-achat .btn { min-height: 46px; padding: 0 22px; }

/* ---------- Tiroir du panier ---------- */
.voile { position: fixed; inset: 0; z-index: 80; background: rgba(43, 27, 19, .32); opacity: 0; pointer-events: none; transition: opacity .45s var(--sortie); }
.voile.ouvert { opacity: 1; pointer-events: auto; }
.tiroir { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--porcelaine); display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(102%); transition: transform .55s var(--doux); box-shadow: -32px 0 64px rgba(43, 27, 19, .1); visibility: hidden; }
.tiroir.ouvert { transform: none; visibility: visible; }
.tiroir__tete { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--filet); }
.tiroir__tete h2:focus { outline: none; }
.tiroir__tete h2 { font: 400 24px/1.2 var(--serif); }
.tiroir__fermer { min-height: 44px; padding: 0 2px; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--filet-fort); }
.seuil { padding: 14px 24px; border-bottom: 1px solid var(--filet); font-size: 14px; }
.seuil__barre { height: 2px; background: var(--filet); margin-top: 10px; overflow: hidden; }
.seuil__barre span { display: block; height: 100%; background: var(--or); transition: width .7s var(--doux); }
.tiroir__defile { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tiroir__lignes { flex: 1; overflow-y: auto; padding: 4px 24px; overscroll-behavior: contain; }
.tiroir__defile .tiroir__lignes { flex: none; overflow: visible; }
.tiroir__details { display: grid; gap: 8px; padding: 4px 24px 20px; }
.tiroir__details .seuil { padding: 12px 0; border-bottom: 0; }
.tiroir__defile > .tiroir__note { padding: 8px 24px 20px; }
.ligne { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.ligne > img { width: 72px; height: 96px; object-fit: cover; background: var(--puits); }
.ligne__titre { display: inline-block; padding-block: 13px; margin-block: -13px; font: 500 15px/1.35 var(--sans); }
.ligne__detail { font-size: 13.5px; color: var(--voile); margin-top: 3px; }
.ligne__actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.ligne__actions .qte button { width: 40px; height: 40px; }
.ligne__retirer { font-size: 13.5px; color: var(--voile); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--filet-fort); min-height: 40px; }
.ligne__prix { font: 400 15px/1.35 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ligne.nouvelle { animation: ligneNouvelle 1.6s var(--sortie); }
@keyframes ligneNouvelle { 0% { background: rgba(227, 199, 154, .35); } 100% { background: transparent; } }
.tiroir__vide { padding: 48px 24px; display: grid; gap: 16px; justify-items: start; }
.tiroir__vide p { color: var(--voile); }
.tiroir__pied { padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--filet); display: grid; gap: 8px; background: var(--porcelaine); }
.total { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--voile); }
.total--fort { font: 500 17px/1.3 var(--sans); color: var(--encre); }
.tiroir__note { font-size: 13px; color: var(--voile); margin-top: 2px; }
.tiroir__pied .btn { margin-top: 8px; min-height: 52px; }

/* ---------- Menu (téléphone) ---------- */
.menu { position: fixed; z-index: 70; inset: 0; background: var(--porcelaine); padding: calc(var(--entete) + 24px) var(--marge) 40px; display: flex; flex-direction: column;
  transform: translateY(-102%); transition: transform .6s var(--doux); visibility: hidden; overflow-y: auto; }
.menu.ouvert { transform: none; visibility: visible; }
.menu a { font: 400 30px/1.15 var(--serif); color: var(--encre); min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--filet); }
.menu .menu__petit { font: 400 16px/1.4 var(--sans); min-height: 48px; color: var(--voile); border-bottom: 0; }
.menu .menu__petit:first-of-type { margin-top: 24px; }

/* ---------- Barre d'onglets (téléphone) ---------- */
.onglets { display: none; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(245, 239, 230, .94); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); border-top: 1px solid var(--filet);
  grid-template-columns: repeat(5, 1fr); transition: transform .4s var(--doux); }
.onglets a, .onglets button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; letter-spacing: .01em; color: var(--voile); position: relative; min-height: 44px; }
.onglets svg { width: 21px; height: 21px; stroke-width: 1.2; }
.onglets [aria-current="page"] { color: var(--cerise); }
.onglets .compte-bulle { position: absolute; top: 3px; left: calc(50% + 6px); }
/* :has plutôt que la classe sur <html> : React réécrit className de <html> et l'effaçait à l'ouverture. */
:root:has(.barre-achat.visible) .onglets, .barre-achat-visible .onglets { transform: translateY(105%); }

/* ---------- Pied de page : chocolat, le nom en grand ---------- */
.pied { background: var(--chocolat); color: var(--creme); padding: clamp(56px, 6.2vw, 88px) var(--bord) calc(28px + var(--barre-achat, 0px)); }
.pied__haut { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
.pied__logo { width: 168px; }
.pied__ligne { margin-top: 18px; font-size: 14px; line-height: 1.5; color: rgba(245, 239, 230, .72); }
.pied__colonnes { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(40px, 5.6vw, 80px); }
.pied__colonnes h2 { font: 500 14px/1.3 var(--sans); color: var(--or-clair); letter-spacing: .01em; }
.pied__colonnes ul { margin-top: 10px; }
.pied__colonnes a { display: inline-flex; align-items: center; min-height: 34px; font-size: 14.5px; color: rgba(245, 239, 230, .86); transition: color .25s; }
.pied__colonnes a:hover { color: #fff; }
.pied__nom { margin: clamp(48px, 5.6vw, 80px) 0 0; opacity: .9; }
.pied__nom img { width: 100%; height: auto; }
.pied__bas { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-top: clamp(32px, 3.4vw, 48px); padding-top: 20px; border-top: 1px solid rgba(245, 239, 230, .18); font-size: 13px; color: rgba(245, 239, 230, .7); }
.pied__bas nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.pied__bas a { min-height: 24px; display: inline-flex; align-items: center; transition: color .25s; }
.pied__bas a:hover { color: #fff; }
.pied__provisoire { flex-basis: 100%; opacity: .7; font-size: 12.5px; }

/* Écrans tactiles : cibles de 44 px au moins */
@media (pointer: coarse) {
  .btn, .puce, .selecteur select, .lien, .lien-cerise { min-height: 44px; }
  .pied__colonnes a, .pied__bas a { min-height: 44px; }
  .ligne__retirer { min-width: 44px; min-height: 44px; }
  .ligne__actions .qte button { width: 44px; height: 44px; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .grille-produits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav--gauche a:nth-child(n+4) { display: none; }
  .pied__haut { grid-template-columns: minmax(0, 1fr); }
  .filtres { grid-template-columns: minmax(0, 1fr); }
  .filtres .puces--nuances { grid-row: auto; }
  .selecteurs { justify-content: flex-start; }
}

/* Petite tablette : la navigation passe au menu avant de se serrer. */
@media (max-width: 900px) {
  .nav--gauche a { display: none; }
  .nav--gauche .nav__menu { display: inline-flex; }
  .nav--droite > a { display: none; }
}

/* ---------- Téléphone : sensation d'application ---------- */
@media (max-width: 760px) {
  :root { --onglets: calc(58px + env(safe-area-inset-bottom)); --annonce: 30px; --entete: 58px; }
  .annonce { font-size: 12px; }
  .annonce__suite { display: none; }
  .onglets { display: grid; }
  .entete { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
  .entete__logo { width: 136px; }
  .nav--gauche { order: -1; gap: 0; }
  .nav--gauche a { display: none; }
  .nav--gauche .nav__menu { display: inline-flex; }
  .nav--droite { gap: 0; }
  .nav--droite > * { display: none !important; }
  .nav__panier .nav__mot { display: none; }
  .nav__panier svg { display: block; }
  .nav__panier { min-width: 44px; height: 44px; justify-content: center; position: relative; }
  .nav__panier .compte-bulle { position: absolute; top: 5px; right: -2px; background: var(--cerise); color: var(--porcelaine); font-size: 10.5px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 8px; }
  .nav__panier .compte-bulle::before, .nav__panier .compte-bulle::after { content: none; }
  .entete--flottant { height: 54px; }
  .vue-haut { padding-top: calc(var(--entete) + 16px); }
  [data-vue="fiche"] .pied { padding-bottom: 96px; }
  .entete-section { margin-bottom: 28px; gap: 12px; }
  .entete-section .fleches, .fleches--pied { display: none; }
  .carrousel__progres { display: none; }
  .carrousel__points { display: flex; }
  .grille-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .produit__texte { padding-top: 10px; grid-template-columns: minmax(0, 1fr); }
  .produit__texte .t-prix { font-size: 15.5px; }
  .produit__info { display: none; }
  .t-titre-carte { font-size: 16px; }
  .produit__texte .t-gris, .produit__info { font-size: 12.5px; }
  .actions-droite { margin-top: 28px; }
  .actions-droite .btn { width: 100%; }
  .filtres { margin: 20px 0 24px; padding: 8px 0; }
  .puces { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--marge) * -1); padding: 0 var(--marge) 2px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .puces::-webkit-scrollbar { display: none; }
  .puce { min-height: 44px; }
  .selecteurs { display: grid; grid-template-columns: 1fr 1fr; }
  .selecteur select { width: 100%; height: 44px; font-size: 16px; }
  .options--l { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .barre-achat { display: flex; }
  .accordeon summary { font-size: 18px; min-height: 60px; }
  .tiroir { top: auto; width: 100%; height: min(90svh, 760px); border-radius: var(--r-feuille) var(--r-feuille) 0 0; transform: translateY(102%); }
  .tiroir.ouvert { transform: none; }
  .pied__colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .pied__bas { flex-direction: column; }
}
/* Téléphone couché : tiroir pleine hauteur, total et bouton sur une ligne. */
@media (max-height: 500px) {
  .tiroir { height: 100svh; }
  .tiroir__tete { padding: 8px 24px; }
  .tiroir__pied { display: flex; align-items: center; padding: 8px 24px calc(8px + env(safe-area-inset-bottom)); }
  .tiroir__pied .total--fort { flex: 1; }
  .tiroir__pied .btn { width: auto; margin-top: 0; min-height: 44px; }
}
