@import url('https://fonts.googleapis.com/css2?family=Cascadia+Code:ital,wght@0,200..700;1,200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sriracha&display=swap');


/*  1. VARIABLES  */
:root {
    /* Palette */
    --ink:        #1b160f;
    --ink-soft:   #4a4238;
    --ink-mute:   #8a7f70;
    --cream:      #f8f5ee;
    --cream-deep: #efe9dc;
    --surface:    #ffffff;
    --brass:      #b8894a;
    --brass-light:#d9b57e;
    --brass-dark: #8f6633;
    --line:       #e4dccc;

    /* Espacements */
    --s-xs: .375rem;
    --s-sm: .75rem;
    --s-md: 1.125rem;
    --s-lg: 1.75rem;
    --s-xl: 2.5rem;

    /* Rayons */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;

    /* Ombres chaudes */
    --sh-sm: 0 1px 3px rgba(27, 22, 15, .06);
    --sh-md: 0 4px 16px rgba(27, 22, 15, .08);
    --sh-lg: 0 12px 32px rgba(27, 22, 15, .12);

    /* Typo */
    --font-display: 'Tangerine', cursive;
    --font-body:    'Sriracha', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic:  'Cascadia Code',sans-serif;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --wrap: 1420px;
    --header-h: 56px;

    /* Sidebar */
    --side-w: 70px;
    --side-h: 80vh;   /* 80 % de la fenÃªtre, comme demandÃ© */
    --side-glass: #e7e2ce9e;
    --side-edge: rgba(255, 255, 255, .70);
    --side-blur: blur(16px) saturate(160%);
    --sidebar-w: min(86vw, var(--side-w));
    --nav-btn: 34px;   /* diametre du bouton de fermeture */

    /* Dock repliÃ© / dÃ©pliÃ© (comportement du dock macOS Ã  gauche) */
    --dock-collapsed: 10px;   /* barre rÃ©siduelle sur le bord */
    --dock-expanded: 262px;   /* largeur une fois dÃ©ployÃ© */
    --dock-ease: cubic-bezier(.32, .72, .35, 1);
}

/*  2. RESET  */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

footer{
        background: var(--surface);}
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--s-md));
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    /* DÃ©gradÃ©s doux : ils donnent de la matiÃ¨re au verre dÃ©poli. */
    background:
        radial-gradient(1100px 620px at 10% -10%, rgba(184, 137, 74, .20), transparent 60%),
        radial-gradient(900px 520px at 108% 8%, rgba(27, 22, 15, .10), transparent 62%),
        var(--cream);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input  { font: inherit; color: inherit; }
ul     { list-style: none; }

/* Bascule typographique arabe */
html[lang="ar"] body,
html[lang="ar"] .card__title,
html[lang="ar"] .card__price,
html[lang="ar"] .section__title,
html[lang="ar"] .hero__title,
html[lang="ar"] .dock__tip-name,
html[lang="ar"] .dock__sub-label {
    font-family: var(--font-arabic);
}

/*  3. ACCESSIBILITÃ‰  */
.skip-link {
    position: absolute;
    top: -100px;
    inset-inline-start: var(--s-md);
    z-index: 200;
    padding: var(--s-sm) var(--s-md);
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--r-sm);
}

.skip-link:focus { top: var(--s-sm); }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}
.app {
    position: relative;
    display: block;
    min-height: 100vh;
}

/*    5. EN-TÃŠTE */
.header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    padding-inline: var(--s-md);
    background: rgba(248, 245, 238, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header__logo { height: 34px; width: auto; }
.header__spacer { flex: 1;text-align: center;margin:auto; }

.header__lang {
    padding: 6px 14px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--brass-dark);
    background: rgba(184, 137, 74, .1);
    border: 1px solid rgba(184, 137, 74, .28);
    border-radius: 999px;
    transition: background .2s var(--ease);
}

.header__lang:hover { background: rgba(184, 137, 74, .2); }

.sidebar {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    inset-inline-start: 0;
    z-index: 75;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
    visibility: visible;
    transform: translateX(0);
    transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.sidebar:not(.is-open) {
    transform: translateX(-100%);
}

html[dir="rtl"] .sidebar:not(.is-open) {
    transform: translateX(100%);
}

body.is-nav-closed .content {
    margin-inline-start: 0;
}

.nav-toggle {
    position: fixed;
    top:0;
    inset-inline-start: 0;
    z-index: 78;
    display: grid;
    place-items: center;
    width: var(--nav-btn);
    height: var(--nav-btn);
    padding: 5px;
    color: var(--ink);
    background: var(--cream-deep);
    backdrop-filter: var(--side-blur);
    -webkit-backdrop-filter: var(--side-blur);
    border: 1px solid var(--side-edge);
    border-radius: 8px 0 0 8px;
    box-shadow: var(--sh-sm);
    cursor: pointer;
    transition:all .2s var(--ease);
}

.nav-toggle img{transition:all .2s var(--ease);}
.nav-toggle[aria-expanded="false"] img.close{opacity:0;height:0;width:0;}
.nav-toggle[aria-expanded="true"] img.open{opacity:0;height:0;width:0;}
.nav-toggle[aria-expanded="false"] img{transform:rotate(180deg)!important;}
html[dir="rtl"] .nav-toggle[aria-expanded="false"] img{ transform:rotate(-180deg)!important;}
html[dir="ltr"] #navToggle {border-radius: 0px 8px 8px 0px;}
html[dir="ltr"] nav#sidenav {border-radius: 0px 0px 8px 0px;}
@media (max-width: 899px) {
    body:not(.is-nav-closed) .nav-toggle { inset-inline-start: var(--sidebar-w);}
    body.is-nav-closed .nav-toggle,.nav-toggle[aria-expanded="false"] {transform:translateX(70px);}
    html[dir="rtl"] body.is-nav-closed .nav-toggle,.nav-toggle[aria-expanded="false"] {transform:translateX(-70px);}
}
.nav-toggle:hover {
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--sh-md);
}

.nav-toggle:hover .nav-toggle__icon { transform: scale(1.2); }
.nav-toggle:active {
    box-shadow: var(--sh-sm);
    background: var(--side-glass);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

.dock {
    position: relative;
    flex: none;
    width: 100%;
    max-height: var(--side-h);
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: var(--cream);
    backdrop-filter: var(--side-blur);
    -webkit-backdrop-filter: var(--side-blur);
    border: 1px solid var(--side-edge);
    border-radius: 0px var(--r-lg) var(--r-lg) 0px;
    box-shadow: var(--sh-lg);
}
html[dir="rtl"] .dock {
    border-radius: 0 0px 0px var(--r-lg);
    border-inline-start: 1px solid var(--side-edge);
    border-inline-end: 0;
}

.dock__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-xs);
    padding:0px;
    background: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dock__scroll::-webkit-scrollbar { display: none; }

/* Pastille active : Ã©quivalent du layoutId="bubble".
   Elle est absolue : sa position est pilotÃ©e par --bubble-y, que le JS
   mesure sur la tuile active. .dock__scroll n'Ã©tant pas positionnÃ©,
   le rÃ©fÃ©rent reste .dock â€” exactement ce que mesure offsetTop. */
.dock__bubble {
    position: absolute;
    top: var(--bubble-y, 0);
    left: 6px;
    width: 4px;
    height: var(--bubble-h, 0);
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transition: top .42s cubic-bezier(.34, 1.56, .64, 1),
                height .42s cubic-bezier(.34, 1.56, .64, 1),
                opacity .2s var(--ease);
}

.dock__bubble.is-visible {opacity: 1;}

/* Une tuile = une catÃ©gorie : icÃ´ne + libellÃ© sur une rangÃ©e.
   Le libellÃ© vit DANS la tuile (et non en infobulle flottante) car une
   infobulle absolute serait rognÃ©e par le conteneur de dÃ©filement. */
.dock__item {
    position: relative;
    flex: none;
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 5px;
    text-align: start;
    border-radius: 0px;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid transparent;
    box-shadow: var(--sh-sm);
    opacity: 0;
    transform: scale(.92);
    /* EntrÃ©e en cascade : --i est posÃ© par la boucle PHP. */
    animation: tile-in .42s cubic-bezier(.34, 1.56, .64, 1) forwards;
    animation-delay: calc(var(--i, 0) * 40ms);
    transition: transform .22s cubic-bezier(.34, 1.56, .64, 1),
                box-shadow .22s var(--ease),
                background .22s var(--ease),
                color .22s var(--ease);
    -webkit-tap-highlight-color: transparent;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes tile-in {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* La tuile grandit au survol, se contracte au clic. */
.dock__item:hover {
    transform: scale(1.02);
    box-shadow: var(--sh-md);
    background: linear-gradient(155deg, #fff, rgba(255, 255, 255, .62));
    z-index: 2;
}

.dock__item:active { transform: scale(.97); }

.dock__item:focus-visible {
    transform: scale(1.02);
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

.dock__icon {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    transition: transform .25s var(--ease), color .25s var(--ease);
}

.dock__item:hover .dock__icon { transform: scale(1.08); }

.dock__icon img { width: 100%; height: 100%; }

/* IcÃ´ne de catÃ©gorie : SVG traits ou PNG, hÃ©ritant currentColor. */
.dock__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* IcÃ´ne PNG : on la contient dans la tuile sans dÃ©former. */
.dock__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(27, 22, 15, .18));
    transition: transform .25s var(--ease), filter .25s var(--ease);
}

/* Les PNG sont souvent noirs : on les Ã©claircit sur la tuile active. */
.dock__item[aria-current="true"] .dock__img,
.dock__item.is-active .dock__img {
    transform:scale(1.15);
}

/* Halo Â« 3D Â» sur l'icÃ´ne au survol (SVG et PNG). */
.dock__item:hover .dock__svg { filter: drop-shadow(0 2px 5px rgba(184, 137, 74, .5)); }
.dock__item:hover .dock__img { filter: drop-shadow(0 2px 6px rgba(184, 137, 74, .55)); }

.dock__item[aria-current="true"],
.dock__item.is-active {
    background: linear-gradient(155deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .34));
    border-color:transparent;
    color: var(--ink);
}

/* Badge Â« NEW Â» : verre + ombres inset + reflet masquÃ©.
   Reprise Ã  l'identique du composant d'origine. */
.dock__badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    z-index: 3;
    padding: 2px 7px;
    border-radius: 999px 999px 999px 3px;
    font-size: .5625rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .04em;
    color: #0a1628;
    background: linear-gradient(160deg, #aecaff, #7ba7f5);
    overflow: hidden;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(170, 202, 255, .2),
        inset 0 0 10px 0 rgba(170, 202, 255, .3),
        inset 0 3px 7px 0 rgba(170, 202, 255, .4),
        inset 0 -4px 3px 0 rgba(170, 202, 255, .4),
        0 1px 3px 0 rgba(0, 0, 0, .5),
        0 4px 12px 0 rgba(0, 0, 0, .65);
}

/* Reflet : le texte est dupliquÃ©, retournÃ© et masquÃ© en dÃ©gradÃ©. */
.dock__badge-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: .4;
    transform: translate(-50%, -50%) scaleY(-1) translateY(9px);
    -webkit-mask-image: linear-gradient(to top, white 20%, transparent 50%);
    mask-image: linear-gradient(to top, white 20%, transparent 50%);
}

