/*
 * Livraison Tiramisu — styles de la page d'accueil. Mise en page reprise des maquettes Claude Design
 * (design/Accueil Mobile.dc.html à 390 px, design/Accueil Desktop.dc.html à 1440 px) ; couleurs (palette claire)
 * et section carte (grille de photos) suivent docs/superpowers/specs/2026-12-02-refonte-couleurs-carte-design.md.
 * Mobile d'abord ; tout ce qui est propre au desktop est dans les blocs @media (min-width: 1024px).
 */

@font-face { font-family: 'Clash Display'; src: url("../fonts/clash-display-500-J_k5v4u.woff2") format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url("../fonts/clash-display-600-DSQ-QdH.woff2") format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url("../fonts/clash-display-700-onOnuyA.woff2") format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face {
    font-family: 'DM Sans'; src: url("../fonts/dm-sans-latin-ext-8VRvdH1.woff2") format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans'; src: url("../fonts/dm-sans-latin-vMFCn-c.woff2") format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Palette claire « crème et caramel » (essai du frère, décembre 2026). Contrastes texte ≥ 4,5:1 (WCAG AA). */
    --bg: #fbf4ea;
    --bg-alt: #f3e4d0;
    --card: #ffffff;
    --soft: #f3e4d0;
    --ink: #2a1a10;
    --muted: #6b5546;
    --acc: #a64e16;
    --acc-hover: #8e4212;
    --on-acc: #ffffff;
    --line: #ead9c3;
    --header: rgba(var(--bg-rgb), .9);
    --footer-bg: #1a110b;
    --footer-ink: #f6e9d8;
    --footer-muted: rgba(246, 233, 216, .72);
    /* États (D-012, design system) : --open = point seulement (2,9:1), --open-ink pour du texte ; --closed et --pause ≥ 4,5:1. */
    --open: #22a55a;
    --open-rgb: 34, 165, 90;
    --open-ink: #17803f;
    --closed: #b3261e;
    --closed-rgb: 179, 38, 30;
    --pause: #8a5a00;
    --pause-rgb: 138, 90, 0;
    /* Pied de page toujours sombre : couleurs d'état lisibles sur fond foncé, dans les deux modes. */
    --on-dark-closed: #ff8a7a;
    --on-dark-closed-rgb: 255, 138, 122;
    --on-dark-pause: #f2c14e;
    --on-dark-pause-rgb: 242, 193, 78;
    --on-dark-ink-rgb: 246, 233, 216; /* = --footer-ink, traits et bordures translucides du pied de page */
    /* Couleurs de marque des réseaux (fiche Réseaux, D-030) : fixes, identiques en mode sombre. */
    --brand-snap: #fffc00; --brand-snap-ink: #1a110b;
    --brand-ig-grad: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    --brand-tiktok: #000000; --brand-tiktok-ink: #ffffff;
    --brand-wa: #25d366;
    --brand-tg2: #26a5e4;
    --brand-fb: #0866ff;
    --brand-on: #ffffff;
    --soft-2: #efdcc4;
    --ink-rgb: 42, 26, 16;
    --bg-rgb: 251, 244, 234;
    --acc-rgb: 166, 78, 22;
    --shadow-rgb: 100, 50, 10;
    --scrim-rgb: 30, 18, 10; /* voile derrière panier et modale : sombre dans les deux modes */
    --shadow: rgba(var(--shadow-rgb), .14);
    color-scheme: light;
    --display: 'Clash Display', sans-serif;
    --mono: ui-monospace, Menlo, monospace;
    --mobile-max: 640px;
}
/* Mode sombre automatique (réglage du téléphone / de l'ordinateur) : palette sombre de l'essai du frère. */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a110b;
        --bg-alt: #140d08;
        --card: #261a12;
        --soft: #2e2016;
        --soft-2: #3a2620;
        --ink: #f6e9d8;
        --muted: #b9a48f;
        --acc: #e8a35c;
        --acc-hover: #f0b878;
        --on-acc: #1a110b;
        --line: #3a2a1d;
        --footer-bg: #0e0906;
        --ink-rgb: 246, 233, 216;
        --bg-rgb: 26, 17, 11;
        --acc-rgb: 232, 163, 92;
        --shadow-rgb: 0, 0, 0;
        --scrim-rgb: 0, 0, 0;
        --open-ink: #22a55a;
        --closed: #ff8a7a;
        --closed-rgb: 255, 138, 122;
        --pause: #f2c14e;
        --pause-rgb: 242, 193, 78;
        color-scheme: dark;
    }
}
/* Marge latérale : 16 px sur téléphone (maquette 390 px), contenu centré sur 608 px au-delà ;
   en desktop, 80 px à 1440 px (maquette) et contenu centré sur 1280 px au-delà. Les fonds restent pleine largeur.
   cqw = largeur de .page (sans la barre de défilement, contrairement à vw). */
.page { --gutter: max(16px, calc((100cqw - 608px) / 2)); }
@media (min-width: 1024px) {
    /* 80 px à 1440 px (5,556 %), au moins 40 px vers 1024 px, puis contenu centré sur 1280 px. */
    .page { --gutter: max(clamp(40px, 5.556cqw, 80px), calc((100cqw - 1280px) / 2)); }
}

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

html, body { margin: 0; background: var(--bg); }
* { box-sizing: border-box; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: var(--acc); text-underline-offset: 3px; }
a:hover { color: var(--acc-hover); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
[hidden] { display: none !important; }
img, svg { flex: none; }
body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .08; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes t74pulse { 0% { box-shadow: 0 0 0 0 rgba(34,165,90,.7); } 70% { box-shadow: 0 0 0 9px rgba(34,165,90,0); } 100% { box-shadow: 0 0 0 0 rgba(34,165,90,0); } }
@keyframes t74up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes t74fade { from { opacity: 0; } to { opacity: 1; } }
/* Sorties (non prévues par la maquette) : inverse des entrées, plus courtes. */
@keyframes t74down { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 100%); } }
@keyframes t74fadeout { from { opacity: 1; } to { opacity: 0; } }

html { scroll-behavior: smooth; }
/* Zones masquées par les barres collantes (WCAG 2.4.11) : un élément atteint au clavier défile hors de la barre
   compacte (68 px) en haut et de la barre panier (74 px) en bas. Les scroll-margin-top des sections retranchent
   --sp-top pour que les ancres tombent au même endroit qu'avant. */
