/* Hatsatoun : boutique en ligne. Téléphone d'abord, ordinateur à partir de 960 px.
   Couleurs relevées dans le logo vectoriel du client. */
:root {
  --papier: #FBF7EE; --blanc: #FFFFFF; --creme: #F9F0D9; --doux: #F3ECDC; --ligne: #E7DDC8;
  --encre: #231A15; --encre-2: #54463D; --sourdine: #75675C;
  --rouge: #7C0303; --rouge-fonce: #5E0202; --vif: #D73316; --or: #F9CE6E; --or-texte: #8A6728; --beige: #CEC399; --vert: #3F5A22;
  --titre: "Cinzel", "Times New Roman", serif;
  --texte: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arm: "Noto Serif Armenian", "Hanken Grotesk", serif;
  --sortie: cubic-bezier(.22, 1, .36, 1);
  /* L'ÉCHELLE TYPOGRAPHIQUE (24/09, retour de Koryun : « beaucoup de différentes tailles »).
     Cinq tailles par écran, rien d'écrit en dur ailleurs : xs mentions, étiquettes, onglets ;
     s notes, libellés, légendes ; m texte, boutons, noms de produits, champs (16 px : pas de
     zoom d'iOS au toucher) ; l titres des portes et des feuilles, prix mis en avant ; xl titres
     de section, de page et de fiche. xxl : le grand titre de l'accueil et des pages, sur grand
     écran seulement. Deux graisses pour le texte (400, 650), une pour Cinzel (600). */
  --t-xs: .75rem; --t-s: .875rem; --t-m: 1rem; --t-l: 1.25rem; --t-xl: 1.625rem; --t-xxl: 2.5rem;
  --w: 1240px; --g: 16px; --tete-h: 60px; --onglets-h: 62px;
  --z-colle: 20; --z-onglets: 30; --z-barre: 31;
  --focus: var(--vif);
}
@media (min-width: 1160px) { :root { --g: 32px; --tete-h: 78px; --t-l: 1.5rem; --t-xl: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 var(--t-m)/1.5 var(--texte); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--onglets-h) + env(safe-area-inset-bottom)); }
body.avec-barre { padding-bottom: calc(var(--onglets-h) + 70px + env(safe-area-inset-bottom)); }
@media (min-width: 1160px) { body, body.avec-barre { padding-bottom: 0; } }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
b, strong { font-weight: 650; }      /* sinon « bolder » donne 700, ou 900 dans un texte déjà gras */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arm { font-family: var(--arm); font-weight: 500; color: var(--or-texte); font-size: var(--t-s); letter-spacing: .02em; white-space: nowrap; }
/* Le nom armenien sous le nom francais, sur chaque produit (demande de David, 22/09).
   Discret : il nomme la chose, il ne concurrence pas le nom de la carte. */
.arm-sous { display: block; font-family: var(--arm); font-weight: 500; font-size: var(--t-xs); line-height: 1.3; letter-spacing: .02em; color: var(--or-texte); opacity: .9; }
.art-corps .arm-sous { margin-top: -3px; }
.pg .arm-sous { margin: -1px 0 1px; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 8px; }
.evitement:focus { top: 12px; }
.sans-js { max-width: 60ch; margin: 24px auto; padding: 0 var(--g); }

