/* 
    SUSHITO - TASTE LUXE PREMIUM
    Design Language: High-Agency, Asymmetric, Cinematic
*/

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@800,700,500&f[]=satoshi@400,500,700&display=swap');

:root {
    /* Perceptually uniform OKLCH colors */
    --zinc-950: oklch(12% 0.01 260); /* Deep Neutral Slate */
    --zinc-900: oklch(18% 0.01 260);
    --zinc-100: oklch(96% 0.01 260);
    --white: oklch(100% 0 0);
    
    /* Calibrated Magenta (< 80% saturation) */
    --accent: oklch(62% 0.22 350); 
    --accent-dim: oklch(62% 0.22 350 / 0.15);
    
    --text-primary: var(--white);
    --text-secondary: oklch(75% 0.01 260);
    
    /* Layout Tokens */
    --radius-luxe: 2.5rem;
    --shadow-diffusion: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    
    /* Displacement Motion Curve */
    --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-hq: all 0.7s var(--ease-cinematic);
    --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--zinc-950);
    color: var(--text-primary);
    font-family: 'Satoshi', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* --- Layout Architecture --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 160px 0;
}

/* --- Asymmetric Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-hq);
}

nav.scrolled {
    background: oklch(12% 0.01 260 / 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid oklch(100% 0 0 / 0.05);
    padding: 20px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Carte mode — shown only on responsive when the carte section is in view */
.nav-carte {
    display: none;
}
.nav-carte-label {
    font-size: 1.45rem; /* L1 agrandi (+15%) ; header inchangé : le trigger 44px fixe la hauteur */
    font-weight: 800;
    font-family: 'Cabinet Grotesk', sans-serif;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--white);
}
.nav-carte-trigger {
    background: transparent;
    border: 1px solid oklch(100% 0 0 / 0.1);
    color: var(--white);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.3s var(--ease-cinematic), border-color 0.3s var(--ease-cinematic), transform 0.2s var(--ease-cinematic);
}
.nav-carte-trigger:hover,
.nav-carte-trigger[aria-expanded="true"] {
    background: oklch(100% 0 0 / 0.06);
    border-color: var(--accent);
    color: var(--accent);
}
.nav-carte-trigger:active { transform: scale(0.96); }
.nav-carte-trigger svg { width: 22px; height: 22px; display: block; }

/* Switch between modes on mobile when in the carte section */
@media (max-width: 900px) {
    body.in-carte-section #navbar .nav-default { display: none; }
    body.in-carte-section #navbar .nav-carte {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    body.in-carte-section #navbar .nav-carte[aria-hidden="true"] { aria-hidden: false; }
    /* En mode carte : navbar à hauteur FIXE (le nom de la racine ne doit pas se replier
       au scroll). On fige le padding et on coupe la transition de hauteur. */
    body.in-carte-section #navbar,
    body.in-carte-section #navbar.scrolled { padding: 13px 0; transition: background 0.3s ease; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-hq);
}

.nav-links a:hover { color: var(--accent); }

/* --- Asymmetric Hero (Split Screen) --- */
.hero {
    min-height: 100dvh; /* Mobile safe full-height */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 24px;
    display: block;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 32px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 45ch;
}

.hero-asset {
    position: relative;
    height: 80vh;
    border-radius: var(--radius-luxe);
    overflow: hidden;
}

.hero-asset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

/* --- Bento 2.0 (Labels Outside) --- */
.bento-section-title {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 48px;
}

.bento-card-outer {
    transition: var(--transition-hq);
}

.card-image-wrap {
    position: relative;
    border-radius: var(--radius-luxe);
    overflow: hidden;
    background: var(--zinc-900);
    margin-bottom: 24px;
    aspect-ratio: 1;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-hq);
}

.bento-card-outer:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-label {
    padding-left: 12px;
}

.card-label h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.card-label span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Carte produit vitrine — nom en haut (graisse réduite, lettres légèrement
   écartées), puis prix + « • N pièces » en bas, alignés à gauche (style SushiShop).
   Sélecteurs .card-label .card-X (spéc. 0,2,0) pour battre .card-label h3 / span
   sans toucher aux cartes #experience qui gardent l'ancienne structure. */
.card-label .card-name {
    color: var(--text-primary);   /* titre en blanc */
    font-weight: 500;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 3px;              /* espacement titre → prix réduit à 3px */
}
.card-label .card-meta {
    display: flex;
    align-items: baseline;      /* prix et pièces alignés sur la même ligne de base */
    justify-content: flex-start;
    gap: 0;                     /* l'espacement est porté par le séparateur ::before */
    width: 100%;
}
.card-label .card-price {
    color: var(--text-primary);   /* prix normal en blanc (accent réservé aux prix en réduction) */
    font-weight: 400;             /* graisse plus fine */
    font-size: 0.9rem;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
}
.card-label .card-pieces {
    color: var(--text-secondary);  /* pièces en gris */
    font-size: 0.9rem;
    font-weight: 400;             /* graisse plus fine */
    text-transform: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
/* Séparateur « • » symétrique (8px de chaque côté), géré en CSS plutôt que dans le texte */
.card-label .card-pieces::before {
    content: "•";
    margin: 0 8px;
    opacity: 0.45;
}
/* Nombre de pièces : même gris/graisse que le mot (pas de gras) — <b> neutralisé */
.card-label .pieces-n {
    font-weight: 400;
}
.card-label .card-pieces:empty { display: none; }

/* --- Interactive Menu --- */
.menu-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 80px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.menu-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-hq);
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--white);
    transform: translateX(10px);
}

.tab-btn.active::before {
    content: '→';
    margin-right: 12px;
    color: var(--accent);
}

@media (min-width: 901px) {
    .tab-btn { font-size: 1.05rem; letter-spacing: 0.02em; }
    .tab-btn.active { transform: translateX(6px); }
    .tab-btn.active::before { margin-right: 8px; }
    .menu-tabs.vertical { gap: 14px; }
}

/* --- Motion Engine --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-hq);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Tactile CTAs --- */
.btn {
    display: inline-block;
    padding: 20px 40px;
    background: var(--white);
    color: var(--zinc-950);
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px;
    transition: var(--transition-hq);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.btn:active {
    transform: scale(0.96);
}

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-asset { height: 50vh; }
    .bento-grid { display: flex; flex-direction: column; }
    .nav-links { display: none; }
}

/* --- Floating Cart --- */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: oklch(12% 0.01 260 / 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid oklch(100% 0 0 / 0.05);
    border-radius: var(--radius-luxe);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Symmetrical smooth exit */
    pointer-events: none;
}

.floating-cart.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    transition: var(--transition-hq); /* Punchy cinematic entrance */
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid oklch(100% 0 0 / 0.05);
    padding-bottom: 15px;
}

.cart-header h3 {
    font-size: 1.2rem;
    color: var(--white);
}

.cart-header span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.cart-items {
    max-height: 40vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}
.cart-items::-webkit-scrollbar-thumb {
    background: oklch(100% 0 0 / 0.1);
    border-radius: 4px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-radius: 12px;
    scroll-margin: 12px;
    position: relative;
    padding: 8px 10px;
    margin: 0 -10px;
    /* No overflow: hidden and no border-radius clipping — content (letters, prices)
       is never cropped, and the parent's vertical scroll works untouched. */
}

/* Premium "just-added" feedback — three layers painted on the surface only, no clipping.
   1. Glass refraction: 1px inner accent border + subtle top highlight
   2. Background pulse: rose tint fades in then out
   3. Light sweep: specular band travels across via background-position (no pseudo-element) */
