/* ==========================================================================
   Mini Bags House — « Nacre ».
   Chaque pièce posée comme un bijou dans son écrin : fond perle, encre prune,
   un reflet rose, lilas, menthe et pêche qui ne vit que sur les bords.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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: "Jost";
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  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: "Cormorant";
  src: url("../fonts/cormorant-latin-ext.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-italique-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
  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: "Cormorant";
  src: url("../fonts/cormorant-italique-latin-ext.woff2") format("woff2");
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* L'angle du reflet : propriété enregistrée, pour que le liseré nacré puisse tourner */
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 210deg;
}
/* Les quatre teintes de la nacre, enregistrées pour que le liseré puisse s'aviver en douceur au survol */
@property --n1 { syntax: "<color>"; inherits: true; initial-value: #f2d3da; }
@property --n2 { syntax: "<color>"; inherits: true; initial-value: #e3d7f0; }
@property --n3 { syntax: "<color>"; inherits: true; initial-value: #d3eee3; }
@property --n4 { syntax: "<color>"; inherits: true; initial-value: #f8dcc8; }

:root {
  --perle: #fbf7f4;        /* le fond de l'écrin */
  --perle-2: #f5eeea;      /* surfaces douces */
  --blanc: #ffffff;
  --rose: #f2d3da;         /* les quatre teintes de la nacre */
  --lilas: #e3d7f0;
  --menthe: #d3eee3;
  --peche: #f8dcc8;
  --prune: #3d2833;        /* l'encre */
  --prune-clair: #533b48;
  --prune-2: #6f5a65;      /* texte secondaire */
  --prune-3: #a8999f;      /* icônes au repos, jamais du texte */
  --filet: #ece3df;
  --filet-2: #dccfca;
  --promo: #c2334f;        /* prix réduits, et rien d'autre */
  --ok: #2c7a52;
  --alerte: #9a1f3f;        /* contours et pictogrammes d'erreur, jamais le texte */
  --whatsapp: #1a8f4c;

  --police: "Jost", "Helvetica Neue", Arial, sans-serif;
  --titres: "Cormorant", "Cormorant Garamond", Georgia, serif;

  --t-xs: 0.75rem;     /* 12 */
  --t-s: 0.8125rem;    /* 13 */
  --t-m: 0.9375rem;    /* 15 */
  --t-l: 1.0625rem;    /* 17 */
  --t-xl: 1.375rem;    /* 22 */
  --t-titre: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);
  --t-geant: clamp(2.625rem, 1.7rem + 3.6vw, 4rem);

  --g: 16px;
  --entete: 60px;
  --rail: 52px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --contenu: 1440px;
  --r-photo: 20px;
  --r-plaque: 24px;
  --r-champ: 14px;

  --sol-photo: linear-gradient(180deg, #fffdfc 0%, #f7ecef 100%);
  --sol-arche: radial-gradient(120% 80% at 50% 30%, #fffdfc 0%, #f7e9ee 55%, #ecdbe6 100%);
  --ombre-plaque: 0 14px 34px -20px rgba(61, 40, 51, 0.42);
  --ombre-panneau: -18px 0 48px -24px rgba(61, 40, 51, 0.38);
}
@media (min-width: 768px) { :root { --g: 24px; } }
@media (min-width: 1024px) { :root { --g: 40px; --entete: 76px; } }

/* Chaque élément calcule sa nacre avec son propre angle : c'est ce qui permet au reflet de tourner */
*, *::before, *::after {
  --nacre: conic-gradient(from var(--angle), var(--n1), var(--n2), var(--n3), var(--n4), var(--n1));
  --nacre-prune: conic-gradient(from var(--angle), var(--prune), #8d6a7d 25%, var(--prune) 50%, #8d6a7d 75%, var(--prune));
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--entete) + 16px);
  background: var(--perle);
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: var(--t-m);
  line-height: 1.5;
  color: var(--prune);
  background: var(--perle);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  caret-color: var(--prune);
}
main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }

::selection { background: var(--rose); color: var(--prune); }
:focus-visible { outline: 2px solid var(--prune); outline-offset: 3px; }
* { scrollbar-color: var(--filet-2) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--filet-2); border-radius: 99px; }

[hidden] { display: none !important; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--petit { width: 16px; height: 16px; }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: var(--g); top: -100px; z-index: 200;
  background: var(--prune); color: var(--perle); padding: 10px 16px; border-radius: 999px; font-weight: 500; text-decoration: none;
}
.evitement:focus { top: 8px; }

.chiffres { font-variant-numeric: tabular-nums; }

/* Titres de rang : Cormorant italique, la voix de l'écrin */
.titre {
  font-family: var(--titres);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Le reflet : le liseré nacré attrape la lumière, une fois */
@keyframes reflet { from { --angle: 210deg; } to { --angle: 570deg; } }
.est-reflet { animation: reflet 760ms var(--ease); }

/* ---------- Bandeaux ---------- */

.bandeau {
  background: var(--prune);
  color: var(--perle);
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 9px var(--g);
}
.bandeau--apercu { background: var(--perle-2); color: var(--prune); border-bottom: 1px solid var(--filet); }
.bandeau__etiquette {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--perle);
  transition: box-shadow 220ms var(--ease);
}
.entete.est-defile { box-shadow: 0 1px 0 var(--filet), 0 10px 24px -22px rgba(61, 40, 51, 0.5); }
.entete__barre {
  height: var(--entete);
  max-width: var(--contenu);
  margin: 0 auto;
  padding: 0 calc(var(--g) - 10px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.entete__gauche, .entete__droite { display: flex; align-items: center; }
.entete__droite { justify-content: flex-end; }

/* Le logo de la maison : monogramme MBH noir et or, puis le nom en capitales espacées */
.marque {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.marque__monogramme { width: auto; height: 36px; }
.marque__texte {
  display: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .entete .marque__monogramme { height: 44px; }
}
@media (min-width: 1280px) {
  .entete .marque__texte { display: inline; }
}

.bouton-icone {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  text-decoration: none;
  font-size: var(--t-s);
}
.bouton-icone:hover { background: rgba(61, 40, 51, 0.05); }
.bouton-icone:disabled { opacity: 0.35; cursor: default; background: none; }
.pastille-compte {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--prune), var(--prune)) padding-box, var(--nacre) border-box;
  color: var(--perle);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pastille-compte[data-vide] { display: none; }
.recherche-desktop { display: none; }
.nav-principale { display: none; }

@media (min-width: 1024px) {
  .entete__barre { grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; }
  .entete__gauche { display: none; }
  .recherche-desktop { display: inline-flex; }
  .nav-principale {
    display: flex;
    flex-wrap: wrap;
    height: 44px;
    overflow: hidden;
    gap: 0 6px;
    min-width: 0;
  }
  .nav-principale a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    font-size: var(--t-m);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-principale a:hover,
  .nav-principale a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }
}

/* Rangée de perles : les rayons */
.rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px var(--g) 14px;
  scrollbar-width: none;
  background: var(--perle);
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .rail--entete { display: none; } }

.puce {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
  color: var(--prune);
  font-size: var(--t-m);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.puce:hover { background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box; }
.puce[aria-current="page"], .puce[aria-current="true"] { background: linear-gradient(var(--prune), var(--prune)) padding-box, var(--nacre) border-box; color: var(--perle); }
.puce__compte { color: var(--prune-2); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.puce[aria-current="page"] .puce__compte, .puce[aria-current="true"] .puce__compte { color: var(--filet-2); }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--prune), var(--prune)) padding-box, var(--nacre) border-box;
  color: var(--perle);
  font-size: var(--t-m);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease);
}
.bouton:hover { background: linear-gradient(var(--prune-clair), var(--prune-clair)) padding-box, var(--nacre) border-box; }
.bouton:active { transform: scale(0.985); }
.bouton--clair, .bouton--blanc { background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box; color: var(--prune); }
.bouton--clair:hover, .bouton--blanc:hover { background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box; }
.bouton--plein { width: 100%; }
.bouton--grand { min-height: 54px; font-size: 1rem; }
.bouton[disabled], .bouton.est-occupe { opacity: 0.45; cursor: not-allowed; transform: none; }
.bouton.est-occupe { cursor: progress; }