:root { --sp-top: 80px; --sp-bottom: 86px; }
@media (min-width: 1024px) { :root { --sp-top: 124px; --sp-bottom: 110px; } }
html { scroll-padding: var(--sp-top) 0 var(--sp-bottom); }
/* Sous les onglets collants de la carte (60 px) */
.products :is(a, button) { scroll-margin-top: 64px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Lien d'évitement : invisible jusqu'au premier Tab. */
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
.hl { color: var(--acc); }

@media (max-width: 1023.98px) { .d-only { display: none !important; } }
@media (min-width: 1024px) { .m-only { display: none !important; } }

.page {
    container-type: inline-size; background: var(--bg); color: var(--ink);
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5;
    position: relative; min-height: 100vh;
}
@media (min-width: 1024px) {
    .page { font-size: 17px; line-height: 1.55; }
}

/* Libellés des emplacements photo de la maquette */
.ph-label { position: absolute; font-family: var(--mono); color: rgba(var(--ink-rgb), .6); }
/* Fond « photo » générique : dégradé teinté + hachures */
.product__photo {
    background: radial-gradient(85% 75% at 50% 80%, var(--tone) 0%, rgba(26,17,11,0) 62%), repeating-linear-gradient(135deg, rgba(var(--ink-rgb), .04) 0 2px, transparent 2px 9px), var(--soft);
}

.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.h2 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.05; margin: 0; }
@media (min-width: 1024px) {
    .eyebrow { margin: 0 0 10px; font-size: 13px; }
    .h2 { font-size: 48px; line-height: 1; letter-spacing: -.015em; }
}

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

.btn { display: flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; }
.btn--primary { background: var(--acc); color: var(--on-acc); font-weight: 700; }
.btn--primary:hover { color: var(--on-acc); }
.btn--ghost { border: 1.5px solid rgba(var(--ink-rgb), .28); color: var(--ink); font-weight: 600; }
.btn--ghost:hover { color: var(--ink); }

.icon-btn { width: 44px; height: 44px; border-radius: 999px; background: var(--card); display: grid; place-items: center; color: var(--ink); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.round-btn--dark { background: var(--soft-2); }

.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; line-height: 1.3; border: 1px solid; }
.badge--best { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.badge--new { background: var(--soft); color: var(--acc); border-color: var(--acc); }
.badge--veg { background: rgba(var(--bg-rgb), .75); color: var(--ink); border-color: rgba(var(--ink-rgb), .5); }
.badge--out { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.add-btn {
    position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--acc); color: var(--on-acc);
    display: grid; place-items: center; box-shadow: 0 6px 18px rgba(var(--acc-rgb), .18);
}
.add-btn:disabled { background: var(--line); color: var(--muted); }
.add-btn--lg { width: 52px; height: 52px; }
.add-btn__qty {
    position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    background: var(--ink); color: var(--on-acc); font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--card);
}

/* ---------------------------------------------------------------- Statut + en-tête */

/* Courbe des transitions d'en-tête de la maquette */
.page { --ease-hd: cubic-bezier(.2, .8, .2, 1); }

.topbar { position: relative; z-index: 20; background: var(--bg); }
.status { --st-rgb: var(--open-rgb); --st-color: var(--open); display: flex; justify-content: center; align-items: center; padding: 8px 12px 0; }
.status--open { --st-rgb: var(--open-rgb); --st-color: var(--open); }
/* États du statut en direct (fiche Statut de tira-design) : seul « ouvert » pulse. */
.status--soon { --st-rgb: var(--pause-rgb); --st-color: var(--pause); }      /* bientôt fermé : dernières commandes */
.status--stopped { --st-rgb: var(--closed-rgb); --st-color: var(--closed); } /* commandes closes, livraisons en cours */
.status--closed { --st-rgb: var(--closed-rgb); --st-color: var(--closed); }
.status--full { --st-rgb: var(--pause-rgb); --st-color: var(--pause); }      /* complet ce soir (pause du dashboard) */
.status__pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 30px; padding: 5px 14px 5px 10px;
    border-radius: 999px; background: rgba(var(--st-rgb), .12); border: 1px solid rgba(var(--st-rgb), .32); box-shadow: 0 0 18px rgba(var(--st-rgb), .12);
    font-size: 12.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.25; text-align: center;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-color, var(--open)); flex: none; }
.status--open .status__dot { animation: t74pulse 1.8s ease-out infinite; }
.status__dot--static { animation: none !important; }

.header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; height: 104px; padding: 12px calc(var(--gutter) - 4px); background: var(--bg); }
.header__menu { justify-self: start; }
.header__logo {
    justify-self: center; display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink);
    font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em;
}
.header__logo:hover { color: var(--ink); }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.logo-img { display: block; object-fit: contain; }
.logo-img--header { width: 120px; height: 80px; filter: drop-shadow(0 4px 10px rgba(var(--shadow-rgb), .15)); }
.logo-text { display: flex; align-items: center; gap: 6px; }
.logo-text__num { background: var(--acc); color: var(--on-acc); border-radius: 999px; padding: 2px 9px 1px; font-size: 17px; line-height: 1.2; }

.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 999px; background: var(--card); display: grid; place-items: center; color: var(--ink); }
.cart-btn__count {
    position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--acc); color: var(--on-acc); font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg);
}