.cart-item.just-added {
    background-image: linear-gradient(
        105deg,
        transparent 0%,
        transparent 32%,
        oklch(100% 0 0 / 0.05) 46%,
        oklch(100% 0 0 / 0.18) 50%,
        oklch(100% 0 0 / 0.05) 54%,
        transparent 68%,
        transparent 100%
    );
    background-size: 260% 100%;
    background-repeat: no-repeat;
    background-position: -30% 0;
    animation: cart-item-glass 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cart-item-glass {
    0% {
        background-color: oklch(62% 0.22 350 / 0.22);
        background-position: -30% 0;
        box-shadow:
            inset 0 0 0 1px oklch(62% 0.22 350 / 0.42),
            inset 0 1px 0 oklch(100% 0 0 / 0.06);
    }
    55% {
        background-color: oklch(62% 0.22 350 / 0.12);
        background-position: 130% 0;
        box-shadow:
            inset 0 0 0 1px oklch(62% 0.22 350 / 0.26),
            inset 0 1px 0 oklch(100% 0 0 / 0.03);
    }
    100% {
        background-color: transparent;
        background-position: 130% 0;
        box-shadow:
            inset 0 0 0 0 transparent,
            inset 0 0 0 0 transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-item.just-added {
        animation-duration: 0.6s;
        background-image: none;
    }
}

/* Desktop cart quantity controls — identical visuals to the product grid .qty-controls pill */
@media (min-width: 901px) {
    .cart-qty {
        gap: 0;
        background: oklch(12% 0.01 260 / 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 100px;
        padding: 4px 6px;
        border: 1px solid oklch(100% 0 0 / 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    .cart-qty-btn {
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 1rem;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-weight: 400;
        transition: all 0.2s;
        border-radius: 50%;
        padding: 0;
        line-height: 1;
    }
    .cart-qty-btn:hover {
        background: var(--accent-dim);
        color: var(--accent);
    }
    .cart-qty span {
        min-width: 20px;
        text-align: center;
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--white);
    }
}

/* Cart header "clear all" icon button — reveals only when cart has items */
.clear-cart-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s var(--ease-cinematic), background 0.2s var(--ease-cinematic), border-color 0.2s var(--ease-cinematic);
}
.clear-cart-btn.visible { display: inline-flex; }
.clear-cart-btn:hover {
    color: oklch(72% 0.17 25);
    background: oklch(72% 0.17 25 / 0.08);
    border-color: oklch(72% 0.17 25 / 0.18);
}
.clear-cart-btn:active { transform: scale(0.94); }
.clear-cart-btn svg { width: 16px; height: 16px; display: block; }

.cart-item-info {
    flex: 1;
    padding-right: 15px;
}

.cart-item-name {
    font-weight: 500;
    color: var(--white);
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-footer {
    border-top: 1px solid oklch(100% 0 0 / 0.05);
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.empty-cart-msg {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
    padding: 20px 0;
}

/* --- Qty Controls on Image --- */
.qty-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    background: oklch(12% 0.01 260 / 0.75);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 4px 6px;
    border: 1px solid oklch(100% 0 0 / 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 5;
    transition: var(--transition-hq);
    opacity: 0;
    transform: translateY(10px);
}

.card-image-wrap:hover .qty-controls, .qty-controls.active {
    opacity: 1;
    transform: translateY(0);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.2s;
    border-radius: 50%;
}

.qty-btn:hover {
    background: var(--accent-dim);
    color: var(--accent);
}

.qty-val {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
}
/* --- Vertical Layout & Responsive Extensions --- */

/* Desktop layout for carte */
.menu-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

@media (min-width: 901px) {
    .menu-layout {
        gap: 40px;
    }
    /* #menu-sections EST la grille continue (plus de sous-grilles par section) :
       colonnes resserrées, écart vertical modéré (ni en-têtes, ni gros espaces). */
    #menu-sections {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        column-gap: 14px;
        row-gap: 22px;
        align-items: start;
    }
    #menu-sections .bento-card-outer { grid-column: auto !important; }
    #menu-sections .card-image-wrap { margin-bottom: 14px; }
}

/* Groupe racine actif dans le menu latéral (piloté par le scrollspy) */
#menu-tabs .cat-node.active-group > .cat-toggle { color: var(--accent); }

/* Ancre invisible avant les produits de chaque feuille : sépare les groupes
   d'une rupture de ligne (grille) ou d'un simple gap (flex mobile), SANS en-tête. */
.cat-anchor { grid-column: 1 / -1; height: 0; margin: 0; padding: 0; }

/* Nom de la racine active dans la navbar (mobile), fade-up à chaque changement de racine. */
.nav-carte-label { overflow: hidden; }
.nav-carte-rootname { display: inline-block; animation: rootFadeUp 0.4s cubic-bezier(.22,.9,.28,1) both; }
@keyframes rootFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --- Barre de chips (mobile) : L2 pilule blanche épinglée quand actif, L3 souligné --- */
.carte-chipbar { display: none; }
.carte-panel-grid { display: none; }   /* grille-image racines : panneau mobile uniquement */
.carte-panel-head { display: none; }   /* barre titre + bouton fermer : panneau mobile uniquement */
@keyframes dockIn { from { opacity: 0.3; transform: translateX(-7px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .carte-chipbar {
        display: flex;
        align-items: center;
        height: 62px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        position: sticky;
        top: var(--carte-nav-h, 68px);   /* collée sous la navbar, hauteur réelle (JS) */
        z-index: 50;
        width: 100vw;                     /* pleine largeur écran : sort du padding du .container */
        margin-left: calc(50% - 50vw);
        background: var(--zinc-900);
        border-bottom: 1px solid oklch(100% 0 0 / 0.06);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .carte-chipbar::-webkit-scrollbar { display: none; }

    .carte-chip {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        height: 40px;
        padding: 0 14px;
        border: none;
        background: transparent;
        font-family: 'Cabinet Grotesk', system-ui, sans-serif;
        font-size: 0.86rem;
        font-weight: 500;
        white-space: nowrap;
        cursor: pointer;
        color: oklch(100% 0 0 / 0.44);
    }
    .carte-chip:active { transform: scale(0.96); }

    /* L3 : texte silencieux + soulignement accent qui se déploie (validé) */
    .carte-chip.l3 { position: relative; }
    .carte-chip.l3::after {
        content: "";
        position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
        border-radius: 999px; background: var(--accent);
        transform: scaleX(0); transform-origin: left center;
        transition: transform 0.5s var(--spring), box-shadow 0.5s var(--spring);
    }
    .carte-chip.l3.active { color: oklch(100% 0 0 / 0.95); }
    .carte-chip.l3.active::after { transform: scaleX(1); box-shadow: 0 2px 10px oklch(62% 0.22 350 / 0.55); }

    /* Doublon d'affichage (L3 qui reprend le nom du L2/racine) : masqué au repos,
       révélé UNIQUEMENT quand son L2 est épinglé à gauche (classe .dup-show posée en JS). */
    .carte-chip.l3.dup:not(.dup-show) { display: none; }

    /* L2 : inactif = se comporte comme un L3 (texte) ; actif = pilule BLANCHE épinglée
       à gauche, texte zinc-900, AUCUNE ombre, avec l'animation de dock. */
    .carte-chip.l2 {
        border-radius: 999px;
        background: oklch(100% 0 0 / 0);
        transition: background-color 0.4s var(--spring), color 0.4s var(--spring), padding 0.4s var(--spring);
    }
    .carte-chip.l2.active {
        position: sticky; left: 0; z-index: 3;
        padding: 0 16px;
        background: var(--white);
        color: var(--zinc-950);
        box-shadow: none;
        font-weight: 800;
    }
    .carte-chip.l2.active .in { display: inline-block; animation: dockIn 0.45s var(--spring); }
}

/* Vertical Sidebar */
.menu-sidebar {
    position: sticky;
    top: 120px;
    height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.menu-sidebar::-webkit-scrollbar { display: none; }

.menu-tabs.vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
    align-items: flex-start;
}

/* --- Accordéon catégories (vitrine) : racines + déroulé hover/tap, sans chevron --- */
.menu-tabs.vertical .cat-node {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
.cat-children {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    padding-left: 16px;
    width: 100%;
    border-left: 1px solid oklch(100% 0 0 / 0.08);
}
/* Ouverture au CLIC uniquement (classe .open posée par le JS) — un seul frère
   ouvert par niveau : onCatSelect referme tout puis ré-ouvre la branche active. */
.cat-node.open > .cat-children { display: flex; }

.subcat-btn {
    background: transparent;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    line-height: 1.3;
    transition: color 0.2s ease, transform 0.2s ease;
}
.subcat-btn:hover { color: var(--white); }
.subcat-btn.active { color: var(--white); transform: translateX(6px); }
.subcat-btn.active::before { content: '→'; margin-right: 8px; color: var(--accent); }

/* En-têtes de sous-groupe (catégories qui ont des enfants) : label affirmé */
.cat-node.has-children:not([data-depth="0"]) > .subcat-btn {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 700;
    color: color-mix(in oklab, var(--text-secondary), var(--white) 18%);
}
/* Feuilles sélectionnables */
.cat-node:not(.has-children) > .subcat-btn { font-size: 0.95rem; }

/* Mobile Trigger Hidden on Desktop */
.mobile-category-trigger {
    display: none;
    background: oklch(12% 0.01 260 / 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid oklch(100% 0 0 / 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    align-items: center;
    justify-content: space-between;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 90;
}

.hamburger-icon { color: var(--accent); font-size: 1.5rem; }

/* Responsive Overrides */
@media (max-width: 900px) {
    .menu-layout {
        display: block;
    }

    /* Legacy inline trigger — replaced by the navbar hamburger in carte mode */
    .mobile-category-trigger {
        display: none !important;
    }

    .menu-sidebar {
        position: fixed;
        /* Plein écran total : recouvre le header, 2% de marge sur les 4 côtés.
           Le bouton de fermeture (croix) est DANS le panneau (barre sticky en haut). */
        top: 2%;
        left: 2%;
        right: 2%;
        bottom: 2%;
        background: var(--zinc-950);
        border: 1px solid oklch(100% 0 0 / 0.1);
        border-radius: 20px;
        z-index: 1100; /* AU-DESSUS de la nav (z:1000) : le panneau recouvre le header */
        height: auto;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0; /* le header et la grille portent leur propre padding */
        box-shadow: 0 40px 60px rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px) scale(0.97);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    .menu-sidebar.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    /* Barre titre + croix de fermeture, collée en haut du panneau pendant le scroll */
    .menu-sidebar .carte-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 16px 16px 12px;
        background: var(--zinc-950);
        border-bottom: 1px solid oklch(100% 0 0 / 0.06);
        border-radius: 20px 20px 0 0;
    }
    .carte-panel-title {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: oklch(100% 0 0 / 0.55);
    }
    .carte-panel-close {
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid oklch(100% 0 0 / 0.12);
        background: oklch(100% 0 0 / 0.04);
        color: var(--white);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), background 0.2s ease;
    }
    .carte-panel-close:hover { background: oklch(100% 0 0 / 0.1); }
    .carte-panel-close:active { transform: scale(0.9); }
    .carte-panel-close svg { width: 18px; height: 18px; display: block; }
    /* Panneau mobile = grille de cartes-image des racines ; l'arbre texte est masqué */
    .menu-sidebar #menu-tabs { display: none; }
    .menu-sidebar .carte-panel-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 14px 16px 18px;
    }
    .carte-panel-card {
        position: relative;
        aspect-ratio: 4 / 3;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid oklch(100% 0 0 / 0.08);
        padding: 0;
        background: oklch(100% 0 0 / 0.04);
        cursor: pointer;
        font-family: inherit;
    }
    .carte-panel-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .carte-panel-card .carte-panel-name {
        position: absolute;
        left: 0; right: 0; bottom: 0;
        padding: 22px 10px 10px;
        background: linear-gradient(transparent, oklch(0% 0 0 / 0.75));
        color: var(--white);
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-align: left;
    }
    .carte-panel-card.no-img .carte-panel-name {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 10px;
        background: none;
    }
    /* Mobile List View for Products */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .bento-card-outer {
        display: flex !important; /* Override inline styles */
        flex-direction: row;
        align-items: center;
        padding: 15px;
        height: auto;
        position: relative;
        padding-right: 75px; /* reserve space for right-aligned add button */
    }

    .card-image-wrap {
        width: 90px;
        height: 90px;
        aspect-ratio: auto;
        margin-bottom: 0;
        flex-shrink: 0;
        border-radius: 12px;
        position: static; /* Let .qty-controls use .bento-card-outer as positioning context */
        overflow: visible; /* Prevent clipping of the + button placed to the right of the card */
    }
    .card-image-wrap img {
        border-radius: 12px; /* Re-apply clipping on the image itself since wrap no longer hides overflow */
    }

    .card-label {
        padding-left: 15px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 0;
        min-width: 0;
    }

    .card-label h3 { font-size: 1rem; margin-bottom: 5px; }
    .card-label span { font-size: 0.9rem; }

    /* Mobile: qty controls pulled out of image overlay to the right edge of the card */
    .qty-controls {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        gap: 2px;
    }
    /* qty = 0 → show a single prominent + button */
    .qty-controls:not(.active) .qty-btn.minus,
    .qty-controls:not(.active) .qty-val { display: none; }
    .qty-controls:not(.active) .qty-btn.plus {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--accent);
        color: var(--white);
        font-size: 1.6rem;
        font-weight: 500;
        border: none;
        box-shadow: 0 8px 18px -4px oklch(62% 0.22 350 / 0.45);
        transition: transform 0.2s var(--ease-cinematic), background 0.2s var(--ease-cinematic);
    }
    .qty-controls:not(.active) .qty-btn.plus:active {
        transform: scale(0.92);
    }
    /* qty > 0 → compact −/qty/+ pill */
    .qty-controls.active {
        background: oklch(12% 0.01 260 / 0.95);
        border: 1px solid oklch(100% 0 0 / 0.12);
        backdrop-filter: blur(10px);
        border-radius: 100px;
        padding: 4px 4px;
        gap: 0;
    }
    .qty-controls.active .qty-btn {
        width: 32px;
        height: 32px;
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 1.05rem;
    }
    .qty-controls.active .qty-btn:hover {
        background: var(--accent-dim);
        color: var(--accent);
    }
    .qty-controls.active .qty-val {
        min-width: 22px;
        font-size: 0.9rem;
    }

    /* Bento Title Fix */
    .bento-section-title {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .bento-section-title h2 {
        font-size: 2.2rem !important;
        grid-column: auto !important;
    }
    
    .bento-section-title p {
        grid-column: auto !important;
        padding-bottom: 0 !important;
        max-width: 100% !important;
    }
}
/* --- Advanced Responsive & Bug Fixes --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

/* Left column — flex column anchored to card height for composed bottom alignment */
.contact-left {
    display: flex;
    flex-direction: column;
    min-height: 500px; /* mirrors .contact-card height */
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    height: 500px;
    padding: 40px;
    border-radius: var(--radius-luxe);
    background: var(--zinc-900);
    border: 1px solid oklch(100% 0 0 / 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hide Main Nav when Mobile Menu is Open */
.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Price positioning and Product List view refinement */
.product-row-clickable {
    cursor: pointer;
}

/* ============================================================
   Contact — clickable info tiles (adresse / téléphone) + secondary order channels
   ============================================================ */

/* Clickable address & phone — tactile link with sliding arrow */
.contact-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    position: relative;
    padding: 2px 0;
    transition: color 0.3s var(--ease-cinematic);
    line-height: 1.6;
}
.contact-link .contact-link-text {
    position: relative;
}
.contact-link .contact-link-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-cinematic);
}
.contact-link:hover {
    color: var(--accent);
}
.contact-link:hover .contact-link-text::after {
    transform: scaleX(1);
}
.contact-link-arrow {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 6px;
    transition: transform 0.4s var(--ease-cinematic), color 0.3s var(--ease-cinematic);
}
.contact-link:hover .contact-link-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}

/* Info grid — row 1: HORAIRES + TÉLÉPHONE (2 cols), row 2: ADRESSE (full width) */
.contact-info-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 24px !important;
}
.contact-info-address {
    grid-column: 1 / -1;
}
.contact-address-sep {
    color: var(--text-secondary);
    opacity: 0.4;
    font-weight: 600;
    margin: 0 2px;
}

/* Secondary action buttons */
.contact-actions {
    margin-top: auto;                              /* pushes to bottom of flex parent */
    padding-top: 32px;                             /* breathing room above hairline */
    border-top: 1px solid oklch(100% 0 0 / 0.08);  /* editorial "logic grouping via border-t" */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--white);
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 12px 28px -18px rgba(0, 0, 0, 0.5);
    transition:
        background 0.35s var(--ease-cinematic),
        border-color 0.35s var(--ease-cinematic),
        transform 0.35s var(--ease-cinematic),
        box-shadow 0.35s var(--ease-cinematic);
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.contact-action-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 18px 34px -18px rgba(0, 0, 0, 0.6);
}
.contact-action-btn:active {
    transform: translateY(0) scale(0.99);
}

.contact-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.contact-action-icon svg { width: 20px; height: 20px; }

.contact-action-btn[data-brand="uber"] .contact-action-icon {
    background: #000000;
    color: #06C167; /* Uber Eats green */
}
.contact-action-btn[data-brand="whatsapp"] .contact-action-icon {
    background: #25D366;
    color: #ffffff;
}

.contact-action-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 2px;
}
.contact-action-eyebrow {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: 'Satoshi', sans-serif;
}
.contact-action-brand {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
}

.contact-action-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-cinematic), color 0.35s var(--ease-cinematic);
}
.contact-action-btn:hover .contact-action-arrow {
    transform: translateX(4px);
    color: var(--white);
}