.bouton-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  width: 100%;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
  color: var(--prune);
  font-size: var(--t-m);
  font-weight: 500;
  text-decoration: none;
}
.bouton-whatsapp .icon { color: var(--whatsapp); }
.bouton-whatsapp:hover { background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box; }
.bouton-whatsapp.est-occupe { opacity: 0.6; cursor: progress; }

/* La perle WhatsApp de la plaque */
.perle-wa {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
  color: var(--whatsapp);
}
.perle-wa:hover { background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box; }
.perle-wa.est-occupe { opacity: 0.6; cursor: progress; }

.lien-souligne {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: var(--t-m);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.lien-souligne:hover { color: var(--prune-2); }
button.lien-souligne { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: var(--t-m); font-weight: 500; cursor: pointer; }

/* ---------- Accueil : l'écrin ---------- */

.ecrin { max-width: var(--contenu); margin: 0 auto; padding: 4px var(--g) 0; }
.ecrin__titre {
  position: absolute;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ecrin__scene { display: grid; }
.ecrin__une { position: relative; min-width: 0; }
.ecrin__cote { display: none; }

.arche {
  position: relative;
  display: block;
  border: 3px solid transparent;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  background: var(--sol-arche) padding-box, var(--nacre) border-box;
}
.arche__photo { display: block; height: min(calc((100vw - 2 * var(--g)) * 1.22), calc(100svh - 300px)); min-height: 320px; }
.arche__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; mix-blend-mode: multiply; }
.arche .badge { position: absolute; top: 22%; left: 14px; z-index: 2; }
.arche .coeur { top: 22%; right: 12px; }

/* La plaque : nom, prix, couleur, et l'action */
.plaque {
  position: relative;
  z-index: 2;
  margin: -86px 12px 0;
  padding: 18px 18px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--r-plaque);
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
  box-shadow: var(--ombre-plaque);
}
.plaque__nom {
  font-family: var(--titres);
  font-weight: 600;
  font-size: clamp(2.125rem, 1.7rem + 1.4vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.plaque__nom a { text-decoration: none; }
.plaque__nom a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.plaque__prix { margin-top: 8px; font-size: var(--t-l); }
.plaque__couleurs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.plaque__couleur { margin-left: 8px; font-size: var(--t-s); color: var(--prune-2); }
.plaque__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 16px; }
.plaque__actions > :only-child { grid-column: 1 / -1; }
.plaque .fiche__message { margin-top: 10px; }

@media (min-width: 1024px) {
  .ecrin { padding-top: 6px; --h-arche: clamp(420px, calc(100svh - var(--entete) - 236px), 680px); }
  .ecrin__titre {
    position: static;
    width: auto; height: auto; margin: 0 0 18px;
    overflow: visible; clip: auto; white-space: normal;
    text-align: center;
    font-family: var(--titres);
    font-style: italic;
    font-weight: 500;
    font-size: var(--t-geant);
    line-height: 1;
    letter-spacing: -0.015em;
  }
  .ecrin__scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: end; }
  .ecrin__scene[data-n="1"] { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .ecrin__scene[data-n="2"] { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); max-width: 1080px; margin: 0 auto; }
  .ecrin__une { grid-column: 2; grid-row: 1; }
  .ecrin__scene[data-n="1"] .ecrin__une, .ecrin__scene[data-n="2"] .ecrin__une { grid-column: 1; }
  .ecrin__cote { display: block; grid-row: 1; min-width: 0; text-decoration: none; }
  .ecrin__cote--gauche { grid-column: 1; }
  .ecrin__cote--droite { grid-column: 3; }
  .ecrin__scene[data-n="2"] .ecrin__cote--gauche { grid-column: 2; }
  .ecrin__une .arche__photo { height: var(--h-arche); min-height: 0; }
  .arche--cote { border-width: 2px; }
  .arche--cote .arche__photo { height: calc(var(--h-arche) * 0.84); min-height: 0; }
  .ecrin__cote .arche { transition: --n1 420ms var(--ease), --n2 420ms var(--ease), --n3 420ms var(--ease), --n4 420ms var(--ease); }
  .ecrin__cote:hover .arche { --n1: #e9a5b6; --n2: #c6b0e8; --n3: #a5dcc4; --n4: #f2bc95; }
  .ecrin__legende { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 6px 0; font-size: var(--t-m); }
  .ecrin__legende b { font-weight: 600; white-space: nowrap; }
  .ecrin__cote:hover .ecrin__legende span { text-decoration: underline; text-underline-offset: 5px; }
  .plaque { margin: -150px 22px 0; padding: 22px 24px 22px; }
  .ecrin__une .arche .badge, .ecrin__une .arche .coeur { top: 31%; }
}

/* ---------- Rangs (sections) ---------- */

.section { padding: clamp(40px, 5vw, 72px) 0 0; }
.section__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0 var(--g);
  margin: 0 auto 16px;
  max-width: var(--contenu);
}
.section__actions { display: flex; align-items: center; gap: 16px; }