/* ---------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 650; font-size: var(--t-m); text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--sortie); }
.btn:active { transform: scale(.98); }
.btn-plein { background: var(--rouge); color: #fff; }
.btn-plein:hover { background: var(--rouge-fonce); }
.btn-plein:disabled, .btn-plein[disabled] { background: var(--doux); color: var(--sourdine); cursor: not-allowed; }
.btn-creme { background: var(--creme); color: var(--rouge); }
.btn-creme:hover { background: #fff; }
.btn-contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn-contour:hover { background: var(--encre); color: #fff; }
.btn-contour-creme { border-color: rgba(249, 240, 217, .6); color: var(--creme); }
.btn-contour-creme:hover { background: var(--creme); color: var(--rouge); border-color: var(--creme); }
.btn-large { min-height: 52px; width: 100%; font-size: var(--t-m); }
.btn-petit { min-height: 38px; padding: 0 14px; font-size: var(--t-s); }
.btn-prix { margin-left: auto; font-variant-numeric: tabular-nums; }
.btn-large:has(.btn-prix) { justify-content: space-between; padding: 0 22px; }
.lien { text-decoration: underline; text-underline-offset: 3px; font-weight: 650; color: var(--rouge); }
.lien-discret { color: var(--sourdine); font-weight: 400; margin-top: 18px; font-size: var(--t-s); }

/* ---------- étiquettes */
.etq { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 650; letter-spacing: .02em; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--blanc); color: var(--rouge); white-space: nowrap; }
.etq-nouveau { background: var(--vif); color: #fff; }
.etq-jour { background: var(--or); color: var(--encre); }
.etq-epuise { background: var(--encre); color: #fff; }
.etq-vegetarien { background: #E9EEDC; color: var(--vert); }
.etq .ico { width: 12px; height: 12px; stroke-width: 2.2; }

/* ---------- pas à pas (quantité) */
.pas { display: inline-flex; align-items: center; gap: 4px; background: var(--doux); border-radius: 999px; padding: 4px; }
.pas button { width: 44px; height: 44px; border-radius: 50%; background: var(--blanc); display: grid; place-items: center; transition: background-color .15s; }
.pas button:hover { background: var(--creme); }
.pas b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
/* la quantite se tape : champ libre, borne par le code */
.pas-champ { width: 62px; height: 40px; padding: 0 4px; border: 1.5px solid var(--ligne); background: var(--blanc); border-radius: 10px; text-align: center; font: 650 var(--t-m)/1 var(--texte); font-variant-numeric: tabular-nums; cursor: text; transition: border-color .18s, box-shadow .18s; }
.pas-champ::-webkit-outer-spin-button, .pas-champ::-webkit-inner-spin-button { appearance: none; margin: 0; }
.pas-champ:hover { border-color: var(--beige); }
.pas-champ:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(124, 3, 3, .16); }
.pas-petit .pas-champ { width: 44px; height: 36px; font-size: var(--t-m); }
.pas-petit button { width: 36px; height: 36px; }
.pas-petit b { min-width: 22px; font-size: var(--t-m); }

.sans-photo { display: grid; place-items: center; background: var(--creme); width: 100%; height: 100%; aspect-ratio: 1; }
.sans-photo img { width: 46%; opacity: .9; }
.demo-note { font-size: var(--t-s); color: var(--encre-2); background: var(--doux); border-radius: 10px; padding: 10px 12px; margin-top: 16px; }
.demo-note-page { max-width: var(--w); margin: 28px auto 0; }
.vide { text-align: center; padding: 48px 12px; display: grid; justify-items: center; gap: 16px; color: var(--encre-2); }
.vide b { color: var(--encre); }

/* ---------- bandeau de démonstration */
.bandeau-demo { background: var(--encre); color: #F3ECDC; font-size: var(--t-s); line-height: 1.35; padding: 8px var(--g); display: flex; gap: 12px; align-items: center; justify-content: center; }
.bandeau-demo b { color: var(--or); font-weight: 650; }
.bandeau-demo button { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; --focus: var(--or); }
.bandeau-demo button:hover { background: rgba(255, 255, 255, .12); }

/* ============================================================ EN-TÊTE */
.tete { background: var(--papier); }
.tete-in { display: flex; align-items: center; gap: 12px; height: var(--tete-h); padding: 0 var(--g); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; flex: none; }
.marque-embleme { width: 40px; height: 40px; flex: none; }
.marque-textes { display: grid; gap: 3px; }
.marque-titre { width: 132px; height: auto; }
.marque-arm { font-family: var(--arm); font-weight: 600; font-size: .625rem; letter-spacing: .24em; color: var(--or-texte); line-height: 1; }
.nav, .tete-compte { display: none; }
.btn-panier { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--rouge); color: #fff; font-weight: 650; font-size: var(--t-s); transition: background-color .18s; --focus: var(--encre); }
.btn-panier:hover { background: var(--rouge-fonce); }
.btn-panier-nb { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 8px; font-variant-numeric: tabular-nums; }
.tete-retrait { padding: 0 var(--g) 10px; }
.retrait { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--doux); font-size: var(--t-s); text-align: left; transition: background-color .18s; }
.retrait:hover { background: var(--creme); }
.retrait > .ico { color: var(--rouge); }
.retrait-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retrait-quand { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.retrait-quand .ico { width: 16px; height: 16px; color: var(--sourdine); }

@media (min-width: 1160px) {
  .tete { position: sticky; top: 0; z-index: var(--z-colle); display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; column-gap: 22px; height: var(--tete-h); padding: 0 max(var(--g), calc((100vw - var(--w)) / 2)); border-bottom: 1px solid transparent; transition: border-color .2s; }
  .tete.defile { border-bottom-color: var(--ligne); }
  .tete-in { display: contents; }
  .marque { grid-column: 1; grid-row: 1; margin: 0; }
  .marque-embleme { width: 48px; height: 48px; }
  .marque-titre { width: 156px; }
  .tete-retrait { grid-column: 2; grid-row: 1; padding: 0; }
  .retrait { width: auto; border-radius: 999px; padding: 0 16px; gap: 8px; }
  .retrait-txt { flex: none; }
  .retrait-quand::before { content: "·"; margin: 0 6px 0 0; color: var(--sourdine); }
  .nav { grid-column: 3; grid-row: 1; display: flex; justify-content: flex-end; gap: 4px; }
  .nav a { text-decoration: none; font-weight: 400; font-size: var(--t-s); padding: 10px 14px; border-radius: 999px; color: var(--encre-2); transition: color .15s, background-color .15s; white-space: nowrap; }
  .nav a:hover { color: var(--encre); background: var(--doux); }
  /* menu et espace en --t-s, comme la pastille de retrait : a 16 px ils serraient la grille, et le
     logo (une image en max-width: 100 %) retrecissait de 27 px a 1280 px (24/09) */
  .nav a.actif { color: var(--rouge); font-weight: 650; }
  .tete-compte { grid-column: 4; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 400; font-size: var(--t-s); padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
  .tete-compte:hover, .tete-compte.actif { background: var(--doux); }
  .btn-panier { grid-column: 5; grid-row: 1; min-height: 46px; padding: 0 22px; font-size: var(--t-m); }
}
@media (min-width: 1160px) and (max-width: 1359px) { .retrait-prefixe { display: none; } }
@media (min-width: 1160px) and (max-width: 1259px) { .tete { column-gap: 14px; } .marque-titre { width: 136px; } .nav a { padding: 10px; } .tete-compte span { display: none; } }

/* ============================================================ VUES */
.vue { max-width: calc(var(--w) + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g) 56px; }
.page-tete { padding: 28px 0 24px; max-width: 62ch; }
.page-tete h1 { font: 600 var(--t-xl)/1.15 var(--titre); letter-spacing: .01em; text-wrap: balance; }
.page-tete p { margin-top: 10px; color: var(--encre-2); font-size: var(--t-m); text-wrap: pretty; }
@media (min-width: 1160px) { .page-tete { padding: 48px 0 36px; } .page-tete h1 { font-size: var(--t-xxl); } }

/* ---------- accueil : une ligne sur téléphone, un bandeau rouge sur ordinateur */
.accueil h1 { font: 400 var(--t-m)/1.45 var(--texte); color: var(--encre-2); padding: 2px 0 12px; }
.accueil-chapo, .accueil-actions, .accueil-avis, .accueil-photo { display: none; }
@media (min-width: 1160px) {
  .accueil { display: grid; grid-template-columns: 1.08fr .92fr; background: var(--rouge); color: var(--creme); border-radius: 16px; overflow: hidden; margin-top: 8px; --focus: var(--or); }
  .accueil-texte { padding: 40px 44px 38px 48px; display: flex; flex-direction: column; justify-content: center; }
  .accueil-sur { display: block; font: 650 var(--t-s)/1.4 var(--texte); letter-spacing: 0; color: var(--or); margin-bottom: 12px; }
  .accueil h1 { font: 600 var(--t-xxl)/1.14 var(--titre); letter-spacing: .01em; padding: 0; text-wrap: balance; color: #FFF8E6; }
  .accueil-chapo { display: block; margin-top: 14px; font-size: var(--t-m); line-height: 1.55; color: rgba(249, 240, 217, .88); max-width: 58ch; text-wrap: pretty; }
  .accueil-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
  .accueil-avis { display: block; margin-top: 18px; font-size: var(--t-s); color: rgba(249, 240, 217, .85); }
  .accueil-avis b { color: #fff; }
  .etoiles { color: var(--or); letter-spacing: 2px; margin-right: 4px; }
  .accueil-photo { display: block; position: relative; min-height: 340px; }
  .accueil-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 1200px) { .accueil h1 { font-size: var(--t-xxl); } }

/* ---------- à la une */
.une { margin: 0 calc(-1 * var(--g)); padding: 6px 0 0; }
.une-piste, .atelier-grille { display: flex; gap: 12px; overflow-x: auto; padding: 6px var(--g) 14px; scroll-snap-type: x proximity; scroll-padding-left: var(--g); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.une-piste::-webkit-scrollbar, .catbar-in::-webkit-scrollbar, .pan-sugg-piste::-webkit-scrollbar, .atelier-grille::-webkit-scrollbar { display: none; }
.une-carte { position: relative; flex: none; width: 118px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; scroll-snap-align: start; box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--rouge); margin: 4px; transition: transform .25s var(--sortie); background: var(--doux); }
.une-carte.vue { box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--beige); }
.une-carte:hover { transform: translateY(-3px); }
.une-carte img { width: 100%; height: 100%; object-fit: cover; }
.une-titre { position: absolute; inset: auto 0 0 0; padding: 28px 10px 10px; background: linear-gradient(transparent, rgba(20, 12, 8, .78)); color: #fff; font-weight: 650; font-size: var(--t-xs); line-height: 1.2; text-align: left; }
.une-lecture { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 12, 8, .55); }
.une-lecture::after { content: ""; position: absolute; left: 10px; top: 7px; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; }
@media (min-width: 1160px) { .une { margin-top: 22px; } .une-piste { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; overflow: visible; } .une-carte { width: auto; aspect-ratio: 1; } .une-titre { font-size: var(--t-s); padding: 36px 14px 14px; } }

/* ---------- les plus demandés */
/* ---------- les trois portes (demande du client, 21/09) : pleine largeur, elles s'ouvrent sur place.
   Le panneau ouvert est visible par lui-meme ; .anime ne sert qu'a border l'animation de hauteur. */
.portes-sec { margin: 16px 0 0; }
.titre-rail { font: 600 var(--t-xl)/1.2 var(--titre); letter-spacing: .01em; }
.portes { display: grid; gap: 10px; margin-top: 12px; }
.porte { position: relative; background: var(--encre); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(35, 26, 21, .06), 0 4px 14px rgba(35, 26, 21, .05); transition: box-shadow .25s; }
/* z-index : le liseré doit rester au-dessus de la photo de fond, qui est positionnée */
.porte::before { content: ""; position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; transition: background-color .25s; }
.porte.ouverte { box-shadow: 0 2px 4px rgba(35, 26, 21, .08), 0 14px 32px rgba(35, 26, 21, .10); }
.porte.ouverte::before { background: var(--vif); }
/* « La photo du produit couvre TOUTE la tuile, tu opacifies l'endroit ou tu mets le titre et
   le prix » (David, 22/09). Les bandes sont des photos de couverture recadrees DANS le produit
   (tools/bandes.py), en deux fichiers : la tuile passe d'un rapport 1,8 sur telephone a 4,7 sur
   grand ecran, un seul fichier couperait n'importe ou. */
.porte-tete { position: relative; display: flex; align-items: flex-end; gap: 12px; width: 100%; min-height: 196px; padding: 14px 16px; text-align: left; color: var(--creme); }
.porte-fond { position: absolute; inset: 0; display: block; }
.porte-fond img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--sortie); }
.porte:hover .porte-fond img { transform: scale(1.04); }
/* Le voile n'assombrit que le bas, la ou se pose l'ecriture : le produit reste entier au-dessus. */
.porte-voile { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 18, 14, .93) 0, rgba(26, 18, 14, .78) 15%, rgba(26, 18, 14, .40) 33%, rgba(26, 18, 14, .08) 52%, rgba(26, 18, 14, 0) 70%); }
.porte-txt { position: relative; flex: 1; display: grid; gap: 1px; min-width: 0; }
.porte-titre { font: 600 var(--t-l)/1.2 var(--titre); letter-spacing: .01em; text-shadow: 0 1px 12px rgba(12, 8, 6, .5); }
.porte-txt .arm-sous { margin-bottom: 2px; color: var(--or); opacity: 1; }
.porte-sous { color: rgba(249, 240, 217, .84); font-size: var(--t-s); font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(12, 8, 6, .45); }
.porte-prix { font-weight: 650; color: var(--or); }
.porte-sous em { font-style: normal; font-weight: 650; color: #FFC0A8; }
.porte-sous .long { display: none; }
/* pastille opaque : le chevron se pose sur la photo */
.porte-chev { position: relative; align-self: flex-end; flex: none; margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--creme); color: var(--rouge); box-shadow: 0 2px 8px rgba(12, 8, 6, .35); transition: background-color .25s, color .25s; }
.porte-chev .ico { width: 17px; height: 17px; stroke-width: 2.2; transform: rotate(90deg); transition: transform .3s var(--sortie); }
.porte.ouverte .porte-chev { background: var(--vif); color: #fff; }
.porte.ouverte .porte-chev .ico { transform: rotate(-90deg); }
/* la tuile est sombre : le panneau porte son propre fond */
.porte-panneau { position: relative; background: var(--papier); }
.porte-panneau.anime { overflow: hidden; }
.porte-in { margin: 0 14px; padding: 14px 0 16px; border-top: 1px solid var(--ligne); }
.porte-note { display: flex; gap: 8px; align-items: flex-start; color: var(--encre-2); font-size: var(--t-s); line-height: 1.45; }
.porte-note .ico { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--rouge); }
.porte-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; margin-top: 14px; }
.pg { display: grid; align-content: start; gap: 1px; text-align: left; width: 100%; }
.pg-photo { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--doux); margin-bottom: 7px; }
.pg-photo img, .pg-photo .sans-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sortie); }
.pg:hover .pg-photo img { transform: scale(1.05); }
.pg b { font-weight: 650; font-size: var(--t-m); line-height: 1.25; }
.pg small { color: var(--encre-2); font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.pg.epuise .pg-photo img { filter: grayscale(.85); opacity: .7; }
.pg-epuise { position: absolute; inset: auto 0 0 0; padding: 4px 0; background: rgba(35, 26, 21, .72); color: #fff; font-size: var(--t-xs); font-weight: 650; text-align: center; }
.porte-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.porte-lib { flex-basis: 100%; margin-bottom: -3px; color: var(--sourdine); font-size: var(--t-s); }
.porte-lib-qte { margin: 14px 0 -4px; }
.pp { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--papier); font-weight: 650; font-size: var(--t-m); font-variant-numeric: tabular-nums; transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--sortie); }
.pp small { font-size: var(--t-s); font-weight: 400; color: var(--encre-2); }
.pp:hover { border-color: var(--beige); }
.pp.actif { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.pp.actif small { color: rgba(255, 255, 255, .82); }
.pp:active { transform: scale(.96); }
.porte-paliers .pp { min-width: 58px; justify-content: center; }
.porte-commande { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.porte-commande .btn { flex: 1 0 100%; min-width: 0; }
.porte-commande .btn > span:first-child { overflow: hidden; text-overflow: ellipsis; }
/* flex-basis 0 obligatoire : .btn-large porte width:100%, une base auto le renverrait a la ligne */
@media (min-width: 480px) { .porte-commande .btn { flex: 1 1 0; } }
.porte-pro { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--encre-2); font-size: var(--t-s); line-height: 1.4; }
.porte-pro { display: block; }
.porte-pro a { font-weight: 650; color: var(--rouge); text-decoration: none; white-space: nowrap; }
.porte-rupture { margin-top: 10px; font-size: var(--t-m); }
@media (min-width: 700px) {
  /* le texte passe a gauche, centre en hauteur : la bande large est faite pour ca */
  .porte-tete { min-height: 252px; padding: 18px 22px; }
  /* la bande est plus haute : le voile peut se contenter du tiers bas */
  .porte-voile { background: linear-gradient(to top, rgba(26, 18, 14, .92) 0, rgba(26, 18, 14, .72) 13%, rgba(26, 18, 14, .32) 28%, rgba(26, 18, 14, 0) 48%); }
}
@media (min-width: 640px) {
  .porte-sous .long { display: inline; }
  .porte-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
  .porte-commande { max-width: 460px; }
}
@media (min-width: 1160px) {
  .portes-sec { margin-top: 26px; }
  .titre-rail { font-size: var(--t-xl); }
  .portes { gap: 12px; margin-top: 16px; }
  .porte-tete { padding: 20px 26px; }
  .porte-titre { font-size: var(--t-l); }
  .porte-sous { font-size: var(--t-s); }
  .porte-chev { width: 42px; height: 42px; }
  .porte-in { margin: 0 20px; padding: 16px 0 22px; }
  .porte-grille { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .porte-note { font-size: var(--t-s); }
}

/* ---------- barre des familles */
.catbar { position: sticky; top: 0; z-index: var(--z-colle); background: var(--papier); margin: 8px calc(-1 * var(--g)) 0; border-bottom: 1px solid var(--ligne); }
.catbar-in { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--g); scrollbar-width: none; }
.puce { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--doux); color: var(--encre-2); font-weight: 650; font-size: var(--t-m); white-space: nowrap; transition: background-color .18s, color .18s; }
.puce:hover { background: var(--creme); color: var(--encre); }
.puce.actif, .puce.actif:hover { background: var(--encre); color: #fff; }
@media (min-width: 1160px) { .catbar { top: var(--tete-h); margin-top: 22px; } .catbar-in { padding: 12px var(--g); } }

/* ---------- la carte */
.carte { outline: none; }
.carte-section { padding-top: 28px; }
.carte-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 8px; }
.carte-tete h2 { font: 600 var(--t-xl)/1.15 var(--titre); letter-spacing: .01em; }
.carte-tete h2 .arm { font-size: var(--t-m); margin-left: 6px; }
.carte-tete p { display: inline-flex; align-items: center; gap: 6px; color: var(--encre-2); font-size: var(--t-s); }
.carte-tete p .ico { width: 16px; height: 16px; color: var(--rouge); }
/* La carte est une GRILLE partout : 2 colonnes sur telephone, des images larges,
   le nom et le prix seulement. La description vit dans la fiche. (demande client 21/09) */