/* Brand-tinted hover accents */
.contact-action-btn[data-brand="uber"]:hover {
    border-color: rgba(6, 193, 103, 0.3);
    background: linear-gradient(135deg, rgba(6, 193, 103, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
}
.contact-action-btn[data-brand="whatsapp"]:hover {
    border-color: rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
}

@media (max-width: 900px) {
    .contact-info-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .contact-actions { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; padding-top: 28px; }
}

@media (max-width: 900px) {
    .contact-left {
        min-height: unset;
        display: block;
    }
    /* Reviews card first, "Venez nous voir" second */
    .contact-grid > :nth-child(1) { order: 2; transition-delay: 0.2s !important; }
    .contact-grid > :nth-child(2) { order: 1; transition-delay: 0s !important; }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        height: auto;
        gap: 30px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Make description above price */
    .card-label {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: center;
        gap: 5px;
    }
    
    .card-label > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }
    
    .card-label h3 {
        margin-bottom: 2px !important;
    }
    
    .carte-title {
        display: none; /* Already explicit in the mobile trigger */
    }
}

/* --- Sentinel Bumper --- */
.scroll-sentinel {
    grid-column: 1 / -1; /* spans full width on grid */
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.spinner-dot {
    width: 30px;
    height: 30px;
    border: 3px solid oklch(100% 0 0 / 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- Mobile Cart FAB --- */
.close-cart-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: color 0.2s var(--ease-cinematic), background 0.2s var(--ease-cinematic);
}
.close-cart-btn:hover { color: var(--white); background: oklch(100% 0 0 / 0.06); }
.close-cart-btn svg { width: 28px; height: 28px; display: block; }
.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: oklch(12% 0.01 260 / 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid oklch(100% 0 0 / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 1015;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    cursor: pointer;
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.cart-fab.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    transition: var(--transition-hq);
}
.cart-fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Cabinet Grotesk', sans-serif;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
    /* Mobile cart panel */
    .floating-cart {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 30px 20px;
        z-index: 1030;
    }
    /* Larger quantity buttons inside cart on mobile */
    .cart-qty .cart-qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        background: var(--zinc-900);
        border: 1px solid oklch(100% 0 0 / 0.1);
        border-radius: 50%;
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cart-qty span {
        font-size: 1.1rem;
        font-weight: 700;
        min-width: 24px;
        text-align: center;
    }
}

/* ================================================================
   REVIEWS CAROUSEL — Google reviews, vertical notification stack
   ================================================================ */
.reviews-card {
    padding: 36px 32px !important;
    gap: 20px;
    overflow: hidden;
    position: relative;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
}

.reviews-title-wrap { min-width: 0; flex: 1; }

.reviews-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-family: 'Satoshi', sans-serif;
}
.reviews-google { width: 13px; height: 13px; flex-shrink: 0; }

.reviews-title {
    font-size: 1.7rem;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--white);
}

.reviews-rating {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 85px;
}
.reviews-rating-num {
    font-size: 2.3rem;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--white);
}
.reviews-stars {
    display: inline-flex;
    gap: 2px;
}
.reviews-stars svg { width: 13px; height: 13px; }
.reviews-stars svg.star-filled { fill: oklch(82% 0.16 85); }
.reviews-stars svg.star-empty { fill: oklch(100% 0 0 / 0.18); }
.reviews-count {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
    font-family: 'Satoshi', sans-serif;
}