.carrousel { position: relative; }
.carrousel__piste {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 44%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--g);
  scrollbar-width: none;
  padding: 0 var(--g) 6px;
  margin: 0 auto;
  max-width: var(--contenu);
  list-style: none;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
.carrousel__piste > li { scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px) { .carrousel__piste { grid-auto-columns: 30%; gap: 16px; } }
@media (min-width: 1200px) { .carrousel__piste { grid-auto-columns: calc((100% - 2 * var(--g) - 4 * 20px) / 4.4); gap: 20px; } }
@media (min-width: 1024px) { .masque-pc { display: none; } }
.carrousel__fleches { display: none; gap: 6px; }
@media (min-width: 1024px) { .carrousel__fleches { display: flex; } }
.fleche {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
  color: var(--prune);
}
.fleche:hover { background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box; }
.fleche[disabled] { opacity: 0.4; cursor: default; }

/* Bande « commander » : une plaque nacrée */
.bande-commande { margin: clamp(48px, 7vw, 96px) auto 0; padding: 0 var(--g); max-width: var(--contenu); }
.bande-commande__interieur {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 52px);
  border: 1.5px solid transparent;
  border-radius: 28px;
  background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box;
}
@media (min-width: 900px) { .bande-commande__interieur { grid-template-columns: 1fr auto; } }
.bande-commande h2 { font-family: var(--titres); font-style: italic; font-weight: 500; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1; letter-spacing: -0.01em; }
.bande-commande p { margin-top: 12px; color: var(--prune-2); max-width: 54ch; font-size: var(--t-l); line-height: 1.55; }
.moyens { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.moyens li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
  font-size: var(--t-s);
  font-weight: 500;
}
.moyens li .icon { color: var(--whatsapp); }
.moyens li:not(:first-child) .icon { color: var(--prune); }

/* ---------- Carte produit ---------- */

.grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 10px;
  list-style: none;
  padding: 0 var(--g);
  margin: 0;
}
@media (min-width: 768px) { .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; } }
@media (min-width: 1200px) { .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; } }
.grille--large { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grille--large { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grille--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; }
@media (min-width: 768px) { .grille--dense { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 12px; } }
@media (min-width: 1200px) { .grille--dense { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grille--ajustee { grid-template-columns: repeat(auto-fill, minmax(220px, 320px)); } }

.carte { position: relative; min-width: 0; container-type: inline-size; }
.carte__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border: 1px solid transparent;
  border-radius: var(--r-photo);
  overflow: hidden;
  background: var(--sol-photo) padding-box, var(--nacre) border-box;
}
.carte__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  mix-blend-mode: multiply;
}
.carte__photo-2 { display: none; position: absolute; inset: 0; opacity: 0; transition: opacity 240ms var(--ease); }
.carte__media { transition: --n1 420ms var(--ease), --n2 420ms var(--ease), --n3 420ms var(--ease), --n4 420ms var(--ease); }
@media (hover: hover) {
  .carte__photo-2 { display: block; }
  .carte:hover .carte__photo-2 { opacity: 1; }
  .carte:hover .carte__media { --n1: #e9a5b6; --n2: #c6b0e8; --n3: #a5dcc4; --n4: #f2bc95; }
}

.carte__badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
  color: var(--prune);
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge--promo { background: var(--promo); border-color: var(--promo); color: var(--blanc); letter-spacing: 0.02em; }
.badge--epuise { background: var(--prune); border-color: var(--prune); color: var(--perle); }

.coeur {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: linear-gradient(rgba(251, 247, 244, 0.92), rgba(251, 247, 244, 0.92)) padding-box, var(--nacre) border-box;
  color: var(--prune);
}
.coeur .icon { width: 19px; height: 19px; }
.coeur .coeur__plein { display: none; }
.coeur[aria-pressed="true"] .coeur__vide { display: none; }
.coeur[aria-pressed="true"] .coeur__plein { display: block; }

.ajout-rapide {
  position: absolute;
  right: 8px;
  top: calc(100cqw * 4 / 3 - 46px);
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: linear-gradient(rgba(251, 247, 244, 0.92), rgba(251, 247, 244, 0.92)) padding-box, var(--nacre) border-box;
  color: var(--prune);
}
.ajout-rapide:hover { background: linear-gradient(var(--prune), var(--prune)) padding-box, var(--nacre) border-box; color: var(--perle); }
.ajout-rapide .icon { width: 18px; height: 18px; }

.carte__info { padding: 10px 4px 0; display: grid; gap: 2px; }
.carte__nom {
  font-size: var(--t-m);
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.carte__nom:hover { text-decoration: underline; }
.prix { font-size: var(--t-m); font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.prix s { color: var(--prune-2); font-weight: 400; }
.prix--promo b { color: var(--promo); }
.carte__couleurs { display: flex; gap: 5px; margin-top: 4px; align-items: center; }
.carte__couleurs .pastille { width: 11px; height: 11px; }
.carte__plus { font-size: var(--t-xs); color: var(--prune-2); }
.carte--epuisee .carte__media img { opacity: 0.5; }
.grille--dense .carte__couleurs, .grille--dense .ajout-rapide { display: none; }
.grille--dense .carte__nom, .grille--dense .prix { font-size: var(--t-s); }

.pastille {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c, var(--filet-2));
  box-shadow: inset 0 0 0 1px rgba(61, 40, 51, 0.14);
  flex: none;
}
.pastille--multi { background: conic-gradient(#e0607e, #f2c230, #4f9a6a, #4a78c8, #8c5fb8, #e0607e); }

/* ---------- Page rayon ---------- */

.tete-rayon { padding: 18px var(--g) 0; max-width: var(--contenu); margin: 0 auto; }
@media (min-width: 1024px) { .tete-rayon { padding-top: 28px; } }
.tete-rayon h1 { font-family: var(--titres); font-weight: 600; font-size: var(--t-titre); line-height: 1; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.tete-rayon__compte { margin-top: 8px; color: var(--prune-2); font-size: var(--t-s); }
.tete-rayon .rail { margin: 14px calc(-1 * var(--g)) 0; }

.outils {
  position: sticky;
  top: var(--entete);
  z-index: 30;
  background: var(--perle);
  border-bottom: 1px solid var(--filet);
  margin-top: 14px;
}
.outils__interieur {
  max-width: var(--contenu);
  margin: 0 auto;
  height: 56px;
  padding: 0 var(--g);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.outils__filtrer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
  font-size: var(--t-m);
  font-weight: 500;
}
.outils__filtrer:hover { background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box; }
.outils__filtrer b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--prune); color: var(--perle); font-size: 0.6875rem; font-weight: 600; line-height: 20px; text-align: center; }
.outils__tri { font-size: var(--t-s); color: var(--prune-2); display: none; }
@media (min-width: 768px) { .outils__tri { display: inline; } }
.densite { display: flex; gap: 2px; }
.densite button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--prune-3); }
.densite button[aria-pressed="true"] { color: var(--prune); background: rgba(61, 40, 51, 0.06); }
.densite button:hover { color: var(--prune); }
.densite .icon { width: 20px; height: 20px; }

.filtres-actifs { max-width: var(--contenu); margin: 14px auto 0; padding: 0 var(--g); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.filtres-actifs .puce .icon { width: 14px; height: 14px; }

.zone-grille { max-width: var(--contenu); margin: 0 auto; padding: 20px 0 clamp(48px, 7vw, 96px); }
.voir-plus { display: flex; justify-content: center; margin-top: 44px; padding: 0 var(--g); }

.vide { max-width: 520px; margin: 0 auto; padding: clamp(48px, 10vw, 112px) var(--g); text-align: center; }
.vide h2 { font-family: var(--titres); font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1.05; }
.vide p { margin-top: 10px; color: var(--prune-2); }
.vide .bouton { margin-top: 22px; }

/* ---------- Panneaux (filtres, panier, menu, ajout rapide, recherche) ---------- */

.voile {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(61, 40, 51, 0.3);
  opacity: 0;
  transition: opacity 260ms var(--ease);
}
.voile.est-visible { opacity: 1; }

.panneau {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 440px);
  background: var(--perle);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 260ms var(--ease);
  box-shadow: var(--ombre-panneau);
}
@media (min-width: 480px) { .panneau { border-radius: 24px 0 0 24px; } .panneau--gauche { border-radius: 0 24px 24px 0; } }
.panneau.est-ouvert { transform: none; }
.panneau--gauche { right: auto; left: 0; transform: translateX(-100%); box-shadow: 18px 0 48px -24px rgba(61, 40, 51, 0.38); }
.panneau--gauche.est-ouvert { transform: none; }
.panneau__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--entete);
  padding: 0 10px 0 var(--g);
  border-bottom: 1px solid var(--filet);
}
.panneau__titre { font-family: var(--titres); font-weight: 600; font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; }
.panneau__titre span { font-family: var(--police); font-size: var(--t-m); font-weight: 500; color: var(--prune-2); letter-spacing: 0; }
.panneau__corps { flex: 1; overflow-y: auto; padding: 8px var(--g) 24px; }
.panneau__pied {
  padding: 16px var(--g) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--filet);
  display: grid;
  gap: 10px;
  background: var(--perle);
}
@media (min-width: 480px) { .panneau__pied { border-radius: 0 0 0 24px; } }

