/* Izayni Sushi, version 3 : « izakaya de nuit, enseigne néon rose » (D-20261121-19).
   Style des sites d'Yves (charte ZelhayHost) en rose et encre : verre sur la barre et le héros,
   boutons en pilule, cartes à 16 px, tuiles et champs à 12 px, halo réservé à ce qui est « allumé »
   (action principale, plat dans la commande, enseigne du pied). */

@font-face {
  font-family: 'Shippori Kanji';
  src: url('assets/fonts/shippori-kanji.woff2') format('woff2');
  font-weight: 700; font-display: swap; unicode-range: U+9802;
}

:root {
  --encre: #15101a;        /* fond de page */
  --encre-2: #2a1f30;      /* contrôle posé sur le fond */
  --prune: #211826;        /* surface des cartes */
  --texte: #f6ecf0;
  --gris-clair: #c9b3be;   /* texte atténué : 9,5 sur l'encre, 8,7 sur la prune */
  --rose: #f48fb1;         /* accent */
  --rose-vif: #ff9fc0;
  --rose-clair: #ffd3df;
  --trait: rgba(255, 255, 255, .10);
  --trait-fort: rgba(255, 255, 255, .22);

  --serif: 'Shippori Kanji', 'Shippori Mincho', 'Shippori Mincho Fallback', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Jost', 'Jost Fallback', system-ui, sans-serif;

  --e-out: cubic-bezier(.22, 1, .36, 1);
  --dur-texte: 620ms; --pas: 50ms; --dist: 14px; --flou: 4px; --dur-sortie: 200ms;

  --ombre-carte: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -28px rgba(0, 0, 0, .75);
  --ombre-sombre: 0 2px 4px rgba(0, 0, 0, .22), 0 16px 34px -10px rgba(0, 0, 0, .55), 0 44px 90px -28px rgba(0, 0, 0, .6);
  --halo: 0 0 24px -6px rgba(244, 143, 177, .55);
  --halo-fort: 0 0 32px -4px rgba(244, 143, 177, .75);
  --r: 999px; --r-champ: 12px; --r-panneau: 16px;

  --peche: #ffb48f;        /* contour dégradé du panier */
  --rose-fort: #ff6f9f;
  --capsule: rgba(21, 16, 26, .58);       /* barre et boutons flottants : encre translucide, le fond passe */
  --capsule-fort: rgba(21, 16, 26, .7);   /* sur le contenu, pour la lisibilité */
  --capsule-flou: blur(18px) saturate(115%);
  --capsule-bord: rgba(255, 255, 255, .14);

  --barre-h: 56px;
  --barre-haut: env(safe-area-inset-top, 0px);
  --barre-top: calc(var(--barre-haut) + 12px);
  --sous-barre: calc(var(--barre-top) + var(--barre-h) + 12px);
  --barre-l: min(1080px, 100% - 2 * clamp(16px, 4vw, 48px)); /* largeur de la capsule, et colonne du contenu une fois collée */
  --barre-pg: 7px; --barre-pd: 5px;  /* marges internes : sceau et panier concentriques à la capsule */
  --barre-h-colle: 48px;              /* hauteur de la barre collée en haut (D-20261122-1) */
  --e-glisse: cubic-bezier(.4, 0, .2, 1); /* trajet régulier : on voit la barre et les boutons se déplacer */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--encre); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; background: var(--encre); color: var(--texte); font: 400 1.0625rem/1.55 var(--sans); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.enveloppe { width: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--rose); color: var(--encre); }

.evitement { position: fixed; z-index: 200; left: 12px; top: -80px; padding: 12px 18px; border-radius: var(--r); background: var(--rose); color: var(--encre); font-weight: 600; }
.evitement:focus { top: 12px; }

