/* Socle commun à tous les thèmes : reset léger, accessibilité, structure des composants partagés.
   AUCUNE couleur, police ni rayon en dur : tout vient des variables du style du commerce
   (templates/theme/_style.html.twig) : --color-primary, --color-on-primary, --color-secondary,
   --color-on-secondary, --color-surface, --color-surface-alt, --color-ink, --color-muted, --color-line,
   --font-heading, --font-body, --radius.

   Teintes dérivées, lisibles quelle que soit la couleur choisie (jaune très clair comme noir) :
   la luminosité est bornée en OKLCH (syntaxe de couleur relative), avec un repli color-mix(). */
:root {
    --accent-on-light: color-mix(in oklch, var(--color-primary) 50%, var(--color-ink));
    --accent-on-light: oklch(from var(--color-primary) min(l, .46) c h);
    --accent-on-dark: color-mix(in oklch, var(--color-primary) 45%, var(--color-surface));
    --accent-on-dark: oklch(from var(--color-primary) max(l, .82) min(c, .13) h);
    --second-on-light: color-mix(in oklch, var(--color-secondary) 50%, var(--color-ink));
    --second-on-light: oklch(from var(--color-secondary) min(l, .46) c h);
    --second-on-dark: color-mix(in oklch, var(--color-secondary) 45%, var(--color-surface));
    --second-on-dark: oklch(from var(--color-secondary) max(l, .8) min(c, .14) h);
    /* Fond sombre teinté par la principale (ardoise, nuit…) : toujours assez sombre pour un texte clair. */
    --deep: color-mix(in oklch, var(--color-primary) 35%, var(--color-ink));
    --deep: oklch(from var(--color-primary) min(l, .27) min(c, .05) h);
    --gutter: 1rem;
    --measure: 36rem;
}

/* Rayon « petit » (vignettes, étiquettes) suivant le style d'angles ; --radius « 0 » sans unité est
   reformulé en 0px pour rester utilisable dans calc()/min(). */
.corners-sharp { --radius: 0px; --radius-small: 0px; }
.corners-soft { --radius-small: .3rem; }
.corners-round { --radius-small: .6rem; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-surface);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
    margin: 0 0 .5em;
    line-height: 1.1;
    font-family: var(--font-heading);
    font-weight: 400;
    font-synthesis-weight: none;
    text-wrap: balance;
    overflow-wrap: break-word;
}
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; }
address { font-style: normal; }
figure { margin: 0; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .6rem 1rem;
    background: var(--color-ink); color: var(--color-surface); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.icon { flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em; }

.main { width: min(100% - 2 * var(--gutter), var(--max-width, 64rem)); margin-inline: auto; padding-block: 1.5rem 3rem; }

/* Navigation */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand__logo { max-height: 56px; width: auto; }
.brand__name { font-family: var(--font-heading); line-height: 1; }
.nav__list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.nav__link { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; text-decoration: none; color: inherit; }
.nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }

/* Boutons */
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px;
    padding: .7rem 1.3rem; text-decoration: none; font-weight: 700; cursor: pointer; line-height: 1.15;
    border-radius: var(--radius);
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.button--booking { background: var(--color-primary); color: var(--color-on-primary); }
.button:hover { transform: translateY(-1px); }