.dock__item[aria-current="true"] .dock__badge,
.dock__item.is-active .dock__badge {
    background: linear-gradient(160deg, var(--brass-light), var(--brass));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .35),
        inset 0 0 10px 0 rgba(255, 236, 196, .4),
        inset 0 3px 7px 0 rgba(255, 236, 196, .45),
        inset 0 -4px 3px 0 rgba(255, 236, 196, .4),
        0 1px 3px 0 rgba(0, 0, 0, .5),
        0 4px 12px 0 rgba(0, 0, 0, .65);
}

/* LibellÃ© de la catÃ©gorie : affichÃ© EN LIGNE dans la tuile.
   (Il ne peut plus Ãªtre une infobulle flottante : le conteneur de
   dÃ©filement vertical la rognerait.) */
.dock__tip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.dock__tip-name {
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.25;
    max-width: 100%;
    text-align: center;
}

.dock__tip-count { font-size: .6875rem; color: var(--ink-mute);margin: auto;text-align: center; }

/* Sur la tuile active, le libellÃ© passe en clair. */
.dock__item[aria-current="true"] .dock__tip-count,
.dock__item.is-active .dock__tip-count { color: var(--ink); }

.dock__sep {
    flex: none;
    width: 100%;
    height: 2px;
    margin: 0px var(--s-xs);
    background: rgba(27, 22, 15, .16);
}
.dock__sep:nth-last-child{display:none!important;}
/* Sous-catÃ©gories : palette volante qui jaillit Ã  cÃ´tÃ© du dock. */
.dock__subs {
    position: absolute;
    top: 50%;
    inset-inline-start: calc(100% + 4px);
    z-index: 4;
    min-width: 190px;
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--s-xs);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: var(--side-blur);
    -webkit-backdrop-filter: var(--side-blur);
    border: 1px solid var(--side-edge);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    transform: translate(0, -50%);
    animation: subs-in .2s var(--ease);
}

@keyframes subs-in {
    from { opacity: 0; transform: translate(-8px, -50%); }
    to   { opacity: 1; transform: translate(0, -50%); }
}

.dock__subs-head {
    padding: 6px 10px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brass-dark);
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

html[lang="ar"] .dock__subs-head { letter-spacing: 0; }

.dock__sub {
    display: flex;
    align-items: center;
    gap: var(--s-xs);
    width: 100%;
    padding: 7px 10px;
    text-align: start;
    font-size: .8125rem;
    color: var(--ink-soft);
    border-radius: var(--r-sm);
    transition: background .18s var(--ease), color .18s var(--ease);
}

.dock__sub:hover { background: rgba(255, 255, 255, .9); color: var(--ink); }

.dock__sub.is-active {
    color: var(--cream);
    background: var(--ink);
    font-weight: 600;
}

.dock__sub-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dock__sub-count {
    flex: none;
    font-size: .6875rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink-mute);
}

.dock__sub.is-active .dock__sub-count { color: var(--brass-light); }

/* Ouverture vers le haut : utilisÃ©e par le dock horizontal du desktop.
   DÃ©clarÃ©e hors du @media : un @keyframes dans une media query est
   ignorÃ© par les navigateurs. */
@keyframes subs-up {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}


/*    9. RECHERCHE : ICONE REPLIÉE / BARRE DÉPLOYÉE      */
/* Au repos, seule la loupe est visible : la barre de recherche
   prenait de la hauteur en haut de la carte pour rien. Un clic la
   déploie (voir .search.est-ouvert).

   `position: sticky` la maintient visible pendant le défilement :
   c'est le geste principal sur un téléphone, une fois le premier
   résultat trouvé. */
.search {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-xs);
    width: 50%;
    margin: auto;
}

/* ── L'icône seule, au repos ──────────────────────────────────── */
.search__toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--sh-sm);
    cursor: pointer;
    transition: transform .2s var(--ease), background .2s var(--ease);
}

.search__toggle:hover { transform: scale(1.06); }

.search__field {
    display: none;
    align-items: center;
    gap: var(--s-sm);
    flex: 1;
    min-width: 0;
    padding: 0 var(--s-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

/* ── Déployée : la loupe disparaît, le champ apparaît ───────────
   On masque l'icône plutôt que de la garder : le champ contient
   déjà sa propre loupe, deux gravures côte à côte feraient double. */
.search.est-ouvert .search__toggle { display: none; }

.search.est-ouvert .search__field {
    display: flex;
    animation: search-in .2s var(--ease);
}

@keyframes search-in {
    from { opacity: 0; transform: scaleX(.9); transform-origin: left; }
    to   { opacity: 1; transform: none; }
}

html[dir="rtl"] .search.est-ouvert .search__field {
    animation-name: search-in-rtl;
}

@keyframes search-in-rtl {
    from { opacity: 0; transform: scaleX(.9); transform-origin: right; }
    to   { opacity: 1; transform: none; }
}

.search__field:focus-within {
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(184, 137, 74, .15);
}

.search__icon { flex: none; color: var(--ink-mute); }

.search__input {
    flex: 1;
    min-width: 0;
    padding: 11px 0;
    border: 0;
    background: none;
    font-size: .9375rem;
}

.search__input:focus { outline: none; }
.search__input::placeholder { color: var(--ink-mute); }

.search__clear {
    display: none;
    flex: none;
    padding: 4px 10px;
    font-size: .75rem;
    color: var(--ink-mute);
    border-radius: 999px;
    background: var(--cream-deep);
}

.search__clear.is-visible { display: block; }

/*    10. CONTENU                                              */
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--s-md) var(--s-xl);
}

.section__head {
    display: flex;
    align-items: baseline;
    gap: var(--s-sm);
    margin-bottom: var(--s-md);
    padding-bottom: var(--s-sm);
    border-bottom: 1px solid var(--line);
}

.section__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

.section__count {
    margin-inline-start: auto;
    font-size: .75rem;
    color: var(--ink-mute);
    white-space: nowrap;
}

.sub { margin-bottom: var(--s-lg); }
.sub + .sub { margin-top: var(--s-lg); }

.sub__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: bolder;
    letter-spacing: .06em;
    color: var(--brass-dark);
    margin-bottom: var(--s-sm);
}

html[lang="ar"] .sub__title { letter-spacing: 0; }

/*    11. CARTES PRODUITS                                      */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--s-sm);
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

/* Bloc mÃ©dia : cadre carrÃ© et rognÃ©. */
.card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--cream-deep);
    overflow: hidden;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}

.card:hover .card__img { transform: scale(1.04); }

.card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--ink-mute);
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
    padding: var(--s-sm);
}

.card__title {
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.35;
}

.card__meta {
    margin-top: auto;
    padding-top: var(--s-xs);
    display: flex;
    align-items: baseline;
    gap: var(--s-xs);
}

.card__price {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--brass-dark);
    font-variant-numeric: tabular-nums;
}

.card__unit { font-size: .6875rem; color: var(--ink-mute); }

.view_details {
    display: inline-block;
    margin-top: var(--s-xs);
    padding: 5px 10px;
    font-size: .6875rem;
    font-weight: 500;
    color: var(--brass-dark);
    background: rgba(184, 137, 74, .10);
    border: 1px solid rgba(184, 137, 74, .30);
    border-radius: 999px;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.view_details:hover {
    color: var(--cream);
    background: var(--ink);
    border-color: var(--ink);
}

/* La commande d'un plat et le panier sont stylés plus bas, dans les
   sections « BLOC DE COMMANDE » et « TIROIR DE COMMANDE ». */

.detail {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--s-lg) var(--s-md) var(--s-xl);
    text-align: center;
}

.detail__back {
    display: inline-block;
    margin-bottom: var(--s-md);
    padding: 6px 12px;
    font-size: .8125rem;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background .2s var(--ease);
}

.detail__back:hover { background: var(--cream-deep); }

.detail__fil {
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brass-dark);
    margin-bottom: var(--s-sm);
}

.detail__media {
    position: relative;
    width: min(260px, 70vw);
    aspect-ratio: 1 / 1;
    margin: 0 auto var(--s-md);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--cream-deep);
    box-shadow: var(--sh-md);
}

.detail__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail__title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: var(--s-xs);
}

.detail__price { margin-bottom: var(--s-md); }

.detail__desc {
    font-size: var(--s-lg);
    color: var(--ink-soft);
    line-height: 1.7;
    text-align: center;
    margin-bottom: var(--s-md);
}

.detail__disclaimer {
    font-size: var(--s-md);
    color: var(--ink-mute);
    line-height: 1.6;
}

.detail__error {
    padding: var(--s-lg) 0;
    color: var(--ink-soft);
}

/* ── Fiche produit : rubriques du modal ────────────────────────
 * Allergènes et régimes sont des SÉPARATEURS visuels : sans eux,
 * la section se confond avec la description et le visiteur ne la
 * remarque pas — et une information de sécurité alimentaire doit
 * être vue, pas devinée. */
.detail__section {
    margin-top: var(--s-md);
    padding-top: var(--s-md);
    border-top: 1px solid var(--line);
}

.detail__subtitle {
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: var(--s-sm);
}

/* Le lien vers la fiche complète : secondaire, jamais un bouton
   principal — c'est le repli sans JS et le lien à partager. */
.detail__permalink {
    margin-top: var(--s-md);
    font-size: .75rem;
}