/* Titres en dégradé : deux par page, le titre du voyage et « La carte ». */
.p-titre .m, .carte-tete h2 {
  background: linear-gradient(180deg, var(--texte) 38%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}

/* ---------- Verre : encre translucide, flou, liseré clair ---------- */
.verre {
  background: rgba(21, 16, 26, .72);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* ---------- Boutons ----------
   Dans le voyage, app.js donne « btn--encre » à l'action principale : elle prend l'accent plein. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r);
  font-weight: 600; font-size: 1rem; line-height: 1.15; text-decoration: none; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease-out, box-shadow .25s ease-out, transform .15s ease-out, opacity .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--encre, .btn--rose { background: var(--rose); color: var(--encre); box-shadow: var(--halo); }
.btn--blanc, .btn--sombre { background: transparent; color: var(--texte); box-shadow: inset 0 0 0 1px var(--trait-fort); }
.btn--lien { background: none; min-height: 44px; padding: 0 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn--verre { width: 44px; height: 44px; min-height: 0; padding: 0; background: rgba(255, 255, 255, .08); color: var(--texte); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.btn--large { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.btn--fleche { padding-right: 6px; }
.btn--fleche b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); background: var(--encre); color: var(--rose); transition: transform .35s var(--e-out); }
.btn--fleche b svg { width: 18px; height: 18px; }
.btn:not(:disabled):not([aria-disabled="true"]):active { transform: scale(.96); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--encre:hover, .btn--rose:hover { background: var(--rose-vif); box-shadow: var(--halo-fort); }
  .btn--blanc:hover, .btn--sombre:hover { background: rgba(255, 255, 255, .08); }
  .btn--fleche:hover b { transform: translateX(3px); }
  .btn--verre:hover { background: rgba(255, 255, 255, .16); }
}

/* Bouton « + » : rond sur l'encre, allumé quand le plat est dans la commande */
.ajout {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r);
  background: var(--encre-2); color: var(--texte); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease-out, background-color .2s, box-shadow .25s;
}
.ajout svg { width: 20px; height: 20px; stroke-width: 2.4; }
.ajout:not(:disabled):active { transform: scale(.96); }
.ajout.ok { background: var(--rose); border-color: var(--rose); color: var(--encre); box-shadow: var(--halo); }
@media (hover: hover) and (pointer: fine) { .ajout:not(:disabled):hover { background: #3a2a40; } .ajout.ok:not(:disabled):hover { background: var(--rose-vif); } }
.qte { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: var(--r); background: var(--rose); color: var(--encre); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.qte[hidden] { display: none; }

/* ---------- Barre : capsule flottante, encre translucide, bord fin, sans reflet (D-20261121-21, exemple d'Yves) ----------
   Le flou est porté par ::before et jamais par la barre : un flou ou un transform sur la barre en ferait le repère
   des enfants en position fixe, or le son et le panier en sortent pour flotter dans les coins du bas. */
.barre {
  position: fixed; z-index: 50; top: var(--barre-top); left: 0; right: 0; margin-inline: auto;
  width: var(--barre-l); height: var(--barre-h);
  display: flex; align-items: center; gap: 6px; padding: 0 var(--barre-pd) 0 var(--barre-pg);
  border: 1px solid var(--capsule-bord); border-radius: calc(var(--barre-h) / 2);
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 14px 32px -20px rgba(0, 0, 0, .8);
  transition: top .52s var(--e-glisse), width .52s var(--e-glisse), height .52s var(--e-glisse), padding .52s var(--e-glisse),
    border-radius .52s var(--e-glisse), border-color .52s var(--e-glisse), border-width .52s var(--e-glisse);
}
/* Collée (D-20261122-1) : dès que le son et le panier descendent (« flotte », app.js), la capsule monte au bord haut,
   s'élargit à tout l'écran et s'abaisse. Les marges grandissent autant que la largeur : marque et liens ne bougent pas
   et restent sur la colonne de la page. Le bandeau des catégories suit, à la même vitesse. */
.barre.flotte {
  top: 0; width: 100%; height: calc(var(--barre-haut) + var(--barre-h-colle));
  padding: var(--barre-haut) calc((100% - var(--barre-l)) / 2 + var(--barre-pd)) 0 calc((100% - var(--barre-l)) / 2 + var(--barre-pg));
  border-width: 0 0 1px; border-radius: 0; /* seul le filet du bas reste : un bord transparent laisserait voir la page sans flou */
}
.barre.flotte .sceau { scale: .85; }
.barre::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--capsule); -webkit-backdrop-filter: var(--capsule-flou); backdrop-filter: var(--capsule-flou);
  transition: background-color .3s ease-out;
}
.barre.def::before { background: var(--capsule-fort); }
.marque { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; border-radius: var(--r); padding-right: 6px; }
.sceau { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--rose); color: var(--encre); font-family: 'Shippori Kanji', serif; font-weight: 700; font-size: 1.3125rem; line-height: 1; transition: scale .52s var(--e-glisse); }
.marque-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; font-weight: 600; font-size: .875rem; letter-spacing: .16em; }
/* Liens en pilules : pastille claire translucide au survol, et fixe sur la section en cours (aria-current, app.js). */
.barre-nav { display: flex; gap: 4px; margin-left: auto; }
.barre-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r); text-decoration: none; font-weight: 500; color: var(--gris-clair); transition: background-color .15s, color .15s; }
.barre-nav a[aria-current] { background: rgba(255, 255, 255, .13); color: var(--texte); }
@media (hover: hover) and (pointer: fine) { .barre-nav a:not([aria-current]):hover { background: rgba(255, 255, 255, .07); color: var(--texte); } }
/* Panier : pilule à contour dégradé (rose clair, rose, rose vif, pêche), intérieur transparent sur la capsule ; rose plein dès qu'il n'est pas vide.
   En haut de page : 44 px, le sac, le mot « Panier » et le nombre dans sa bulle, téléphone compris ; jamais le total (D-20261122-1). */
.pastille-cmd {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 14px; border: 0; border-radius: var(--r);
  background: none; color: var(--texte); font-weight: 600; white-space: nowrap; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease-out, background-color .2s, border-color .2s, box-shadow .25s, color .2s;
}
.pastille-cmd::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(105deg, var(--rose-clair), var(--rose) 34%, var(--rose-fort) 62%, var(--peche));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.pastille-cmd svg { flex: none; width: 20px; height: 20px; }
.pastille-n { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: var(--r); background: rgba(255, 255, 255, .12); font-variant-numeric: tabular-nums; font-weight: 700; font-size: .9375rem; transition: background-color .3s, color .3s; }
.pastille-mot { display: none; }
.pastille-cmd.plein { background: var(--rose); color: var(--encre); box-shadow: var(--halo); }
.pastille-cmd.plein .pastille-n { background: var(--encre); color: var(--rose); }
.pastille-total { display: none; } /* le total reste dans le tiroir et dans le nom du bouton */
.pastille-cmd:active { transform: scale(.96); }
.pastille-cmd.pouls { animation: pouls .5s var(--e-out); }
@keyframes pouls { 0% { transform: scale(1); } 35% { transform: scale(1.07); } 100% { transform: scale(1); } }
@media (hover: hover) and (pointer: fine) { .pastille-cmd:hover { background: rgba(255, 255, 255, .07); } .pastille-cmd.plein:hover { background: var(--rose-vif); } }
.barre-nav + .pastille-cmd { margin-left: 4px; }
/* Bouton de la musique : rond à contour fin, rose quand elle joue (« joue », app.js), barré quand elle est coupée. */
.son { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r); background: none; color: var(--texte); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, border-color .2s, color .2s; }
.son svg { width: 20px; height: 20px; }
.son .son-off, .son.coupe .son-on { display: none; }
.son.coupe .son-off { display: block; }
.son.coupe { color: var(--gris-clair); }
.son.joue { color: var(--rose-clair); border-color: rgba(244, 143, 177, .6); }
.son + audio + .pastille-cmd { margin-left: 6px; }
@media (hover: hover) and (pointer: fine) { .son:hover { background: rgba(255, 255, 255, .07); } }
html:not(.js) .son { display: none; }