/* Barre compacte mobile : descend du haut quand on a défilé (header_controller.js → .is-scrolled) */
.minibar {
    position: fixed; top: 0; left: 50%; z-index: 25; width: 100%; max-width: var(--mobile-max); padding: 8px 10px 0;
    transform: translate(-50%, -130%); opacity: 0; pointer-events: none;
    transition: transform .4s var(--ease-hd), opacity .25s ease;
}
.is-scrolled .minibar { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.minibar__inner {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; height: 60px; padding: 0 8px; border-radius: 999px;
    background: rgba(var(--bg-rgb), .86); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(var(--ink-rgb), .1); box-shadow: 0 14px 32px -12px rgba(var(--shadow-rgb), .25);
}
.minibar__center { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.minibar__logo { display: flex; flex: none; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 16px; }
.minibar__logo .logo-text__num { font-size: 13px; padding: 1px 7px 0; }
.logo-img--mini { width: 60px; height: 40px; }
.minibar__status {
    display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 10px 4px 8px; border-radius: 999px;
    background: rgba(var(--st-rgb), .12); border: 1px solid rgba(var(--st-rgb), .32); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.minibar__status .status__dot { width: 7px; height: 7px; }
/* Barre compacte sur 2 lignes (fiche Statut de tira-design) : marque au-dessus, statut court dessous,
   pour que « Commande avant 1h40 » tienne à 390 px. */
.minibar__center--stack { flex-direction: column; gap: 1px; line-height: 1.15; }
.minibar__center--stack .minibar__logo { font-size: 15px; white-space: nowrap; }
.minibar__center--stack .logo-img--mini { width: auto; height: 26px; }
.minibar__center--stack .minibar__status { padding: 0; background: none; border: 0; }

@media (min-width: 1024px) {
    /* En-tête collant : grand en haut de page, barre flottante arrondie une fois qu'on a défilé de 40 px. */
    .topbar {
        position: sticky; top: 0;
        transition: background-color .35s var(--ease-hd), margin-bottom .45s var(--ease-hd);
    }
    .status { padding: 10px var(--gutter) 0; transition: padding .45s var(--ease-hd); }
    .status .status__pill {
        gap: 10px; min-height: 32px; padding: 5px 16px 5px 12px; backdrop-filter: blur(14px); font-size: 13px; letter-spacing: 0; line-height: 1.3;
        transition: transform .45s var(--ease-hd), background .35s;
    }
    .status .status__dot { width: 9px; height: 9px; }

    .header {
        gap: 24px; height: 128px; margin: 0; padding: 0 var(--gutter); border-radius: 0; background: rgba(var(--bg-rgb), 1);
        backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(var(--ink-rgb), 0); box-shadow: 0 0 0 rgba(var(--shadow-rgb), .00);
        transition: height .45s var(--ease-hd), margin .45s var(--ease-hd), padding .45s var(--ease-hd), border-radius .45s var(--ease-hd),
                    background-color .35s, box-shadow .45s, border-color .35s;
    }
    .header__logo { grid-column: 2; grid-row: 1; font-size: 26px; letter-spacing: 0; gap: 0; }
    .logo-img--header {
        width: 165px; height: 110px; filter: drop-shadow(0 4px 12px rgba(var(--shadow-rgb), .15));
        transition: width .45s var(--ease-hd), height .45s var(--ease-hd);
    }
    .logo-text { gap: 8px; }
    .logo-text__num { padding: 2px 11px 1px; font-size: 21px; line-height: inherit; }
    .header__nav { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 2px; margin-left: -14px; }
    .header__nav a { min-height: 44px; display: flex; align-items: center; padding: 0 clamp(8px, 0.972cqw, 14px); white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; }
    .header__nav a:hover { background: var(--card); }
    .header__nav a[aria-current="page"], .header__links a[aria-current="page"] { background: var(--soft); }
    .header__links { display: flex; gap: 2px; }
    .header__links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
    .header__links a:hover { background: var(--card); }
    /* Libellés longs / courts (repli 1024–1280 px de la fiche Navigation) */
    .nav-short { display: none; }
    /* Statut court dans la pilule : seulement une fois l'en-tête réduit, à partir de 1280 px */
    .header__status { display: none !important; box-shadow: none; white-space: nowrap; }
    .is-scrolled .header__status { display: inline-flex !important; }
    .header__actions { grid-column: 3; grid-row: 1; }
    .header__cta { min-height: 48px; padding: 0 22px; font-size: 15px; white-space: nowrap; }
    .cart-btn {
        width: auto; min-height: 48px; height: auto; padding: 0 18px 0 14px; display: flex; align-items: center; gap: 10px;
        border: 1.5px solid rgba(var(--ink-rgb), .14); font-weight: 700; font-size: 15px;
    }
    .cart-btn__count { position: static; min-width: 24px; height: 24px; padding: 0 7px; font-size: 13px; border: 0; }

    /* État réduit. La marge rend les 54 px perdus (170 → 116 px) : le contenu ne bouge pas. S'il bougeait, le navigateur
       corrigerait scrollY, repasserait le seuil de 40 px et la barre tremblerait (la maquette a -54 px, c'est une erreur). */
    .is-scrolled .topbar { background-color: rgba(26, 17, 11, 0); margin-bottom: 54px; }
    .is-scrolled .status { padding-top: 8px; }
    .is-scrolled .status .status__pill {
        transform: scale(.94); background: linear-gradient(rgba(var(--st-rgb), .12), rgba(var(--st-rgb), .12)), rgba(var(--bg-rgb), .9);
    }
    .is-scrolled .header {
        height: 68px; margin: 8px calc(var(--gutter) - 40px) 0; padding: 0 14px 0 28px; border-radius: 999px; background: rgba(var(--bg-rgb), .78);
        border-color: rgba(var(--ink-rgb), .1); box-shadow: 0 18px 40px -14px rgba(var(--shadow-rgb), .23), inset 0 1px 0 rgba(var(--ink-rgb), .06);
    }
    .is-scrolled .logo-img--header { width: 81px; height: 54px; }
}

/* Repli 1024–1280 px (fiche Navigation) : libellés courts (« Zone », « Ma commande », « Programmer »),
   « Mon compte » seulement dans le pied de page, pas de statut dans la pilule (il reste dans le bandeau). */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .nav-long { display: none; }
    .nav-short { display: inline; }
    .header__link--account, .is-scrolled .header__status { display: none !important; }
}

/* ---------------------------------------------------------------- Hero */

.hero { padding: 16px var(--gutter) 36px; }
.hero__media { position: relative; height: 236px; border-radius: 28px; overflow: hidden; background: var(--soft); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .06); }
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 17, 11, 0) 55%, rgba(var(--bg-rgb), .55)); pointer-events: none; }
.hero__title { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1.02; letter-spacing: -.02em; margin: 22px 0 12px; text-wrap: balance; }
.hero__lead { margin: 0 0 22px; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; }
.btn--hero { min-height: 56px; gap: 10px; font-size: 17px; box-shadow: 0 10px 32px rgba(var(--acc-rgb), .22); }
.btn--hero-alt { min-height: 52px; font-size: 16px; }
.chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid rgba(var(--ink-rgb), .12); font-size: 13px; font-weight: 600; }

@media (min-width: 1024px) {
    .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; padding: 64px var(--gutter) 96px; }
    .hero__media {
        order: 2; height: 580px; border-radius: 40px;
        background: radial-gradient(80% 70% at 55% 85%, rgba(215,140,65,.85) 0%, rgba(120,62,30,.5) 40%, rgba(26,17,11,0) 72%), repeating-linear-gradient(135deg, rgba(var(--ink-rgb), .04) 0 2px, transparent 2px 10px), var(--soft);
        box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .06), 0 40px 80px rgba(var(--shadow-rgb), .13);
    }
    .hero__title { font-size: clamp(52px, 5.278cqw, 76px); line-height: .98; letter-spacing: -.025em; margin: 0 0 22px; }
    .hero__lead { margin: 0 0 34px; font-size: 21px; max-width: 30ch; }
    .hero__actions { flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .btn--hero { min-height: 60px; padding: 0 30px; font-size: 18px; box-shadow: 0 12px 36px rgba(var(--acc-rgb), .22); }
    .btn--hero-alt { min-height: 60px; padding: 0 28px; font-size: 17px; }
    .chips { margin-top: 30px; gap: 10px; }
    .chips li { padding: 9px 16px; font-size: 15px; }
}