/* Viewport — fixed height with feathered fade top/bottom via pseudo-overlays
   (mask-image is avoided here because it can disable backdrop-filter on children
    in some browsers) */
.reviews-stack {
    position: relative;
    flex: 1;
    min-height: 250px;
    max-height: 310px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.45s;
}
.reviews-stack::before,
.reviews-stack::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 42px;
    pointer-events: none;
    z-index: 5;
}
.reviews-stack::before {
    top: 0;
    background: linear-gradient(to bottom, var(--zinc-900) 0%, oklch(18% 0.01 260 / 0.6) 50%, transparent 100%);
}
.reviews-stack::after {
    bottom: 0;
    background: linear-gradient(to top, var(--zinc-900) 0%, oklch(18% 0.01 260 / 0.6) 50%, transparent 100%);
}
[data-reveal].revealed .reviews-stack {
    opacity: 1;
    transform: translateY(0);
}

.reviews-track {
    display: flex;
    flex-direction: column;
    gap: 12px;
    will-change: transform;
    /* Transition applied by JS for step-based spring motion */
}

/* Glass card — translucent white over dark, heavy backdrop blur, inner refraction */
.review-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(1.7) brightness(1.05);
    -webkit-backdrop-filter: blur(22px) saturate(1.7) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.04),
        0 14px 30px -18px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

/* Mid-cycle states — applied while the track translates for layered motion */
.review-card.is-exit {
    opacity: 0;
    transform: translateY(-14px) scale(0.94);
    filter: blur(3px);
}
.review-card.is-enter {
    animation: review-card-enter 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes review-card-enter {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.92);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Initial cascade on section reveal */
.review-card.entering-initial {
    animation: review-card-enter-initial 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes review-card-enter-initial {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.9);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.review-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, oklch(62% 0.22 350), oklch(54% 0.2 350));
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.review-avatar-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    color: #fff;
    z-index: 1;
}
.review-avatar img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.review-author {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
    flex: 1;
}
.review-name {
    font-weight: 700;
    color: oklch(97% 0 0);
    font-size: 0.88rem;
    line-height: 1.15;
    font-family: 'Satoshi', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.005em;
}
.review-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
    color: oklch(78% 0.008 260);
    font-family: 'Satoshi', sans-serif;
}
.review-stars { display: inline-flex; gap: 1px; }
.review-stars svg { width: 11px; height: 11px; }
.review-stars svg.star-filled { fill: oklch(85% 0.16 85); }
.review-stars svg.star-empty { fill: rgba(255, 255, 255, 0.22); }
.review-dot { opacity: 0.5; font-weight: 700; }
.review-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: oklch(92% 0.005 260);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 0.005em;
}