/* ---------- Voyage ---------- */
.voyage { position: relative; height: 100vh; height: 100dvh; min-height: 320px; overflow: hidden; background: #2a0f1f; isolation: isolate; color: var(--texte); }
.voyage video, .v-affiche { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voyage video { z-index: 1; }
/* Arrêt sur image : l'image se floute et s'assombrit de 30 % (--voile-n = 1). En route, le flou se dissout puis revient
   avec le même fondu que le voile (piloté image par image par app.js). Léger zoom pour cacher les bords flous. */
.voyage video, .v-affiche {
  filter: blur(calc(var(--voile-n, 1) * 14px)) brightness(calc(1 - var(--voile-n, 1) * .3));
  transform: scale(calc(1 + var(--voile-n, 1) * .06));
  transition: filter .28s linear, transform .28s linear; /* lisse le fondu si l'appareil saute des images */
  will-change: filter, transform;
}
@media (prefers-reduced-motion: reduce) { .voyage video, .v-affiche { transition: none; } }
/* L'enseigne : une lueur rose au centre, la nuit sur les bords. */
.v-voile { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--voile, .62);
  background: radial-gradient(120% 95% at 50% 38%, #f48fb1 0%, #b23a6b 50%, #2a0f1f 100%); }
/* Le bas du héros se fond dans l'encre de la carte. */
.voyage::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; z-index: 4; pointer-events: none; background: linear-gradient(rgba(21, 16, 26, 0), rgba(21, 16, 26, .78)); }
.v-petales { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; opacity: var(--voile-n, 1); }
.v-petales i { position: absolute; top: -6%; width: 15px; height: 11px; background: #ffe6ee; border-radius: 80% 10% 80% 10%;
  opacity: .8; box-shadow: 0 2px 4px rgba(40, 6, 24, .25); animation: chute linear infinite; }
@keyframes chute {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(7vw, 56vh, 0) rotate(190deg); }
  100% { transform: translate3d(-3vw, 112vh, 0) rotate(380deg); }
}

.panneau {
  position: absolute; z-index: 5; left: max(24px, 5vw); top: calc(50% + (var(--sous-barre) - 72px) / 2); transform: translateY(-50%);
  width: min(640px, calc(100% - 48px)); max-height: calc(100% - var(--sous-barre) - 96px); overflow: visible;
  padding: clamp(24px, 2.8vw, 40px); border-radius: var(--r-panneau);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 42%), rgba(21, 16, 26, .72);
  box-shadow: var(--ombre-sombre), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: opacity .45s var(--e-out), transform .6s var(--e-out);
}
.p-titre { font-size: clamp(2rem, 4.1vw, 2.75rem); line-height: 1.1; }
.p-titre .m { display: inline-block; white-space: pre; }
.p-phrase { margin-top: 12px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); line-height: 1.5; max-width: 40ch; }
.p-phrase:empty { display: none; }
.faits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.faits li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px 0 12px; border: 1px solid var(--trait-fort); border-radius: var(--r); background: transparent; font-weight: 500; font-size: .875rem; }
.faits li::before { content: ''; width: 6px; height: 6px; border-radius: var(--r); background: var(--rose); }
.faits[hidden], .vitrine[hidden] { display: none; }

.vitrine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.vitrine li {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 140px; min-width: 0;
  padding: 14px 12px 12px 14px; border-radius: var(--r-champ); background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--trait);
  transition: box-shadow .3s ease-out;
}
.vitrine li.dedans { box-shadow: inset 0 0 0 1px var(--rose), var(--halo); }
.v-nom { font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 30px; }
.v-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.v-prix { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vitrine .qte { position: absolute; top: 10px; right: 10px; }

.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }

/* Entrée : chaque mot, puis la phrase, puis les plats et les boutons. Sortie : fondu court. */
.p-titre .m, .p-phrase, .faits, .vitrine li, .p-actions { opacity: 1; transition: opacity var(--dur-texte) var(--e-out); transition-delay: calc(var(--i, 0) * var(--pas) + 100ms); }
@media (prefers-reduced-motion: no-preference) {
  .p-titre .m, .p-phrase, .faits, .vitrine li, .p-actions { transition-property: opacity, transform, filter; transition-duration: var(--dur-texte); transition-timing-function: var(--e-out); }
  .voyage[data-texte="pret"] :is(.p-titre .m, .p-phrase, .faits, .vitrine li, .p-actions) { transform: translateY(var(--dist)); filter: blur(var(--flou)); }
  .voyage[data-texte="pret"] .panneau { transform: translateY(calc(-50% + 14px)) scale(.985); }
  .voyage[data-texte="sorti"] .panneau { transform: translateY(calc(-50% - 8px)); }
}
.voyage[data-texte="pret"] :is(.p-titre .m, .p-phrase, .faits, .vitrine li, .p-actions) { opacity: 0; transition: none; }
.voyage[data-texte="pret"] .panneau { opacity: 0; transition: none; }
.voyage[data-texte="sorti"] .panneau { opacity: 0; transition: opacity var(--dur-sortie) ease-out, transform var(--dur-sortie) ease-out; }
.voyage:not([data-texte="la"]) .panneau { pointer-events: none; }

/* Étapes : pilule de verre, l'étape courante allongée et allumée. */
.v-nav { position: absolute; z-index: 6; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 2px 8px; border-radius: var(--r); background: rgba(21, 16, 26, .6); }
.v-pts { display: flex; gap: 0; }
.v-pts button { display: grid; place-items: center; width: 30px; height: 40px; border: 0; padding: 0; background: none; touch-action: manipulation; border-radius: var(--r); }
.v-pts i { width: 8px; height: 8px; border-radius: var(--r); background: rgba(255, 255, 255, .35); transition: width .4s var(--e-out), background-color .3s, box-shadow .3s; }
.v-pts button[aria-current="step"] i { width: 24px; background: var(--rose); box-shadow: 0 0 10px rgba(244, 143, 177, .7); }
@media (hover: hover) and (pointer: fine) { .v-pts button:not([aria-current="step"]):hover i { background: rgba(255, 255, 255, .7); } }
.v-fil { position: absolute; z-index: 6; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--rose); transform-origin: 0 50%; transform: scaleX(var(--fil, 0)); }