/* Feuille d'ajout rapide : en bas sur téléphone, au centre sur ordinateur */
.feuille {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88svh;
  overflow-y: auto;
  background: var(--perle);
  border-radius: 26px 26px 0 0;
  padding: 8px var(--g) calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 260ms var(--ease);
  box-shadow: 0 -18px 48px -24px rgba(61, 40, 51, 0.38);
}
.feuille.est-ouvert { transform: none; }
.feuille__poignee { width: 40px; height: 4px; border-radius: 999px; background: var(--filet-2); margin: 4px auto 14px; }
@media (min-width: 768px) {
  .feuille {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: 480px;
    padding: 22px 26px 26px;
    border: 1.5px solid transparent;
    border-radius: 28px;
    background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
    transform: translate(-50%, -46%);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms var(--ease), opacity 240ms var(--ease);
  }
  .feuille.est-ouvert { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .feuille__poignee { display: none; }
}
.feuille__produit { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--filet); }
.feuille__produit .vignette { width: 72px; }
.feuille__nom { font-family: var(--titres); font-weight: 600; font-size: 1.625rem; line-height: 1.05; }
.feuille__produit .prix { margin-top: 6px; }

.vignette { display: block; aspect-ratio: 3 / 4; border-radius: 12px; background: var(--sol-photo); overflow: hidden; }
.vignette img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* Menu */
.panneau .marque { align-items: flex-start; }
.panneau .marque__monogramme { height: 34px; }
.panneau .marque__texte { display: inline; }
.plan__liste { list-style: none; padding: 10px var(--g) 24px; margin: 0; }
.plan__liste a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--filet);
  text-decoration: none;
  font-family: var(--titres);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.plan__liste a:hover, .plan__liste a[aria-current="page"] { font-style: italic; }
.plan__compte { font-family: var(--police); font-size: var(--t-s); font-weight: 500; color: var(--prune-2); }
.plan__pied { margin-top: auto; padding: 16px var(--g) 28px; display: grid; gap: 10px; font-size: var(--t-m); }

/* Recherche */
.recherche {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  background: var(--perle);
  max-height: 100svh;
  overflow-y: auto;
  border-radius: 0 0 26px 26px;
  transform: translateY(-100%);
  transition: transform 260ms var(--ease);
  box-shadow: 0 18px 48px -24px rgba(61, 40, 51, 0.38);
}
.recherche.est-ouvert { transform: none; }
.recherche form { display: flex; align-items: center; gap: 8px; max-width: var(--contenu); margin: 0 auto; padding: 12px calc(var(--g) - 8px) 10px var(--g); }
.recherche input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  border-bottom: 1.5px solid var(--prune);
  background: transparent;
  font-family: var(--titres);
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 500;
  outline: none;
  border-radius: 0;
  appearance: none;
}
.recherche input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.recherche input::placeholder { color: #7a6670; }
.resultats { max-width: var(--contenu); margin: 0 auto; padding: 8px var(--g) 26px; }
.resultats__liste { list-style: none; padding: 0; display: grid; }
.resultats__liste a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--filet); text-decoration: none; }
.resultats__liste a:hover span:nth-child(2) { text-decoration: underline; }
.resultats__liste .vignette { width: 48px; border-radius: 10px; }
.resultats__liste .chiffres { font-weight: 600; font-size: var(--t-s); }
.resultats__titre { font-size: var(--t-s); font-weight: 500; color: var(--prune-2); margin: 10px 0 10px; }
.resultats__suggestions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Filtres */
fieldset.filtre-groupe { border: 0; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--filet); min-width: 0; }
.filtre-groupe legend { font-family: var(--titres); font-style: italic; font-size: 1.5rem; font-weight: 500; line-height: 1; margin-bottom: 14px; padding: 0; float: left; width: 100%; }
.filtre-groupe legend + * { clear: both; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { position: relative; display: inline-flex; }
.choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choix label > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
  font-size: var(--t-m);
  font-weight: 500;
}
.choix .pastille { width: 15px; height: 15px; }
.choix input:checked + span { background: linear-gradient(var(--prune), var(--prune)) padding-box, var(--nacre) border-box; color: var(--perle); }
.choix input:focus-visible + span { outline: 2px solid var(--prune); outline-offset: 2px; }
.choix__compte { color: var(--prune-2); font-size: var(--t-xs); }
.choix input:checked + span .choix__compte { color: var(--filet-2); }

/* ---------- Fiche article ---------- */

.fiche-produit { max-width: var(--contenu); margin: 0 auto; display: grid; }
@media (min-width: 1024px) { .fiche-produit { grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr); gap: 8px; padding: 8px 0 0 var(--g); } }