/* Ouvert / fermé : icône horloge + mot, la couleur n'est jamais la seule information */
.status { display: block; margin: 0 0 1rem; }
.status > * { white-space: nowrap; }
.status__label { font-weight: 700; display: inline-flex; align-items: center; gap: .4em; margin-right: .2em; }
.status__label::before { content: ""; width: .55em; height: .55em; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.status--open .status__label::before { background: #2f9e5b; border-color: #2f9e5b; }
/* Fermeture exceptionnelle : bandeau en haut de chaque page (_partials/closure_banner.html.twig) */
.closure-banner {
    position: relative; z-index: 60;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin: 0; padding: .7rem 1rem;
    background: var(--color-ink); color: var(--color-surface);
    font-weight: 700; font-size: .95rem; line-height: 1.35; text-align: center;
}
.closure-banner .icon { width: 1.1em; height: 1.1em; flex: none; }
.hours-list__closed--exceptional { font-weight: 700; opacity: 1; }
.hours-list__notice { margin: .8rem 0 0; font-weight: 700; }

/* Horaires */
.hours__table th, .hours__table td { padding: .45rem 0; vertical-align: top; }
.hours__table th { font-weight: 400; width: 38%; }
.hours__day--today th, .hours__day--today td { font-weight: 700; }
.hours__slot { display: inline-block; margin-right: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours__closed { color: var(--color-muted); }

/* Horaires (hours_list.html.twig) : le jour à gauche, jamais écrasé (min-content) ; les créneaux à droite.
   Bloc étroit : créneaux empilés. Bloc large (≥ 23rem) : une colonne par service, partagée par toutes les lignes. */
.hours { container-type: inline-size; }
.hours-list { display: grid; grid-template-columns: minmax(min-content, 1fr) auto; column-gap: 1rem; margin: 0; font-variant-numeric: tabular-nums lining-nums; }
.hours-list__day {
    display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: baseline;
    padding-block: .6rem; border-bottom: 1px solid var(--hours-line, var(--color-line));
}
.hours-list__label { text-align: left; }
.hours-list__today { display: block; font-size: .8em; font-weight: 400; line-height: 1.3; }
.hours-list__slots { display: flex; flex-direction: column; align-items: flex-end; margin: 0; }
.hours-list__slot { white-space: nowrap; }
.hours-list__closed { opacity: .75; }
/* Jour courant : nom en gras, jamais les chiffres (le gras les élargit et casse l'alignement) */
.hours-list__day.is-today .hours-list__label { font-weight: 700; }
@container (min-width: 23rem) {
    .hours-list { grid-template-columns: minmax(min-content, 1fr) repeat(var(--slots, 2), auto); column-gap: clamp(1rem, 4cqi, 1.75rem); }
    .hours-list__slots { display: grid; grid-template-columns: subgrid; grid-column: 2 / -1; }
    .hours-list__slot { text-align: right; }
    .hours-list__slot--evening { grid-column: -2 / -1; }
    .hours-list__closed { grid-column: 1 / -1; text-align: right; }
}

/* Contact */
.contact__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.contact__item { display: flex; gap: .7rem; align-items: flex-start; }
.contact__icon { margin-top: .2em; }
.contact__link { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font-weight: 700; }
.contact__item--address .contact__link { min-height: 36px; }
.contact__address { margin-bottom: .1rem; }

/* Carte */
.dishes { margin: 0; padding: 0; list-style: none; }
.dish { padding-block: .9rem; }
.dish__head { display: flex; align-items: baseline; gap: .5rem; }
.dish__name { margin: 0; font-size: 1.12rem; text-wrap: pretty; }
.dish__leader { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted currentColor; opacity: .4; transform: translateY(-.28em); }
.dish__price { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.dish__description { margin: .25rem 0 .35rem; color: var(--color-muted); max-width: var(--measure); }
.dish__allergens { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; margin: .3rem 0 0; font-size: .85rem; color: var(--color-muted); }
.dish__allergens .icon { width: 1em; height: 1em; align-self: center; }
.dish__allergens-label { font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 700; }
/* Article avec photo (facultative) : vignette carrée à gauche, texte à droite ; sans photo, rien ne change. */
.dishes .dish--photo { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.dish__photo { margin: 0; }
.dish__image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-small, 0); }
.dish__body { min-width: 0; }
.dish__from { font-size: .78em; font-weight: 400; }
/* « à partir de » + nom long dans une colonne étroite : le prix passe à la ligne plutôt que de déborder */
.dish__head:has(.dish__from) { flex-wrap: wrap; }
.dish__price:has(.dish__from) { white-space: normal; }
@media (min-width: 40rem) { .dishes .dish--photo { grid-template-columns: 7rem minmax(0, 1fr); } }
.badges { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .35rem 0 0; padding: 0; list-style: none; }
.badge { display: inline-flex; align-items: center; gap: .3em; font-size: .85rem; font-weight: 700; font-variant-caps: all-small-caps; letter-spacing: .07em; }
.badge .icon { width: 1.1em; height: 1.1em; }
.menu-empty { font-size: 1.2rem; }

/* Allergènes */
.allergens { margin-top: 3rem; }
.allergens__scroll { overflow-x: auto; }
.allergens__scroll:focus-visible { outline-offset: 0; }
.allergens__table th, .allergens__table td { padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.allergens__table thead th { font-size: .8rem; font-variant-caps: all-small-caps; font-size: .95rem; letter-spacing: .08em; }
.allergens__table tbody th { font-weight: 700; width: 38%; }
.legal-notice { margin-top: 1.5rem; font-size: .875rem; color: var(--color-muted); max-width: 44rem; }
.legal-notice__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; color: var(--color-ink); }
.language-switch a { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; min-height: 44px; }

/* Pied de page */
.footer { padding: 2.5rem var(--gutter); font-size: .9375rem; }
.footer__inner { width: min(100%, var(--max-width, 64rem)); margin-inline: auto; }
.footer__name { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.1; margin-bottom: .75rem; }
.footer__details { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.footer__details li { display: inline-flex; align-items: center; gap: .4em; }
.footer__details a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal { margin: 0; font-size: .85rem; }
.footer__legal a { display: inline-block; padding-block: .6rem; }

/* Photos */
.hero__image, .secondary-image { width: 100%; object-fit: cover; }

/* Mentions légales */
.legal { max-width: 44rem; }
.legal h2 { margin-top: 1.8rem; font-size: 1.35rem; }

@media (min-width: 48rem) {
    :root { --gutter: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.daily-special__date::first-letter { text-transform: uppercase; }

/* Barre d'actions fixe sur téléphone (appeler, itinéraire, réserver / carte) : _partials/action_bar.html.twig */
.action-bar { display: none; }
@media (max-width: 767.98px) {
    .site:has(.action-bar) { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
    .action-bar {
        position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem;
        padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
        background: var(--color-surface); color: var(--color-ink);
        border-top: 1px solid var(--color-line);
        box-shadow: 0 -6px 18px -12px rgba(0, 0, 0, .35);
    }
    .action-bar__item {
        display: flex; align-items: center; justify-content: center; gap: .4rem;
        min-height: 3rem; padding: 0 .5rem;
        border: 1.5px solid var(--color-line); border-radius: var(--radius);
        color: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
    }
    .action-bar__item--main { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
    .action-bar .icon { width: 1.15em; height: 1.15em; flex: none; }
}

/* Aperçu (lien signé) : bandeau fixe en bas, la barre d'action n'est pas affichée en aperçu */
.preview-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    margin: 0;
    padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom));
    background: #1f1a14;
    color: #fdf1d6;
    font: 600 .85rem/1.35 system-ui, sans-serif;
    text-align: center;
}
.site:has(> .preview-bar) { padding-bottom: 3rem; }

/* Options (plugins) : sections d'accueil (.plugin-section--<clé>) et pages (.plugin-page--<clé>).
   Structure seulement, commune à tous les thèmes ; chaque thème donne le ton dans son CSS (bloc « Plugins »).
   Aucune couleur, police ni rayon en dur : uniquement les variables du style du commerce. */

.plugin-section { padding-block: 2.25rem; }
.plugin-section__head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem;
    margin-bottom: 1.25rem;
}
.plugin-section__title { margin: 0; font-size: clamp(1.6rem, 6vw, 2.2rem); }
.plugin-section__more { margin: 1.25rem 0 0; }
.plugin-section__more a { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 700; }

.plugin-page { padding-block: 1rem 2rem; }
.plugin-page__head { margin-bottom: 1.75rem; }
.plugin-page__kicker { margin: 0 0 .25rem; font-variant-caps: all-small-caps; letter-spacing: .14em; font-weight: 700; }
.plugin-page__title { margin: 0; font-size: clamp(2.4rem, 10vw, 3.8rem); }
.plugin-page__empty { max-width: var(--measure); font-size: 1.15rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.gallery__figure { height: 100%; }
.gallery__zoom { display: block; }
.gallery__image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__caption { margin-top: .45rem; font-size: .9rem; line-height: 1.3; }

/* Événements */
.events { margin-bottom: 2.5rem; }
.events__heading { margin-bottom: .5rem; font-size: 1.5rem; }
.event { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0 1rem; align-items: start; padding-block: 1rem; }
.event__date { display: grid; justify-items: center; gap: .15rem; margin: 0; padding: .6rem .25rem; line-height: 1.15; text-align: center; }
.event__weekday, .event__month { font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: .95rem; }
.event__day { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; font-variant-numeric: lining-nums; }
.event__title { margin: 0 0 .3rem; font-size: 1.3rem; }
.event__when { display: flex; gap: .45em; margin: 0 0 .5rem; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.event__when .icon { margin-top: .1em; }
.event__description { margin: 0; max-width: var(--measure); }
.event__image { grid-column: 1 / -1; width: 100%; margin-top: .9rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-small); }
.events--past .event__image { display: none; }
.events--past .event__title { font-size: 1.1rem; }

/* Avis */
.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: 0; }
.rating-summary__value { font-family: var(--font-heading); font-size: 2.1rem; line-height: 1; }
.rating-summary__scale { margin-left: .08em; font-size: .5em; }
.rating-summary__count { font-size: .9rem; }
.stars { display: inline-flex; gap: .08rem; }
.star { width: 1.05em; height: 1.05em; }
.star--off { opacity: .4; }
.reviews { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.review__figure { margin: 0; }
.review__text { margin: .5rem 0 .75rem; }
.review__text p { margin: 0; font-size: 1.08rem; line-height: 1.5; text-wrap: pretty; }
.review__meta { display: flex; flex-wrap: wrap; gap: .1rem .6rem; font-size: .9rem; }
.review__author { font-weight: 700; }
.review__source::first-letter { text-transform: uppercase; }

@media (min-width: 48rem) {
    .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
    .reviews { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem; }
}

/* Devis : formulaire sans JavaScript, champs pleine largeur sur mobile */
.quote-form__lead, .quote-cta__text { max-width: var(--measure); }
.plugin-section--devis .quote-cta__text { margin-inline: auto; text-align: center; }
.quote-form { display: grid; gap: 1.1rem; max-width: 40rem; }
.quote-form__pair { display: grid; gap: 1.1rem; }
.quote-form__field { display: grid; gap: .35rem; min-width: 0; }
.quote-form__field label { font-weight: 700; }
.quote-form input:not([type="checkbox"]), .quote-form textarea {
    width: 100%; min-height: 48px; padding: .65rem .8rem; font: inherit; color: var(--color-ink);
    background: var(--color-surface); border: 1.5px solid var(--color-line); border-radius: var(--radius-small, 0);
}
.quote-form textarea { min-height: 10rem; resize: vertical; }
.quote-form input:focus-visible, .quote-form textarea:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-ink); }
.quote-form ul { margin: 0; padding: 0; list-style: none; font-weight: 700; color: var(--accent-on-light); }
.quote-form__consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .7rem; align-items: start; }
.quote-form__consent input { width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; accent-color: var(--color-primary); }
.quote-form__consent ul { grid-column: 1 / -1; }
.quote-form__privacy { margin: 0; font-size: .9rem; color: var(--color-muted); }
.quote-form__submit { justify-self: start; border: 0; font: inherit; font-weight: 700; }
.quote-form__trap { display: none; }
.quote-sent { max-width: var(--measure); padding: 1.5rem; border: 1.5px solid var(--color-line); border-radius: var(--radius-small, 0); }
.quote-sent__title { font-size: 1.6rem; }

@media (min-width: 40rem) {
    .quote-form__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Brasserie — grande photo assombrie, serif éditorial, accent doré (couleur principale).
   Rythme : sections pleine largeur qui alternent clair (surface), gris perle (surface-alt) et sombre (--night).
   Uniquement les variables du style du commerce : tout reste juste si le commerçant change de couleur ou de police.
   ========================================================================== */
.site--brasserie {
    --max-width: 72rem;
    --wrap: min(100% - 2 * var(--gutter), var(--max-width));
    --gold: var(--accent-on-light);
    --gold-light: var(--accent-on-dark);
    /* Sombre presque noir, teinté par la couleur principale (brun pour un doré, bleu nuit pour un bleu…) */
    --night: color-mix(in oklch, var(--deep) 70%, black);
    --night-2: color-mix(in oklch, var(--deep) 45%, black);
    --on-night: #f6f3ee;
    --on-night-muted: color-mix(in oklch, var(--on-night) 80%, var(--night));
    --section: clamp(3.5rem, 9vw, 6.5rem);
    font-size: 1.0625rem;
    line-height: 1.65;
}
.site--brasserie h1, .site--brasserie h2, .site--brasserie h3 { font-weight: 700; letter-spacing: -.005em; }
.site--brasserie .main { width: 100%; max-width: none; padding: 0; }
.hero__image, .intro__image, .visit__image, .pagehead__image { object-fit: cover; }
.site--brasserie ::selection { background: var(--color-primary); color: var(--color-on-primary); }

/* ---------- Éléments communs ---------- */
.ornament { display: block; width: 84px; height: 10px; margin: .9rem 0 1.4rem; color: var(--color-primary); }
.ornament--line { width: 56px; height: 2px; background: currentColor; }
/* Réglage « Ornement » appliqué aussi aux ornements dessinés en CSS (rubriques, sections des modules) */
.ornament-line .menu-category__name::after, .ornament-line .plugin-section__head::after { width: 56px; height: 2px; mask: none; }
.ornament-none .menu-category__name::after, .ornament-none .plugin-section__head::after { display: none; }
.ornament-none .menu-category__name { margin-bottom: 1.5rem; }
/* Réglage « Assombrissement des photos » */
.theme-root { --shade: .55; }
.shade-light { --shade: .35; }
.shade-strong { --shade: .75; }
.kicker, .hero__kicker, .pagehead__kicker {
    margin: 0 0 .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.kicker { color: var(--gold); }
.section-title { margin: 0; font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; color: var(--color-ink); }
.section-title--center { text-align: center; }

.button { min-height: 50px; padding: .75rem 1.6rem; border: 1.5px solid transparent; font-size: .95rem; letter-spacing: .03em; }
.button:hover { transform: none; }
.button--booking { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.button--booking:hover { background: color-mix(in oklch, var(--color-primary) 85%, black); }
.button--menu, .button--ghost { border-color: currentColor; background: transparent; color: inherit; }
.button--menu:hover, .button--ghost:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-surface); }
.button .icon { transition: transform .2s ease; }
.button:hover .icon { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.masthead { position: relative; z-index: 5; background: var(--night); color: var(--on-night); }
.masthead--over { position: absolute; inset: 0 0 auto; background: linear-gradient(rgb(0 0 0 / .55), transparent); }
/* Bandeau de fermeture exceptionnelle au-dessus : l'en-tête reprend sa place (sinon le bandeau le recouvre) */
.site:has(> .closure-banner) .masthead--over { position: relative; background: var(--night); }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: var(--wrap); margin-inline: auto; min-height: 76px; }
.brand { min-height: 48px; }
.brand__name { font-size: clamp(1.35rem, 4vw, 1.7rem); font-weight: 700; }
.brand__logo { max-height: 52px; }
.masthead__nav { display: none; }
.masthead .nav__list { gap: .25rem 1.75rem; align-items: center; }
.masthead .nav__link { position: relative; font-size: .97rem; text-decoration: none; }
.masthead .nav__link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--color-primary);
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.masthead .nav__link:hover::after, .masthead .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.masthead .nav__link[aria-current="page"] { text-decoration: none; }
.masthead .nav__link--booking { padding-inline: 1.1rem; border: 1.5px solid currentColor; }
.masthead .nav__link--booking::after { display: none; }
.masthead .nav__link--booking:hover { background: var(--on-night); color: var(--night); }

/* Menu mobile sans JavaScript */
.masthead__menu { position: static; }
.masthead__toggle {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 .9rem;
    border: 1.5px solid currentColor; cursor: pointer; list-style: none; font-weight: 700; font-size: .9rem;
    letter-spacing: .08em; text-transform: uppercase;
}
.masthead__toggle::-webkit-details-marker { display: none; }
.masthead__close, .masthead__menu[open] .masthead__open { display: none; }
.masthead__menu[open] .masthead__close { display: inline; }
.masthead__drawer {
    position: absolute; left: 0; right: 0; top: 100%; padding: .5rem var(--gutter) 1.5rem;
    background: var(--night); box-shadow: 0 18px 30px rgb(0 0 0 / .35);
}
.masthead__drawer .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
.masthead__drawer .nav__link { width: 100%; min-height: 52px; border-bottom: 1px solid rgb(255 255 255 / .12); font-size: 1.1rem; }
.masthead__drawer .nav__link::after { display: none; }
.masthead__drawer .nav__link[aria-current="page"] { color: var(--gold-light); }
.masthead__drawer .nav__link--booking { justify-content: center; margin-top: 1rem; border: 1.5px solid currentColor; }

/* ---------- Accueil : héros ---------- */
.hero { position: relative; display: grid; color: var(--on-night); background: var(--night); }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; width: var(--wrap); margin-inline: auto; }
.hero__kicker { color: var(--gold-light); }
.hero__title { margin: 0; font-size: clamp(2.7rem, 9vw, 5.4rem); line-height: 1.02; color: inherit; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.hero__tagline { margin: .9rem 0 0; max-width: 34rem; font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--on-night-muted); }
/* Accroche et statut posés sur la photo : texte plein + ombre douce, lisibles même sur une photo chargée */
.hero--photo .hero__tagline, .hero--photo .status { color: var(--on-night); text-shadow: 0 1px 14px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .5); }
.hero .ornament { margin: 1.5rem auto 1.2rem; color: var(--gold-light); }
.hero .status { margin-bottom: 0; color: var(--on-night-muted); }
.hero__actions { justify-content: center; gap: .85rem; margin-top: 1.9rem; }
.hero .button--menu:hover, .visit .button--ghost:hover, .special .button--menu:hover { background: var(--on-night); border-color: var(--on-night); color: var(--night); }