/* Skeleton — glass variant */
.review-skeleton {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.review-skeleton .skel {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
    animation: skel-shimmer 1.6s linear infinite;
    border-radius: 6px;
}
.skel-avatar { width: 32px; height: 32px; border-radius: 50%; }
.skel-title { width: 110px; height: 10px; margin-top: 2px; }
.skel-line { width: 100%; height: 8px; }
.skel-line.short { width: 60%; }
@keyframes skel-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Staggered reveal of the header when section enters view */
[data-reveal].revealed .reviews-eyebrow,
[data-reveal].revealed .reviews-title,
[data-reveal].revealed .reviews-rating {
    animation: reviews-fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
[data-reveal].revealed .reviews-eyebrow { animation-delay: 0.1s; }
[data-reveal].revealed .reviews-title { animation-delay: 0.22s; }
[data-reveal].revealed .reviews-rating { animation-delay: 0.34s; }
@keyframes reviews-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stars in overall rating pop one by one (spring-like overshoot) */
.reviews-stars svg {
    opacity: 0;
    transform: scale(0.3);
    animation: star-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.reviews-stars svg:nth-child(1) { animation-delay: 0.55s; }
.reviews-stars svg:nth-child(2) { animation-delay: 0.63s; }
.reviews-stars svg:nth-child(3) { animation-delay: 0.71s; }
.reviews-stars svg:nth-child(4) { animation-delay: 0.79s; }
.reviews-stars svg:nth-child(5) { animation-delay: 0.87s; }
@keyframes star-pop {
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .review-card,
    .review-card.entering-initial,
    .review-card.is-enter {
        animation: none !important;
        transition-duration: 0.25s;
    }
    [data-reveal].revealed .reviews-eyebrow,
    [data-reveal].revealed .reviews-title,
    [data-reveal].revealed .reviews-rating,
    .reviews-stars svg {
        animation-duration: 0.3s;
        animation-delay: 0s !important;
    }
}

@media (max-width: 900px) {
    .reviews-card { padding: 28px 24px !important; gap: 18px; }
    .reviews-title { font-size: 1.4rem; }
    .reviews-rating-num { font-size: 1.9rem; }
    .reviews-stack { min-height: 270px; max-height: 350px; }
    .review-card { padding: 12px 14px; }
    .review-text { -webkit-line-clamp: 3; line-clamp: 3; }
}

/* ============================================================
   Tablet portrait (768–1024px, orientation: portrait) — composition tuned
   1. Product grid auto-calculates columns via auto-fill minmax
   2. Qty controls (+/-) always visible as pill overlay on images
   3. Bento "L'Excellence Signature": card 1 (INCONTOURNABLE) full-width top,
      cards 2 & 3 (ÉLÉGANCE + ATMOSPHÈRE) side-by-side at the bottom
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

    /* --- 1. Product grid — auto-fit based on viewport ----------------- */
    #menu-sections {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 24px !important;
    }
    #menu-sections .bento-card-outer {
        display: flex !important;
        flex-direction: column !important;
        grid-column: span 1 !important;
        padding: 0 !important;
        align-items: stretch !important;
        height: auto !important;
    }
    #menu-sections .card-image-wrap {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        margin-bottom: 16px !important;
        position: relative !important;
        overflow: hidden !important;
        border-radius: var(--radius-luxe) !important;
    }
    #menu-sections .card-label {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    #menu-sections .card-label > div {
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 10px !important;
    }
    #menu-sections .card-label h3 {
        font-size: 1rem !important;
        margin: 0 !important;
    }

    /* --- 2. Qty controls always visible as pill overlay --------------- */
    #menu-sections .qty-controls {
        position: absolute !important;
        bottom: 12px !important;
        right: 12px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        display: flex !important;
        align-items: center !important;
        background: oklch(12% 0.01 260 / 0.85) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid oklch(100% 0 0 / 0.12) !important;
        border-radius: 100px !important;
        padding: 4px 6px !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
        gap: 0 !important;
    }
    /* Force show all qty-control children regardless of .active state */
    #menu-sections .qty-controls .qty-btn.minus,
    #menu-sections .qty-controls .qty-val,
    #menu-sections .qty-controls .qty-btn.plus {
        display: flex !important;
    }
    #menu-sections .qty-controls .qty-btn {
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
        border-radius: 50% !important;
        box-shadow: none !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #menu-sections .qty-controls .qty-btn:hover {
        background: var(--accent-dim) !important;
        color: var(--accent) !important;
    }
    #menu-sections .qty-val {
        color: #fff !important;
        min-width: 22px !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    /* --- 3. Bento "L'Excellence Signature" reflow --------------------- */
    #experience .bento-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-auto-rows: auto !important;
        gap: 24px !important;
    }
    #experience .bento-card-outer {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        align-items: stretch !important;
        height: auto !important;
    }
    /* Card 1 — L'INCONTOURNABLE: full width, top */
    #experience .bento-card-outer:nth-child(1) {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
    #experience .bento-card-outer:nth-child(1) .card-image-wrap {
        aspect-ratio: 16 / 10 !important;
    }
    /* Cards 2 & 3 — ÉLÉGANCE + ATMOSPHÈRE: side-by-side, bottom */
    #experience .bento-card-outer:nth-child(2),
    #experience .bento-card-outer:nth-child(3) {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }
    #experience .bento-card-outer:nth-child(2) .card-image-wrap,
    #experience .bento-card-outer:nth-child(3) .card-image-wrap {
        aspect-ratio: 4 / 5 !important;
    }
    #experience .card-image-wrap {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 16px !important;
    }
    #experience .card-label {
        padding-left: 12px !important;
    }
    #experience .card-label > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
}

/* Touch devices — ensure qty controls always visible on any no-hover device
   (covers tablets regardless of orientation, not just portrait) */
@media (hover: none) {
    .qty-controls {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* ===================================================
   Pre-checkout modal — SUSHITO Editorial Luxury
   Matches the site's OKLCH/cinematic design language.
   =================================================== */
.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.checkout-modal.open { display: flex; }
body.modal-open { overflow: hidden; }

.checkout-modal-backdrop {
    position: absolute;
    inset: 0;
    background: oklch(8% 0.01 260 / 0.78);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    animation: coBackdropIn 0.6s var(--ease-cinematic);
}
@keyframes coBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Double-bezel architecture: outer shell carries hairline + ambient glow */
.checkout-modal-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: oklch(100% 0 0 / 0.03);
    border: 1px solid oklch(100% 0 0 / 0.06);
    border-radius: var(--radius-luxe);
    padding: 6px;
    box-shadow:
        0 60px 120px -30px rgba(0, 0, 0, 0.7),
        0 0 0 1px oklch(62% 0.22 350 / 0.04);
    max-height: calc(100dvh - 64px);
    overflow: hidden;
    color: var(--text-primary);
    font-family: 'Satoshi', sans-serif;
    animation: coCardIn 0.85s var(--ease-cinematic);
    will-change: transform, opacity;
}
@keyframes coCardIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Inner core: actual content surface */
.checkout-modal-inner {
    background: oklch(12% 0.01 260);
    border-radius: calc(var(--radius-luxe) - 0.375rem);
    padding: 44px 44px 36px;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.04);
    position: relative;
}
.checkout-modal-inner::-webkit-scrollbar { width: 4px; }
.checkout-modal-inner::-webkit-scrollbar-thumb {
    background: oklch(100% 0 0 / 0.08);
    border-radius: 4px;
}

.checkout-modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    background: oklch(100% 0 0 / 0.04);
    border: 1px solid oklch(100% 0 0 / 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-hq);
    z-index: 2;
}
.checkout-modal-close:hover {
    background: oklch(100% 0 0 / 0.08);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}
.checkout-modal-close:active { transform: scale(0.94); }
.checkout-modal-close svg { width: 14px; height: 14px; }

.checkout-modal-head { margin-bottom: 18px; padding-right: 56px; }
/* Étapes 2 et 3 : pas de hero, contenu qui remonte */
#checkout-modal[data-step="2"] .checkout-modal-head,
#checkout-modal[data-step="3"] .checkout-modal-head { display: none; }
#checkout-modal[data-step="2"] .checkout-modal-inner,
#checkout-modal[data-step="3"] .checkout-modal-inner { padding-top: 26px; }
.checkout-modal-eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid oklch(62% 0.22 350 / 0.25);
    border-radius: 100px;
    background: oklch(62% 0.22 350 / 0.08);
}
.checkout-modal-head h2 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.95;
    margin: 0 0 14px;
}
.checkout-modal-head h2 .accent-glyph { color: var(--accent); }
.checkout-modal-sub {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.55;
    max-width: 38ch;
}

/* Segment switcher — physical toggle with active marker */
.checkout-segments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 12px;
    background: oklch(100% 0 0 / 0.03);
    padding: 4px;
    border: 1px solid oklch(100% 0 0 / 0.06);
    border-radius: 999px;
    position: relative;
}
.checkout-segment {
    position: relative;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 999px;
    transition: var(--transition-hq);
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: center;
    align-items: center;
    z-index: 1;
}
.checkout-segment input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.checkout-segment.is-selected {
    background: oklch(100% 0 0 / 0.12);
    box-shadow:
        inset 0 1px 0 oklch(100% 0 0 / 0.08),
        0 6px 16px -8px rgba(0,0,0,0.5);
}
.checkout-segment-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    transition: color 0.5s var(--ease-cinematic);
}
.checkout-segment.is-selected .checkout-segment-title { color: var(--white); }
.checkout-segment-sub {
    font-size: 0.62rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.65;
}
.checkout-segment.is-selected .checkout-segment-sub {
    color: var(--accent);
    opacity: 1;
}
/* Livraison indisponible : bouton estompé mais toujours cliquable (montre le bloc info) */
.checkout-segment.is-disabled .checkout-segment-title,
.checkout-segment.is-disabled .checkout-segment-sub { opacity: .55; }
/* Même identité que le rappel « service fermé » (bannière accent rose) */
.co-delivery-off {
    margin: 10px 0 14px; padding: 14px 18px; border-radius: 14px;
    background: oklch(62% 0.22 350 / 0.08);
    border: 1px solid oklch(62% 0.22 350 / 0.25);
    color: var(--accent); font-size: 0.9rem; line-height: 1.45;
}
.co-delivery-off[hidden] { display: none; }
.co-delivery-off .co-off-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
/* Chaque bouton remplit la ligne et se partage l'espace ; passe à la ligne s'il y en a trop. */
.co-delivery-off .co-off-links a {
    flex: 1 1 140px; min-width: 140px; justify-content: center;
    display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px;
    border-radius: 12px; border: 1px solid oklch(62% 0.22 350 / 0.4);
    color: var(--white); background: oklch(62% 0.22 350 / 0.12);
    text-decoration: none; font-weight: 600;
}
/* Bouton « repli » : revenir au mode À emporter depuis le bloc livraison indisponible. */
.co-delivery-off .co-off-pickup {
    margin-top: 12px; width: 100%; min-height: 48px; padding: 12px 18px;
    border-radius: 12px; border: 1px solid transparent;
    background: var(--accent); color: #fff; font-family: inherit; font-weight: 700;
    font-size: 0.92rem; cursor: pointer; transition: var(--transition-hq);
}
.co-delivery-off .co-off-pickup:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* --- Drawer commande multi-étapes --- */
/* Annule le padding global `section { padding:160px 0 }` hérité par les <section> d'étape */
.checkout-step { display: block; padding: 0; }
.checkout-step[hidden] { display: none; }
.checkout-when { margin-top: 12px; }