/* ---------------------------------------------------------------- La carte */

.carte { padding: 40px var(--gutter) 44px; background: var(--bg-alt); border-radius: 32px 32px 0 0; scroll-margin-top: calc(100px - var(--sp-top)); }
.carte__head .h2 { letter-spacing: -.01em; margin-bottom: 18px; }

.carte__lead { margin: -8px 0 18px; font-size: 15px; color: var(--muted); }
.tabs { position: sticky; top: 68px; z-index: 5; display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 14px; padding: 8px var(--gutter); background: var(--bg-alt); overflow-x: auto; scrollbar-width: none; }
.tab {
    flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
    background: transparent; color: var(--ink); border: 1.5px solid rgba(var(--ink-rgb), .22);
    transition: background-color .2s, color .2s, border-color .2s;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product {
    display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s;
}
.product__photo { position: relative; aspect-ratio: 1; }
.product__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.is-sold-out .product__img, .is-sold-out .product__ph { filter: grayscale(1) opacity(.55); }
.product__badges--photo { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.product__badges--photo .badge { padding: 2px 8px; font-size: 10px; }
.product__ph { left: 8px; bottom: 6px; font-size: 9px; }
.product__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; padding: 10px 12px 12px; }
.product__name { margin: 0; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; }
.product__desc {
    margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.product__price { font-family: var(--display); font-weight: 600; font-size: 17px; white-space: nowrap; }
.is-sold-out .product__name, .is-sold-out .product__price { color: var(--muted); }

.carte__more .btn--more { margin-top: 18px; min-height: 52px; gap: 8px; border-color: rgba(var(--ink-rgb), .22); }

@media (min-width: 1024px) {
    .carte {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end;
        padding: 80px var(--gutter) 88px; border-radius: 48px 48px 0 0; scroll-margin-top: calc(120px - var(--sp-top));
    }
    .carte__head { margin-bottom: 32px; }
    .carte__head .h2 { letter-spacing: -.015em; margin-bottom: 0; }
    .carte__lead { margin: 12px 0 0; font-size: 17px; }
    .tabs { position: static; margin: 0 0 32px; padding: 0; background: none; overflow: visible; }
    .tab { min-height: 48px; padding: 0 22px; font-size: 16px; }
    .products { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-self: stretch; }
    .product.product--desktop-hidden { display: none; }
    .product { border-radius: 22px; }
    .product:hover { transform: translateY(-4px); box-shadow: 0 18px 40px var(--shadow); }
    .product__badges--photo .badge { padding: 3px 8px; font-size: 11px; }
    .product__ph { left: 10px; bottom: 8px; font-size: 10px; }
    .product__body { padding: 16px; gap: 8px; }
    .product__name { font-size: 21px; line-height: 1.1; }
    .product__desc { font-size: 14px; line-height: 1.4; }
    .product__price { font-size: 23px; }
    .product .add-btn { box-shadow: none; }
    .product .add-btn svg { width: 20px; height: 20px; }
    .product .add-btn__qty { min-width: 20px; height: 20px; padding: 0 5px; font-size: 11px; }
    .carte__more { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 32px; }
    .carte__more .btn--more { margin-top: 0; padding: 0 26px; }
}

/* ---------------------------------------------------------------- Comment ça marche */

.how { padding: 48px var(--gutter); background: var(--bg-alt); }
.how__title { margin-bottom: 24px; }
.how__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.step__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; }
.step__icon--1 { background: var(--acc); color: var(--on-acc); }
.step__icon--2 { background: var(--soft); color: var(--acc); }
.step__icon--3 { background: var(--ink); color: var(--bg); }
.step__icon svg { width: 26px; height: 26px; }
.step__title { margin: 2px 0 4px; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.15; }
.step__text { margin: 0; font-size: 14px; color: var(--muted); }

@media (min-width: 1024px) {
    .how { padding: 24px var(--gutter) 96px; scroll-margin-top: calc(120px - var(--sp-top)); }
    .how__title { margin-bottom: 32px; }
    .how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .step { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 28px; }
    .step__icon { width: 64px; height: 64px; border-radius: 20px; }
    .step__icon svg { width: 30px; height: 30px; }
    .step__title { margin: 0 0 6px; font-size: 24px; }
    .step__text { font-size: 16px; }
}

/* ---------------------------------------------------------------- Zones + horaires */

.zones { padding: 48px var(--gutter); scroll-margin-top: calc(100px - var(--sp-top)); }
.zones__title { margin-bottom: 20px; }
.map {
    position: relative; aspect-ratio: 10 / 8; border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
    background: repeating-linear-gradient(0deg, rgba(var(--ink-rgb), .04) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(var(--ink-rgb), .04) 0 1px, transparent 1px 28px), radial-gradient(70% 60% at 50% 45%, var(--soft-2), var(--soft));
}
.map__water { position: absolute; background: rgba(110, 160, 190, .22); }
.map__dot { position: absolute; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transition: all .2s; }
.map__dot.is-active { width: 18px; height: 18px; background: var(--acc); box-shadow: 0 0 0 7px rgba(var(--acc-rgb), .22), 0 0 24px rgba(var(--acc-rgb), .6); }
.map__label {
    position: absolute; transform: translate(-50%, -150%); padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--on-acc);
    font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px var(--shadow);
    transition: left .3s cubic-bezier(.2, .8, .2, 1), top .3s cubic-bezier(.2, .8, .2, 1);
}
.zones__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-btn {
    min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
    background: transparent; color: var(--ink); border: 1.5px solid rgba(var(--ink-rgb), .22);
    transition: background-color .2s, color .2s, border-color .2s;
}
.chip-btn[aria-pressed="true"] { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.zones__info { margin-top: 16px; padding: 16px 18px; border-radius: 20px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.zones__info strong { font-family: var(--display); font-weight: 600; font-size: 18px; }
.zones__info span { font-size: 15px; color: var(--muted); }

.hours { padding: 0 var(--gutter) 48px; scroll-margin-top: calc(100px - var(--sp-top)); }
.hours__title { margin-bottom: 16px; }
.hours__table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 15px; }
.hours__table tr { background: var(--card); color: var(--ink); }
.hours__table th, .hours__table td { padding: 10px 14px; font-weight: 500; }
.hours__table th { text-align: left; border-radius: 14px 0 0 14px; }
.hours__table td { text-align: right; border-radius: 0 14px 14px 0; font-variant-numeric: tabular-nums; }
.hours__table tr.is-today { background: var(--acc); color: var(--on-acc); }
.hours__table tr.is-today th, .hours__table tr.is-today td { font-weight: 700; }
.hours__tonight { margin-left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--on-acc); color: var(--acc); }
.hours__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.hours__note > span:first-child { color: var(--acc); }