.detail__permalink a {
    color: var(--brass-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail__permalink a:hover { color: var(--ink); }

/* Dans le panneau, le fil d'Ariane sert surtout d'indication de
   contexte : on le garde lisible mais moins contrasté. */
.detail--panel .detail__permalink { text-align: center; }
.detail--panel .detail__disclaimer { text-align: center; }

.panel {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.panel__scrim {
    position: absolute;
    inset: 0;
    /* background: rgba(27, 22, 15, .42); */
    /* backdrop-filter: blur(3px); */
    animation: scrim-in .25s var(--ease);
}

.panel__side {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(430px, 100vw);
    display: flex;
    flex-direction: column;
    backdrop-filter: var(--side-blur);
    background: #ffffffbd;
    box-shadow: -8px 0 32px rgba(27, 22, 15, .18);
    animation: panel-in .32s var(--ease);
    overflow: hidden;
}

html[dir="rtl"] .panel__side {
    box-shadow: 8px 0 32px rgba(27, 22, 15, .18);
}

@keyframes panel-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

html[dir="rtl"] .panel__side { animation-name: panel-in-rtl; }

@keyframes panel-in-rtl {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

/* Voile sombre : apparition en fondu.
   Partagée par le panneau de détail (.panel__scrim) et par le tiroir
   de commande (.cart__scrim) — les deux voiles se ressemblent, donc
   une seule animation pour les deux. */
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }

.panel__head {
    flex: none;
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    padding: var(--s-md);
    border-bottom: 1px solid var(--line);
}

.panel__title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
}

.panel__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink-soft);
    border-radius: 50%;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.panel__close:hover { background: var(--cream-deep); color: var(--ink); }

.panel__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.panel__loading {
    padding: var(--s-xl) var(--s-md);
    text-align: center;
    font-size: .875rem;
    color: var(--ink-mute);
}

/* Le contenu injectÃ© reprend la mise en page de la page dÃ©tail. */
.detail--panel {
    max-width: none;
    padding: var(--s-md) var(--s-md) var(--s-xl);
}

.detail--panel .detail__media {
    width: min(280px, 78vw);
}

/* Verrouille le dÃ©filement de la page derriÃ¨re le panneau. */
body.is-panel-open { overflow: hidden; }

@media (max-width: 520px) {
    .panel__side { width: 100vw; }
    .detail--panel .detail__media { width: min(240px, 68vw); }
}
/* ═══════════════════════════════════════════════════════════════
   BLOC DE COMMANDE D'UN PLAT + TIROIR DE COMMANDE

   Ces règles servent à deux endroits : la fiche d'un plat (page
   /plat/... et panneau latéral) et le tiroir de commande. Les
   sélecteurs sont donc partagés, jamais dupliqués.
   ═══════════════════════════════════════════════════════════════ */

.order {
    margin-top: var(--s-md);
    padding-top: var(--s-md);
    border-top: 1px solid var(--line);
}

.order__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-sm);
    margin-bottom: var(--s-sm);
}

.order__qty-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.stepper__btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--ink);
    border-radius: 999px;
    transition: background .15s var(--ease);
}

.stepper__btn:hover { background: rgba(184, 137, 74, .18); }

.stepper__input {
    width: 42px;
    height: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: 0;
    -moz-appearance: textfield;
}

/* On masque les flèches natives : elles font doublon avec − et +. */
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.order__actions {
    display: flex;
    flex-direction: column;
    gap: var(--s-xs);
}

.order__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    font-size: .875rem;
    font-weight: 600;
    border-radius: var(--r-md);
    transition: transform .15s var(--ease), background .18s var(--ease);
}

.order__btn:active { transform: scale(.98); }

.order__notice {
    margin: 10px 0 0;
    font-size: .6875rem;
    line-height: 1.5;
    color: var(--ink-mute);
    text-align: center;
}

/* Plat épuisé : aucun bouton proposé, juste l'explication. */
.order__indispo {
    margin: var(--s-md) 0 0;
    padding: 12px;
    font-size: .8125rem;
    font-weight: 600;
    text-align: center;
    color: var(--ink-soft);
    background: rgba(27, 22, 15, .05);
    border-radius: var(--r-sm);
}

/* Mode de commande + note, dans le bloc produit.
   Mêmes éléments que le panier : on réutilise .cart__mode. */
.order__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--s-sm) 0 0;
    padding: 0;
    border: 0;
}

.order__legend {
    display: block;
    width: 100%;
    font-size: .6875rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 2px;
}

.order__note { display: block; margin-top: var(--s-sm); }

.order__note textarea {
    width: 100%;
    margin-top: 2px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: .8125rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    resize: vertical;
}

/* ── Barre flottante du panier ────────────────────────────────
   Masquée tant que le panier est vide : le JS la révèle dès la
   première ligne ajoutée. Elle flotte au-dessus de la barre
   d'actions, d'où le décalage de 96px. */
.cartbar {
    position: fixed;
    inset-inline-end: 16px;
    bottom: calc(var(--s-md) + 96px + env(safe-area-inset-bottom));
    z-index: 60;
}

.cartbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 999px;
    box-shadow: var(--sh-lg);
    transition: transform .18s var(--ease);
}

.cartbar__btn:hover { transform: translateY(-2px); }

.cartbar__count {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--brass);
    color: #fff;
    border-radius: 999px;
}

.cartbar__label { font-size: .8125rem; font-weight: 600; }

.cartbar__total {
    font-size: .8125rem;
    font-weight: 700;
    color: var(--brass-light);
    font-variant-numeric: tabular-nums;
}

/* ── Tiroir de commande ─────────────────────────────────────── */
.cart {
    position: fixed;
    inset: 0;
    z-index: 101;
}

.cart__scrim {
    position: absolute;
    inset: 0;
    background: rgba(27, 22, 15, .45);
    backdrop-filter: blur(2px);
    animation: scrim-in .2s var(--ease);
}

.cart__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(92vw, 420px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    box-shadow: var(--sh-lg);
    animation: cart-in .28s var(--ease);
}

@keyframes cart-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* En RTL, le tiroir entre du côté opposé. */
html[dir="rtl"] .cart__panel { animation-name: cart-in-rtl; }

@keyframes cart-in-rtl {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

.cart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-sm);
    padding: var(--s-md);
    border-bottom: 1px solid var(--line);
}

.cart__title { font-size: 1.05rem; }

.cart__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: background .15s var(--ease);
}

.cart__close:hover { background: rgba(27, 22, 15, .07); }

.cart__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: var(--s-md);
    overscroll-behavior: contain;
    position: relative;
}

.cart__list { margin: 0; padding: 0; list-style: none; }