.galerie { position: relative; }
@media (max-width: 1023px) {
  .galerie {
    margin: 4px var(--g) 0;
    border: 3px solid transparent;
    border-radius: 999px 999px 28px 28px;
    overflow: hidden;
    background: var(--sol-arche) padding-box, var(--nacre) border-box;
  }
  .galerie .galerie__rail { border-radius: 0; }
  .galerie .coeur { top: 20%; right: 12px; }
}
.galerie__rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; padding: 0; margin: 0; border-radius: 0 0 28px 28px; }
.galerie__rail::-webkit-scrollbar { display: none; }
.galerie__vue { flex: 0 0 100%; scroll-snap-align: start; background: var(--sol-arche); }
.galerie__vue img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; mix-blend-mode: multiply; }
@media (min-width: 1024px) {
  .galerie__rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; border-radius: 0; }
  .galerie__rail--une { grid-template-columns: minmax(0, 620px); }
  .galerie__vue { border: 1px solid transparent; border-radius: var(--r-photo); overflow: hidden; background: var(--sol-arche) padding-box, var(--nacre) border-box; }
  .galerie__vue:first-child { border-radius: 999px 999px var(--r-photo) var(--r-photo); border-width: 2px; }
  .galerie__rail--une .galerie__vue:first-child img { aspect-ratio: 4 / 5; }
}
.galerie__points { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.galerie__points span { width: 7px; height: 7px; border-radius: 50%; background: rgba(61, 40, 51, 0.22); }
.galerie__points span.est-actif { background: var(--prune); }
@media (min-width: 1024px) { .galerie__points { display: none; } }
.galerie .coeur { top: 12px; right: 12px; }
@media (min-width: 1024px) {
  .galerie .coeur { top: 16px; right: 16px; }
  .galerie:has(.galerie__rail--une) .coeur { top: 24%; }
  .fiche-produit:has(.galerie__rail--une) { grid-template-columns: minmax(0, 580px) minmax(380px, 520px); justify-content: center; column-gap: 32px; padding-left: var(--g); }
  .galerie__rail--une { grid-template-columns: minmax(0, 1fr); }
}

.fiche { padding: 22px var(--g) 36px; }
@media (min-width: 1024px) {
  .fiche {
    position: sticky;
    top: var(--entete);
    align-self: start;
    max-height: calc(100vh - var(--entete));
    overflow-y: auto;
    padding: 28px var(--g) 48px 36px;
    scrollbar-width: none;
  }
  .fiche::-webkit-scrollbar { display: none; }
}
.fil { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--t-s); color: var(--prune-2); list-style: none; padding: 0; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--prune); text-decoration: underline; }
.fil li + li::before { content: "·"; margin-right: 6px; }
.fiche h1 { margin-top: 10px; font-family: var(--titres); font-weight: 600; font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.875rem); line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; }
.fiche__prix { margin-top: 12px; font-size: 1.1875rem; }
.remise { padding: 2px 9px; border-radius: 999px; background: var(--promo); color: var(--blanc); font-size: var(--t-xs); font-weight: 600; }

.option { margin-top: 24px; border: 0; padding: 0; min-width: 0; }
.option legend { padding: 0; margin-bottom: 10px; font-size: var(--t-m); font-weight: 500; }
.option legend output { font-weight: 400; color: var(--prune-2); margin-left: 6px; }
.option__liste { display: flex; flex-wrap: wrap; gap: 8px; }

/* Couleurs : des perles cerclées de prune quand elles sont choisies */
.teinte { position: relative; display: inline-flex; }
.teinte input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.teinte > span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre) border-box;
}
.teinte .pastille { width: 28px; height: 28px; }
.teinte input:checked + span { border-width: 2px; background: linear-gradient(var(--perle), var(--perle)) padding-box, var(--nacre-prune) border-box; }
.teinte input:focus-visible + span { outline: 2px solid var(--prune); outline-offset: 2px; }
.teinte input:disabled + span { opacity: 0.4; }

/* Tailles : des cases arrondies, remplies de prune quand elles sont choisies */
.case { position: relative; display: inline-flex; }
.case input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.case > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: linear-gradient(var(--blanc), var(--blanc)) padding-box, linear-gradient(var(--filet-2), var(--filet-2)) border-box;
  font-size: var(--t-m);
  font-weight: 500;
}
.case:hover > span { background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box; }
.case input:checked + span { background: linear-gradient(var(--prune), var(--prune)) padding-box, var(--nacre-prune) border-box; color: var(--perle); }
.case input:focus-visible + span { outline: 2px solid var(--prune); outline-offset: 2px; }
.case input:disabled + span { color: var(--prune-3); text-decoration: line-through; cursor: not-allowed; }

.fiche__stock { margin-top: 14px; font-size: var(--t-s); font-weight: 500; color: var(--prune); }
.fiche__stock--epuise { color: var(--prune-2); }
.fiche__actions { margin-top: 24px; display: grid; gap: 10px; }
.fiche__message { font-size: var(--t-s); color: var(--prune-2); }
.fiche__message:empty { display: none; }
.fiche__message.est-erreur, .champ__erreur, .ligne__erreur {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--prune);
  font-weight: 500;
}
.fiche__message.est-erreur::before, .champ__erreur::before, .ligne__erreur::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%239a1f3f' stroke-width='1.6'/%3E%3Cpath d='M12 7.5v5.5' stroke='%239a1f3f' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.4' r='1.1' fill='%239a1f3f'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fiche__message.est-ok { color: var(--ok); font-weight: 500; }

.accordeon { margin-top: 28px; 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;
  min-height: 54px;
  font-size: var(--t-m);
  font-weight: 500;
  cursor: pointer;
}
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary .icon { transition: transform 220ms var(--ease); }
.accordeon details[open] summary .icon { transform: rotate(45deg); }
.accordeon__corps { padding: 0 0 18px; font-size: var(--t-m); line-height: 1.65; color: var(--prune); max-width: 62ch; }
.accordeon__corps p + p { margin-top: 0.7em; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: var(--t-s); }
.details dt { color: var(--prune-2); }