/* ---------- Carte ---------- */
.carte { position: relative; padding: clamp(64px, 8vw, 112px) 0 clamp(72px, 9vw, 120px); background: var(--encre); }
.carte-tete { display: grid; gap: 14px; }
.carte-tete h2 { font-size: clamp(3rem, 9vw, 5rem); line-height: 1; }
.carte-chapo { color: var(--gris-clair); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); max-width: 46ch; }
.plus-txt { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); background: var(--encre-2); color: var(--texte); font-weight: 700; line-height: 1; vertical-align: -4px; }
@media (min-width: 900px) {
  .carte-tete { grid-template-columns: auto minmax(0, 44ch); justify-content: space-between; align-items: end; column-gap: 48px; }
  .carte-chapo { padding-bottom: .5em; }
}
.onglets { position: sticky; z-index: 20; top: calc(var(--barre-top) + var(--barre-h)); width: 100%; margin: clamp(28px, 4vw, 48px) 0 0; padding: 10px 0;
  background: rgba(21, 16, 26, .82); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); border-bottom: 1px solid var(--trait);
  transition: top .52s var(--e-glisse); }
.barre.flotte ~ main .onglets { top: calc(var(--barre-haut) + var(--barre-h-colle)); } /* collé sous la barre collée */
.onglets-int { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.onglets-int::-webkit-scrollbar { display: none; }
.onglet { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r); text-decoration: none; font-weight: 500; color: var(--gris-clair); transition: background-color .15s, color .15s, border-color .15s; }
.onglet:focus-visible { outline-offset: -2px; }
.onglet[aria-current="true"] { background: rgba(244, 143, 177, .14); border-color: var(--rose); color: var(--texte); }
@media (hover: hover) and (pointer: fine) { .onglet:not([aria-current="true"]):hover { background: rgba(255, 255, 255, .06); color: var(--texte); } }
.cats { display: grid; gap: clamp(36px, 5vw, 56px); margin-top: clamp(32px, 4vw, 48px); }
.cat { scroll-margin-top: calc(var(--sous-barre) + 52px); }
.cat-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 4px 14px; }
.cat-tete h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.cat-tete p { color: var(--gris-clair); font-weight: 500; white-space: nowrap; }
/* Chaque catégorie : une carte sombre, les plats en lignes, deux colonnes au bureau. */
.plats-liste { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(24px, 4vw, 48px); padding: 4px clamp(16px, 2.4vw, 28px);
  background: var(--prune); border: 1px solid var(--trait); border-radius: var(--r-panneau); box-shadow: var(--ombre-carte); }