/* Créneau : deux listes déroulantes simples côte à côte (jour + heure) */
.co-slot-picker { margin-top: 4px; margin-bottom: 14px; display: flex; gap: 10px; }
.co-slot-picker[hidden] { display: none; }
.co-slot-select {
    flex: 1; min-width: 0; min-height: 52px; padding: 12px 34px 12px 14px;
    border-radius: 12px; border: 1px solid oklch(100% 0 0 / 0.14);
    background-color: oklch(100% 0 0 / 0.03); color: inherit; font: inherit;
    font-variant-numeric: tabular-nums; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center;
}
.co-slot-select:focus { outline: none; border-color: var(--accent); }
.co-slot-select option { color: #111; }
.co-slot-select:disabled { opacity: .5; cursor: default; }

/* Erreurs par champ */
.co-field-error { margin: 6px 0 0; font-size: .82rem; color: #ff5a5a; }
.co-field-error[hidden] { display: none; }
.checkout-field input.is-error,
.checkout-field textarea.is-error { border-color: #ff5a5a; }

/* Masque le hero à l'étape paiement */
#checkout-modal.is-pay-step .checkout-modal-head { display: none; }

/* Fields — minimal hairline inputs aligned with the site */
.checkout-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
    margin-bottom: 24px;
}
.checkout-field-full { grid-column: 1 / -1; }
.checkout-field { display: flex; flex-direction: column; position: relative; }
.checkout-field label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 10px;
}
.checkout-optional {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.55;
    margin-left: 6px;
}
.checkout-field input,
.checkout-field textarea {
    width: 100%;
    padding: 16px 18px;
    background: oklch(100% 0 0 / 0.025);
    border: 1px solid oklch(100% 0 0 / 0.07);
    color: var(--text-primary);
    border-radius: 16px;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: var(--transition-hq);
    box-sizing: border-box;
}
.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
    color: oklch(60% 0.01 260);
    opacity: 1;
}
.checkout-field input:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: oklch(100% 0 0 / 0.045);
    box-shadow:
        0 0 0 4px oklch(62% 0.22 350 / 0.10),
        inset 0 1px 0 oklch(100% 0 0 / 0.04);
}
.checkout-field textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
}