/* Barre collante « Ajouter » sur téléphone */
.barre-ajout {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom));
  background: var(--perle);
  border-top: 1px solid var(--filet);
  box-shadow: 0 -12px 30px -24px rgba(61, 40, 51, 0.5);
  transform: translateY(110%);
  transition: transform 240ms var(--ease);
}
.barre-ajout.est-visible { transform: none; }
.barre-ajout__texte { min-width: 0; flex: 1; display: grid; }
.barre-ajout__nom { font-size: var(--t-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-ajout .bouton { flex: none; }
@media (min-width: 1024px) { .barre-ajout { display: none; } }

/* ---------- Panier (lignes) ---------- */

.ligne { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--filet); }
.ligne .vignette { width: 84px; border-radius: 14px; }
.ligne__nom { font-family: var(--titres); font-size: 1.375rem; font-weight: 600; line-height: 1.05; text-decoration: none; }
.ligne__nom:hover { text-decoration: underline; }
.ligne__options { margin-top: 4px; font-size: var(--t-s); color: var(--prune-2); }
.ligne__bas { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ligne__prix { font-size: var(--t-m); font-weight: 600; font-variant-numeric: tabular-nums; }
.ligne__erreur { margin-top: 6px; font-size: var(--t-s); }
.ligne--erreur .vignette img { opacity: 0.5; }
.quantite { display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 999px; background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box; }
.quantite button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; }
.quantite button:hover { background: var(--perle-2); }
.quantite button:disabled { color: var(--prune-3); cursor: not-allowed; }
.quantite output { min-width: 24px; text-align: center; font-size: var(--t-s); font-weight: 600; font-variant-numeric: tabular-nums; }
.retirer { border: 0; background: none; padding: 6px 0; font-size: var(--t-s); color: var(--prune-2); text-decoration: underline; text-underline-offset: 3px; }
.retirer:hover { color: var(--prune); }
.total-ligne { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-l); font-weight: 600; font-variant-numeric: tabular-nums; }
.total-ligne span:first-child { font-family: var(--titres); font-style: italic; font-weight: 500; font-size: 1.5rem; }
.note-discrete { font-size: var(--t-s); color: var(--prune-2); }
.vide-panneau { padding: 52px 0; text-align: center; }
.vide-panneau p { font-family: var(--titres); font-style: italic; font-size: 1.625rem; margin-bottom: 18px; }

/* ---------- Caisse ---------- */

.caisse { padding: clamp(20px, 4vw, 48px) var(--g) clamp(56px, 8vw, 96px); }
.caisse__grille { max-width: 1180px; margin: 0 auto; display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1024px) { .caisse__grille { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); align-items: start; } }
.caisse h1 { font-family: var(--titres); font-weight: 600; font-size: var(--t-titre); line-height: 1; letter-spacing: -0.015em; }
.etape { margin-top: 30px; border: 0; padding: 0; min-width: 0; }
.etape legend { width: 100%; padding: 0 0 10px; margin-bottom: 16px; border-bottom: 1px solid var(--filet); font-family: var(--titres); font-style: italic; font-size: 1.625rem; font-weight: 500; line-height: 1; }
.champs { display: grid; gap: 14px; }
@media (min-width: 640px) { .champs--deux { grid-template-columns: 1fr 1fr; } }
.champ { display: grid; gap: 6px; align-content: start; }
.champ label, .champ__libelle { font-size: var(--t-s); font-weight: 500; }
.champ__aide { font-size: var(--t-s); color: var(--prune-2); font-weight: 400; }
.champ input, .champ select, .champ textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  font-size: 1rem;
  background: var(--blanc);
  border: 1px solid var(--filet-2);
  border-radius: var(--r-champ);
  color: var(--prune);
  appearance: none;
}
.champ textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.champ select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%233d2833' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 44px;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--prune); box-shadow: 0 0 0 3px rgba(61, 40, 51, 0.12); }
::placeholder { color: #7a6670; opacity: 1; }
.champ.est-en-erreur input, .champ.est-en-erreur select, .champ.est-en-erreur textarea { border-color: var(--alerte); }
.champ__erreur { font-size: var(--t-s); }

.paiements { display: grid; gap: 10px; }
.paiement { position: relative; display: block; cursor: pointer; }
.paiement input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.paiement__carte {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 16px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: linear-gradient(var(--blanc), var(--blanc)) padding-box, linear-gradient(var(--filet), var(--filet)) border-box;
}
.paiement__rond { width: 22px; height: 22px; border: 1.5px solid var(--prune-2); border-radius: 50%; margin-top: 1px; }
.paiement__nom { font-weight: 500; font-size: var(--t-m); display: flex; align-items: center; gap: 8px; }
.paiement__detail { grid-column: 2; font-size: var(--t-s); color: var(--prune-2); }
.paiement input:checked + .paiement__carte { background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre-prune) border-box; }
.paiement input:checked + .paiement__carte .paiement__rond { border-color: var(--prune); background: var(--prune); box-shadow: inset 0 0 0 4px var(--blanc); }
.paiement input:focus-visible + .paiement__carte { outline: 2px solid var(--prune); outline-offset: 2px; }
.paiement input:disabled + .paiement__carte { opacity: 0.45; cursor: not-allowed; }
.paiement .icon { color: var(--prune); }
.paiement input[value="whatsapp"] + .paiement__carte .paiement__nom .icon { color: var(--whatsapp); }