@media (min-width: 1024px) {
    .zh { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; padding: 96px var(--gutter); }
    .zones, .hours { padding: 0; scroll-margin-top: calc(120px - var(--sp-top)); }
    .zones__title, .hours__title { margin-bottom: 28px; }
    .zones__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
    .map {
        aspect-ratio: 1 / 1; border-radius: 28px;
        background: repeating-linear-gradient(0deg, rgba(var(--ink-rgb), .04) 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, rgba(var(--ink-rgb), .04) 0 1px, transparent 1px 32px), radial-gradient(70% 60% at 50% 45%, var(--soft-2), var(--soft));
    }
    .map__label { padding: 5px 12px; font-size: 13px; }
    .zones__chips { margin-top: 0; }
    .zones__info { margin-top: 18px; padding: 18px 20px; border-radius: 22px; }
    .zones__info strong { font-size: 20px; }
    .zones__info span { font-size: 16px; }
    .hours__table { border-spacing: 0 5px; font-size: 16px; }
    .hours__table th, .hours__table td { padding: 12px 18px; }
    .hours__table th { border-radius: 16px 0 0 16px; }
    .hours__table td { border-radius: 0 16px 16px 0; }
    .hours__tonight { margin-left: 10px; font-size: 12px; padding: 2px 9px; }
    .hours__note { margin-top: 14px; font-size: 14px; }
}

/* ---------------------------------------------------------------- Carrousels (occasions) */

.section-head { padding: 0 var(--gutter); }
.slider {
    display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; scrollbar-width: none;
}
.slider > :not(.slider__end) { flex: none; width: calc(100% - 48px); max-width: 320px; scroll-snap-align: start; scroll-snap-stop: always; }
.slider__end { flex: none; width: 4px; }

@media (min-width: 1024px) {
    .section-head { padding: 0; }
    .slider { display: grid; gap: 20px; overflow: visible; padding: 0; scroll-snap-type: none; }
    .slider > :not(.slider__end) { width: auto; max-width: none; }
    .slider__end { display: none; }
}

/* ---------------------------------------------------------------- Fil d'Ariane (fiche Navigation, D-026)
   Desktop : chemin complet, chevrons, page en cours en gras. Mobile : un lien retour vers le parent puis la page en
   cours sur une ligne (nom long coupé) ; le chemin complet reste dans le HTML et le BreadcrumbList. */

.breadcrumb { padding: 4px var(--gutter) 0; font-size: 14px; color: var(--muted); }
.breadcrumb__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; min-height: 44px; gap: 4px; }
.breadcrumb__item { display: none; min-width: 0; }
.breadcrumb__item:nth-last-child(-n + 2) { display: inline-flex; align-items: center; }
.breadcrumb__item:nth-last-child(2) { flex: none; }
.breadcrumb__item:nth-last-child(2) a { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding-right: 6px; font-weight: 600; color: var(--acc); text-decoration: none; white-space: nowrap; }
.breadcrumb__item:nth-last-child(2) a::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--crumb-back) center / contain no-repeat; mask: var(--crumb-back) center / contain no-repeat; }
.breadcrumb__item[aria-current] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.breadcrumb { --crumb-back: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M15 6l-6 6 6 6'/></svg>");
    --crumb-sep: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>"); }

@media (min-width: 1024px) {
    .breadcrumb { padding: 8px var(--gutter) 0; }
    .breadcrumb__list { flex-wrap: wrap; gap: 2px; }
    .breadcrumb__item, .breadcrumb__item:nth-last-child(-n + 2) { display: inline-flex; align-items: center; gap: 2px; }
    .breadcrumb__item + .breadcrumb__item::before { content: ""; width: 16px; height: 16px; background: currentColor; opacity: .55; -webkit-mask: var(--crumb-sep) center / contain no-repeat; mask: var(--crumb-sep) center / contain no-repeat; }
    .breadcrumb__item a, .breadcrumb__item:nth-last-child(2) a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font-weight: 400; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(var(--ink-rgb), .25); }
    .breadcrumb__item:nth-last-child(2) a::before { content: none; }
    .breadcrumb__item a:hover { color: var(--acc); }
    .breadcrumb__item[aria-current] { color: var(--ink); font-weight: 600; padding: 0 4px; }
}

/* ---------------------------------------------------------------- Occasions */

.occasions { scroll-margin-top: calc(110px - var(--sp-top)); padding: 48px 0; background: var(--bg-alt); }
.occasions__title { margin-bottom: 20px; }
.occasion { border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: 0 8px 24px rgba(var(--shadow-rgb), .10); }
.occasion__photo {
    height: 150px; position: relative;
    background: radial-gradient(80% 80% at 50% 90%, var(--tone), rgba(26,17,11,0) 70%), repeating-linear-gradient(135deg, rgba(var(--ink-rgb), .04) 0 2px, transparent 2px 10px), var(--soft);
}
.occasion__ph { left: 12px; bottom: 10px; font-size: 10px; }
.occasion__body { padding: 16px 18px 18px; }
.occasion__title { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 20px; }
.occasion__text { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.occasion__link { font-weight: 700; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 1024px) {
    .occasions { padding: 96px var(--gutter); }
    .occasions__title { margin-bottom: 32px; }
    .occasions__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .occasion { border-radius: 28px; box-shadow: none; }
    .occasion__photo { height: 220px; }
    .occasion__ph { left: 14px; bottom: 12px; font-size: 11px; }
    .occasion__body { padding: 22px 24px 24px; }
    .occasion__title { margin: 0 0 6px; font-size: 24px; }
    .occasion__text { margin: 0 0 14px; font-size: 16px; }
    .occasion__link { font-size: inherit; }
}

/* ---------------------------------------------------------------- Réseaux */

.social { display: flex; flex-direction: column; padding: 44px 0 48px; background: var(--acc); color: var(--on-acc); }
.social__intro { display: contents; }
.social__title { order: 1; padding: 0 var(--gutter); font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; margin: 0 0 6px; }
.social__lead { order: 2; padding: 0 var(--gutter); margin: 0 0 20px; font-size: 15px; font-weight: 500; }
.social__links { order: 4; display: flex; flex-wrap: wrap; gap: 8px; padding: 20px var(--gutter) 0; }
.social__links a { min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--card); color: var(--acc); display: flex; align-items: center; font-weight: 700; text-decoration: none; }
.social__handle { order: 5; margin: 12px var(--gutter) 0; font-size: 13px; font-weight: 600; }