.hero--photo { min-height: min(100svh, 58rem); align-items: center; padding-block: 8rem 5rem; }
.hero--photo .hero__media, .hero--photo .hero__image { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero--photo .hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / calc(var(--shade) - .1)), rgb(0 0 0 / var(--shade)) 60%, rgb(0 0 0 / calc(var(--shade) + .15))); }
.hero--typo { padding-block: clamp(5rem, 14vw, 9rem); background: radial-gradient(ellipse at 50% 0%, color-mix(in oklch, var(--deep) 80%, var(--night)), var(--night) 75%); }
.hero--split { background: var(--color-surface); color: var(--color-ink); }
.hero--split .hero__image { height: 100%; min-height: 20rem; max-height: 70vh; }
.hero--split .hero__content { padding-block: 3rem 3.5rem; }
.hero--split .hero__kicker { color: var(--gold); }
.hero--split .hero__title { text-shadow: none; }
.hero--split .hero__tagline, .hero--split .status { color: var(--color-muted); }
.hero--split .ornament { color: var(--color-primary); }
.hero--split .button--menu:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-surface); }

/* ---------- Bandeau pratique ---------- */
.infobar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
    padding: .9rem max(var(--gutter), (100% - var(--max-width)) / 2); background: var(--night-2); color: var(--on-night);
    font-size: .95rem;
}
.infobar__text { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin: 0; }
.infobar__text a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; text-decoration: none; }
.infobar__text a:hover { color: var(--gold-light); }
.infobar .icon { color: var(--gold-light); }
.social { display: flex; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.social__link {
    display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgb(255 255 255 / .35); border-radius: 50%;
    transition: background-color .2s ease, border-color .2s ease;
}
.social__link:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.social .icon { width: 1.2rem; height: 1.2rem; }

/* ---------- La maison ---------- */
.intro { display: grid; gap: 2.5rem; width: var(--wrap); margin-inline: auto; padding-block: var(--section); align-items: center; }
.intro__body { margin: 0 0 1.8rem; max-width: 34rem; color: var(--color-muted); }
.intro__image { aspect-ratio: 4 / 3; height: auto; }
.intro__media { position: relative; }
.intro__media { isolation: isolate; }
.intro__media::before { content: ''; position: absolute; inset: .75rem -.75rem -.75rem .75rem; border: 1.5px solid var(--color-primary); z-index: -1; }
.intro--text { text-align: center; justify-items: center; }
.intro--text .ornament, .intro--text .intro__body { margin-inline: auto; }

/* ---------- Suggestion du jour ---------- */
.special {
    display: flex; flex-direction: column; align-items: center; padding: var(--section) var(--gutter); text-align: center;
    background: var(--night); color: var(--on-night);
}
.special .kicker { color: var(--gold-light); }
.special .kicker::first-letter { text-transform: uppercase; }
.special__heading { margin: 0; font-size: clamp(1.5rem, 3.5vw, 1.9rem); color: var(--on-night-muted); font-weight: 400; font-style: italic; }
.special .ornament { margin-inline: auto; color: var(--gold-light); }
.special__title { margin: 0; max-width: 40rem; font-family: var(--font-heading); font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 700; line-height: 1.1; }
.special__description { margin: .9rem 0 0; max-width: 32rem; color: var(--on-night-muted); }
.special__price { margin: 1.4rem 0 0; font-family: var(--font-heading); font-size: 1.6rem; color: var(--gold-light); font-variant-numeric: lining-nums; }

/* ---------- Carte (accueil et page) ---------- */
.highlights { padding: var(--section) max(var(--gutter), (100% - var(--max-width)) / 2); background: var(--color-surface-alt); }
.highlights > .ornament, .menu-category > .ornament { margin-inline: auto; }
.highlights__more { margin: 2.5rem 0 0; text-align: center; }
.dishes { display: grid; gap: .25rem 4rem; }
.dish { padding-block: 1rem; }
.dish__head { gap: .75rem; }
.dish__name { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.dish__leader { border-bottom: 1.5px dotted var(--color-muted); opacity: .55; }
.dish__price { font-family: var(--font-heading); font-size: 1.15rem; color: var(--gold); }
.dish__description { margin: .3rem 0 0; font-size: .97rem; }

/* ---------- Plugins (galerie, événements, avis) ---------- */
.plugins:empty { display: none; }
.plugin-section { width: var(--wrap); margin-inline: auto; padding-block: var(--section) 0; }
.plugins > .plugin-section:last-child { padding-bottom: var(--section); }
.plugin-section__head { flex-direction: column; align-items: center; gap: 0; text-align: center; }
.plugin-section__head::after { content: ''; width: 84px; height: 10px; margin-top: .9rem; background: var(--color-primary); mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 84 10%27%3E%3Cpath d=%27M1 5c3.5-4 7-4 10.5 0s7 4 10.5 0 7-4 10.5 0 7 4 10.5 0 7-4 10.5 0 7 4 10.5 0 7-4 10.5 0 7 4 10.5 0%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27/%3E%3C/svg%3E") center / contain no-repeat; }
.plugin-section__title { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.plugin-section__more { text-align: center; }
.plugin-section__more a { color: var(--gold); }
.gallery__image { aspect-ratio: 1; transition: transform .4s ease; }
.gallery__zoom { overflow: hidden; }
.gallery__zoom:hover .gallery__image { transform: scale(1.04); }
.gallery__caption { color: var(--color-muted); font-size: .9rem; }
.event + .event { border-top: 1px solid var(--color-line); }
.event__date { border: 1.5px solid var(--color-primary); }
.event__weekday, .event__month { color: var(--gold); }
.event__day { font-weight: 700; }
.rating-summary { justify-content: center; }
.rating-summary .stars, .review .stars { color: var(--gold); }
.review { padding: 1.75rem; background: var(--color-surface-alt); }
.review__text p { font-family: var(--font-heading); font-style: italic; }

/* Pages des plugins */
.plugin-page { width: var(--wrap); margin-inline: auto; padding-block: 3rem var(--section); }
.plugin-page__head { text-align: center; }
.plugin-page__kicker { color: var(--gold); letter-spacing: .2em; font-variant-caps: normal; text-transform: uppercase; font-size: .8rem; }
.plugin-page__title { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.plugin-page__empty { margin-inline: auto; text-align: center; }
.plugin-page--devis .quote-form, .quote-form__lead, .quote-sent { margin-inline: auto; }
.quote-form__lead { text-align: center; }

/* ---------- Horaires ---------- */
.visit { position: relative; display: grid; padding: var(--section) var(--gutter); background: var(--night); color: var(--on-night); text-align: center; overflow: hidden; }
.visit__image { position: absolute; inset: 0; width: 100%; height: 100%; }
.visit--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgb(0 0 0 / calc(var(--shade) + .13)); }
.visit__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: min(100%, 34rem); margin-inline: auto; }
.visit__heading { margin: 0; font-size: clamp(2.4rem, 7vw, 4rem); color: inherit; }
.visit .ornament { margin-inline: auto; color: var(--gold-light); }
.visit .status { color: var(--on-night-muted); }
.visit .hours-list { --hours-line: rgb(255 255 255 / .16); width: 100%; margin-top: .5rem; }
.visit .hours-list__day { color: var(--on-night-muted); }
.visit .hours-list__day.is-today { color: var(--on-night); }
.visit .hours-list__today { color: var(--gold-light); }
.visit__actions { margin-top: 2.25rem; }

/* ---------- Pages intérieures ---------- */
.pagehead { position: relative; display: grid; place-items: center; padding: clamp(4rem, 12vw, 7rem) var(--gutter); background: var(--night); color: var(--on-night); text-align: center; overflow: hidden; }
.pagehead__image { position: absolute; inset: 0; width: 100%; height: 100%; }
.pagehead--photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgb(0 0 0 / calc(var(--shade) + .07)); }
.pagehead__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.pagehead__kicker { color: var(--gold-light); }
.pagehead__title { margin: 0; font-size: clamp(2.6rem, 8vw, 4.4rem); color: inherit; }
.pagehead .ornament { margin: 1rem auto 0; color: var(--gold-light); }
.pagehead .language-switch { margin: 1.2rem 0 0; }
.pagehead .language-switch a { color: var(--on-night); }

.menu-page { width: var(--wrap); margin-inline: auto; padding-block: 1rem var(--section); }
.menu-category { padding-top: var(--section); text-align: center; }
.menu-category__name { margin: 0; font-size: clamp(1.9rem, 4.5vw, 2.5rem); }
.menu-category__name::after { content: ''; display: block; width: 84px; height: 10px; margin: 1rem auto 1.5rem; background: var(--color-primary); mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 84 10%27%3E%3Cpath d=%27M1 5c3.5-4 7-4 10.5 0s7 4 10.5 0 7-4 10.5 0 7 4 10.5 0 7-4 10.5 0 7 4 10.5 0 7-4 10.5 0 7 4 10.5 0%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.6%27 stroke-linecap=%27round%27/%3E%3C/svg%3E") center / contain no-repeat; }
.menu-category .dishes { text-align: left; }
.dish__allergens, .badges { font-size: .82rem; }
.allergens { margin-top: var(--section); padding-top: 2.5rem; border-top: 1px solid var(--color-line); }
.allergens__heading { font-size: 1.5rem; }
.page-shell { width: var(--wrap); margin-inline: auto; padding-block: 3.5rem var(--section); }

/* ---------- Pied de page ---------- */
.footer { padding: 0; background: var(--night-2); color: var(--on-night-muted); font-size: .95rem; }
.footer a { color: var(--on-night); text-decoration: none; }
.footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer__inner { display: grid; gap: 2.5rem; width: var(--wrap); max-width: none; margin-inline: auto; padding-block: 4rem 3rem; }
.footer__name { margin: 0 0 .5rem; font-size: 1.7rem; font-weight: 700; color: var(--on-night); }
.footer__tagline { margin: 0 0 1.25rem; }
.footer__heading { margin: 0 0 1rem; font-size: 1.1rem; color: var(--gold-light); }
.footer__list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.footer__list a { display: inline-flex; align-items: center; min-height: 40px; }
.footer__list address { color: var(--on-night); }
.footer__legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
    align-items: center; margin: 0; padding: 1.1rem max(var(--gutter), (100% - var(--max-width)) / 2); border-top: 1px solid rgb(255 255 255 / .1);
    background: var(--night); font-size: .85rem;
}
.footer__legal a { display: inline-block; padding-block: .55rem; }

/* ---------- Grands écrans ---------- */
@media (min-width: 60rem) {
    .masthead__nav { display: block; }
    .masthead__menu { display: none; }
    .masthead__bar { min-height: 92px; }
    .hero--split { grid-template-columns: 1fr 1fr; align-items: center; }
    .hero--split .hero__media { order: 2; height: 100%; }
    .hero--split .hero__image { max-height: none; height: 100%; min-height: 38rem; }
    .hero--split .hero__content { align-items: flex-start; text-align: left; width: auto; padding: 4rem max(var(--gutter), (100vw - var(--max-width)) / 2) 4rem 4rem; padding-left: max(var(--gutter), (100vw - var(--max-width)) / 2); padding-right: 4rem; }
    .hero--split .ornament { margin-left: 0; }
    .hero--split .hero__actions { justify-content: flex-start; }
    .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; }
    .intro--text { grid-template-columns: 1fr; }
    .dishes--columns, .menu-category .dishes { grid-template-columns: 1fr 1fr; }
            .intro__media::before { inset: 1.25rem -1.25rem -1.25rem 1.25rem; }
    .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