@media (min-width: 900px) { .plats-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto 44px; align-items: center; column-gap: 12px; min-height: 76px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.p:first-child { border-top: 0; }
@media (min-width: 900px) { .p:nth-child(2) { border-top: 0; } }
.p > .p-img { grid-column: 1; }
.p > .p-txt { grid-column: 2; } .p > .p-prix { grid-column: 3; } .p > .retrait { grid-column: 4; } .p > .qte { grid-column: 5; } .p > .ajout { grid-column: 6; }
/* Vignette du plat : illustration dessinée (son fond rose arrondi est dans le SVG). */
.p-img, .v-img { display: block; width: 56px; height: 56px; border-radius: var(--r-champ); object-fit: cover; background: none; }
.epuise .p-img, .epuise .v-img { filter: grayscale(1); opacity: .5; }
.v-haut { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.v-img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.p .p-prix { margin-right: 4px; }
.p-txt { display: grid; gap: 2px; min-width: 0; }
.p-nom { font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.p-desc { color: var(--gris-clair); font-size: .9375rem; line-height: 1.4; overflow-wrap: anywhere; }
.p-prix { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* « − » à côté du « + » : visible dès qu'il y a ce plat dans la commande. */
.retrait {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--trait-fort); border-radius: var(--r);
  background: transparent; color: var(--texte);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .15s ease-out, background-color .2s;
}
.retrait svg { width: 18px; height: 18px; stroke-width: 2.4; }
.retrait:active { transform: scale(.96); }
.retrait[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .retrait:hover { background: rgba(255, 255, 255, .08); } }
.ajout:disabled { background: transparent; border-color: var(--trait); color: rgba(246, 236, 240, .4); box-shadow: none; cursor: not-allowed; }
.epuise .p-nom, .epuise .v-nom, .epuise .p-prix, .epuise .v-prix { color: var(--gris-clair); }
.p-epuise { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: var(--r); background: rgba(255, 255, 255, .08); color: var(--gris-clair); font-size: .8125rem; font-weight: 500; vertical-align: 1px; }
.v-bas .retrait { width: 36px; height: 36px; margin-left: auto; }

/* Fenêtre « Choisissez : … » (parfum d'une canette, etc.) */
.choix-fen {
  margin: auto; padding: 0; border: 0; width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  border-radius: var(--r-panneau); color: var(--texte); background: rgba(28, 20, 34, .94); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--ombre-sombre), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.choix-fen::backdrop { background: rgba(10, 6, 12, .6); }
.choix-fen[open] { animation: legal-in .3s var(--e-out); }
.choix-int { display: grid; gap: 14px; padding: 20px 20px 22px; }
.choix-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.choix-tete h2 { font-size: 1.5rem; }
.choix-sous { color: var(--gris-clair); font-size: .9375rem; }
.choix-liste { display: grid; }
.choix-l { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; border-top: 1px solid rgba(255, 255, 255, .08); }
.choix-l:first-child { border-top: 0; }
.choix-nom { font-weight: 500; font-size: 1.0625rem; }
.choix-nom em { font-style: normal; font-weight: 400; font-size: .875rem; color: var(--rose-clair); margin-left: 6px; }
.choix-l.epuise .choix-nom { color: var(--gris-clair); }
.l-pas button:disabled { opacity: .35; cursor: not-allowed; }
.sans-js { display: none; margin-top: 24px; }
html:not(.js) .sans-js { display: block; }
html:not(.js) .voyage video, html:not(.js) .ajout, html:not(.js) .pastille-cmd, html:not(.js) .v-nav, html:not(.js) #v-suite { display: none; }
html:not(.js) .p { grid-template-columns: 56px minmax(0, 1fr) auto; }

/* ---------- Nous trouver ---------- */
.venir { position: relative; padding: clamp(72px, 9vw, 120px) 0; background: var(--encre); border-top: 1px solid var(--trait); overflow: hidden; }
.venir-grille { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .venir-grille { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.venir h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); max-width: 18ch; }
.adresse { margin-top: 20px; font-style: normal; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.4; }
.venir-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.horaires { margin-top: 20px; color: var(--gris-clair); max-width: 46ch; }
.horaires + .horaires { margin-top: 12px; }
.liens-sociaux { display: grid; width: 100%; max-width: 560px; padding: 4px 24px; background: var(--prune); border: 1px solid var(--trait); border-radius: var(--r-panneau); box-shadow: var(--ombre-carte); }
.liens-sociaux li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.liens-sociaux li:first-child { border-top: 0; }
.ls-nom { color: var(--gris-clair); font-size: .9375rem; }
.liens-sociaux a { justify-self: start; font-size: 1.1875rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; color: var(--texte); border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { .liens-sociaux a:hover { color: var(--rose); text-decoration: underline; text-underline-offset: 4px; } }

/* ---------- Pied : l'enseigne, un disque allumé et le nom en éclipse ---------- */
.pied { position: relative; background: var(--encre); padding: clamp(56px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--trait); overflow: hidden; }
.pied-nom { --disque: min(34vw, 460px); position: relative; display: grid; place-items: center; padding-inline: 3vw; }
.pied-disque { position: absolute; width: var(--disque); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb7cc, var(--rose) 62%, #e77ca1);
  box-shadow: 0 0 60px -6px rgba(244, 143, 177, .55), 0 0 160px -20px rgba(244, 143, 177, .4); }
.pied-mot { position: relative; font-weight: 700; font-size: min(26vw, 340px); line-height: .9; letter-spacing: -0.035em; white-space: nowrap;
  background: radial-gradient(circle calc(var(--disque) / 2), var(--encre) 99%, var(--texte) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: clamp(32px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--trait); color: var(--gris-clair); }
.pied-legal { display: flex; flex-wrap: wrap; gap: 6px; }
.pied-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; color: var(--texte); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .pied-legal a:hover { color: var(--rose); } }

/* ---------- Tiroir de commande ---------- */
dialog { color: inherit; }
.tiroir {
  margin: 0; padding: 0; border: 0; max-width: none; max-height: none; overflow: visible;
  inset: 12px 12px 12px auto; width: min(460px, calc(100% - 24px)); height: auto;
  border-radius: var(--r-panneau); color: var(--texte);
  background: rgba(28, 20, 34, .9); -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--ombre-sombre), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.tiroir::backdrop { background: rgba(10, 6, 12, .6); }
.tiroir[open] { animation: tiroir-in .42s var(--e-out); }
.tiroir.ferme { animation: tiroir-out .2s ease-in forwards; }
@keyframes tiroir-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes tiroir-out { to { opacity: 0; transform: translateX(20px); } }
.tiroir-int { display: flex; flex-direction: column; height: 100%; padding: 22px; gap: 18px; }
.tiroir-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tiroir-tete h2 { font-size: 1.875rem; }
.modes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--trait); }
.modes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.modes label { position: relative; min-width: 0; }
.modes input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.modes span { display: grid; place-items: center; min-height: 44px; padding: 0 6px; border-radius: var(--r); font-weight: 500; font-size: .9375rem; text-align: center; transition: background-color .15s, color .15s; }
.modes input:checked + span { background: var(--rose); color: var(--encre); font-weight: 600; }
.modes input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.cmd-corps { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; margin-inline: -6px; padding-inline: 6px; }
.cmd-vide { display: grid; justify-items: start; gap: 8px; padding: 18px 2px; color: var(--gris-clair); }
.cmd-vide-t { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--texte); }
.cmd-vide .btn { margin-top: 8px; }
.cmd-vide[hidden], .lignes[hidden] { display: none; }
.lignes { display: grid; }
.ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nom total" "pas pas"; gap: 8px 12px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.ligne:first-child { border-top: 0; }
.l-nom { grid-area: nom; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.l-nom small { display: block; color: var(--gris-clair); font-weight: 400; font-size: .875rem; }
.l-total { grid-area: total; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.l-pas { grid-area: pas; display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 3px; border-radius: var(--r); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--trait); }
.l-pas button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .1); color: var(--texte); touch-action: manipulation; transition: background-color .15s, transform .15s ease-out; }
.l-pas button svg { width: 18px; height: 18px; }
.l-pas button:not(:disabled):active { transform: scale(.96); }
.l-pas output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.l-qte { width: 56px; height: 40px; padding: 0 4px; border: 1px solid var(--trait-fort); border-radius: var(--r-champ); background: rgba(0, 0, 0, .2); color: var(--texte); text-align: center; font: 700 1rem var(--sans); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.l-qte::-webkit-outer-spin-button, .l-qte::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.l-qte:focus { outline: none; border-color: var(--rose); }
.l-qte:disabled { opacity: .35; }
.l-pas .l-suppr { margin-left: 6px; background: rgba(255, 120, 110, .16); color: #ffb4ac; }
.cmd-sec .btn svg { width: 17px; height: 17px; margin-right: 6px; flex: none; }
.cmd-conf { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0 4px; font-weight: 500; color: var(--texte); }
.cmd-conf[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .l-pas button:not(:disabled):hover { background: rgba(255, 255, 255, .2); } }
.cmd-champs { display: grid; gap: 12px; }
.cmd-champs[hidden], .champ[hidden] { display: none; }
.champ { display: grid; gap: 6px; font-weight: 500; font-size: .9375rem; }
.champ em { font-style: normal; color: var(--gris-clair); font-weight: 400; }
.champ input, .champ textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-champ); border: 1px solid var(--trait-fort); background: rgba(255, 255, 255, .06); color: var(--texte); font-size: 1rem; resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: #b39fa9; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--rose); outline-offset: 1px; border-color: transparent; }
.cmd-pied { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--trait); }
.cmd-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.125rem; }
.cmd-total strong { font-size: 1.625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cmd-sec { display: flex; justify-content: center; gap: 4px; color: var(--gris-clair); }
.cmd-note { color: var(--gris-clair); font-size: .875rem; text-align: center; }
.cmd-statut { min-height: 1.4em; text-align: center; font-weight: 500; color: var(--rose-clair); font-size: .9375rem; }
.cmd-statut:empty { min-height: 0; }
.cmd-copie { width: 100%; border-radius: var(--r-champ); background: rgba(255, 255, 255, .06); color: var(--texte); border: 1px solid var(--trait-fort); padding: 12px; font-size: .875rem; }
.cmd-copie[hidden] { display: none; }

/* ---------- Documents légaux ---------- */
.legal { margin: auto; padding: 0; border: 0; width: min(860px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: hidden;
  border-radius: var(--r-panneau); color: #f3e7ea; background: rgba(28, 20, 34, .95); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--ombre-sombre); }
.legal::backdrop { background: rgba(10, 6, 12, .65); }
.legal[open] { display: flex; animation: legal-in .4s var(--e-out); }
@keyframes legal-in { from { opacity: 0; transform: translateY(16px); } }
.legal-int { width: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 4vw, 52px) clamp(28px, 4vw, 52px); }
.legal-barre { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 3vw, 32px) 0 14px; background: linear-gradient(rgba(28, 20, 34, 1) 70%, rgba(28, 20, 34, 0)); }
.legal h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--texte); }
.legal h3 { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); color: var(--texte); margin: 1.8em 0 .5em; }
.legal p, .legal li { max-width: 68ch; line-height: 1.6; overflow-wrap: anywhere; }
.legal p { margin-bottom: .9em; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .35em; }
.legal a { color: var(--rose-clair); }
.legal .maj { color: var(--gris-clair); font-size: .875rem; }
.legal .a-completer { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--rose); color: var(--encre); padding: 0 .35em; border-radius: 6px; font-weight: 500; }
html:not(.js) .legal { display: block; position: static; width: auto; max-height: none; margin: 0; border-radius: 0; }
html:not(.js) .legal .fermer { display: none; }