@media (min-width: 1024px) {
    .social {
        display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 48px; align-items: center;
        margin: 0 var(--gutter); padding: 56px; border-radius: 40px;
    }
    .social__intro { display: block; }
    .social__title { padding: 0; font-size: clamp(44px, 4.444cqw, 64px); white-space: nowrap; line-height: .95; margin: 0 0 12px; }
    .social__lead { padding: 0; margin: 0 0 24px; font-size: 18px; }
    .social__links { padding: 0; }
    .social__links a { min-height: 50px; padding: 0 20px; }
}

/* ---------------------------------------------------------------- Texte SEO */

.seo { padding: 48px var(--gutter); }
.seo__card { padding: 28px 22px 30px; border-radius: 28px; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: 16px; line-height: 1.65; }
.eyebrow--dark { margin: 0 0 8px; color: var(--acc); }
.seo__title { font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.08; margin: 0 0 12px; color: var(--ink); text-wrap: balance; }
.seo__h { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.15; margin: 0 0 8px; color: var(--ink); }
.seo__h--balance { text-wrap: balance; }
.seo__cols p { margin: 0; text-wrap: pretty; }
.seo__cols > div:not(:last-child) p { margin-bottom: 22px; }
.seo__cols a { color: var(--ink); font-weight: 600; text-decoration-color: var(--acc); text-decoration-thickness: 2px; }

@media (min-width: 1024px) {
    .seo { padding: 96px var(--gutter); }
    .seo__card { padding: 56px 64px; border-radius: 40px; font-size: 17px; line-height: 1.7; }
    .eyebrow--dark { margin: 0 0 10px; }
    .seo__title { font-size: 44px; line-height: 1.05; margin: 0 0 36px; max-width: 20ch; }
    .seo__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
    .seo__cols > div:not(:last-child) p { margin-bottom: 0; }
    .seo__h { font-size: 22px; margin: 0 0 10px; }
}

/* ---------------------------------------------------------------- FAQ */

.faq { padding: 0 var(--gutter) 56px; scroll-margin-top: calc(100px - var(--sp-top)); }
.faq__title { margin-bottom: 16px; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq__item { border-radius: 20px; background: transparent; border: 1px solid var(--line); transition: background-color .3s cubic-bezier(.2, .8, .2, 1); }
.faq__item.is-open { background: var(--card); }
.faq__q { margin: 0; }
.faq__q button {
    width: 100%; min-height: 60px; padding: 14px 16px 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    text-align: left; font-weight: 600; font-size: 16px; line-height: 1.3;
}
.faq__chevron { width: 20px; height: 20px; color: var(--acc); transition: transform .2s; }
.faq__item.is-open .faq__chevron { transform: rotate(180deg); }
/* Ouverture fluide : la ligne de grille passe de 0fr à 1fr (hauteur réelle du texte), le texte arrive en fondu. */
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__inner { overflow: hidden; min-height: 0; }
.faq__a {
    margin: 0; padding: 0 18px 18px; font-size: 15px; color: var(--muted); text-wrap: pretty;
    opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.faq__item.is-open .faq__a { opacity: 1; transform: none; transition-delay: .06s; }

@media (min-width: 1024px) {
    .faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; padding: 0 var(--gutter) 112px; scroll-margin-top: calc(120px - var(--sp-top)); }
    .faq__title { margin-bottom: 0; }
    .faq__list { gap: 10px; }
    .faq__item { border-radius: 22px; }
    .faq__q button { min-height: 68px; padding: 16px 22px 16px 24px; font-size: 18px; line-height: inherit; }
    .faq__chevron { width: 22px; height: 22px; }
    .faq__a { padding: 0 24px 22px; font-size: 16px; max-width: 62ch; text-wrap: wrap; }
}

/* ---------------------------------------------------------------- Pied de page (fiche Navigation, D-026) */

.footer { padding: 40px var(--gutter) 120px; background: var(--footer-bg); color: var(--footer-ink); display: grid; gap: 28px; }
.footer a { color: var(--footer-ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer :focus-visible { outline-color: var(--footer-ink); }
.social :focus-visible { outline-color: var(--on-acc); }
.footer__brand { display: grid; gap: 8px; justify-items: start; }
.logo-img--footer { width: 150px; height: 100px; margin: 0 0 4px -8px; }
.logo-brand { display: block; font-family: var(--display); font-weight: 700; font-size: 26px; }
/* Fond toujours sombre : les points d'état prennent les teintes lisibles sur fond foncé. */
.footer__status { --closed: var(--on-dark-closed); --closed-rgb: var(--on-dark-closed-rgb); --pause: var(--on-dark-pause); --pause-rgb: var(--on-dark-pause-rgb);
    margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.footer__hours { margin: 0; font-size: 14px; color: var(--footer-muted); }
.footer__cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer__col-title { margin: 0 0 6px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--footer-muted); }
.footer__col-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer__col-list a { min-height: 40px; display: inline-flex; align-items: center; font-size: 15px; }
.footer__col--wide .footer__col-list li:last-child a { font-weight: 700; }
.footer__bottom { display: grid; gap: 16px; justify-items: start; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 16px; padding-top: 18px; border-top: 1px solid rgba(var(--on-dark-ink-rgb), .14); font-size: 14px; }
.footer__legal a { min-height: 40px; display: inline-flex; align-items: center; color: var(--footer-muted); }
.footer__other { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(var(--on-dark-ink-rgb), .22); font-size: 14px; }
.footer__copy { margin: 0; font-size: 13px; color: var(--footer-muted); }

@media (min-width: 1024px) {
    .footer { padding: 72px var(--gutter) 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); column-gap: 64px; }
    .logo-img--footer { width: 180px; height: 120px; margin: 0 0 4px -10px; }
    .logo-brand { font-size: 30px; }
    .footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
    .footer__col-list { grid-template-columns: 1fr; }
    .footer__col--wide .footer__col-list { grid-template-columns: 1fr 1fr; }
    .footer__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid rgba(var(--on-dark-ink-rgb), .14); }
    .footer__legal { border: 0; padding: 0; }
}

/* ---------------------------------------------------------------- Boutons réseaux ronds (fiche Réseaux, D-030)
   52 px avec le nom (confirmation, suivi, contact), 44 px sans nom (menu, pied de page). Le logo occupe la moitié
   du rond au plus ; ni ombre ni effet sur le logo ; anneau de focus caramel autour du rond. */

.socials-row { display: flex; flex-wrap: wrap; gap: 12px; }
.soc-r { display: inline-grid; justify-items: center; gap: 6px; min-width: 56px; text-decoration: none; color: var(--ink); font-size: 12px; font-weight: 600; }
.soc-r--sm { min-width: 0; }
.soc-r__disc { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(var(--shadow-rgb), .16); transition: transform .15s; }
.soc-r__disc svg { width: 26px; height: 26px; }
.soc-r--sm .soc-r__disc { width: 44px; height: 44px; }
.soc-r--sm .soc-r__disc svg { width: 22px; height: 22px; }
.soc-r:hover .soc-r__disc { transform: translateY(-2px); }
.soc-r:focus-visible { outline: none; }
.soc-r:focus-visible .soc-r__disc { outline: 3px solid var(--acc); outline-offset: 3px; }
.soc-r--ig .soc-r__disc { background: var(--brand-ig-grad); color: var(--brand-on); }
.soc-r--snap .soc-r__disc { background: var(--brand-snap); color: var(--brand-snap-ink); }
.soc-r--tiktok .soc-r__disc { background: var(--brand-tiktok); color: var(--brand-tiktok-ink); box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .2), 0 4px 12px rgba(var(--shadow-rgb), .16); }
.soc-r--wa .soc-r__disc { background: var(--brand-wa); color: var(--brand-on); }
.soc-r--tg .soc-r__disc { background: var(--brand-tg2); color: var(--brand-on); }
.soc-r--fb .soc-r__disc { background: var(--brand-on); color: var(--brand-fb); }
.soc-r--fb .soc-r__disc svg { width: 52px; height: 52px; }
.soc-r--sm.soc-r--fb .soc-r__disc svg { width: 44px; height: 44px; }
.footer .soc-r { color: var(--footer-ink); }
.footer .soc-r:hover { text-decoration: none; }
.footer .soc-r:focus-visible .soc-r__disc { outline-color: var(--footer-ink); }
@media (prefers-reduced-motion: reduce) { .soc-r:hover .soc-r__disc { transform: none; } }