.cart__line {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: var(--s-xs);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cart__line--off { opacity: .5; }

.cart__line-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart__line-name {
    font-size: .875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart__line-price {
    font-size: .75rem;
    color: var(--ink-mute);
}

.cart__line-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    background: var(--cream);
    border-radius: 999px;
}

.cart__line-qty .stepper__btn {
    width: 24px;
    height: 24px;
    font-size: .9rem;
}

.cart__line-n {
    min-width: 22px;
    text-align: center;
    font-size: .8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cart__line-sum {
    font-size: .8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cart__line-del {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: var(--ink-mute);
    border-radius: 999px;
    transition: background .15s var(--ease), color .15s var(--ease);
}

.cart__line-del:hover { color: #a33; background: rgba(170, 51, 51, .1); }

.cart__clear {
    font-size: var(--s-md);
    color: var(--ink-mute);
    text-decoration: underline!important;
    padding: 10px;
}

.cart__clear:hover { color: var(--ink); }
.cntnr_cart__clear {
    margin-top: var(--s-sm);
    font-size: .75rem;
    text-decoration: underline;
    padding: 0px;
    text-align: center;
}

.cart__empty { padding: var(--s-lg) 0; text-align: center; }

.cart__empty-text { font-weight: 600; color: var(--ink-soft); }

.cart__empty-hint {
    margin-top: 4px;
    font-size: .8125rem;
    color: var(--ink-mute);
}

.cart__foot {
    flex: none;
    padding: var(--s-md);
    border-top: 1px solid var(--line);
    background: var(--cream);
}

.cart__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 var(--s-sm);
    padding: 0;
    border: 0;
}

.cart__legend {
    display: block;
    font-size: .6875rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.cart__mode { position: relative; cursor: pointer; }

.cart__mode input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cart__mode span {
    display: inline-block;
    padding: 6px 12px;
    font-size: .75rem;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all .16s var(--ease);
}

.cart__mode input:checked + span {
    color: var(--cream);
    background: var(--ink);
    border-color: transparent;
}

.cart__mode input:focus-visible + span {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

.cart__note { display: block; margin-bottom: var(--s-sm); }

.cart__note textarea {
    width: 100%;
    padding: 9px 12px;
    font-family: inherit;
    font-size: .8125rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    resize: vertical;
}

.cart__sum {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 var(--s-sm);
    font-size: .875rem;
}

.cart__sum strong {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.cart__send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px;
    font-size: .875rem;
    font-weight: 600;
    background: #25d366;
    color: #fff;
    border-radius: var(--r-md);
}

.cart__notice {
    margin: 8px 0 0;
    font-size: .625rem;
    line-height: 1.5;
    color: var(--ink-mute);
    text-align: center;
}

/* Verrouille le défilement de la page derrière le tiroir. */
body.is-cart-open { overflow: hidden; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    transition: transform .15s var(--ease), filter .18s var(--ease);
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }

.btn--primary { background: var(--ink); color: var(--cream); }
.btn--wa { background: #25d366; color: #fff; }

.btn:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

/*    12. Ã‰TATS VIDES                                          */
.empty {
    padding: var(--s-xl) var(--s-md);
    text-align: center;
    color: var(--ink-mute);
}

.empty.is-visible { display: block; }
.empty__icon { margin-bottom: var(--s-sm); opacity: .5; }
.empty__text { font-size: .9375rem; }
/* ═══════════════════════════════════════════════════════════════
   13. BARRE D'ACTIONS

   Barre fixe du bas d'écran : le bouton d'appel au restaurant.
   Elle est toujours visible — un client qui a une question doit
   pouvoir appeler sans avoir à ouvrir une fiche.
   ═══════════════════════════════════════════════════════════════ */

.actions {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: var(--s-sm);
    padding: var(--s-sm) var(--s-md);
    /* env(safe-area-inset-bottom) : sur iPhone à encoche, le bouton
       ne doit pas finir sous la barre d'accueil du système. */
    padding-bottom: calc(var(--s-sm) + env(safe-area-inset-bottom));
    background: rgba(248, 245, 238, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}

.actions__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-xs);
    padding: 12px;
    font-size: .875rem;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: transform .15s var(--ease);
}

/* Cible tactile confortable : le geste principal du site. */
.actions__btn:active { transform: scale(.97); }

.actions__btn--call { color: var(--cream); background: var(--ink); }
.actions__btn--wa   { color: #fff; background: #25d366; }

/* Le bouton « Composer » : c'est l'action principale du site,
   on lui donne donc le brassage plutôt que l'encre. */
.actions__btn--compose { color: var(--cream); background: var(--brass-dark); }

/* ═══════════════════════════════════════════════════════════════
   COMMANDE EN UN CLIC SUR LA CARTE

   Le bouton « Ajouter » et le sélecteur de quantité se REMPLACENT
   l'un l'autre : la carte garde la même hauteur, et le client n'a
   jamais deux contrôles pour la même chose. C'est syncPanier()
   (assets/js/main.js) qui fait la bascule.
   ═══════════════════════════════════════════════════════════════ */

.card__order {
    margin-top: var(--s-xs);
    min-height: 30px;   /* la carte ne bouge pas au basculement */
    display: flex;
    align-items: center;
}

.card__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 7px 10px;
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1;
    color: var(--brass-dark);
    background: rgba(184, 137, 74, .12);
    border: 1px solid rgba(184, 137, 74, .34);
    border-radius: 999px;
    transition: background .18s var(--ease), color .18s var(--ease);
}

.card__add:hover {
    color: var(--cream);
    background: var(--brass-dark);
}

.card__add:active { transform: scale(.97); }

.card__qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.card__qty .qty__btn { width: 24px; height: 24px; }

.card__qty .qty__val {
    min-width: 1.5rem;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Pastille « dans la commande », posée par le JS sur l'image.
   Le HTML démarre sans elle, pour ne pas afficher un « 0 ». */
.badge--incart {
    background: #1f9d4b;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   COMPOSEUR DE COMMANDE

   Un voile plein écran : composer une commande est une action de
   fond, pas une consultation. La liste défile ; la recherche et le
   résumé, eux, restent fixes.
   ═══════════════════════════════════════════════════════════════ */

.composer {
    position: fixed;
    inset: 0;
    z-index: 120;   /* au-dessus du tiroir (101) et du panneau (100) */
}

.composer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(27, 22, 15, .45);
    backdrop-filter: blur(2px);
    animation: scrim-in .2s var(--ease);
}

.composer__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    animation: composer-in .26s var(--ease);
}

@keyframes composer-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.composer__head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-sm);
    padding: var(--s-md);
    padding-top: calc(var(--s-md) + env(safe-area-inset-top));
    border-bottom: 1px solid var(--line);
}

.composer__title { font-size: 1.05rem; }

.composer__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: background .15s var(--ease);
}

.composer__close:hover { background: rgba(27, 22, 15, .07); }

/* La recherche du composeur est un bloc simple, dans un panneau :
   pas de bascule, elle reste toujours visible.

   `.search` seule est concue pour l'en-tête collant — sticky,
   mi-largeur, centrée, champ masque jusqu'au deploiement. On
   neutralise ces reglages la, sinon le composeur n'affiche ni le
   champ ni le bouton « Effacer ». */
.search--composer {
    position: static;
    top: auto;
    z-index: auto;
    width: 100%;
    margin: 0;
    flex: none;
    justify-content: stretch;
    padding: var(--s-sm) var(--s-md);
    border-bottom: 1px solid var(--line);
}

.search--composer .search__field {
    display: flex;          /* toujours visible : pas de bascule ici */
    width: 100%;
    padding: 0 var(--s-sm);
}

.search--composer .search__input { padding: 10px 0; }

/* « Effacer » n'apparait que lorsqu'il y a quelque chose a effacer,
   comme dans la recherche du menu. */
.search--composer .search__clear.is-visible { display: block; }

.composer__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0 var(--s-md);
    list-style: none;
}

.composer__row {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.composer__row:last-child { border-bottom: none; }

.composer__img {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--cream-deep);
    border-radius: var(--r-sm);
}

.composer__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.composer__infos {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.composer__name {
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.composer__price {
    font-size: .75rem;
    font-weight: 600;
    color: var(--brass-dark);
    font-variant-numeric: tabular-nums;
}

/* Le contrôle est celui des cartes, simplement plus compact : pas
   de duplication, donc pas de divergence possible. */
.card__order--row { flex: none; margin-top: 0; }
.card__order--row .card__add { width: auto; padding: 6px 12px; }

.composer__hint {
    flex: none;
    padding: var(--s-lg) var(--s-md);
    text-align: center;
    font-size: .8125rem;
    color: var(--ink-mute);
}

.composer__bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    padding: var(--s-sm) var(--s-md);
    padding-bottom: calc(var(--s-sm) + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1px solid var(--line);
}

.composer__count { font-size: .8125rem; color: var(--ink-soft); }

.composer__total {
    margin-inline-start: auto;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.composer__open {
    flex: none;
    padding: 10px 16px;
    font-size: .8125rem;
    white-space: nowrap;
}

.composer__open:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.composer__open:disabled:hover { filter: none; }

/* Verrouille le défilement de la page derrière le composeur. */
body.is-composer-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════
   AIDE — bouton flottant + modale

   Le bouton est fixe et discret : il ne doit jamais concurrencer le
   composeur ni le panier. La modale, elle, reprend le gabarit du
   panneau et du composeur — même en-tête, même pied, même geste
   d fermeture.
   ═══════════════════════════════════════════════════════════════ */

.helpbtn {
    position: fixed;
    inset-inline-start: 16px;
    /* Au-dessus de la barre d'actions (54 px) et de la barre du
       panier (114 px) : le bouton ne passe jamais dessous. */
    bottom: calc(var(--s-md) + 128px + env(safe-area-inset-bottom));
    z-index: 79;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px 9px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--sh-md);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.helpbtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-lg);
}

.helpbtn:active { transform: scale(.96); }

.helpbtn img { display: block; }

.helpbtn__label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}

/* ── La modale ──────────────────────────────────────────────── */

.modal {
    position: fixed;
    inset: 0;
    z-index: 130;   /* au-dessus du composeur (120) */
}

.modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(27, 22, 15, .45);
    backdrop-filter: blur(2px);
    animation: scrim-in .2s var(--ease);
}

.modal__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(2000px, calc(100% - 40px));
    max-height: min(82vh, 640px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    animation: modal-in .22s var(--ease);
    overflow: hidden;
}

@keyframes modal-in {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.98); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal__head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-sm);
    padding: var(--s-md);
    border-bottom: 1px solid var(--line);
}

.modal__title { font-size: 1.05rem; }

.modal__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: background .15s var(--ease);
}

.modal__close:hover { background: rgba(27, 22, 15, .07); }

.modal__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--s-md);
}

.modal__intro {
    margin-bottom: var(--s-md);
    font-size: .875rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.help__section { margin-bottom: var(--s-md); }

.help__section:last-child { margin-bottom: 0; }

.help__title {
    display: flex;
    align-items: center;
    gap: var(--s-xs);
    margin-bottom: var(--s-sm);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ink);
}

/* Pastille numérotée : les étapes se lisent d'un coup d'œil. */
.help__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--cream);
    background: var(--brass-dark);
    border-radius: 50%;
}

.help__steps {
    margin: 0;
    padding-inline-start: 1.15rem;
    font-size: .8125rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.help__steps li { margin-bottom: 6px; }

.help__steps li:last-child { margin-bottom: 0; }

.help__steps li::marker { color: var(--brass-dark); font-weight: 700; }

.modal__foot {
    flex: none;
    display: flex;
    gap: var(--s-sm);
    padding: var(--s-sm) var(--s-md);
    padding-bottom: calc(var(--s-sm) + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1px solid var(--line);
}

/* ── Onglets de l'aide ──────────────────────────────────────
   Les onglets sont des FILTRES : le client veut lire une chose à la
   fois. L'onglet actif se reconnaît à son fond plein — la couleur
   seule ne suffit pas, mais le CONTRASTE entre les deux états, si. */
.help__tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: var(--s-md);
    background: var(--surface);
    border-radius: 999px;
}

.help__tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    font-size: .8125rem;
    font-weight: 600;
    background: var(--cream-deep);
    line-height: 1.3;
    border-bottom:1px solid  var(--ink);
    color: var(--ink-soft);
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s var(--ease), background-color .18s var(--ease);
}

/* En arabe, le libellé peut être plus long : on autorise le retour à
   la ligne plutôt que de faire déborder la pastille. La langue est
   portée par <html>, pas par le bouton — voir les règles typographiques
   en tête de feuille. */
html[lang="ar"] .help__tabs {
    margin-bottom: var(--s-sm);
}