.carte-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; margin-top: 14px; }
.art { position: relative; display: flex; flex-direction: column; }
.art-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--doux); margin-bottom: 10px; }
.art-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--sortie); }
.art-corps { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.art-nom { font: 650 var(--t-m)/1.25 var(--texte); }
.art-ouvre { font: inherit; text-align: left; }
.art-ouvre::after { content: ""; position: absolute; inset: 0; }
.art-ouvre:focus-visible { outline: none; }
.art:has(.art-ouvre:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 12px; }
.art-corps .etq { position: absolute; top: 8px; left: 8px; z-index: 1; box-shadow: 0 1px 3px rgba(35, 26, 21, .18); }
.art-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; min-height: 40px; }
.art-prix { font-weight: 650; font-variant-numeric: tabular-nums; }
.art-action { position: relative; z-index: 1; display: inline-flex; }
.art-ajout { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0; border-radius: 999px; background: var(--rouge); color: #fff; font-weight: 650; font-size: var(--t-s); transition: background-color .18s, color .18s, transform .18s var(--sortie); }
.art-ajout span { display: none; }
.art-ajout[data-fiche] { padding: 0 16px; background: var(--doux); color: var(--rouge); }
.art-ajout[data-fiche] span { display: inline; }
.art-ajout:active { transform: scale(.94); }
.art-alerte { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--encre); font-weight: 650; font-size: var(--t-s); }
.art-alerte.actif { background: var(--encre); color: #fff; }
.art-alerte .ico { width: 16px; height: 16px; }
.art.epuise .art-photo img { filter: grayscale(.85); opacity: .7; }
.art.epuise .art-prix { color: var(--sourdine); }
@media (min-width: 640px) {
  .carte-grille { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 22px; margin-top: 16px; }
  .art-photo { margin-bottom: 12px; }
  .art:hover .art-photo img { transform: scale(1.04); }
  .art-corps .etq { top: 10px; left: 10px; }
  .art-nom { font-size: var(--t-m); }
  .art-bas { padding-top: 12px; }
  .art-ajout { padding: 0 16px; background: var(--doux); color: var(--rouge); }
  .art-ajout span { display: inline; }
  .art-ajout .ico { width: 16px; height: 16px; stroke-width: 2.2; }
  .art:hover .art-ajout, .art-ajout:hover { background: var(--rouge); color: #fff; }
  .carte-section { padding-top: 44px; }
  .carte-tete h2 { font-size: var(--t-xl); }
}
/* 3 colonnes et non 4 : les images sont plus grandes (demande client 21/09) */
@media (min-width: 1160px) { .carte-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; } .art-nom { font-size: var(--t-m); } }

/* ---------- bande « la maison du pain » */
.bande-maison { margin: 64px calc(-1 * var(--g)) 0; background: var(--creme); }
.bande-maison-in { max-width: 680px; margin: 0 auto; padding: 48px var(--g) 52px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.bande-losange { width: 56px; height: auto; }
.bande-maison-arm { font-family: var(--arm); font-weight: 500; letter-spacing: .3em; color: var(--or-texte); font-size: var(--t-s); }
.bande-maison h2 { font: 600 var(--t-xl)/1.25 var(--titre); letter-spacing: .01em; text-wrap: balance; }
.bande-maison h2 i { font-style: normal; color: var(--rouge); }
.bande-maison p { color: var(--encre-2); font-size: var(--t-m); text-wrap: pretty; }
.bande-maison .btn { margin-top: 8px; }
@media (min-width: 1160px) { .bande-maison { margin: 88px 0 0; border-radius: 16px; } .bande-maison h2 { font-size: var(--t-xl); } .bande-maison-in { padding: 64px 24px 68px; } }

/* ---------- bande application */
.bande-appli { display: grid; gap: 32px; padding-top: 56px; align-items: center; }
.bande-appli h2 { font: 600 var(--t-xl)/1.2 var(--titre); letter-spacing: .01em; text-wrap: balance; }
.bande-appli-texte > p { margin-top: 10px; color: var(--encre-2); font-size: var(--t-m); max-width: 50ch; }
.appli-points { margin: 22px 0 26px; display: grid; gap: 14px; max-width: 52ch; }
.appli-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--encre-2); }
.appli-points li .ico, .appli-points li img { width: 24px; height: 24px; color: var(--rouge); margin-top: 1px; }
.appli-points b { color: var(--encre); font-weight: 650; }
.bande-appli-tel { display: grid; place-items: center; }
.tel { width: 250px; aspect-ratio: 9 / 18.5; background: #1C1613; border-radius: 38px; padding: 9px; box-shadow: 0 18px 40px -18px rgba(35, 26, 21, .55); }
.tel-ecran { height: 100%; border-radius: 30px; overflow: hidden; position: relative; background: #120D0B; }
.tel-verrou { height: 100%; color: #fff; padding: 46px 12px 0; position: relative; }
.tel-verrou > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.tel-heure { position: relative; text-align: center; font-size: 3.25rem; font-weight: 300; line-height: 1; margin-bottom: 26px; }
.tel-notif { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 9px; background: rgba(251, 247, 238, .93); color: var(--encre); border-radius: 16px; padding: 10px; margin-top: 8px; font-size: .75rem; line-height: 1.3; }
.tel-notif img { width: 30px; height: 30px; }
.tel-notif small { display: block; font-size: .5625rem; letter-spacing: .06em; color: var(--sourdine); font-weight: 700; }
.tel-notif b { display: block; font-size: .8125rem; }
.tel-notif span { color: var(--encre-2); }
@media (min-width: 860px) { .bande-appli { grid-template-columns: 1.2fr .8fr; padding-top: 88px; } .bande-appli h2 { font-size: var(--t-xl); } .tel { width: 280px; } }

/* ============================================================ ACTUALITÉS */
.actus { display: grid; gap: 20px; }
.actu { background: var(--blanc); border-radius: 16px; overflow: hidden; display: grid; }
.actu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.actu-corps { padding: 18px 18px 22px; display: grid; gap: 10px; justify-items: start; align-content: start; }
.actu-meta { display: flex; gap: 10px; align-items: center; font-size: var(--t-xs); color: var(--sourdine); }
.actu-meta span { font-weight: 650; color: var(--rouge); }
.actu h2 { font: 650 var(--t-l)/1.3 var(--texte); text-wrap: balance; }
.actu-corps > p:not(.actu-meta) { color: var(--encre-2); text-wrap: pretty; max-width: 62ch; }
@media (min-width: 760px) { .actu { grid-template-columns: 340px 1fr; } .actu img { height: 100%; aspect-ratio: auto; min-height: 240px; } .actu-corps { padding: 28px 32px; } .actu h2 { font-size: var(--t-l); } }

/* ============================================================ LA MAISON */
.page-tete-marque { max-width: none; display: grid; justify-items: center; text-align: center; gap: 22px; padding-top: 36px; }
.page-tete-marque img { width: min(640px, 100%); }
.page-tete-phrase { font-size: var(--t-m) !important; max-width: 46ch; margin: 0 !important; }
.page-tete-phrase i { font-style: normal; font-weight: 650; color: var(--rouge); }
.recit { display: grid; gap: 28px; padding-top: 20px; }
.recit-photo img { border-radius: 16px; width: 100%; }
.recit-photo figcaption { font-size: var(--t-s); color: var(--sourdine); margin-top: 8px; }
.recit-texte { max-width: 60ch; }
.recit-texte h2, .atelier h2 { font: 600 var(--t-xl)/1.2 var(--titre); letter-spacing: .01em; text-wrap: balance; margin-bottom: 16px; }
.recit-texte p { color: var(--encre-2); font-size: var(--t-m); line-height: 1.65; margin-bottom: 14px; text-wrap: pretty; }
.recit-texte blockquote { margin: 26px 0; padding: 22px 24px; background: var(--creme); border-radius: 14px; }
.recit-texte blockquote p { font: 600 var(--t-l)/1.4 var(--titre); color: var(--rouge); margin: 0; letter-spacing: .01em; }
.recit-texte cite { display: block; margin-top: 10px; font-style: normal; font-size: var(--t-s); color: var(--encre-2); }
@media (min-width: 900px) { .recit { grid-template-columns: .8fr 1fr; gap: 56px; align-items: start; padding-top: 32px; } .recit-photo { position: sticky; top: calc(var(--tete-h) + 24px); } .recit-texte h2, .atelier h2 { font-size: var(--t-xl); } }
.lavash { margin: 64px calc(-1 * var(--g)) 0; background: var(--rouge); color: var(--creme); padding: 48px var(--g); display: grid; gap: 32px; --focus: var(--or); }
.lavash h2 { font: 600 var(--t-xl)/1.2 var(--titre); color: #FFF8E6; margin-bottom: 16px; }
.lavash-texte > p { color: rgba(249, 240, 217, .9); font-size: var(--t-m); line-height: 1.65; margin-bottom: 14px; max-width: 58ch; }
.lavash-faits { display: grid; gap: 16px; margin: 26px 0 30px; max-width: 58ch; }
.lavash-faits div { display: grid; grid-template-columns: 116px 1fr; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(249, 240, 217, .22); }
.lavash-faits dt { font-weight: 650; color: var(--or); }
.lavash-faits dd { color: rgba(249, 240, 217, .88); font-size: var(--t-m); }
.lavash-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.lavash-photos img { border-radius: 14px; width: 100%; }
.lavash-photos img:last-child { margin-top: 36px; }
@media (min-width: 900px) { .lavash { grid-template-columns: 1.1fr .9fr; gap: 64px; margin: 96px 0 0; border-radius: 16px; padding: 64px 56px; align-items: center; } .lavash h2 { font-size: var(--t-xl); } }
.atelier { padding-top: 64px; }
.atelier > p { color: var(--encre-2); font-size: var(--t-m); margin: -6px 0 8px; }
.atelier-grille { margin: 0 calc(-1 * var(--g)); }
.atelier-grille .une-carte { width: 168px; box-shadow: none; margin: 0; }
@media (min-width: 900px) { .atelier-grille { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; overflow: visible; margin: 0; padding: 12px 0 0; } .atelier-grille .une-carte { width: auto; } }

/* ============================================================ BOUTIQUES */
.boutiques { display: grid; gap: 22px; }
.bq { background: var(--blanc); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.bq > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bq-corps { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bq-statut { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: var(--t-s); color: var(--encre-2); }
.bq-statut i { width: 9px; height: 9px; border-radius: 50%; background: var(--sourdine); }
.bq-statut.ouvert { color: var(--vert); }
.bq-statut.ouvert i { background: #5E8A2C; }
.bq h2 { font: 600 var(--t-xl)/1.15 var(--titre); letter-spacing: .01em; }
.bq-adr { font-size: var(--t-m); }
.bq-adr span { color: var(--encre-2); font-size: var(--t-s); }
.bq-horaires { margin: 6px 0 8px; border-top: 1px solid var(--ligne); }
.bq-horaires div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ligne); font-size: var(--t-s); }
.bq-horaires dt { color: var(--encre-2); }
.bq-horaires dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.bq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
@media (min-width: 760px) { .boutiques { grid-template-columns: 1fr 1fr; } }
/* trois boutiques : trois colonnes sur grand ecran ; entre deux, la derniere carte d'un nombre
   impair prend toute la largeur, en paysage, plutot que de rester seule sur sa ligne */
@media (min-width: 1160px) { .boutiques { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1159px) {
  .bq:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .bq:last-child:nth-child(odd) > img, .bq:last-child:nth-child(odd) > .bq-visuel { width: 48%; flex: none; aspect-ratio: auto; object-fit: cover; }
}
/* une boutique sans photo de devanture (pas encore ouverte) : un visuel de la maison */
.bq-visuel { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 28px 20px; background: var(--creme); text-align: center; }
.bq-visuel img { width: 72px; height: auto; }
.bq-visuel-titre { font: 600 var(--t-xl)/1.15 var(--titre); letter-spacing: .01em; color: var(--rouge); text-wrap: balance; }
.bq-visuel-date { font-weight: 650; color: var(--encre-2); }
.plan { margin-top: 22px; border-radius: 16px; overflow: hidden; height: 320px; background: var(--doux); }
.plan iframe { width: 100%; height: 100%; border: 0; display: block; }
.recevoir { margin-top: 64px; display: grid; gap: 28px; }
.recevoir h2 { font: 600 var(--t-xl)/1.2 var(--titre); letter-spacing: .01em; margin-bottom: 14px; text-wrap: balance; }
.recevoir-texte p { color: var(--encre-2); font-size: var(--t-m); max-width: 50ch; margin-bottom: 12px; text-wrap: pretty; }
.recevoir-tel { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: var(--t-l); text-decoration: none; margin-top: 10px; font-variant-numeric: tabular-nums; }
.recevoir-tel .ico { color: var(--rouge); }
@media (min-width: 900px) { .recevoir { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 88px; } .recevoir h2 { font-size: var(--t-xl); } }

/* ---------- formulaires */
.formulaire { background: var(--blanc); border-radius: 16px; padding: 22px 20px 24px; display: grid; gap: 14px; }
.formulaire-demo { font-size: var(--t-s); color: var(--encre-2); background: var(--doux); border-radius: 8px; padding: 8px 12px; justify-self: start; }
.formulaire-ok { color: var(--vert); font-weight: 650; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 650; font-size: var(--t-s); }
.champ label small { font-weight: 400; color: var(--sourdine); }
.champ input, .champ textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--ligne); background: var(--blanc); transition: border-color .15s; font-size: var(--t-m); }
.champ textarea { resize: vertical; min-height: 96px; }
.champ input:hover, .champ textarea:hover { border-color: var(--beige); }
.champ input:focus-visible, .champ textarea:focus-visible { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(124, 3, 3, .15); }
.champ input::placeholder, .champ textarea::placeholder { color: var(--sourdine); }
.champ.erreur input { border-color: var(--vif); }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.champ-msg { color: #A3230C; font-size: var(--t-s); font-weight: 650; margin-top: 8px; }
@media (min-width: 760px) { .formulaire { padding: 30px 32px 32px; } }

/* ============================================================ MON ESPACE */
.espace { display: grid; gap: 20px; }
.cagnotte { position: relative; overflow: hidden; background: var(--rouge); color: var(--creme); border-radius: 16px; padding: 24px 22px 26px; display: grid; gap: 8px; align-content: start; justify-items: start; --focus: var(--or); }
.cagnotte-motif { position: absolute; right: -48px; top: -30px; width: 220px; opacity: .2; pointer-events: none; }
.cagnotte h2 { font: 650 var(--t-m)/1 var(--texte); color: var(--or); position: relative; }
.cagnotte-solde { font-weight: 650; font-size: var(--t-xxl); line-height: 1.05; font-variant-numeric: tabular-nums; color: #fff; position: relative; }
.cagnotte-regle { color: rgba(249, 240, 217, .88); max-width: 40ch; font-size: var(--t-s); position: relative; }
.cagnotte-jauge { width: 100%; height: 8px; border-radius: 999px; background: rgba(249, 240, 217, .22); margin-top: 12px; overflow: hidden; position: relative; }
.cagnotte-jauge i { display: block; height: 100%; background: var(--or); border-radius: 999px; transition: width .6s var(--sortie); }
.cagnotte-but { font-size: var(--t-s); color: #FFF3D6; position: relative; }
.cagnotte .btn { margin-top: 12px; position: relative; }
.bloc { background: var(--blanc); border-radius: 16px; padding: 22px 20px 24px; }
.bloc > h2 { font: 600 var(--t-l)/1.2 var(--titre); letter-spacing: .01em; margin-bottom: 14px; }
.bloc-vide, .vide-ligne p { color: var(--encre-2); font-size: var(--t-s); }
.vide-ligne { padding: 4px 0; text-align: left; justify-items: start; }
.cmd { padding: 16px 0; border-top: 1px solid var(--ligne); display: grid; gap: 6px; }
.cmd:first-child { border-top: 0; padding-top: 0; }
.cmd-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.cmd-statut { font-size: var(--t-xs); font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--doux); color: var(--encre-2); }
.cmd-statut.s-preparation { background: #FCEBC4; color: #6B4A08; }
.cmd-statut.s-prete { background: #E3ECD3; color: var(--vert); }
.cmd-statut.s-annulee, .cmd-statut.s-refusee { background: #FBE3DC; color: #7A1D0B; }
.cmd-statut.s-acceptee { background: #E9EFDC; color: var(--vert); }
.suivi-note { font-size: var(--t-s); color: var(--encre-2); margin: 4px 0 6px; text-wrap: pretty; }
.suivi-annulee { background: #FBE3DC; color: #7A1D0B; border-radius: 10px; padding: 10px 12px; margin: 10px 0 6px; font-size: var(--t-s); font-weight: 650; }
.champ-msg-pied { margin: 0 0 4px; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cmd-ou { font-weight: 650; }
.cmd-quoi { color: var(--encre-2); font-size: var(--t-s); }
.cmd-bas { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cmd-bas .ico { width: 16px; height: 16px; }
.suivi { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 10px 0 6px; }
.suivi li { display: grid; justify-items: center; gap: 6px; font-size: var(--t-xs); color: var(--sourdine); position: relative; text-align: center; }
.suivi li::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--ligne); }
.suivi li:first-child::before { display: none; }
.suivi i { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--blanc); border: 2px solid var(--ligne); display: grid; place-items: center; color: #fff; }
.suivi i .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.suivi .fait i { background: var(--vert); border-color: var(--vert); }
.suivi .fait::before, .suivi .cours::before { background: var(--vert); }
.suivi .cours i { background: var(--rouge); border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(124, 3, 3, .14); }
.suivi .cours i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.suivi .fait, .suivi .cours { color: var(--encre); font-weight: 650; }
/* cinq étapes depuis l'acceptation (23/09) : sur un petit téléphone, « préparation » est plus large que
   sa colonne. Le libellé porte une coupure douce (prépa-ration, dans ETAPES de app.js), la frise
   gagne 6 px de chaque côté, et le texte ne sort jamais de sa colonne pour mordre sur la voisine. */
.suivi span { min-width: 0; max-width: 100%; overflow-wrap: break-word; }
@media (max-width: 400px) { .suivi { margin-inline: -6px; } .suivi li { font-size: var(--t-xs); } }
@media (max-width: 340px) { .suivi li { font-size: var(--t-xs); } }
.alertes li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; }
.alertes img, .alertes .sans-photo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.alertes small, .pref small { display: block; color: var(--encre-2); font-size: var(--t-s); }
.prefs { margin-top: 12px; border-top: 1px solid var(--ligne); }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ligne); cursor: pointer; }
.pref b { font-weight: 650; }
input[role="switch"] { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--beige); position: relative; cursor: pointer; transition: background-color .2s; margin: 0; }
input[role="switch"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--sortie); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
input[role="switch"]:checked { background: var(--vert); }
input[role="switch"]:checked::after { transform: translateX(20px); }
@media (min-width: 900px) { .espace { grid-template-columns: 1fr 1fr; align-items: start; } .cagnotte { padding: 32px; min-height: 260px; } .bloc { padding: 28px 30px 30px; } }

/* ============================================================ PIED */
.pied { background: var(--rouge); color: rgba(249, 240, 217, .88); margin-top: 72px; --focus: var(--or); }
.pied-in { max-width: calc(var(--w) + 2 * var(--g)); margin: 0 auto; padding: 48px var(--g) 28px; display: grid; gap: 28px; }
.pied-marque img { width: min(360px, 100%); }
.pied-marque p { margin-top: 16px; max-width: 38ch; font-size: var(--t-s); }
.pied h3 { font: 650 var(--t-m)/1.2 var(--texte); color: var(--or); margin-bottom: 8px; }
.pied p { font-size: var(--t-s); line-height: 1.6; }
.pied a { text-decoration: underline; text-decoration-color: rgba(249, 240, 217, .4); text-underline-offset: 3px; }
.pied a:hover { color: #fff; text-decoration-color: #fff; }
.pied-bas { max-width: calc(var(--w) + 2 * var(--g)); margin: 0 auto; padding: 18px var(--g) 28px; border-top: 1px solid rgba(249, 240, 217, .2); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: var(--t-xs); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 900px) { .pied-in { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 64px; } }

/* ============================================================ BARRES FIXES (téléphone) */
.onglets { position: fixed; inset: auto 0 0 0; z-index: var(--z-onglets); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--blanc); border-top: 1px solid var(--ligne); padding-bottom: env(safe-area-inset-bottom); }
.onglets a { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; min-height: var(--onglets-h); text-decoration: none; font-size: var(--t-xs); font-weight: 650; color: var(--sourdine); }
.onglets .ico { width: 24px; height: 24px; }
.onglets a.actif { color: var(--rouge); }
.barre-panier { position: fixed; z-index: var(--z-barre); left: 12px; right: 12px; bottom: calc(var(--onglets-h) + env(safe-area-inset-bottom) + 10px); min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 20px 0 10px; border-radius: 999px; background: var(--rouge); color: #fff; font-weight: 650; box-shadow: 0 8px 22px -8px rgba(60, 4, 4, .7); animation: monte .35s var(--sortie); --focus: var(--encre); }
.barre-panier-nb { min-width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.barre-panier-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.barre-panier-txt { display: grid; min-width: 0; line-height: 1.15; }
.barre-panier-livr { font-size: var(--t-xs); font-weight: 400; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre-panier.livr-offre .barre-panier-livr { opacity: 1; color: var(--or); }
@keyframes monte { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 1160px) { .onglets, .barre-panier { display: none; } }

/* ============================================================ FEUILLES (dialog) */
dialog { border: 0; padding: 0; color: inherit; max-width: none; max-height: none; }
/* l'animation est un BONUS : l'etat ouvert est visible sans elle (cf. bug Safari 21/09) */
dialog::backdrop { background: rgba(28, 18, 12, .56); animation: fond-entre .26s; }
@keyframes fond-entre { from { opacity: 0; } }
.feuille { background: var(--papier); margin: auto 0 0; width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; overflow: hidden; }
.feuille[open] { display: flex; flex-direction: column; }   /* visible SANS animation : le JS anime */
.feuille-fiche { height: 100dvh; max-height: 100dvh; border-radius: 0; background: var(--papier); }
.feuille-in { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.feuille-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.feuille-tete h2 { font: 600 var(--t-l)/1.2 var(--titre); letter-spacing: .01em; }
.feuille-fermer { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--doux); transition: background-color .15s; }
.feuille-fermer:hover { background: var(--creme); }
.feuille-defile { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 22px; }
.feuille-defile h3 { font-size: var(--t-s); font-weight: 650; color: var(--encre-2); margin: 20px 0 10px; }
.feuille-pied { display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ligne); background: var(--blanc); }
.feuille-pied-col { flex-direction: column; align-items: stretch; gap: 10px; }
@media (min-width: 760px) {
  .feuille { margin: auto; border-radius: 16px; width: min(540px, 94vw); max-height: 88vh; }
  .feuille-fiche { width: min(980px, 94vw); height: min(660px, 90vh); border-radius: 16px; }
  .feuille-tiroir { margin: 0 0 0 auto; width: 450px; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .feuille-pied { padding-bottom: 16px; }
  .feuille.forcee[open] { top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; width: min(540px, 94vw) !important; margin: 0 auto !important; }
  .feuille-tiroir.forcee[open] { top: 0 !important; bottom: 0 !important; left: auto !important; right: 0 !important; width: 450px !important; transform: none !important; margin: 0 !important; max-height: none !important; }
}

/* ---------- fiche article */
.fiche { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.fiche > .feuille-fermer { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; background: rgba(251, 247, 238, .94); }
.fiche-photo { flex: none; background: var(--doux); }
.fiche-photo img, .fiche-photo .sans-photo { width: 100%; height: 100%; object-fit: cover; }
/* Telephone : la photo occupe TOUT l'ecran et le texte se pose par-dessus son fond uni.
   Le produit est compose dans le tiers haut de l'image, le bas est du fond nu : le degrade
   vers --papier (#FBF7EE) y est invisible, le fond des photos etant #FAF7ED. */
.feuille-fiche .fiche-photo { height: 100dvh; }
.feuille-fiche .fiche-photo img { object-position: center 30%; }
.feuille-fiche .fiche-corps { margin-top: -52dvh; position: relative; z-index: 1; }
.feuille-fiche .fiche-defile { padding-top: 10px; background: linear-gradient(to bottom, rgba(251, 247, 238, 0) 0, var(--papier) 84px); }
.fiche-corps { display: flex; flex-direction: column; flex: 1; }
.fiche-defile { padding: 18px 20px 24px; flex: 1; }
.fiche-etq { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fiche-etq .etq { background: var(--doux); }
.fiche-etq .etq-nouveau { background: var(--vif); }
.fiche-etq .etq-jour { background: var(--or); }
.fiche-etq .etq-vegetarien { background: #E9EEDC; }
.fiche h2 { font: 600 var(--t-xl)/1.15 var(--titre); letter-spacing: .01em; text-wrap: balance; padding-right: 40px; }
.fiche-dit { margin-top: 6px; color: var(--encre-2); font-size: var(--t-m); }
.fiche-dit .arm { font-size: var(--t-m); margin-right: 6px; }
.fiche-dit b { color: var(--encre); font-weight: 650; }
.fiche-desc { margin-top: 14px; color: var(--encre-2); line-height: 1.6; text-wrap: pretty; }
.fiche-contenu { margin-top: 14px; display: grid; gap: 8px; }
.fiche-contenu li { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.fiche-contenu .ico { color: var(--vert); width: 18px; height: 18px; stroke-width: 2.4; }
.fiche-manger { margin-top: 16px; background: var(--creme); border-radius: 12px; padding: 14px 16px; }
.fiche-manger h3 { font-size: var(--t-s); font-weight: 650; color: var(--rouge); margin-bottom: 4px; }
.fiche-manger p { color: var(--encre); line-height: 1.55; }
.fiche-note { margin-top: 14px; font-size: var(--t-s); color: var(--encre-2); line-height: 1.55; padding-top: 14px; border-top: 1px solid var(--ligne); }
.fiche-allergenes { margin-top: 16px; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.fiche-allergenes summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fiche-allergenes summary::-webkit-details-marker { display: none; }
.fiche-allergenes summary::after { content: "+"; font-size: var(--t-l); font-weight: 400; color: var(--sourdine); line-height: 1; }
.fiche-allergenes[open] summary::after { content: "−"; }
.fiche-allergenes p { padding: 0 0 16px; color: var(--encre-2); font-size: var(--t-s); }
.fiche-pied { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--papier); border-top: 1px solid var(--ligne); }
.fiche-pied .btn-large { flex: 1; width: auto; min-width: 0; padding: 0 18px; }
.fiche-pied .long { display: none; }
@media (min-width: 480px) { .fiche-pied .long { display: inline; } }
.fiche-epuise { font-weight: 650; margin-right: auto; }
.opt { margin-top: 20px; }
.opt legend { font-weight: 650; font-size: var(--t-s); color: var(--sourdine); padding: 0; margin-bottom: 8px; }
.opt legend small { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: var(--t-s); margin-left: 6px; }
.opt-aide { font-size: var(--t-s); color: var(--encre-2); margin: -2px 0 10px; }
/* SEGMENTS. Taille, composition, decoupe : trois choix cote a cote, le parcours se lit d'un
   coup d'oeil. Le radio reste dans le DOM (clavier, lecteur d'ecran), seul son rendu natif
   est masque, et l'etat selectionne tient en CSS (:has) autant qu'en classe posee par le JS. */
.opt-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.seg { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 8px 10px; border: 1.5px solid var(--ligne); border-radius: 12px; background: var(--blanc); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.seg:hover { border-color: var(--beige); }
.seg.on, .seg:has(input:checked) { border-color: var(--rouge); box-shadow: inset 0 0 0 1px var(--rouge); background: #FDF4EE; }
.seg:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg-in { display: grid; gap: 1px; line-height: 1.2; min-width: 0; }
.seg-in b { font-weight: 650; font-size: var(--t-m); }
.seg-in small { font-size: var(--t-s); color: var(--encre-2); }
.seg.on .seg-in b, .seg:has(input:checked) .seg-in b { color: var(--rouge); }
.seg-prix { font-variant-numeric: tabular-nums; }
/* SECOND PARFUM : un choix parmi les tourtes de la carte, pas une liste figee. */
.opt-parmi { display: grid; gap: 6px; }
.opt-parmi > label { font-weight: 650; font-size: var(--t-s); color: var(--sourdine); }
.parmi-champ { position: relative; display: flex; align-items: center; }
.parmi-champ select { appearance: none; -webkit-appearance: none; color-scheme: light; width: 100%; min-height: 54px; font: inherit; font-weight: 650; color: var(--encre); background: var(--blanc); border: 1.5px solid var(--ligne); border-radius: 12px; padding: 12px 46px 12px 14px; cursor: pointer; }
.parmi-champ select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.parmi-champ .ico { position: absolute; right: 15px; width: 18px; height: 18px; color: var(--sourdine); transform: rotate(90deg); pointer-events: none; }
/* SCHEMAS. Photo + trace pour la decoupe, diagramme pour la composition. Une image par etat :
   a 110 px, 96 bouchees ne sont plus qu'une texture, le schema s'affiche donc en grand. */
.schema { margin: 12px 0 0; }
/* Une plaque, ou DEUX cote a cote quand la grande porte deux parfums : c'est ce que
   montre la vraie photo du duo, deux demi-tourtes ayant chacune ses quatre bords. */
.schema-plaques { display: flex; gap: 8px; max-width: 340px; align-items: center; }
.schema-plaques img { display: block; flex: 1 1 0; min-width: 0; width: 100%; height: auto; border-radius: 10px; }
/* DEUX PARFUMS : les deux tourtes se TOUCHENT, sans gouttiere, comme sur la vraie photo du duo
   ou l'on voit les deux croutes se joindre. Les images sont rendues a hauteur egale et rognees
   au ras du sujet ; `flex: 0 1 auto` les reduit du MEME facteur, donc les hauteurs restent
   egales et le joint se ferme sur toute la hauteur. */
.schema-plaques.duo { gap: 0; max-width: 470px; align-items: flex-start; }
.schema-plaques.duo img { flex: 0 1 auto; width: auto; max-width: none; border-radius: 0; }
.schema-plaques.duo img:first-child { border-radius: 10px 0 0 10px; }
.schema-plaques.duo img:last-child { border-radius: 0 10px 10px 0; }
.schema figcaption { margin-top: 8px; font-size: var(--t-s); color: var(--encre-2); }
.schema figcaption small { display: block; margin-top: 3px; font-size: var(--t-s); color: var(--sourdine); }
.opt-offert { margin-top: 6px; font-size: var(--t-s); font-weight: 650; color: var(--vert); }
.fiche-prix { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; }
.fiche-prix b { font-size: var(--t-l); font-weight: 650; color: var(--rouge); font-variant-numeric: tabular-nums; }
.fiche-prix small { font-size: var(--t-s); color: var(--sourdine); }
.fiche-parts { margin-top: 14px; display: flex; gap: 8px; align-items: center; font-size: var(--t-m); background: var(--creme); border-radius: 10px; padding: 11px 13px; }
.fiche-parts .ico { color: var(--vert); width: 18px; height: 18px; stroke-width: 2.4; flex: none; }
.fiche-parts b { font-weight: 650; }
.opt-prix { color: var(--encre-2); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--t-m); }
@media (min-width: 760px) {
  .fiche { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
  .feuille-fiche .fiche-photo { height: 100%; min-height: 0; }
  .feuille-fiche .fiche-corps { margin-top: 0; }
  .feuille-fiche .fiche-defile { padding-top: 28px; background: none; }
  .fiche-corps { min-height: 0; }
  .fiche-defile { overflow-y: auto; overscroll-behavior: contain; padding: 28px 28px 24px; min-height: 0; }
  .fiche > .feuille-fermer { background: var(--doux); top: 12px; }
  .fiche-pied { padding: 14px 28px 18px; }
}

/* ---------- retrait */
/* retrait ou livraison */
.ret-modes { margin: 10px 0 4px; }   /* le haut laisse passer la pastille, qui deborde du cadre */
/* la livraison est permise et pas encore choisie : on le montre (retour David 22/09) */
.seg-pastille { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: var(--t-xs); font-weight: 650; font-style: normal; line-height: 1.3; letter-spacing: .02em; pointer-events: none; box-shadow: 0 3px 8px -3px rgba(60, 4, 4, .55); }
.seg-offre { border-color: var(--beige); }
.seg-offre .seg-in small { color: var(--rouge); font-weight: 650; }
.ret-note { font-size: var(--t-s); color: var(--encre-2); margin: 2px 0 -4px; }
.ret-petit { font-size: var(--t-s); color: var(--sourdine); margin: 10px 0 0; }
.ret-adr-duo { grid-template-columns: 1fr 1fr; }
.ret-adr-duo input:disabled { background: var(--doux); color: var(--encre-2); border-style: dashed; }
/* deux classes : `.ret-creneaux` (4 colonnes), declaree plus bas, l'emportait sur cette regle et
   serrait les fenetres de livraison en 4 colonnes ; a 16 px, « 15h-16h » debordait a 320 px (24/09) */
.ret-creneaux.ret-creneaux-livr { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.ret-info-manque { color: #7C0303; background: #FBEAE6; }
/* livraison sous le minimum : ce qui manque, et les deux sorties (David, 23/09) */
.ret-manque { margin-top: 10px; }
.ret-manque > div { display: grid; gap: 10px; min-width: 0; }
.ret-manque p { margin: 0; }
.ret-manque-act { display: flex; flex-wrap: wrap; gap: 8px; }
.ret-manque-act .btn { flex: 1 1 auto; }
.pan-frais { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-m); color: var(--encre-2); margin-bottom: 2px; }
.pan-frais b { font-weight: 650; font-variant-numeric: tabular-nums; }
.ret-info { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-s); font-weight: 400; color: #6B4A08; background: #FCEBC4; border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.ret-info .ico { margin-top: 1px; }
/* le delai (23/09) : la reponse en gras sur sa ligne, la raison dessous */
.ret-delai { font-weight: 400; }
.ret-delai b { display: block; font-weight: 650; font-size: var(--t-m); margin-bottom: 2px; }
.ret-boutiques { display: grid; gap: 8px; }
.ret-boutique { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; min-height: 60px; padding: 10px 14px; border: 1.5px solid var(--ligne); border-radius: 12px; background: var(--blanc); cursor: pointer; transition: border-color .15s, background-color .15s; }
.ret-boutique:hover { border-color: var(--beige); }
.ret-boutique:has(input:checked) { border-color: var(--rouge); background: #FDF4EE; }
.ret-boutique:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.ret-boutique input { accent-color: var(--rouge); width: 20px; height: 20px; margin: 0; }
.ret-boutique b { display: block; font-weight: 650; }
.ret-boutique small { color: var(--encre-2); font-size: var(--t-s); }
.ret-boutique em { font-style: normal; font-size: var(--t-xs); font-weight: 650; color: var(--sourdine); }
.ret-boutique em.ouvert { color: var(--vert); }
.ret-boutique em.bientot { color: var(--rouge); text-align: right; }
.ret-jours { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; }
.ret-jours::-webkit-scrollbar { display: none; }
.ret-creneaux { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ret-jour, .ret-creneau { flex: none; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--doux); font-weight: 650; font-size: var(--t-m); color: var(--encre-2); white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s; }
.ret-creneau { padding: 0 4px; }
.ret-jour:hover, .ret-creneau:hover { background: var(--creme); color: var(--encre); }
.ret-jour.actif, .ret-creneau.actif, .ret-creneau.actif:hover { background: var(--encre); color: #fff; }
/* une fenetre de livraison pleine se VOIT (4 livraisons prevues) : jamais retiree sans explication */
.ret-creneau.plein, .ret-creneau.plein:hover { display: grid; place-content: center; gap: 1px; line-height: 1.15; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ligne); color: var(--sourdine); cursor: not-allowed; }
.ret-creneau.plein small { font-size: var(--t-xs); font-weight: 650; color: var(--rouge); letter-spacing: .02em; }

/* ---------- panier */
.pan-mode { margin-top: 4px; }
.pan-mode .pan-retrait { margin-top: 10px; }
.pan-retrait { display: grid; grid-template-columns: 24px 1fr 18px; gap: 12px; align-items: center; width: 100%; text-align: left; min-height: 60px; padding: 10px 14px; border-radius: 12px; background: var(--blanc); border: 1.5px solid var(--ligne); margin-top: 4px; transition: border-color .15s; }
.pan-retrait:hover { border-color: var(--beige); }
.pan-retrait > .ico:first-child { color: var(--rouge); width: 22px; height: 22px; }
.pan-retrait > span { min-width: 0; }
.pan-retrait b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pan-retrait small { color: var(--encre-2); font-size: var(--t-s); }
.pan-retrait > .ico:last-child { color: var(--sourdine); width: 18px; height: 18px; }
.pan-lignes { margin-top: 8px; }
.pan-ligne { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.pan-photo, .pan-ligne .sans-photo { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.pan-txt { display: grid; gap: 2px; min-width: 0; }
.pan-txt b { font-weight: 650; line-height: 1.25; }
.pan-txt small { color: var(--encre-2); font-size: var(--t-s); }
.pan-prix { font-variant-numeric: tabular-nums; font-size: var(--t-m); color: var(--encre-2); }
.pan-modif { margin-left: 10px; font-size: var(--t-s); }
.pan-sugg { margin-top: 22px; }
.pan-sugg h3 { margin-top: 0; font-size: var(--t-m); color: var(--encre); }
.pan-sugg-piste { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; }
.sugg { flex: none; display: grid; grid-template-columns: 48px 1fr 32px; gap: 10px; align-items: center; width: 232px; padding: 8px; border-radius: 12px; background: var(--blanc); text-align: left; border: 1.5px solid var(--ligne); transition: border-color .15s; }
.sugg:hover { border-color: var(--rouge); }
.sugg img, .sugg .sans-photo { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.sugg b { display: block; font-size: var(--t-s); font-weight: 650; line-height: 1.2; }
.sugg small { color: var(--encre-2); font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.sugg > .ico { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--doux); color: var(--rouge); stroke-width: 2.2; }
.pan-cagnotte { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: 20px; font-size: var(--t-s); color: var(--encre-2); background: var(--creme); border-radius: 12px; padding: 12px 14px; }
.pan-cagnotte b { color: var(--encre); font-variant-numeric: tabular-nums; }
.pan-total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-m); }
.pan-total b { font-size: var(--t-l); font-variant-numeric: tabular-nums; }

/* ---------- commande */
.cmd-cagnotte { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--creme); cursor: pointer; }
.cmd-cagnotte input { accent-color: var(--rouge); width: 20px; height: 20px; margin: 0; }
.cmd-case { background: var(--doux); font-weight: 400; }
.cmd-facture { margin-top: 4px; padding: 4px 14px 12px; border-left: 3px solid var(--beige); }
.cmd-facture .ret-petit { margin-top: 10px; }
.cmd-paiements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cmd-paiement { position: relative; display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--ligne); border-radius: 10px; background: var(--blanc); font-weight: 650; font-size: var(--t-s); cursor: pointer; text-align: center; transition: border-color .15s; }
.cmd-paiement input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cmd-paiement:has(input:checked) { border-color: var(--rouge); background: #FDF4EE; color: var(--rouge); }
.cmd-paiement:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.cmd-recap ul { border-top: 1px solid var(--ligne); }
.cmd-recap li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ligne); font-size: var(--t-m); font-variant-numeric: tabular-nums; }
.cmd-recap small { color: var(--encre-2); display: block; }
.cmd-recap .remise { color: var(--vert); font-weight: 650; }
.cmd-legal { font-size: var(--t-xs); color: var(--sourdine); text-align: center; line-height: 1.4; }
.merci { text-align: center; display: grid; justify-items: center; gap: 16px; padding-top: 12px; }
.merci-titre { font-size: var(--t-l); line-height: 1.4; text-wrap: balance; }
.merci-ou { display: grid; grid-template-columns: 24px 1fr; gap: 12px; text-align: left; background: var(--blanc); border-radius: 12px; padding: 14px 16px; width: 100%; color: var(--encre-2); }
.merci-ou .ico { color: var(--rouge); width: 22px; height: 22px; }
.merci-ou b { color: var(--encre); }
.merci #merciSuivi { width: 100%; }
.merci-gain { display: inline-flex; gap: 8px; align-items: center; font-size: var(--t-s); }
.merci .demo-note { text-align: left; margin-top: 0; }
.cnx-intro { color: var(--encre-2); margin-bottom: 16px; }
#formConnexion .champ { margin-bottom: 12px; }

/* ============================================================ À LA UNE : VISIONNEUSE */
.visionneuse { width: 100vw; height: 100dvh; background: #120D0B; overflow: hidden; color: #fff; --focus: var(--or); }
.vis { position: relative; height: 100%; width: min(100vw, calc(100dvh * 9 / 16)); margin: 0 auto; overflow: hidden; background: #000; }
.vis-media { position: absolute; inset: 0; }
.vis-media img, .vis-media video { width: 100%; height: 100%; object-fit: cover; }
.vis-barres { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.vis-barres span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.vis-barres i { display: block; height: 100%; width: 0; background: #fff; }
.vis-barres .fait i { width: 100%; }
.visionneuse.joue .vis-barres .cours i { animation: barre linear forwards; }
@keyframes barre { to { width: 100%; } }
.vis-tete { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 12px; right: 8px; z-index: 3; display: flex; align-items: center; gap: 8px; font-size: var(--t-s); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.vis-tete b { font-weight: 650; }
.vis-tete span { opacity: .85; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.vis-btn:hover { background: rgba(255, 255, 255, .16); }
.vis-btn[aria-pressed="false"] { opacity: .6; }
.vis-zone { position: absolute; top: 80px; bottom: 150px; z-index: 2; }
.vis-prec { left: 0; width: 32%; }
.vis-suiv { right: 0; width: 68%; }
.vis-pied { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 70px 18px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(10, 6, 4, .86)); display: grid; gap: 14px; justify-items: start; }
.vis-pied p { font-size: var(--t-m); line-height: 1.4; font-weight: 400; text-wrap: balance; }

/* ============================================================ MESSAGE */
.toast { position: fixed; inset: auto auto calc(var(--onglets-h) + 84px + env(safe-area-inset-bottom)) 50%; transform: translateX(-50%); margin: 0; border: 0; background: var(--encre); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: var(--t-m); font-weight: 400; max-width: min(92vw, 440px); width: max-content; text-align: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.toast:not([popover]) { display: none; z-index: 60; }
.toast.visible { display: block; }
.toast:popover-open { animation: monte .3s var(--sortie); }
@media (min-width: 1160px) { .toast { bottom: 32px; } }

/* captures automatiques : ?fige=1 coupe transitions et animations (elles restent figées sans affichage) */
/* Filet de secours : si un moteur laisse la feuille hors de l'ecran, minuscule ou transparente,
   le JS pose .forcee. Il faut REPOSITIONNER (un transform ne rattrape pas une mauvaise position). */
.feuille.forcee[open], .visionneuse.forcee[open] { animation: none !important; transform: none !important; opacity: 1 !important; visibility: visible !important; }
.feuille.forcee[open] { position: fixed !important; top: auto !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
  margin: 0 !important; width: auto !important; height: auto !important; max-height: 92vh !important; display: flex !important; }
.feuille.forcee[open] .feuille-in, .feuille.forcee[open] .fiche { min-height: 160px; }
.visionneuse.forcee[open] { position: fixed !important; inset: 0 !important; margin: 0 !important; display: block !important; }
dialog:not([open]) { display: none !important; }   /* rien ne doit pouvoir afficher un dialog ferme */
/* repli quand showModal() n'existe pas (iOS < 15.4) : le dialog est pose a la main */
dialog.sans-modal[open] { position: fixed; inset: 0; z-index: 90; background: rgba(28, 18, 12, .56); display: flex; }
dialog.sans-modal[open] .feuille-in, dialog.sans-modal[open] .fiche { background: var(--papier); }
html.fige *, html.fige *::before, html.fige *::after, html.fige dialog::backdrop { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================ VITRINE (27/09/2026)
   Sur hatsatoun.fr, le site se montre sans rien vendre : ce qui sert a commander porte
   data-vente, ce qui n'existe qu'en vitrine porte data-vitrine. L'interrupteur est le petit
   script en tete d'index.html (le nom du site, ou ?vitrine=1). */
html:not(.vitrine) [data-vitrine] { display: none !important; }
html.vitrine [data-vente] { display: none !important; }

/* l'annonce, tout en haut */
.bandeau-bientot { background: var(--rouge); color: rgba(249, 240, 217, .92); font-size: var(--t-s); line-height: 1.4; padding: 9px var(--g); text-align: center; text-wrap: balance; }
.bandeau-bientot b { color: var(--or); font-weight: 650; }

/* l'en-tete : le telephone a la place du panier */
.tete-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--rouge); color: var(--rouge); font-weight: 650; font-size: var(--t-s); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background-color .18s, color .18s; --focus: var(--encre); }
.tete-tel:hover { background: var(--rouge); color: #fff; }
.tete-tel .ico { width: 18px; height: 18px; }
@media (max-width: 379px) { .tete-tel { padding: 0 10px; } .tete-tel span { display: none; } }
@media (min-width: 1160px) {
  html.vitrine .tete { grid-template-columns: auto 1fr auto; }
  html.vitrine .nav { grid-column: 2; }
  .tete-tel { grid-column: 3; grid-row: 1; min-height: 46px; padding: 0 20px; font-size: var(--t-m); }
}

/* les boutiques et leurs horaires, sur l'accueil */
.horaires-sec { margin: 8px 0 0; }
.horaires-sec .boutiques { margin-top: 12px; gap: 12px; }
.bq-compact .bq-corps { padding: 18px 18px 20px; gap: 8px; }
.bq-compact h3 { font: 600 var(--t-l)/1.15 var(--titre); letter-spacing: .01em; }
.bq-compact .bq-horaires { margin: 4px 0 6px; }
.bq-compact .bq-horaires div { padding: 8px 0; }
@media (min-width: 1160px) { .horaires-sec { margin-top: 26px; } .horaires-sec .boutiques { gap: 18px; } }

/* la fiche et les portes : l'annonce a la place du bouton d'achat */
.fiche-pied-vitrine { display: block; }
.fiche-bientot { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--t-s); line-height: 1.5; color: var(--encre-2); }
.fiche-bientot .ico { width: 20px; height: 20px; color: var(--rouge); margin-top: 1px; }
.fiche-bientot b { color: var(--encre); font-weight: 650; }
.fiche-epuise + .fiche-bientot { margin-top: 8px; }
.tel-lien { font-weight: 650; color: var(--rouge); text-decoration: none; white-space: nowrap; }
.porte-bientot b { color: var(--encre); font-weight: 650; }

/* les pages legales */
.legal h3 { font: 650 var(--t-m)/1.3 var(--texte); color: var(--encre); margin: 20px 0 6px; }
.legal h3:first-child { margin-top: 6px; }
.legal p { font-size: var(--t-s); line-height: 1.6; color: var(--encre-2); }