/* ---------------------------------------------------------------- Barre panier */

/* Mobile : le bouton du bas monte une fois qu'on a défilé de 160 px (header_controller.js → .cta-on). */
.cartbar {
    position: sticky; bottom: 0; z-index: 30; padding: 0 calc(var(--gutter) - 4px) calc(14px + env(safe-area-inset-bottom));
    filter: drop-shadow(0 12px 24px rgba(var(--shadow-rgb), .18)); transform: translateY(140%); opacity: 0; pointer-events: none;
    transition: transform .45s var(--ease-hd), opacity .3s ease;
}
.cta-on .cartbar { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cartbar__btn, .cartbar__cta {
    width: 100%; min-height: 60px; border-radius: 999px; background: var(--acc); color: var(--on-acc); display: flex; align-items: center;
    font-weight: 700; box-shadow: 0 10px 30px rgba(var(--acc-rgb), .25);
}
.cartbar__btn { justify-content: space-between; gap: 8px; padding: 0 6px 0 20px; font-size: 15px; }
.cartbar__cta { justify-content: center; font-size: 16px; text-decoration: none; }
.cartbar__cta:hover { color: var(--on-acc); }
.cartbar__go { display: flex; align-items: center; gap: 6px; background: var(--on-acc); color: var(--acc); border-radius: 999px; padding: 0 16px; min-height: 48px; }

@media (min-width: 1024px) {
    .cartbar { position: fixed; right: 32px; bottom: 32px; padding: 0; filter: none; transform: none; opacity: 1; pointer-events: auto; transition: none; }
    .cartbar:not(.has-items) { display: none; }
    .cartbar__cta { display: none; }
    .cartbar__btn { width: auto; min-height: 64px; gap: 14px; padding: 0 8px 0 24px; font-size: 16px; box-shadow: 0 14px 40px rgba(var(--shadow-rgb), .15), 0 0 0 6px rgba(var(--acc-rgb), .12); }
    .cartbar__go { padding: 0 18px; min-height: 50px; }
    .cartbar__go svg { stroke-width: 2.2; }
}

/* ---------------------------------------------------------------- Menu mobile */

.menu {
    position: fixed; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max); z-index: 60;
    background: var(--bg-alt); display: flex; flex-direction: column; overflow: auto; animation: t74fade .2s ease-out;
}
.menu__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; padding: 0 12px; }
.menu__top .logo-brand { margin: 0; font-size: 22px; }
.logo-img--menu { width: 105px; height: 70px; }
.menu__close { justify-self: end; border-radius: 50%; }
.menu__status { padding: 20px 16px 8px; display: flex; justify-content: center; }
.menu__status .status__pill { padding: 6px 14px 6px 10px; min-height: 0; box-shadow: none; letter-spacing: 0; line-height: inherit; }
.menu__list { list-style: none; margin: 0; padding: 8px 16px; display: flex; flex-direction: column; gap: 6px; }
.menu__list a {
    min-height: 64px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--card); display: grid; grid-template-columns: 44px 1fr auto;
    gap: 14px; align-items: center; color: var(--ink); text-decoration: none;
}
.menu__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--acc); }
.menu__account { align-self: center; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.menu__chevron { display: grid; color: var(--acc); }
.menu__label { display: flex; flex-direction: column; line-height: 1.2; }
.menu__label span:first-child { font-family: var(--display); font-weight: 600; font-size: 19px; }
.menu__label span:last-child { font-size: 13px; color: var(--muted); margin-top: 3px; }
.menu__bottom { margin-top: auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.menu__cta { min-height: 58px; font-size: 17px; }
.menu__socials { justify-content: center; } /* boutons ronds 44 px centrés sous « Commander » (fiche Réseaux) */

/* ---------------------------------------------------------------- Panier */

.overlay { position: fixed; inset: 0; background: rgba(var(--scrim-rgb), .45); backdrop-filter: blur(4px); z-index: 40; animation: t74fade .25s ease-out; }
.overlay--modal { background: rgba(var(--scrim-rgb), .49); z-index: 50; }
.overlay.is-closing, .menu.is-closing { animation: t74fadeout .2s ease-in forwards; }
.sheet.is-closing, .modal.is-closing { animation: t74down .28s cubic-bezier(.4, 0, 1, 1) forwards; }
.grabber { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 10px; }
.grabber--dark { background: var(--line); }

.sheet {
    position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max); max-height: 90%; overflow: auto;
    background: var(--bg); color: var(--ink); border-radius: 28px 28px 0 0; z-index: 41; padding: 10px 16px 18px;
    box-shadow: 0 -20px 60px rgba(var(--shadow-rgb), .17); animation: t74up .35s cubic-bezier(.2, .9, .3, 1.1);
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5;
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; }
.sheet__empty { text-align: center; padding: 28px 8px 12px; }
.sheet__empty-icon { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; background: var(--soft); display: grid; place-items: center; color: var(--acc); }
.sheet__empty-title { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 21px; }
.sheet__empty-text { margin: 0 0 20px; color: var(--muted); }
.btn-dark { width: 100%; min-height: 56px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font-weight: 700; }

.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line__photo {
    width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
    background: radial-gradient(85% 75% at 50% 80%, var(--tone) 0%, rgba(26,17,11,0) 62%), repeating-linear-gradient(135deg, rgba(var(--ink-rgb), .04) 0 2px, transparent 2px 9px), var(--soft);
}
.line__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.line__info { min-width: 0; }
.line__name { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.2; }
.line__meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; background: var(--soft); border-radius: 999px; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; }
.line__qty { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.commune-select { display: block; margin: 16px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.commune-select select {
    display: block; width: 100%; margin-top: 6px; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line);
    background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600;
}
.commune-picker { margin-top: 16px; }
.commune-picker__btn {
    width: 100%; min-height: 64px; padding: 10px 14px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(var(--shadow-rgb), .08);
    display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-align: left;
}
.commune-picker__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; }
.commune-picker__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.commune-picker__text > span:first-child { font-size: 12px; font-weight: 600; color: var(--muted); }
.commune-picker__text strong { font-size: 16px; color: var(--ink); margin-top: 2px; }
.commune-picker__text > span:last-child { font-size: 12px; color: var(--muted); margin-top: 2px; }
.commune-picker__chevron { color: var(--ink); transition: transform .2s; }
.commune-picker__btn[aria-expanded="true"] .commune-picker__chevron { transform: rotate(180deg); }
.commune-picker__list {
    list-style: none; margin: 8px 0 0; padding: 6px; border-radius: 18px; background: var(--card); box-shadow: 0 12px 32px rgba(var(--shadow-rgb), .14);
    max-height: 264px; overflow: auto; animation: t74fade .18s ease-out;
}
.commune-picker__list button {
    width: 100%; min-height: 50px; padding: 0 12px; border-radius: 12px; background: transparent; display: flex; align-items: center;
    justify-content: space-between; gap: 10px; text-align: left; font-size: 15px; color: var(--ink);
    transition: background-color .2s;
}
.commune-picker__opt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.commune-picker__radio { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid var(--line); background: transparent; box-shadow: inset 0 0 0 3px var(--card); }
.commune-picker__name { font-weight: 500; }
.commune-picker__fee { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
[aria-selected="true"] > button { background: var(--soft); }
[aria-selected="true"] .commune-picker__radio { border-color: var(--acc); background: var(--acc); }
[aria-selected="true"] .commune-picker__name { font-weight: 700; }

.min-box { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.min-box p { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.min-box__track { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; }
.min-box__bar { height: 100%; width: 0; background: var(--acc); border-radius: 9px; transition: width .3s; }

.totals { margin: 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 15px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .totals__total { font-weight: 700; font-size: 18px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--ink); }
.totals .totals__total--value { font-family: var(--display); }
.order-btn {
    width: 100%; min-height: 58px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.order-btn:disabled { background: var(--line); color: var(--muted); }
.sheet__note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

@media (min-width: 1024px) {
    .overlay { background: rgba(var(--scrim-rgb), .42); }
    .overlay--modal { background: rgba(var(--scrim-rgb), .49); }
    .sheet {
        top: 0; right: 0; bottom: 0; left: auto; transform: none; width: 440px; max-width: 100%; max-height: none;
        z-index: 41; padding: 24px 28px 28px; box-shadow: -20px 0 60px rgba(var(--shadow-rgb), .17); border-radius: 32px 0 0 32px; animation: t74fade .25s ease-out;
        font-size: 17px; line-height: 1.55;
    }
    .sheet__head { margin-bottom: 12px; }
    .sheet__title { font-size: 30px; }
    .sheet.is-closing { animation: t74fadeout .2s ease-in forwards; }
}

/* ---------------------------------------------------------------- Messagerie */

.modal {
    position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max); max-height: 92%; overflow: auto;
    background: var(--bg); color: var(--ink); border-radius: 28px 28px 0 0; z-index: 51; padding: 10px 16px 20px;
    box-shadow: 0 -20px 60px rgba(var(--shadow-rgb), .20); border-top: 1px solid rgba(var(--ink-rgb), .1); animation: t74up .35s cubic-bezier(.2, .9, .3, 1.1);
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5;
}
.modal__close { display: flex; justify-content: flex-end; }
.modal__title { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.05; }
.modal__lead { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app {
    min-height: 104px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); display: flex; flex-direction: column;
    align-items: flex-start; justify-content: space-between; padding: 14px; text-align: left;
}
.app__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; }
.app__name { font-weight: 700; font-size: 16px; }
.modal__sms { margin-top: 14px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.modal__ref { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--open); color: var(--on-acc); display: grid; place-items: center; margin-bottom: 16px; }
.done__lead { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.done__lead strong { color: var(--ink); }
.done__msg {
    border-radius: 18px; background: var(--soft); color: var(--ink); padding: 14px 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap;
    font-variant-numeric: tabular-nums; max-height: 220px; overflow: auto;
}
.done__ref {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 18px; padding: 12px 16px; border-radius: 16px;
    border: 1.5px dashed rgba(var(--ink-rgb), .25);
}
.done__ref span { font-size: 13px; color: var(--muted); }
.done__ref strong { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .04em; color: var(--acc); }
.done__actions { display: flex; flex-direction: column; gap: 10px; }
.done__open { min-height: 58px; font-size: 17px; }
.done__copy { min-height: 52px; border-radius: 999px; border: 1.5px solid rgba(var(--ink-rgb), .28); font-weight: 600; font-size: 16px; }
.done__change { min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1024px) {
    .modal {
        top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 520px; max-width: calc(100% - 32px); max-height: calc(100% - 48px);
        border-radius: 32px; padding: 20px 32px 32px; box-shadow: 0 30px 80px rgba(var(--shadow-rgb), .20); border: 1px solid rgba(var(--ink-rgb), .1);
        animation: t74fade .25s ease-out; font-size: 17px; line-height: 1.55;
    }
    .modal.is-closing { animation: t74fadeout .2s ease-in forwards; }
}

/* ---------------------------------------------------------------- Pages d'erreur (templates/bundles/TwigBundle/Exception) */

.error-page { min-height: 100svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; max-width: 640px; margin: 0 auto; padding: 48px 16px; color: var(--ink); font-family: 'DM Sans', sans-serif; }
.error-page__title { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 7vw, 48px); line-height: 1.05; margin: 0; }
.error-page__text { margin: 0 0 8px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.error-page .btn { padding: 0 28px; }