html[lang="ar"] .help__tab {
    white-space: normal;
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

.help__tab:hover:not(.is-active) {
    color: var(--ink);
}

/* On ne retire PAS le contour au clavier : un onglet doit rester
   identifiable quand on navigue sans souris. */
.help__tab:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

.help__tab.is-active {
    color: var(--ink);
    border-bottom:1px solid  var(--ink);
    background: var(--brass-light)!important;
}
/* Le client qui lit l'aide veut soit poser une question, soit
   commander : on lui donne les deux sorties. */
.modal__foot .btn { flex: 1; }

/* Verrouille le défilement de la page derrière la modale. */
body.is-modal-open { overflow: hidden; }

/* Sur petit écran, la modale occupe l'écran entier : c'est plus
   lisible qu'une carte flottante au-dessus du clavier. */
@media (max-width: 520px) {
    .modal__panel {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    @keyframes modal-in {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Le libellé double la largeur du bouton pour rien sur mobile. */
    .helpbtn__label { display: none; }

    .helpbtn {
        inset-inline-start: 12px;
        bottom: calc(var(--s-md) + 116px + env(safe-area-inset-bottom));
        padding: 8px;
    }
}

/*    14. PIED DE PAGE                                         */
.footer {
    padding: var(--s-lg) var(--s-md);
    text-align: center;
    font-size: .75rem;
    line-height: 1.7;
    color: var(--ink-mute);
    background: rgba(239, 233, 220, .6);
    border-top: 1px solid var(--line);
}

.footer__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--s-xs);
}

.footer__disclaimer {
    max-width: 460px;
    margin: var(--s-sm) auto 0;
    font-size: .6875rem;
    opacity: .8;
}
/* Réseaux et localisation : deux pastilles discrètes, entre les
   horaires et la mention. Elles attirent l'œil juste ce qu'il faut,
   sans peser sur le texte. */
.footer__links {
    display: flex;
    justify-content: center;
    gap: var(--s-sm);
    margin-top: var(--s-sm);
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: rgba(184, 137, 74, .10);
    border: 1px solid rgba(184, 137, 74, .30);
    border-radius: 999px;
    text-decoration: none;
    transition: color .18s var(--ease), background .18s var(--ease);
}

.footer__link svg { flex: none; }

.footer__link:hover {
    color: var(--cream);
    background: var(--brass-dark);
    border-color: var(--brass-dark);
}

.itt {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.itt__list {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;                       /* space-x-8 */
    padding: var(--s-sm);
    border-radius: 9999px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.itt__list::-webkit-scrollbar { display: none; }

/* Un onglet. */
.itt__tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;                      
    padding-inline: .5rem;           
    font: inherit;
    color: var(--ink-mute);
    letter-spacing: .01em;
    cursor: pointer;
    border: 0;
    background: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: color .3s var(--ease), letter-spacing .3s var(--ease);
}

.itt__tab:hover { color: var(--ink-soft); }

.itt__tab.is-active {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: normal;
}

.itt__bubble {
    position: absolute;
    bottom: -.25rem;
    left: 0;
    z-index: 1;
    width: var(--bubble-w, 0);
    height: 4px;                     
    border-radius: 9999px;
    background: var(--ink);
    transition: transform .42s cubic-bezier(.34, 1.56, .64, 1), width .42s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
}

.itt__icon {
    position: relative;
    display: block;
    width: 5rem;
    height: 5rem;
    flex: none;
    opacity: 0;
    transform: scale(0);
    animation: itt-in .4s cubic-bezier(.34, 1.56, .64, 1) forwards;
    animation-delay: calc(var(--i, 0) * 100ms);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes itt-in {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

.itt__tab:not(.is-active) .itt__icon:hover  { transform: scale(1.1); }
.itt__tab:not(.is-active) .itt__icon:active { transform: scale(.8); }
.itt__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--cream-deep);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.itt__video.is-visible { opacity: 1; }
.itt__letter {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brass-dark);
    background: linear-gradient(155deg,
        rgba(184, 137, 74, .28), rgba(27, 22, 15, .10));
    border: 1px solid var(--side-edge);
}

.itt__label {
    font-size: .9375rem;
    line-height: 1.35;
}

.itt__tab.is-active .itt__label { font-weight: 500; }

.itt__badge {
    position: absolute;
    top: -.5rem;                     /* -top-2 */
    inset-inline-end: -2rem;         /* -right-8 */
    z-index: 2;
    padding: .25rem .5rem;           /* px-2 py-1 */
    border-radius: 9999px 9999px 9999px .25rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cream);
    background: linear-gradient(160deg, #2f4858, #1b160f);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(170, 202, 255, .20),
        inset 0 0 10px 0 rgba(170, 202, 255, .30),
        inset 0 3px 7px 0 rgba(170, 202, 255, .40),
        inset 0 -4px 3px 0 rgba(170, 202, 255, .40),
        0 1px 3px 0 rgba(0, 0, 0, .50),
        0 4px 12px 0 rgba(0, 0, 0, .65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

/* Reflet : texte dupliquÃ©, retournÃ© verticalement et masquÃ©. */
.itt__badge-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: .4;
    transform: translate(-50%, -50%) scaleY(-1) translateY(.625rem);
    -webkit-mask-image: linear-gradient(to top, white 20%, transparent 50%);
    mask-image: linear-gradient(to top, white 20%, transparent 50%);
}

.itt__panels { width: 100%; }
.itt__panel:focus { outline: none; }
@media (min-width: 900px) {
    /* Sur grand écran, le dock passe en bas de l'écran. La sidebar
       reste pilotée par la même classe .is-open : le JavaScript n'a
       donc rien de spécial à faire, tout est dans le CSS. */
    .sidebar {
        top: auto;
        bottom: 0;
        inset-inline: 0;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: center;
        padding: 0 var(--s-md) calc(var(--s-md) + env(safe-area-inset-bottom));
        transition: transform .3s var(--ease), visibility .3s;
    }

    /* Fermée : le dock glisse sous l'écran, vers le bas (ou le haut
       en arabe, d'où translateY(100%) + l'inversion RTL). */
    .sidebar:not(.is-open) {
        transform: translateY(100%);
        visibility: hidden;
    }

    html[dir="rtl"] .sidebar:not(.is-open) {
        transform: translateY(100%);
    }

    .sidebar.is-open {
        transform: none;
        visibility: visible;
    }

    /* Au-dessus de 900 px, le dock passe en bas de l'écran : le
       bouton le rejoint. Il reste centré sur le dock et n'a plus
       de « bord intérieur » auquel s'accrocher.

       On annule d'abord le décalage du petit écran, sinon les
       deux se cumulent et le bouton dérive de son demi-diamètre. */
    .nav-toggle,
    html[dir="rtl"] .nav-toggle {
        inset-inline-start: 50%;
        top: auto;
        bottom: calc(var(--s-md) + 96px + env(safe-area-inset-bottom));
        transform: translate(-50%, 0);
        width: 44px;
        height: 44px;
        margin: 0;
    }

    html[dir="rtl"] .nav-toggle {
        transform: translate(50%, 0);
    }


    .dock {
        width: min(94vw, 1040px);
        max-width: 100%;
        max-height: none;
        flex-direction: row;
        align-items: center;
        padding: var(--s-xs) var(--s-md);
    }
    .dock__scroll {
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: var(--s-xs);
        max-height: none;
        padding: var(--s-xs);
        overflow-x: auto;
        overflow-y: hidden;
    }
    .dock__item {
        width: auto;
        min-width: 68px;
        min-height: 0;
        flex-direction: column;
        gap: 4px;
        padding: 6px 8px;
        text-align: center;
    }

    .dock__icon { width: 38px; height: 38px; }
    .dock__tip { align-items: center; max-width: 72px; }
    .dock__tip-name { font-size: .6875rem; }

    .dock__sep {
        width: 1px;
        height: 30px;
        align-self: center;
        margin: 0 var(--s-xs);
    }

    /* La pastille devient un trait horizontal sous la tuile active. */
    .dock__bubble {
        top: auto;
        bottom: 4px;
        left: var(--bubble-x, 0px);
        width: var(--bubble-w, 0px);
        height: 4px;
        transition: left .42s cubic-bezier(.34, 1.56, .64, 1),
                    width .42s cubic-bezier(.34, 1.56, .64, 1),
                    opacity .2s var(--ease);
    }

    /* Les palettes volantes s'ouvrent vers le HAUT. */
    .dock__subs {
        top: auto;
        bottom: calc(100% + 10px);
        inset-inline-start: 50%;
        transform: translateX(-50%);
        max-height: 50vh;
        animation: subs-up .2s var(--ease);
    }

    /* Le dock occupe le bas : on reserve la place dans le contenu,
       mais seulement s'il est visible. Sinon on rend ces 168 px
       au dernier plat de la carte. */
    .content { padding-bottom: 168px; }
    body.is-nav-closed .content { padding-bottom: 0; }
    .footer { padding-bottom: 0; }
}

@media (max-width: 380px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: 1.625rem; }
    .sidebar { width: min(90vw, var(--side-w)); }
}

/*    17. MOUVEMENT RÃ‰DUIT                                     */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .card:hover { transform: none; }
    .card:hover .card__img { transform: none; }
    /* Les tuiles doivent rester visibles mÃªme sans animation d'entrÃ©e. */
    .dock__item { opacity: 1; transform: none; animation: none; }
    /* Idem pour les icÃ´nes du composant 3d-icon-tabs. */
    .itt__icon { opacity: 1; transform: none; animation: none; }
}
.card { position: relative; }

.card__badges {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 16px);
}

.badge {
    padding: 3px 8px;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    box-shadow: var(--sh-sm);
}

.badge--nouveau       { background: var(--brass); color: #fff; }
.badge--signature     { background: var(--ink); }
.badge--coup_de_coeur { background: var(--brass-dark); color: var(--cream); }
html[lang="ar"] .badge { letter-spacing: 0; }
.card__allergenes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.allergene {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
    font-size: .6875rem;
    color: var(--ink-soft);
    background: rgba(184, 137, 74, .1);
    border: 1px solid rgba(184, 137, 74, .3);
    border-radius: 999px;
}

.allergene svg { flex: none; opacity: .75; }

.card__regimes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 0;
}

.regime {
    padding: 2px 7px;
    font-size: .625rem;
    font-weight: 600;
    color: #2f6b4f;
    background: rgba(47, 107, 79, .1);
    border-radius: 999px;
}