.alerte { padding: 13px 16px; border-radius: 16px; border: 1px solid rgba(154, 31, 63, 0.35); background: #f8efec; color: var(--prune); font-size: var(--t-s); font-weight: 500; }
.alerte ul { margin: 6px 0 0; padding-left: 18px; }
.info { padding: 13px 16px; border-radius: 16px; background: var(--perle-2); font-size: var(--t-s); color: var(--prune); }
.caisse__envoi { margin-top: 30px; display: grid; gap: 10px; }

.recu {
  border: 1.5px solid transparent;
  border-radius: var(--r-plaque);
  background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box;
  overflow: hidden;
}
@media (min-width: 1024px) { .recu { position: sticky; top: calc(var(--entete) + 20px); } }
.recu__tete { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px 12px; border-bottom: 1px solid var(--filet); }
.recu__tete span:first-child { font-family: var(--titres); font-style: italic; font-size: 1.625rem; font-weight: 500; line-height: 1; }
.recu__tete span:last-child { font-size: var(--t-s); color: var(--prune-2); }
.recu__lignes { list-style: none; padding: 4px 20px; margin: 0; }
.recu__ligne { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--filet); align-items: center; }
.recu__ligne .vignette { width: 48px; border-radius: 10px; }
.recu__ligne--seule { grid-template-columns: minmax(0, 1fr); }
.recu__nom { font-size: var(--t-s); font-weight: 500; line-height: 1.3; }
.recu__opt { display: block; font-size: var(--t-xs); color: var(--prune-2); margin-top: 2px; }
.recu__prix { font-size: var(--t-s); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.recu__totaux { padding: 14px 20px 20px; display: grid; gap: 8px; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.recu__totaux div { display: flex; justify-content: space-between; gap: 12px; }
.recu__totaux .recu__total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--filet-2); font-size: var(--t-l); font-weight: 600; }
.recu__message { margin: 0 20px 20px; padding: 14px 16px; border-radius: 16px; background: var(--perle); }
.recu__message h2 { font-size: var(--t-s); font-weight: 500; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; color: var(--prune-2); }
.recu__message h2 .icon { color: var(--whatsapp); }
.recu__message pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--police); font-size: var(--t-s); line-height: 1.55; }

/* ---------- Suivi de commande ---------- */

.suivi { padding: clamp(24px, 5vw, 64px) var(--g) clamp(56px, 8vw, 96px); }
.suivi__interieur { max-width: 1000px; margin: 0 auto; }
.suivi__ref { font-family: var(--titres); font-weight: 600; font-size: var(--t-geant); line-height: 0.95; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.suivi__date { margin-top: 10px; font-size: var(--t-s); color: var(--prune-2); }
.suivi__phrase { margin-top: 16px; font-size: var(--t-l); max-width: 52ch; line-height: 1.55; }
.etapes { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.etapes li { padding-top: 10px; border-top: 3px solid var(--filet); font-size: var(--t-xs); font-weight: 500; color: var(--prune-2); overflow-wrap: anywhere; }
.etapes li.est-faite { border-top-color: var(--prune); color: var(--prune); }
.suivi__grille { margin-top: 34px; display: grid; gap: 20px; }
@media (min-width: 900px) { .suivi__grille { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: start; } }
.encart { border: 1px solid var(--filet); border-radius: 22px; background: var(--blanc); padding: 20px; display: grid; gap: 14px; }
.encart h2 { font-family: var(--titres); font-style: italic; font-size: 1.625rem; font-weight: 500; line-height: 1; }
.encart--fort { border: 1.5px solid transparent; background: linear-gradient(var(--blanc), var(--blanc)) padding-box, var(--nacre) border-box; }
.encart pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--police); font-size: var(--t-s); line-height: 1.55; background: var(--perle); border-radius: 14px; padding: 12px 14px; }
.encart dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: var(--t-s); }
.encart dt { color: var(--prune-2); }

/* ---------- Pages de texte ---------- */

.texte-page { padding: clamp(28px, 5vw, 64px) var(--g) clamp(56px, 8vw, 96px); }
.texte-page__interieur { max-width: 68ch; margin: 0 auto; }
.texte-page h1 { font-family: var(--titres); font-weight: 600; font-size: var(--t-titre); line-height: 1; letter-spacing: -0.015em; }
.texte-page__corps { margin-top: 24px; font-size: var(--t-l); line-height: 1.7; }
.texte-page__corps p + p { margin-top: 1em; }
.tableau-zones { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: var(--t-m); font-variant-numeric: tabular-nums; }
.tableau-zones th, .tableau-zones td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--filet); }
.tableau-zones th { font-weight: 500; color: var(--prune-2); }
.tableau-zones td:last-child, .tableau-zones th:last-child { text-align: right; }

/* ---------- Pied ---------- */

.pied { margin-top: clamp(48px, 7vw, 96px); background: var(--perle-2); border-top: 1px solid var(--filet); padding: clamp(36px, 5vw, 56px) var(--g) 26px; font-size: var(--t-m); }
.bande-commande + .pied { margin-top: clamp(48px, 7vw, 96px); }
.pied__interieur { max-width: var(--contenu); margin: 0 auto; }
.pied__grille { display: grid; gap: 28px; }
@media (min-width: 768px) { .pied__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pied h2 { font-family: var(--titres); font-style: italic; font-size: 1.5rem; font-weight: 500; line-height: 1; margin-bottom: 14px; }
.pied ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.pied a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 26px; }
.pied a:hover { text-decoration: underline; }
.pied .icon { color: var(--prune-2); }
.pied__marque { margin-top: 40px; }
.pied__marque img { width: clamp(180px, 40vw, 260px); height: auto; }
.pied__bas { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--filet-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--prune-2); font-size: var(--t-s); }

/* ---------- Erreurs ---------- */

.erreur-page { padding: clamp(56px, 10vw, 140px) var(--g); text-align: center; }
.erreur-page h1 { font-family: var(--titres); font-style: italic; font-weight: 500; font-size: var(--t-geant); line-height: 1; }
.erreur-page p { margin: 16px auto 0; max-width: 44ch; color: var(--prune-2); font-size: var(--t-l); }
.erreur-page .bouton { margin-top: 26px; }

/* ---------- Message éphémère ---------- */

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  opacity: 0;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--prune), var(--prune)) padding-box, var(--nacre) border-box;
  color: var(--perle);
  font-size: var(--t-s);
  font-weight: 500;
  text-align: center;
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.toast.est-visible { opacity: 1; transform: translate(-50%, 0); }
body:has(.barre-ajout.est-visible) .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