/* Address autocomplete dropdown */
.checkout-address-wrap {
    position: relative;
    overflow: visible;
}
.checkout-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: oklch(14% 0.01 260);
    border: 1px solid oklch(100% 0 0 / 0.08);
    border-radius: 16px;
    overflow: hidden;
    max-height: 280px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 24px 48px -16px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease-cinematic), transform 0.4s var(--ease-cinematic);
}
.checkout-suggestions.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.checkout-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.25s var(--ease-cinematic);
    border-bottom: 1px solid oklch(100% 0 0 / 0.04);
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.checkout-suggestion:last-child { border-bottom: none; }
.checkout-suggestion:hover,
.checkout-suggestion.is-focused {
    background: oklch(100% 0 0 / 0.05);
    color: var(--white);
}
.checkout-suggestion-pin {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 100px;
    background: oklch(62% 0.22 350 / 0.12);
    border: 1px solid oklch(62% 0.22 350 / 0.25);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.checkout-suggestion-pin svg { width: 12px; height: 12px; }
.checkout-suggestion-main {
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}
.checkout-suggestion-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.checkout-suggestion-text { min-width: 0; flex: 1; }
.checkout-suggestion-loader {
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-suggestion-loader::before {
    content: '';
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid oklch(100% 0 0 / 0.15);
    border-top-color: var(--accent);
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Smooth height transition for the address row.
   During the animation, we keep overflow:hidden so the content slides cleanly.
   Once expanded, we flip to overflow:visible so the autocomplete dropdown
   (absolutely positioned below the input) can extend past the row's bottom. */
.checkout-address-row {
    grid-column: 1 / -1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.7s var(--ease-cinematic), opacity 0.5s var(--ease-cinematic);
}
.checkout-address-row.is-visible {
    max-height: 800px;
    opacity: 1;
    /* Espace sous le bloc adresse (champ + message zone) avant le récap ou le bouton.
       Uniquement en mode visible : à l'état replié (pickup) la marge créerait un vide. */
    margin-bottom: 18px;
}
.checkout-address-row.is-visible-final {
    overflow: visible;
}

/* Summary surface */
.checkout-summary {
    background: oklch(100% 0 0 / 0.025);
    border: 1px solid oklch(100% 0 0 / 0.06);
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.checkout-summary[hidden] { display: none; }
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.checkout-summary-row-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    font-weight: 700;
}
.checkout-summary-row-value {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.checkout-summary-row-value .currency { color: var(--accent); }

.checkout-error {
    background: oklch(60% 0.18 25 / 0.12);
    color: oklch(75% 0.18 25);
    border: 1px solid oklch(60% 0.18 25 / 0.3);
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Button: matches the site's white pill CTA exactly */
.checkout-submit[hidden] { display: none !important; }
.checkout-submit {
    width: 100%;
    padding: 22px 32px !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-align: center;
    justify-content: center;
    display: flex !important;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.checkout-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.checkout-submit-arrow {
    width: 32px;
    height: 32px;
    border-radius: 100px;
    background: oklch(12% 0.01 260 / 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-hq);
}
.checkout-submit-arrow svg { width: 13px; height: 13px; transition: var(--transition-hq); }
.checkout-submit:hover .checkout-submit-arrow {
    background: var(--accent);
    color: var(--white);
    transform: translateX(2px) translateY(-1px) scale(1.08);
}

.checkout-disclaimer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin: 18px 0 0;
    line-height: 1.6;
    letter-spacing: 0.03em;
    opacity: 0.7;
}

/* --- Récap : lignes secondaires (sous-total, livraison) plus discrètes --- */
.checkout-summary-sub .checkout-summary-row-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- Détection de zone de livraison (sous le champ adresse) --- */
/* Encart accent (même style que le message « livraison indisponible »). Masqué quand
   l'adresse est valide (le récap prend alors le relais). */
.checkout-zone-info {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: oklch(62% 0.22 350 / 0.08);
    border: 1px solid oklch(62% 0.22 350 / 0.25);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
}
.checkout-zone-info[hidden] { display: none; }

/* --- Choix Carnon / Mauguio ville (commune ambiguë) --- */
/* Encart accent (même style que le message « livraison indisponible »). */
.checkout-zone-choice {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid oklch(62% 0.22 350 / 0.25);
    background: oklch(62% 0.22 350 / 0.08);
    border-radius: 14px;
}
.checkout-zone-choice-q {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.4;
}
.checkout-zone-choice-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.checkout-zone-choice-btns button {
    flex: 1 1 0;
    min-width: 120px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid oklch(62% 0.22 350 / 0.4);
    background: oklch(62% 0.22 350 / 0.12);
    color: var(--white);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-hq);
}
.checkout-zone-choice-btns button:hover {
    border-color: var(--accent);
    background: oklch(62% 0.22 350 / 0.22);
    transform: translateY(-1px);
}

/* --- Statut neutre de l'étape paiement (3-D Secure, traitement, succès) --- */
.checkout-pay-status {
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    background: oklch(100% 0 0 / 0.04);
    border: 1px solid oklch(100% 0 0 / 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Étape 2 : paiement carte intégré (widget SumUp) --- */
.checkout-pay { animation: coPayIn 0.6s var(--ease-cinematic); }
@keyframes coPayIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.checkout-pay-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    transition: color 0.3s var(--ease-cinematic);
}
.checkout-pay-back:hover { color: var(--white); }
.checkout-pay-head { margin-bottom: 22px; }
.checkout-pay-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 6px 0 10px;
    color: var(--white);
}
.checkout-pay-amount-line {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.checkout-pay-amount-line strong {
    color: var(--white);
    font-variant-numeric: tabular-nums;
}
.co-promo-note { font-size: 0.85rem; opacity: 0.8; margin-top: 6px; }
/* Le widget SumUp rend ses propres champs (texte sombre) → fond clair pour la lisibilité */
.checkout-sumup-card {
    background: var(--white);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    min-height: 120px;
}

@media (max-width: 640px) {
    .checkout-modal { padding: 0; align-items: flex-end; }
    .checkout-modal-card {
        max-width: 100%;
        border-radius: var(--radius-luxe) var(--radius-luxe) 0 0;
        animation: coCardInMobile 0.85s var(--ease-cinematic);
    }
    @keyframes coCardInMobile {
        from { opacity: 0; transform: translateY(60px); filter: blur(6px); }
        to   { opacity: 1; transform: translateY(0); filter: blur(0); }
    }
    .checkout-modal-inner {
        padding: 36px 24px 28px;
        max-height: 92dvh;
        border-radius: calc(var(--radius-luxe) - 0.375rem) calc(var(--radius-luxe) - 0.375rem) 0 0;
    }
    .checkout-fields { grid-template-columns: 1fr; }
    .checkout-modal-head h2 { font-size: 1.7rem; }
    .checkout-modal-head { padding-right: 50px; }
    .checkout-segment { padding: 14px 16px; }
}

/* ===== Fiche produit (drawer client) ===== */
.psheet-host { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
.psheet-host.open { pointer-events: auto; }
.psheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; transition: opacity 0.4s var(--ease-cinematic); }
.psheet-host.open .psheet-scrim { opacity: 1; }
.psheet { position: absolute; top: 0; right: 0; height: 100%; width: min(960px, 100%);
  display: grid; grid-template-columns: 1fr 1fr; background: var(--zinc-950);
  transform: translateX(100%); transition: transform 0.6s var(--ease-cinematic);
  box-shadow: var(--shadow-diffusion); overflow: hidden; }
.psheet-host.open .psheet { transform: translateX(0); }
.psheet-x { position: absolute; top: 18px; right: 18px; z-index: 2; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.08); color: var(--white);
  font-size: 1.1rem; cursor: pointer; }
.psheet-media { background: var(--zinc-900); }
.psheet-media img { width: 100%; height: 100%; object-fit: cover; }
.psheet-noimg { width: 100%; height: 100%; background: var(--zinc-900); }
.psheet-body { padding: 56px 44px 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.psheet-cat { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--text-secondary); }
.psheet-title { font-family: 'Cabinet Grotesk', sans-serif; font-size: 2.2rem; color: var(--white); }
.psheet-price { color: var(--accent); font-weight: 700; }
.psheet-desc { color: var(--text-secondary); }
.psheet-sec { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; }
.psheet-sec h4 { font-family: 'Cabinet Grotesk', sans-serif; font-size: 1rem; color: var(--white); margin-bottom: 10px; }
.psheet-ingr { list-style: none; columns: 2; color: var(--text-secondary); font-size: 0.92rem; }
.psheet-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.psheet-pill { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.06); color: var(--text-secondary); padding: 5px 10px; border-radius: 999px; }
.psheet-add { margin-top: auto; padding: 18px; border: none; border-radius: 999px;
  background: var(--accent); color: var(--white); font-weight: 700; font-size: 1rem; cursor: pointer; }
.psheet-add:disabled { opacity: 0.4; cursor: not-allowed; }
body.psheet-open { overflow: hidden; }
@media (max-width: 760px) {
  .psheet { grid-template-columns: 1fr; grid-template-rows: 38% 62%; }
  .psheet-body { padding: 28px 22px 28px; }
  .psheet-ingr { columns: 1; }
}

/* --- Pack section (Task B4) --- */
.psheet-compo { list-style: none; color: var(--text-secondary); display: flex; flex-direction: column; gap: 6px; }
.psheet-compo-li.psheet-compo-link { color: var(--white); cursor: pointer; text-decoration: underline dotted; }
.psheet-group { margin-bottom: 16px; }
.psheet-group-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.psheet-group-h span { font-weight: 700; color: var(--white); }
.psheet-group-h em { font-style: normal; font-size: 0.72rem; color: var(--text-secondary); }
.psheet-options { display: flex; flex-wrap: wrap; gap: 8px; }
.psheet-opt { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14);
  background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.25s var(--ease-cinematic); }
.psheet-opt.on { background: var(--accent-dim); border-color: var(--accent); color: var(--white); }

/* --- Cart item choices (Task B5) --- */
.cart-item-choices { font-size: 0.72rem; color: var(--text-secondary); margin: 2px 0 4px; line-height: 1.35; }

/* ===== Promos (spec codes-promo) ===== */
.promo-banner { display: flex; align-items: center; justify-content: center; gap: 12px;
    background: var(--accent); color: #fff; padding: 10px 44px 10px 16px; font-size: 0.95rem;
    position: relative; z-index: 60; text-align: center; }
/* [hidden] doit l'emporter sur le display:flex ci-dessus, sinon un bandeau rose vide reste affiché quand aucune promo. */
.promo-banner[hidden] { display: none; }
.promo-banner-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1;
    min-width: 44px; min-height: 44px; cursor: pointer; }
.promo-badge { display: inline-block; margin-top: 4px; font-size: 0.75rem; font-weight: 700;
    padding: 2px 8px; border-radius: 999px; }
/* Badges d'angle empilés sur la carte produit (façon Uber Eats), jusqu'à 3 l'un sous l'autre */
.card-promo-ribbons { position: absolute; top: 12px; left: 12px; z-index: 3;
    display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
    max-width: calc(100% - 24px); pointer-events: none; }
/* [hidden] doit l'emporter sur le display:flex ci-dessus, sinon un conteneur vide reste affiché. */
.card-promo-ribbons[hidden] { display: none; }
.card-promo-ribbon { display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
    padding: 5px 9px; border-radius: 9px; color: #fff;
    /* Dégradé rouge du bouton Connexion back-office (--accent #e11d48 -> --accent-hover #be123c). */
    background: linear-gradient(135deg, #e11d48, #be123c);
    font-size: 0.72rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
    white-space: normal; box-shadow: 0 2px 10px rgba(0,0,0,0.28); }
.card-promo-ribbon .promo-ribbon-ico { width: 13px; height: 13px; flex: none; }
.promo-badge-off { background: rgba(0,0,0,0.06); color: inherit; }
.promo-badge-on  { background: var(--accent); color: #fff; }
.price-was { opacity: 0.55; font-weight: 400; margin-right: 4px; }
.price-promo { color: var(--accent); }
.cart-promo-info { padding: 8px 0; font-size: 0.85rem; }
.cart-promo-info .promo-saving { color: var(--accent); font-weight: 700; }
.cart-promo-info .promo-pending { opacity: 0.75; }
/* Bouton minimaliste « Ajouter un code promo » (déplie le champ à la demande). */
.cart-promo { padding: 6px 0; }
.cart-promo[hidden] { display: none; }
.cart-promo-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px;
    background: none; border: none; color: var(--accent); font: inherit; font-size: 0.85rem;
    font-weight: 700; cursor: pointer; }
.cart-promo-toggle[hidden] { display: none; }
.cart-promo-toggle:hover { text-decoration: underline; }
.cart-promo-toggle-ico { width: 15px; height: 15px; flex: none; }
.cart-promo-code-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
/* [hidden] doit l'emporter sur le display:flex (sinon champ affiché à tort). */
.cart-promo-code-wrap[hidden] { display: none; }
.cart-promo-code-wrap input { flex: 1; min-height: 44px; padding: 8px 12px;
    border: 1px solid rgba(0,0,0,0.15); border-radius: 8px; text-transform: uppercase; }
.cart-promo-code-wrap button { min-height: 44px; min-width: 56px; border: none; border-radius: 8px;
    background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.cart-promo-msg { width: 100%; font-size: 0.8rem; min-height: 1em; }
.cart-promo-msg.ok { color: #1a7f37; }
.cart-promo-msg.ko { color: #c0392b; }

/* --- Promos V2 : lignes offertes, chips code, carte choix cadeau (spec 2026-07-04) --- */
.cart-item-gift { background: rgba(52, 211, 153, .06); border-radius: 10px; }
.gift-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: #0c3527;
  background: #34d399; vertical-align: 1px; }
.cart-qty-gift span { font-weight: 700; opacity: .75; }
.gift-choice-card { display: block; width: 100%; margin: 10px 0; padding: 12px 14px;
  border: 1px dashed rgba(52, 211, 153, .55); border-radius: 12px; background: rgba(52, 211, 153, .07);
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gift-choice-card small { display: block; opacity: .7; margin-top: 2px; }
.gift-choice-card:hover { background: rgba(52, 211, 153, .13); }
.gift-opt-val { opacity: .65; font-size: .82em; }
.psheet-gift .psheet-body { padding-top: 46px; }
.cart-promo-chips { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.promo-chip-cart { display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 9px; font-size: .82rem; border: 1px solid transparent; }
.promo-chip-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; letter-spacing: .04em; }
.promo-chip-txt { flex: 1; }
.promo-chip-x { border: none; background: none; cursor: pointer; font-size: 1rem;
  color: inherit; opacity: .6; padding: 4px 8px; min-width: 32px; min-height: 32px; }
.promo-chip-x:hover { opacity: 1; }
.chip-applied { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4); color: #0f8a62; }
.chip-pending { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .4); color: #92610a; }
.chip-blocked { background: rgba(120, 120, 120, .1); border-color: rgba(120, 120, 120, .3); opacity: .85; }
.chip-invalid { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .4); color: #c22525; }
.promo-capnote { font-size: .82rem; opacity: .8; margin-top: 4px; }

/* --- Bandeau multi-promos V2 : marquee desktop / fade-up mobile, clic → drawer --- */
/* z-index > nav (1000) : le bandeau reste au-dessus ; le nav est décalé sous lui en JS. */
.promo-banner { cursor: pointer; position: relative; z-index: 1001; }
.promo-banner-viewport { overflow: hidden; width: 100%; }
.promo-banner-track { display: flex; width: max-content; will-change: transform;
  animation: promo-marquee linear infinite; }
.promo-banner-group { display: inline-flex; align-items: center; white-space: nowrap; }
.promo-banner-static .promo-banner-track { animation: none; }
.promo-banner:hover .promo-banner-track { animation-play-state: paused; }
.promo-banner-item { white-space: nowrap; padding: 0 4px; display: inline-flex; align-items: center; }
.promo-banner-ico { width: 14px; height: 14px; flex: none; margin-right: 7px; display: inline-block; }
.promo-banner-item strong { font-weight: 800; letter-spacing: .04em; }
.promo-banner-sep { padding: 0 16px; opacity: .5; }
@keyframes promo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.promo-banner-rotator { transition: opacity .25s ease, transform .25s ease; display: inline-flex; }
.promo-banner-rotator.fade-out { opacity: 0; transform: translateY(6px); }
.promo-banner-rotator.fade-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .promo-banner-track { animation: none !important; }
  .promo-banner-rotator { transition: none !important; }
}

/* --- Drawer promotions --- */
.promo-drawer { position: fixed; inset: 0; z-index: 1200; }
.promo-drawer-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .25s ease; }
.promo-drawer.open .promo-drawer-overlay { opacity: 1; }
.promo-drawer-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80dvh;
  overflow-y: auto; background: var(--zinc-900); color: var(--text-primary);
  border: 1px solid oklch(100% 0 0 / 0.08);
  border-radius: 18px 18px 0 0; padding: 18px 20px 28px; box-shadow: 0 -12px 40px rgba(0,0,0,.45);
  transform: translateY(100%); transition: transform .25s ease; }
.promo-drawer.open .promo-drawer-panel { transform: translateY(0); }
@media (min-width: 901px) {
  .promo-drawer-panel { left: auto; top: 0; bottom: 0; width: 420px; max-height: none;
    border-radius: 18px 0 0 18px; transform: translateX(100%); }
  .promo-drawer.open .promo-drawer-panel { transform: translateX(0); }
}
.promo-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.promo-drawer-head h3 { margin: 0; font-size: 1.1rem; display: inline-flex; align-items: center; }
.promo-drawer-ico { width: 18px; height: 18px; flex: none; margin-right: 9px; color: var(--accent); }
.promo-drawer-close { border: none; background: none; font-size: 1.6rem; cursor: pointer;
  color: inherit; min-width: 44px; min-height: 44px; }
.promo-drawer-item { padding: 14px 0; border-bottom: 1px solid rgba(127, 127, 127, .18); }
.promo-drawer-item:last-child { border-bottom: none; }
.promo-drawer-label { font-weight: 700; margin-bottom: 6px; }
.promo-drawer-conds { margin: 0; padding-left: 18px; font-size: .88rem; opacity: .85; }
.promo-drawer-conds li { margin: 3px 0; }
.promo-drawer-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700;
  background: rgba(127, 127, 127, .15); padding: 1px 7px; border-radius: 6px; }
.promo-drawer-empty { opacity: .7; padding: 16px 0; }
@media (prefers-reduced-motion: reduce) {
  .promo-drawer-overlay, .promo-drawer-panel { transition: none !important; }
}

/* --- Encart horaires de service (checkout) --- */
.checkout-service-notice {
    padding: 14px 18px;
    border-radius: 14px;
    /* Même identité que la bannière « Finaliser la commande » (accent rose) */
    background: oklch(62% 0.22 350 / 0.08);
    border: 1px solid oklch(62% 0.22 350 / 0.25);
    color: var(--accent);
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
}
.checkout-service-notice p { margin: 0 0 12px; }
.checkout-service-notice p:last-child { margin-bottom: 0; }
.checkout-service-notice .co-preorder-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 18px; border-radius: 12px; border: 0;
    background: var(--accent); color: #fff; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; width: 100%;
}
.checkout-service-notice.is-preorder {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.4);
}