/* ---------- Téléphone (portrait) ----------
   Un téléphone en paysage (large mais bas) garde la mise en page PC, compactée plus bas (« Écran bas »). */
@media (max-width: 560px), (max-width: 760px) and (min-height: 561px) {
  .barre { gap: 4px; }
  .barre-nav { display: none; }
  .pastille-cmd, .barre-nav + .pastille-cmd { margin-left: auto; }
  .son { margin-left: auto; }
  .son + audio + .pastille-cmd { margin-left: 6px; }
  .marque { gap: 10px; padding-right: 0; }
  /* La place va d'abord au panier (sac, « Panier », nombre) : le nom passe sur deux lignes, en petit (D-20261122-1). */
  .marque-nom { white-space: normal; max-width: 7em; font-size: .6875rem; line-height: 1.2; letter-spacing: .14em; }
  @media (max-width: 374px) {
    .barre { --barre-pg: 10px; }
    .sceau { width: 34px; height: 34px; font-size: 1.125rem; }
    .marque { gap: 8px; }
    .marque-nom { letter-spacing: .1em; }
    .son { width: 38px; height: 38px; }
    .son + audio + .pastille-cmd { margin-left: 4px; }
    .pastille-cmd { gap: 6px; padding-left: 12px; }
  }

  .panneau { left: 10px; right: 10px; width: auto; top: auto; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 52px); transform: none;
    max-height: calc(100% - var(--sous-barre) - 80px); padding: 20px 18px 18px; }
  .p-titre { font-size: clamp(2rem, 8.6vw, 2.5rem); }
  .p-phrase { margin-top: 8px; font-size: 1rem; }
  .faits { margin-top: 14px; gap: 6px; }
  .faits li { min-height: 30px; padding: 0 12px 0 10px; font-size: .8125rem; }
  .vitrine { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; }
  .vitrine li { flex-direction: row; align-items: center; min-height: 0; padding: 6px 6px 6px 8px; gap: 10px; }
  .v-nom { flex: 1 1 auto; -webkit-line-clamp: 2; padding-right: 0; font-size: .9375rem; }
  .v-bas { margin-top: 0; gap: 10px; }
  .vitrine .qte { position: static; order: 0; }
  .v-haut { flex: 1 1 auto; align-items: center; }
  .v-img { width: 40px; height: 40px; border-radius: 9px; }
  .vitrine li .ajout { width: 40px; height: 40px; }
  .p-actions { margin-top: 16px; gap: 8px; }
  .p-actions .btn { flex: 1 1 auto; min-height: 48px; padding-inline: 18px; }
  .p-actions .btn--fleche { padding-right: 6px; }
  .p-actions .btn--lien { flex: 0 0 auto; }
  @media (prefers-reduced-motion: no-preference) {
    .voyage[data-texte="pret"] .panneau { transform: translateY(14px) scale(.985); }
    .voyage[data-texte="sorti"] .panneau { transform: translateY(-6px); }
  }
  .v-nav { bottom: max(10px, env(safe-area-inset-bottom)); }
  .v-pts button { width: 30px; height: 36px; }

  .carte-tete h2 { font-size: clamp(3rem, 15vw, 4rem); }
  .onglet { padding: 0 14px; }
  .cat-tete { padding-inline: 2px; }
  .plats-liste { padding: 2px 14px; }
  .p { grid-template-columns: 52px minmax(0, 1fr) auto auto 44px; grid-template-areas: "img txt txt txt btn" "img prix moins qte btn"; row-gap: 4px; column-gap: 8px; }
  .p > .p-img { grid-area: img; width: 52px; height: 52px; align-self: start; margin-top: 2px; }
  .p > .p-txt { grid-area: txt; } .p > .p-prix { grid-area: prix; } .p > .retrait { grid-area: moins; width: 36px; height: 36px; }
  .p > .qte { grid-area: qte; justify-self: start; } .p > .ajout { grid-area: btn; }
  .v-bas .retrait { width: 34px; height: 34px; }
  html:not(.js) .p { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "img txt" "img prix"; }

  .liens-sociaux { padding-inline: 18px; }

  .tiroir { inset: auto 0 0 0; width: 100%; max-height: 92dvh; height: auto; border-radius: var(--r-panneau) var(--r-panneau) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .tiroir-int { padding: 18px 16px 0; gap: 14px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
  .cmd-corps { flex: none; overflow: visible; min-height: 0; margin-inline: 0; padding-inline: 0; }
  .cmd-pied { position: sticky; bottom: 0; margin: 0 -16px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    background: rgba(28, 20, 34, .97); box-shadow: 0 -16px 24px -12px rgba(0, 0, 0, .5); }
  .tiroir { overflow: hidden; }
  @keyframes tiroir-in { from { opacity: 0; transform: translateY(40px); } }
  @keyframes tiroir-out { to { opacity: 0; transform: translateY(30px); } }
  .pied-bas { justify-content: center; text-align: center; }
}
@media (max-width: 560px) and (max-height: 700px), (max-width: 760px) and (min-height: 561px) and (max-height: 700px) {
  .p-phrase { display: none; }
  .vitrine li:nth-child(3) { display: none; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .vitrine li { min-height: 116px; }
  .p-actions { margin-top: 18px; }
}

/* ---------- Plus grand qu'un téléphone : voyage centré, contenu sur une colonne de 1080 px ----------
   (même condition que l'inverse du bloc « Téléphone » : au-delà de 760 px, ou large mais bas) */
@media (min-width: 761px), (min-width: 561px) and (max-height: 560px) {
  .barre-nav a { font-size: .9375rem; padding: 0 14px; }
  .pastille-cmd { font-size: .9375rem; }

  /* Voyage : le panneau au centre de l'image, texte centré. */
  .panneau { left: 50%; width: min(580px, calc(100% - 48px)); padding: clamp(24px, 2.4vw, 32px); transform: translate(-50%, -50%); text-align: center; }
  .p-titre { font-size: clamp(2rem, 3vw, 2.75rem); }
  .p-phrase { margin-inline: auto; max-width: 38ch; font-size: 1.0625rem; }
  .faits, .p-actions { justify-content: center; }
  .vitrine { gap: 8px; margin-top: 18px; text-align: left; }
  .vitrine li { min-height: 108px; padding: 12px 10px 10px 12px; }
  .v-haut { flex-direction: column; gap: 8px; }
  .v-nom { font-size: .9375rem; padding-right: 0; -webkit-line-clamp: 2; overflow-wrap: normal; }
  .v-prix { font-size: .9375rem; }
  .vitrine li .ajout { width: 38px; height: 38px; }
  .v-bas .retrait { width: 32px; height: 32px; }
  .p-actions { margin-top: 22px; }
  .p-actions .btn { min-height: 48px; font-size: .9375rem; }
  @media (prefers-reduced-motion: no-preference) {
    .voyage[data-texte="pret"] .panneau { transform: translate(-50%, calc(-50% + 14px)) scale(.985); }
    .voyage[data-texte="sorti"] .panneau { transform: translate(-50%, calc(-50% - 8px)); }
  }

  .enveloppe { width: min(1080px, 100% - 2 * clamp(16px, 4vw, 48px)); }

  .onglet { font-size: .9375rem; }
  .p { min-height: 68px; padding: 10px 0; }
  .p-nom { font-size: 1rem; }
  .p-desc { font-size: .875rem; }
  .p-prix { font-size: .9688rem; }
  .p > .ajout { width: 42px; height: 42px; }
  .p > .retrait { width: 36px; height: 36px; }

  .liens-sociaux { justify-self: end; }
  .pied-nom { --disque: clamp(96px, 12.5vw, 180px); }
  .pied-mot { font-size: clamp(64px, 9vw, 128px); }
  .pied-bas { font-size: .9375rem; }
  .pied-legal a { min-height: 40px; padding: 0 10px; }
}

/* ---------- Écran bas : téléphone en paysage, petite fenêtre ---------- */
@media (min-width: 561px) and (max-height: 560px) {
  :root { --barre-h: 52px; }
  .sceau { width: 34px; height: 34px; font-size: 1.125rem; }
  .barre-nav a { min-height: 40px; padding: 0 12px; }
  .pastille-cmd { min-height: 40px; }
  .panneau { top: calc(50% + (var(--sous-barre) - 44px) / 2); width: min(580px, calc(100% - 32px)); padding: 16px 20px; }
  .p-titre { font-size: clamp(1.5rem, 3.6vw, 2rem); }
  .p-phrase { display: none; }
  .faits { margin-top: 10px; gap: 6px; }
  .faits li { min-height: 28px; font-size: .8125rem; }
  .vitrine { gap: 8px; margin-top: 12px; }
  .vitrine li { min-height: 0; padding: 10px 10px 10px 12px; gap: 6px; }
  .v-nom { font-size: .9375rem; -webkit-line-clamp: 2; }
  .v-img { width: 32px; height: 32px; border-radius: 8px; }
  .vitrine li .ajout { width: 38px; height: 38px; }
  .p-actions { margin-top: 12px; }
  .p-actions .btn { min-height: 42px; }
  .v-nav { bottom: max(6px, env(safe-area-inset-bottom)); }
  .v-pts button { height: 32px; }
}
@media (min-width: 561px) and (max-height: 400px) {
  .faits { display: none; }
}

/* ---------- Tablette en portrait : le panneau, centré, se pose en bas ; la vidéo garde le haut ---------- */
@media (min-width: 761px) and (orientation: portrait) and (min-height: 761px) {
  .panneau { top: auto; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 64px); transform: translateX(-50%); }
  @media (prefers-reduced-motion: no-preference) {
    .voyage[data-texte="pret"] .panneau { transform: translateX(-50%) translateY(14px) scale(.985); }
    .voyage[data-texte="sorti"] .panneau { transform: translateX(-50%) translateY(-6px); }
  }
}

/* ---------- Son et panier flottants (D-20261121-21) ----------
   Dès qu'on descend, app.js pose « flotte » sur la barre : le son passe en bas à gauche, le panier en bas à droite,
   dans la matière de la capsule. Ils y GLISSENT (D-20261122-1) : app.js mesure le départ et l'arrivée et anime transform
   et opacité (FLIP), le panier prend sa forme de tuile en route ; au retour en haut, trajet inverse. « vol » : matière
   de la capsule pendant la remontée, pour rester lisible sur le contenu. Mouvement réduit : changement de place d'un coup. */
.barre .vol:not(.plein) { background: var(--capsule-fort); -webkit-backdrop-filter: var(--capsule-flou); backdrop-filter: var(--capsule-flou); }
.barre.flotte :is(.son, .pastille-cmd) {
  position: fixed; z-index: 1; bottom: max(16px, env(safe-area-inset-bottom)); margin: 0;
  border: 1px solid var(--capsule-bord); background: var(--capsule-fort);
  -webkit-backdrop-filter: var(--capsule-flou); backdrop-filter: var(--capsule-flou);
  box-shadow: 0 14px 32px -16px rgba(0, 0, 0, .8);
}
.barre.flotte .son { left: 16px; width: 48px; height: 48px; }
.barre.flotte .son svg { width: 22px; height: 22px; }
.barre.flotte .son.joue { border-color: rgba(244, 143, 177, .6); }
/* Tuile 16/9 : « Panier » en petit et le sac en haut, le nombre d'articles en bas ; le total reste dans le tiroir. */
.barre.flotte .pastille-cmd {
  right: 16px; width: 144px; height: auto; min-height: 0; aspect-ratio: 16 / 9; padding: 12px 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "txt txt svg" "n mot mot"; column-gap: 6px; border-radius: var(--r-panneau); text-align: left;
}
.barre.flotte .pastille-cmd::before { display: none; }
.barre.flotte .pastille-txt {
  grid-area: txt; align-self: start; position: static; width: auto; height: auto; overflow: visible; clip-path: none;
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; line-height: 20px; text-transform: uppercase; color: var(--rose);
}
.barre.flotte .pastille-cmd svg { grid-area: svg; align-self: start; display: block; width: 20px; height: 20px; color: var(--rose); }
.barre.flotte .pastille-n { grid-area: n; align-self: last baseline; display: block; min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; color: var(--texte); font-size: 1.75rem; font-weight: 600; line-height: 1; }
.barre.flotte .pastille-mot { grid-area: mot; align-self: last baseline; display: block; font-size: .875rem; font-weight: 500; color: var(--gris-clair); }
.barre.flotte .pastille-total { display: none; }
.barre.flotte .pastille-cmd.plein { background: var(--rose); border-color: var(--rose); color: var(--encre); box-shadow: var(--halo), 0 14px 32px -16px rgba(0, 0, 0, .8); }
.barre.flotte .pastille-cmd.plein :is(.pastille-txt, .pastille-n, .pastille-mot, svg) { color: var(--encre); }
@media (hover: hover) and (pointer: fine) {
  .barre.flotte .son:hover, .barre.flotte .pastille-cmd:not(.plein):hover { background: rgba(42, 31, 48, .88); border-color: var(--trait-fort); }
  .barre.flotte .pastille-cmd.plein:hover { background: var(--rose-vif); }
}
@media (max-width: 560px), (max-width: 760px) and (min-height: 561px) {
  .barre.flotte .pastille-cmd { width: 128px; padding: 10px 12px; }
  .barre.flotte .pastille-n { font-size: 1.5rem; }
}
/* Au bas de la page, les liens du pied restent au-dessus des boutons flottants. */
html.js .pied { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

/* ---------- Préférences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v-petales { display: none; }
  .tiroir[open], .tiroir.ferme, .legal[open], .choix-fen[open], .pastille-cmd.pouls { animation: none; }
  .btn, .ajout, .btn--fleche b, .v-pts i, .onglet, .son, .pastille-cmd, .barre, .onglets, .sceau { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .verre, .barre::before, .barre.flotte :is(.son, .pastille-cmd), .onglets, .v-nav { background: var(--encre); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tiroir, .legal, .choix-fen { background: #1c1422; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .verre, .barre::before, .barre.flotte :is(.son, .pastille-cmd), .onglets, .v-nav { background: rgba(21, 16, 26, .96); }
  .tiroir, .legal, .choix-fen { background: #1c1422; }
}
@media (forced-colors: active) {
  .pastille-cmd::before { display: none; }
  .barre-nav a[aria-current] { text-decoration: underline; }
  .btn, .ajout, .pastille-cmd, .son, .onglet, .verre, .barre { border: 1px solid CanvasText; }
  .p-titre .m, .carte-tete h2, .pied-mot { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}