.regime--sans_gluten  { color: #8a5a1b; background: rgba(184, 137, 74, .16); }
.regime--sans_lactose,
.regime--sans_porc    { color: var(--ink-soft); background: rgba(27, 22, 15, .07); }
.regime--leger,
.regime--vegan        { color: #2f6b4f; background: rgba(47, 107, 79, .1); }

/* ── Plat indisponible ──────────────────────────────────────────
   On ne masque PAS le plat : un client qui le cherche doit voir
   qu'il existe et qu'il est épuisé, sinon il pense que le menu
   est faux. L'image est seulement estompée. */
.card[data-indisponible] .card__media {
    opacity: .45;
    filter: grayscale(.7);
}

.card[data-indisponible] .card__body { opacity: .6; }

.card__indispo {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    z-index: 3;
    padding: 5px 10px;
    font-size: .6875rem;
    font-weight: 700;
    text-align: center;
    color: var(--cream);
    background: linear-gradient(0deg, rgba(27, 22, 15, .92), rgba(27, 22, 15, .75));
}

/* Une carte épuisée ne réagit plus au survol. */
.card[data-indisponible] { cursor: default; }
.card[data-indisponible]:hover { transform: none; }

/*    18. IMPRESSION                                           */
@media print {
/* La recherche est repliée sur son icône : sur papier, elle n'a
   aucun sens d'y chercher quoi que ce soit. Le bouton de navigation
   non plus. */
.header, .search, .sidebar, .nav-toggle { display: none !important; }
    .app { display: block; padding: 0; }
    body { background: #fff; }
    .card { break-inside: avoid; border-color: #ccc; }
}

.footer__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--s-xs);
}

.footer__disclaimer {
    max-width: 460px;
    margin: var(--s-sm) auto 0;
    font-size: .6875rem;
    opacity: .8;
}

.itt {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.itt__list {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;                       /* space-x-8 */
    padding: var(--s-sm);
    border-radius: 9999px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.itt__list::-webkit-scrollbar { display: none; }

/* Un onglet. */
.itt__tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;                      
    padding-inline: .5rem;           
    font: inherit;
    color: var(--ink-mute);
    letter-spacing: .01em;
    cursor: pointer;
    border: 0;
    background: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: color .3s var(--ease), letter-spacing .3s var(--ease);
}

.itt__tab:hover { color: var(--ink-soft); }

.itt__tab.is-active {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: normal;
}

.itt__bubble {
    position: absolute;
    bottom: -.25rem;
    left: 0;
    z-index: 1;
    width: var(--bubble-w, 0);
    height: 4px;                     
    border-radius: 9999px;
    background: var(--ink);
    transition: transform .42s cubic-bezier(.34, 1.56, .64, 1), width .42s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
}

.itt__icon {
    position: relative;
    display: block;
    width: 5rem;
    height: 5rem;
    flex: none;
    opacity: 0;
    transform: scale(0);
    animation: itt-in .4s cubic-bezier(.34, 1.56, .64, 1) forwards;
    animation-delay: calc(var(--i, 0) * 100ms);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes itt-in {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

.itt__tab:not(.is-active) .itt__icon:hover  { transform: scale(1.1); }
.itt__tab:not(.is-active) .itt__icon:active { transform: scale(.8); }
.itt__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--cream-deep);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.itt__video.is-visible { opacity: 1; }
.itt__letter {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brass-dark);
    background: linear-gradient(155deg,
        rgba(184, 137, 74, .28), rgba(27, 22, 15, .10));
    border: 1px solid var(--side-edge);
}

.itt__label {
    font-size: .9375rem;
    line-height: 1.35;
}

.itt__tab.is-active .itt__label { font-weight: 500; }

.itt__badge {
    position: absolute;
    top: -.5rem;                     /* -top-2 */
    inset-inline-end: -2rem;         /* -right-8 */
    z-index: 2;
    padding: .25rem .5rem;           /* px-2 py-1 */
    border-radius: 9999px 9999px 9999px .25rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cream);
    background: linear-gradient(160deg, #2f4858, #1b160f);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(170, 202, 255, .20),
        inset 0 0 10px 0 rgba(170, 202, 255, .30),
        inset 0 3px 7px 0 rgba(170, 202, 255, .40),
        inset 0 -4px 3px 0 rgba(170, 202, 255, .40),
        0 1px 3px 0 rgba(0, 0, 0, .50),
        0 4px 12px 0 rgba(0, 0, 0, .65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

/* Reflet : texte dupliquÃ©, retournÃ© verticalement et masquÃ©. */
.itt__badge-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: .4;
    transform: translate(-50%, -50%) scaleY(-1) translateY(.625rem);
    -webkit-mask-image: linear-gradient(to top, white 20%, transparent 50%);
    mask-image: linear-gradient(to top, white 20%, transparent 50%);
}

.itt__panels { width: 100%; }
.itt__panel:focus { outline: none; }
@media (min-width: 900px) {
    /* Sur grand écran, le dock passe en bas de l'écran. La sidebar
       reste pilotée par la même classe .is-open : le JavaScript n'a
       donc rien de spécial à faire, tout est dans le CSS. */
    .sidebar {
        top: auto;
        bottom: 0;
        inset-inline: 0;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: center;
        padding: 0 var(--s-md) calc(var(--s-md) + env(safe-area-inset-bottom));
        transition: transform .3s var(--ease), visibility .3s;
    }

    /* Fermée : le dock glisse sous l'écran, vers le bas (ou le haut
       en arabe, d'où translateY(100%) + l'inversion RTL). */
    .sidebar:not(.is-open) {
        transform: translateY(100%);
        visibility: hidden;
    }

    html[dir="rtl"] .sidebar:not(.is-open) {
        transform: translateY(100%);
    }

    .sidebar.is-open {
        transform: none;
        visibility: visible;
    }

    /* Au-dessus de 900 px, le dock passe en bas de l'écran : le
       bouton le rejoint. Il reste centré sur le dock et n'a plus
       de « bord intérieur » auquel s'accrocher.

       On annule d'abord le décalage du petit écran, sinon les
       deux se cumulent et le bouton dérive de son demi-diamètre. */
    .nav-toggle,
    html[dir="rtl"] .nav-toggle {
        inset-inline-start: 50%;
        top: auto;
        bottom: calc(var(--s-md) + 96px + env(safe-area-inset-bottom));
        transform: translate(-50%, 0);
        width: 44px;
        height: 44px;
        margin: 0;
    }

    html[dir="rtl"] .nav-toggle {
        transform: translate(50%, 0);
    }


    .dock {
        width: min(94vw, 1040px);
        max-width: 100%;
        max-height: none;
        flex-direction: row;
        align-items: center;
        padding: var(--s-xs) var(--s-md);
    }
    .dock__scroll {
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: var(--s-xs);
        max-height: none;
        padding:0px!important;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .dock__item {
        width: auto;
        min-width: 68px;
        min-height: 0;
        flex-direction: column;
        gap: 4px;
        padding: 6px 8px;
        text-align: center;
    }

    .dock__icon { width: 38px; height: 38px; }
    .dock__tip { align-items: center; max-width: 72px; }
    .dock__tip-name { font-size: .6875rem; }

    .dock__sep {
        width: 1px;
        height: 30px;
        align-self: center;
        margin: 0 var(--s-xs);
    }

    /* La pastille devient un trait horizontal sous la tuile active. */
    .dock__bubble {
        top: auto;
        bottom: 4px;
        left: var(--bubble-x, 0px);
        width: var(--bubble-w, 0px);
        height: 4px;
        transition: left .42s cubic-bezier(.34, 1.56, .64, 1),
                    width .42s cubic-bezier(.34, 1.56, .64, 1),
                    opacity .2s var(--ease);
    }

    /* Les palettes volantes s'ouvrent vers le HAUT. */
    .dock__subs {
        top: auto;
        bottom: calc(100% + 10px);
        inset-inline-start: 50%;
        transform: translateX(-50%);
        max-height: 50vh;
        animation: subs-up .2s var(--ease);
    }

    /* Le dock occupe le bas : on reserve la place dans le contenu,
       mais seulement s'il est visible. Sinon on rend ces 168 px
       au dernier plat de la carte. */
    .content { padding-bottom: 168px; }
    body.is-nav-closed .content { padding-bottom: 0; }
    .footer { padding-bottom: 0; }
}

@media (max-width: 380px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: 1.625rem; }
    .sidebar { width: min(90vw, var(--side-w)); }
}

/*    17. MOUVEMENT RÃ‰DUIT                                     */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .card:hover { transform: none; }
    .card:hover .card__img { transform: none; }
    /* Les tuiles doivent rester visibles mÃªme sans animation d'entrÃ©e. */
    .dock__item { opacity: 1; transform: none; animation: none; }
    /* Idem pour les icÃ´nes du composant 3d-icon-tabs. */
    .itt__icon { opacity: 1; transform: none; animation: none; }
}
.card { position: relative; }

.card__badges {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 16px);
}

.badge {
    padding: 3px 8px;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    box-shadow: var(--sh-sm);
}

.badge--nouveau       { background: var(--brass); color: #fff; }
.badge--signature     { background: var(--ink); }
.badge--coup_de_coeur { background: var(--brass-dark); color: var(--cream); }
html[lang="ar"] .badge { letter-spacing: 0; }
.card__allergenes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.allergene {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
    font-size: .6875rem;
    color: var(--ink-soft);
    background: rgba(184, 137, 74, .1);
    border: 1px solid rgba(184, 137, 74, .3);
    border-radius: 999px;
}

.allergene svg { flex: none; opacity: .75; }

.card__regimes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 0;
}

.regime {
    padding: 2px 7px;
    font-size: .625rem;
    font-weight: 600;
    color: #2f6b4f;
    background: rgba(47, 107, 79, .1);
    border-radius: 999px;
}

.regime--sans_gluten  { color: #8a5a1b; background: rgba(184, 137, 74, .16); }
.regime--sans_lactose,
.regime--sans_porc    { color: var(--ink-soft); background: rgba(27, 22, 15, .07); }
.regime--leger,
.regime--vegan        { color: #2f6b4f; background: rgba(47, 107, 79, .1); }

/* ── Plat indisponible ──────────────────────────────────────────
   On ne masque PAS le plat : un client qui le cherche doit voir
   qu'il existe et qu'il est épuisé, sinon il pense que le menu
   est faux. L'image est seulement estompée. */
.card[data-indisponible] .card__media {
    opacity: .45;
    filter: grayscale(.7);
}

.card[data-indisponible] .card__body { opacity: .6; }

.card__indispo {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    z-index: 3;
    padding: 5px 10px;
    font-size: .6875rem;
    font-weight: 700;
    text-align: center;
    color: var(--cream);
    background: linear-gradient(0deg, rgba(27, 22, 15, .92), rgba(27, 22, 15, .75));
}

/* Une carte épuisée ne réagit plus au survol. */
.card[data-indisponible] { cursor: default; }
.card[data-indisponible]:hover { transform: none; }

/*    18. IMPRESSION                                           */
@media print {
/* La recherche est repliée sur son icône : sur papier, elle n'a
   aucun sens d'y chercher quoi que ce soit. Le bouton de navigation
   non plus. */
.header, .search, .sidebar, .nav-toggle { display: none !important; }
    .app { display: block; padding: 0; }
    body { background: #fff; }
    .card { break-inside: avoid; border-color: #ccc; }
}

.panel__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink-soft);
    border-radius: 50%;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.panel__close:hover { background: var(--cream-deep); color: var(--ink); }

.panel__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.panel__loading {
    padding: var(--s-xl) var(--s-md);
    text-align: center;
    font-size: .875rem;
    color: var(--ink-mute);
}

/* Le contenu injectÃ© reprend la mise en page de la page dÃ©tail. */
.detail--panel {
    max-width: none;
    padding: var(--s-md) var(--s-md) var(--s-xl);
}

.detail--panel .detail__media {
    width: min(280px, 78vw);
}

/* Verrouille le dÃ©filement de la page derriÃ¨re le panneau. */
body.is-panel-open { overflow: hidden; }

@media (max-width: 520px) {
    .panel__side { width: 100vw; }
    .detail--panel .detail__media { width: min(240px, 68vw); }
}

/*    12. Ã‰TATS VIDES                                          */
.empty {
    padding: var(--s-xl) var(--s-md);
    text-align: center;
    color: var(--ink-mute);
}

.empty.is-visible { display: block; }
.empty__icon { margin-bottom: var(--s-sm); opacity: .5; }
.empty__text { font-size: .9375rem; }

/*    14. PIED DE PAGE                                         */
.footer {
    padding: var(--s-lg) var(--s-md);
    text-align: center;
    font-size: .75rem;
    line-height: 1.7;
    color: var(--ink-mute);
    background: rgba(239, 233, 220, .6);
    border-top: 1px solid var(--line);
}

.footer__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--s-xs);
}

.footer__disclaimer {
    max-width: 460px;
    margin: var(--s-sm) auto 0;
    font-size: .6875rem;
    opacity: .8;
}

.itt {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.itt__list {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;                       /* space-x-8 */
    padding: var(--s-sm);
    border-radius: 9999px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.itt__list::-webkit-scrollbar { display: none; }

/* Un onglet. */
.itt__tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;                      
    padding-inline: .5rem;           
    font: inherit;
    color: var(--ink-mute);
    letter-spacing: .01em;
    cursor: pointer;
    border: 0;
    background: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: color .3s var(--ease), letter-spacing .3s var(--ease);
}

.itt__tab:hover { color: var(--ink-soft); }

.itt__tab.is-active {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: normal;
}

.itt__bubble {
    position: absolute;
    bottom: -.25rem;
    left: 0;
    z-index: 1;
    width: var(--bubble-w, 0);
    height: 4px;                     
    border-radius: 9999px;
    background: var(--ink);
    transition: transform .42s cubic-bezier(.34, 1.56, .64, 1), width .42s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
}

.itt__icon {
    position: relative;
    display: block;
    width: 5rem;
    height: 5rem;
    flex: none;
    opacity: 0;
    transform: scale(0);
    animation: itt-in .4s cubic-bezier(.34, 1.56, .64, 1) forwards;
    animation-delay: calc(var(--i, 0) * 100ms);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes itt-in {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

.itt__tab:not(.is-active) .itt__icon:hover  { transform: scale(1.1); }
.itt__tab:not(.is-active) .itt__icon:active { transform: scale(.8); }
.itt__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--cream-deep);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.itt__video.is-visible { opacity: 1; }
.itt__letter {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brass-dark);
    background: linear-gradient(155deg,
        rgba(184, 137, 74, .28), rgba(27, 22, 15, .10));
    border: 1px solid var(--side-edge);
}

.itt__label {
    font-size: .9375rem;
    line-height: 1.35;
}

.itt__tab.is-active .itt__label { font-weight: 500; }

.itt__badge {
    position: absolute;
    top: -.5rem;                     /* -top-2 */
    inset-inline-end: -2rem;         /* -right-8 */
    z-index: 2;
    padding: .25rem .5rem;           /* px-2 py-1 */
    border-radius: 9999px 9999px 9999px .25rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cream);
    background: linear-gradient(160deg, #2f4858, #1b160f);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(170, 202, 255, .20),
        inset 0 0 10px 0 rgba(170, 202, 255, .30),
        inset 0 3px 7px 0 rgba(170, 202, 255, .40),
        inset 0 -4px 3px 0 rgba(170, 202, 255, .40),
        0 1px 3px 0 rgba(0, 0, 0, .50),
        0 4px 12px 0 rgba(0, 0, 0, .65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

/* Reflet : texte dupliquÃ©, retournÃ© verticalement et masquÃ©. */
.itt__badge-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: .4;
    transform: translate(-50%, -50%) scaleY(-1) translateY(.625rem);
    -webkit-mask-image: linear-gradient(to top, white 20%, transparent 50%);
    mask-image: linear-gradient(to top, white 20%, transparent 50%);
}

.itt__panels { width: 100%; }
.itt__panel:focus { outline: none; }
@media (min-width: 900px) {
    /* Sur grand écran, le dock passe en bas de l'écran. La sidebar
       reste pilotée par la même classe .is-open : le JavaScript n'a
       donc rien de spécial à faire, tout est dans le CSS. */
    .sidebar {
        top: auto;
        bottom: 0;
        inset-inline: 0;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: center;
        padding: 0 var(--s-md) calc(var(--s-md) + env(safe-area-inset-bottom));
        transition: transform .3s var(--ease), visibility .3s;
    }

    /* Fermée : le dock glisse sous l'écran, vers le bas (ou le haut
       en arabe, d'où translateY(100%) + l'inversion RTL). */
    .sidebar:not(.is-open) {
        transform: translateY(100%);
        visibility: hidden;
    }

    html[dir="rtl"] .sidebar:not(.is-open) {
        transform: translateY(100%);
    }

    .sidebar.is-open {
        transform: none;
        visibility: visible;
    }

    /* Au-dessus de 900 px, le dock passe en bas de l'écran : le
       bouton le rejoint. Il reste centré sur le dock et n'a plus
       de « bord intérieur » auquel s'accrocher.

       On annule d'abord le décalage du petit écran, sinon les
       deux se cumulent et le bouton dérive de son demi-diamètre. */
    .nav-toggle,
    html[dir="rtl"] .nav-toggle {
        inset-inline-start: 50%;
        top: auto;
        bottom: calc(var(--s-md) + 96px + env(safe-area-inset-bottom));
        transform: translate(-50%, 0);
        width: 44px;
        height: 44px;
        margin: 0;
    }

    html[dir="rtl"] .nav-toggle {
        transform: translate(50%, 0);
    }


    .dock {
        width: min(94vw, 1040px);
        max-width: 100%;
        max-height: none;
        flex-direction: row;
        align-items: center;
        padding: var(--s-xs) var(--s-md);
    }
    .dock__scroll {
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: var(--s-xs);
        max-height: none;
        padding:0px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .dock__item {
        width: auto;
        min-width: 68px;
        min-height: 0;
        flex-direction: column;
        gap: 4px;
        padding: 6px 8px;
        text-align: center;
    }

    .dock__icon { width: 38px; height: 38px; }
    .dock__tip { align-items: center; max-width: 72px; }
    .dock__tip-name { font-size: .6875rem; }

    .dock__sep {
        width: 1px;
        height: 30px;
        align-self: center;
        margin: 0 var(--s-xs);
    }

    /* La pastille devient un trait horizontal sous la tuile active. */
    .dock__bubble {
        top: auto;
        bottom: 4px;
        left: var(--bubble-x, 0px);
        width: var(--bubble-w, 0px);
        height: 4px;
        transition: left .42s cubic-bezier(.34, 1.56, .64, 1),
                    width .42s cubic-bezier(.34, 1.56, .64, 1),
                    opacity .2s var(--ease);
    }

    /* Les palettes volantes s'ouvrent vers le HAUT. */
    .dock__subs {
        top: auto;
        bottom: calc(100% + 10px);
        inset-inline-start: 50%;
        transform: translateX(-50%);
        max-height: 50vh;
        animation: subs-up .2s var(--ease);
    }

    /* Le dock occupe le bas : on reserve la place dans le contenu,
       mais seulement s'il est visible. Sinon on rend ces 168 px
       au dernier plat de la carte. */
    .content { padding-bottom: 168px; }
    body.is-nav-closed .content { padding-bottom: 0; }
    .footer { padding-bottom: 0; }
}

@media (max-width: 380px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: 1.625rem; }
    .sidebar { width: min(90vw, var(--side-w)); }
}

/*    17. MOUVEMENT RÃ‰DUIT                                     */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .card:hover { transform: none; }
    .card:hover .card__img { transform: none; }
    /* Les tuiles doivent rester visibles mÃªme sans animation d'entrÃ©e. */
    .dock__item { opacity: 1; transform: none; animation: none; }
    /* Idem pour les icÃ´nes du composant 3d-icon-tabs. */
    .itt__icon { opacity: 1; transform: none; animation: none; }
}
.card { position: relative; }

.card__badges {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 16px);
}

.badge {
    padding: 3px 8px;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    box-shadow: var(--sh-sm);
}

.badge--nouveau       { background: var(--brass); color: #fff; }
.badge--signature     { background: var(--ink); }
.badge--coup_de_coeur { background: var(--brass-dark); color: var(--cream); }
html[lang="ar"] .badge { letter-spacing: 0; }
.card__allergenes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.allergene {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
    font-size: .6875rem;
    color: var(--ink-soft);
    background: rgba(184, 137, 74, .1);
    border: 1px solid rgba(184, 137, 74, .3);
    border-radius: 999px;
}

.allergene svg { flex: none; opacity: .75; }

.card__regimes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 0;
}

.regime {
    padding: 2px 7px;
    font-size: .625rem;
    font-weight: 600;
    color: #2f6b4f;
    background: rgba(47, 107, 79, .1);
    border-radius: 999px;
}

.regime--sans_gluten  { color: #8a5a1b; background: rgba(184, 137, 74, .16); }
.regime--sans_lactose,
.regime--sans_porc    { color: var(--ink-soft); background: rgba(27, 22, 15, .07); }
.regime--leger,
.regime--vegan        { color: #2f6b4f; background: rgba(47, 107, 79, .1); }

/* ── Plat indisponible ──────────────────────────────────────────
   On ne masque PAS le plat : un client qui le cherche doit voir
   qu'il existe et qu'il est épuisé, sinon il pense que le menu
   est faux. L'image est seulement estompée. */
.card[data-indisponible] .card__media {
    opacity: .45;
    filter: grayscale(.7);
}

.card[data-indisponible] .card__body { opacity: .6; }

.card__indispo {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    z-index: 3;
    padding: 5px 10px;
    font-size: .6875rem;
    font-weight: 700;
    text-align: center;
    color: var(--cream);
    background: linear-gradient(0deg, rgba(27, 22, 15, .92), rgba(27, 22, 15, .75));
}

/* Une carte épuisée ne réagit plus au survol. */
.card[data-indisponible] { cursor: default; }
.card[data-indisponible]:hover { transform: none; }

/*    18. IMPRESSION                                           */
@media print {
/* La recherche est repliée sur son icône : sur papier, elle n'a
   aucun sens d'y chercher quoi que ce soit. Le bouton de navigation
   non plus. */
.header, .search, .sidebar, .nav-toggle { display: none !important; }
    .app { display: block; padding: 0; }
    body { background: #fff; }
    .card { break-inside: avoid; border-color: #ccc; }
}

.footer__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--s-xs);
}

.footer__disclaimer {
    max-width: 460px;
    margin: var(--s-sm) auto 0;
    font-size: .6875rem;
    opacity: .8;
}

.itt {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.itt__list {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;                       /* space-x-8 */
    padding: var(--s-sm);
    border-radius: 9999px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.itt__list::-webkit-scrollbar { display: none; }

/* Un onglet. */
.itt__tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;                      
    padding-inline: .5rem;           
    font: inherit;
    color: var(--ink-mute);
    letter-spacing: .01em;
    cursor: pointer;
    border: 0;
    background: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: color .3s var(--ease), letter-spacing .3s var(--ease);
}

.itt__tab:hover { color: var(--ink-soft); }

.itt__tab.is-active {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: normal;
}

.itt__bubble {
    position: absolute;
    bottom: -.25rem;
    left: 0;
    z-index: 1;
    width: var(--bubble-w, 0);
    height: 4px;                     
    border-radius: 9999px;
    background: var(--ink);
    transition: transform .42s cubic-bezier(.34, 1.56, .64, 1), width .42s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
}

.itt__icon {
    position: relative;
    display: block;
    width: 5rem;
    height: 5rem;
    flex: none;
    opacity: 0;
    transform: scale(0);
    animation: itt-in .4s cubic-bezier(.34, 1.56, .64, 1) forwards;
    animation-delay: calc(var(--i, 0) * 100ms);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes itt-in {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

.itt__tab:not(.is-active) .itt__icon:hover  { transform: scale(1.1); }
.itt__tab:not(.is-active) .itt__icon:active { transform: scale(.8); }
.itt__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--cream-deep);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.itt__video.is-visible { opacity: 1; }
.itt__letter {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brass-dark);
    background: linear-gradient(155deg,
        rgba(184, 137, 74, .28), rgba(27, 22, 15, .10));
    border: 1px solid var(--side-edge);
}

.itt__label {
    font-size: .9375rem;
    line-height: 1.35;
}

.itt__tab.is-active .itt__label { font-weight: 500; }

.itt__badge {
    position: absolute;
    top: -.5rem;                     /* -top-2 */
    inset-inline-end: -2rem;         /* -right-8 */
    z-index: 2;
    padding: .25rem .5rem;           /* px-2 py-1 */
    border-radius: 9999px 9999px 9999px .25rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cream);
    background: linear-gradient(160deg, #2f4858, #1b160f);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(170, 202, 255, .20),
        inset 0 0 10px 0 rgba(170, 202, 255, .30),
        inset 0 3px 7px 0 rgba(170, 202, 255, .40),
        inset 0 -4px 3px 0 rgba(170, 202, 255, .40),
        0 1px 3px 0 rgba(0, 0, 0, .50),
        0 4px 12px 0 rgba(0, 0, 0, .65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

/* Reflet : texte dupliquÃ©, retournÃ© verticalement et masquÃ©. */
.itt__badge-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: .4;
    transform: translate(-50%, -50%) scaleY(-1) translateY(.625rem);
    -webkit-mask-image: linear-gradient(to top, white 20%, transparent 50%);
    mask-image: linear-gradient(to top, white 20%, transparent 50%);
}

.itt__panels { width: 100%; }
.itt__panel:focus { outline: none; }
@media (min-width: 900px) {
    /* Sur grand écran, le dock passe en bas de l'écran. La sidebar
       reste pilotée par la même classe .is-open : le JavaScript n'a
       donc rien de spécial à faire, tout est dans le CSS. */
    .sidebar {
        top: auto;
        bottom: 0;
        inset-inline: 0;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: center;
        padding: 0 var(--s-md) calc(var(--s-md) + env(safe-area-inset-bottom));
        transition: transform .3s var(--ease), visibility .3s;
    }

    /* Fermée : le dock glisse sous l'écran, vers le bas (ou le haut
       en arabe, d'où translateY(100%) + l'inversion RTL). */
    .sidebar:not(.is-open) {
        transform: translateY(100%);
        visibility: hidden;
    }

    html[dir="rtl"] .sidebar:not(.is-open) {
        transform: translateY(100%);
    }

    .sidebar.is-open {
        transform: none;
        visibility: visible;
    }

    /* Au-dessus de 900 px, le dock passe en bas de l'écran : le
       bouton le rejoint. Il reste centré sur le dock et n'a plus
       de « bord intérieur » auquel s'accrocher.

       On annule d'abord le décalage du petit écran, sinon les
       deux se cumulent et le bouton dérive de son demi-diamètre. */
    .nav-toggle,
    html[dir="rtl"] .nav-toggle {
        inset-inline-start: 50%;
        top: auto;
        bottom: calc(var(--s-md) + 96px + env(safe-area-inset-bottom));
        transform: translate(-50%, 0);
        width: 44px;
        height: 44px;
        margin: 0;
    }

    html[dir="rtl"] .nav-toggle {
        transform: translate(50%, 0);
    }


    .dock {
        width: min(94vw, 1040px);
        max-width: 100%;
        max-height: none;
        flex-direction: row;
        align-items: center;
        padding: var(--s-xs) var(--s-md);
    }
    .dock__scroll {
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: var(--s-xs);
        max-height: none;
        padding:0px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .dock__item {
        width: auto;
        min-width: 68px;
        min-height: 0;
        flex-direction: column;
        gap: 4px;
        padding: 6px 8px;
        text-align: center;
    }

    .dock__icon { width: 38px; height: 38px; }
    .dock__tip { align-items: center; max-width: 72px; }
    .dock__tip-name { font-size: .6875rem; }

    .dock__sep {
        width: 1px;
        height: 30px;
        align-self: center;
        margin: 0 var(--s-xs);
    }

    /* La pastille devient un trait horizontal sous la tuile active. */
    .dock__bubble {
        top: auto;
        bottom: 4px;
        left: var(--bubble-x, 0px);
        width: var(--bubble-w, 0px);
        height: 4px;
        transition: left .42s cubic-bezier(.34, 1.56, .64, 1),
                    width .42s cubic-bezier(.34, 1.56, .64, 1),
                    opacity .2s var(--ease);
    }

    /* Les palettes volantes s'ouvrent vers le HAUT. */
    .dock__subs {
        top: auto;
        bottom: calc(100% + 10px);
        inset-inline-start: 50%;
        transform: translateX(-50%);
        max-height: 50vh;
        animation: subs-up .2s var(--ease);
    }

    /* Le dock occupe le bas : on reserve la place dans le contenu,
       mais seulement s'il est visible. Sinon on rend ces 168 px
       au dernier plat de la carte. */
    .content { padding-bottom: 168px; }
    body.is-nav-closed .content { padding-bottom: 0; }
    .footer { padding-bottom: 0; }
}

@media (max-width: 380px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: 1.625rem; }
    .sidebar { width: min(90vw, var(--side-w)); }
}

/*    17. MOUVEMENT RÃ‰DUIT                                     */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .card:hover { transform: none; }
    .card:hover .card__img { transform: none; }
    /* Les tuiles doivent rester visibles mÃªme sans animation d'entrÃ©e. */
    .dock__item { opacity: 1; transform: none; animation: none; }
    /* Idem pour les icÃ´nes du composant 3d-icon-tabs. */
    .itt__icon { opacity: 1; transform: none; animation: none; }
}
.card { position: relative; }

.card__badges {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 16px);
}

.badge {
    padding: 3px 8px;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    box-shadow: var(--sh-sm);
}

.badge--nouveau       { background: var(--brass); color: #fff; }
.badge--signature     { background: var(--ink); }
.badge--coup_de_coeur { background: var(--brass-dark); color: var(--cream); }
html[lang="ar"] .badge { letter-spacing: 0; }
.card__allergenes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.allergene {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px 2px 5px;
    font-size: .6875rem;
    color: var(--ink-soft);
    background: rgba(184, 137, 74, .1);
    border: 1px solid rgba(184, 137, 74, .3);
    border-radius: 999px;
}

.allergene svg { flex: none; opacity: .75; }

.card__regimes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 0;
}

.regime {
    padding: 2px 7px;
    font-size: .625rem;
    font-weight: 600;
    color: #2f6b4f;
    background: rgba(47, 107, 79, .1);
    border-radius: 999px;
}

.regime--sans_gluten  { color: #8a5a1b; background: rgba(184, 137, 74, .16); }
.regime--sans_lactose,
.regime--sans_porc    { color: var(--ink-soft); background: rgba(27, 22, 15, .07); }
.regime--leger,
.regime--vegan        { color: #2f6b4f; background: rgba(47, 107, 79, .1); }

/* ── Plat indisponible ──────────────────────────────────────────
   On ne masque PAS le plat : un client qui le cherche doit voir
   qu'il existe et qu'il est épuisé, sinon il pense que le menu
   est faux. L'image est seulement estompée. */
.card[data-indisponible] .card__media {
    opacity: .45;
    filter: grayscale(.7);
}

.card[data-indisponible] .card__body { opacity: .6; }

.card__indispo {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    z-index: 3;
    padding: 5px 10px;
    font-size: .6875rem;
    font-weight: 700;
    text-align: center;
    color: var(--cream);
    background: linear-gradient(0deg, rgba(27, 22, 15, .92), rgba(27, 22, 15, .75));
}

/* Une carte épuisée ne réagit plus au survol. */
.card[data-indisponible] { cursor: default; }
.card[data-indisponible]:hover { transform: none; }

/*    18. IMPRESSION                                           */
@media print {
/* La recherche est repliée sur son icône : sur papier, elle n'a
   aucun sens d'y chercher quoi que ce soit. Le bouton de navigation
   non plus. */
.header, .search, .sidebar, .nav-toggle { display: none !important; }
    .app { display: block; padding: 0; }
    body { background: #fff; }
    .card { break-inside: avoid; border-color: #ccc; }
}