/* --- Pages légales (legal.php) --- */
.legal-body { background: #0b0b0d; color: #eee; }
.legal-header { display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.legal-home { font-weight: 700; letter-spacing: .12em; color: #fff; text-decoration: none; }
.legal-back { color: #9aa; font-size: .85rem; text-decoration: none; }
.legal-back:hover { color: #fff; }
.legal-main { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-content h1 { font-size: 1.8rem; margin: 0 0 24px; }
.legal-content h2 { font-size: 1.15rem; margin: 32px 0 8px; }
.legal-content p { line-height: 1.7; color: #cfd2d6; margin: 0 0 12px; }
.legal-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 24px; text-align: center; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.legal-links a { color: #9aa; text-decoration: none; font-size: .85rem; }
.legal-links a:hover { color: #fff; }
.legal-copy { color: #667; font-size: .75rem; margin-top: 16px; }

/* --- Popup consentement cookies --- */
.cc-overlay { position: fixed; inset: 0; z-index: 9999; display: flex;
  align-items: flex-end; justify-content: center; background: rgba(0,0,0,.55); }
.cc-panel { background: #141417; color: #eee; width: 100%; max-width: 520px;
  margin: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  padding: 22px; box-shadow: 0 12px 48px rgba(0,0,0,.5); }
.cc-title { font-size: 1.1rem; margin: 0 0 8px; }
.cc-text { font-size: .85rem; line-height: 1.6; color: #cfd2d6; margin: 0 0 16px; }
.cc-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; margin-bottom: 10px;
  font-size: .82rem; line-height: 1.5; cursor: pointer; }
.cc-row input { margin-top: 3px; width: 20px; height: 20px; flex: 0 0 auto; }
.cc-row-locked { opacity: .8; cursor: default; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cc-btn { flex: 1 1 auto; min-height: 44px; border-radius: 10px; font-size: .85rem;
  cursor: pointer; border: 1px solid rgba(255,255,255,.15); padding: 0 14px; }
.cc-btn-ghost { background: transparent; color: #cfd2d6; }
.cc-btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.cc-btn-primary { background: #fff; color: #111; border-color: #fff; font-weight: 600; }
@media (min-width: 640px) { .cc-overlay { align-items: center; } }

/* --- Fermeture exceptionnelle : bannière (remplace la bannière promo) + pop-up --- */
.promo-banner.is-closure { background: oklch(32% 0.1 25); color: #fff; cursor: pointer;
  font-weight: 600; letter-spacing: .01em; padding-right: 16px; }
.closure-card { max-width: 480px; }
.closure-title { font-size: 1.35rem; margin-bottom: 12px; color: var(--text-primary); }
.closure-msg { color: var(--text-secondary); line-height: 1.65; margin-bottom: 24px; }
.closure-label { display: block; font-size: .85rem; color: var(--text-secondary); margin-bottom: 10px; }
.closure-row { display: flex; gap: 10px; flex-wrap: wrap; }
.closure-input { flex: 1 1 200px; min-height: 48px; padding: 0 14px; border-radius: 12px;
  background: oklch(100% 0 0 / 0.04); border: 1px solid oklch(100% 0 0 / 0.1);
  color: var(--text-primary); font-size: 1rem; }
.closure-input:focus { outline: none; border-color: var(--accent); }
.closure-submit { min-height: 48px; white-space: nowrap; }
.closure-feedback { margin-top: 14px; font-size: .9rem; line-height: 1.5; }
.closure-feedback.is-ok { color: oklch(75% 0.15 150); }
.closure-feedback.is-err { color: oklch(70% 0.19 25); }
