/*
Theme Name: Le Druide
Theme URI: https://ledruide-restaurant.fr
Author: Atelier sur-mesure
Author URI: https://ledruide-restaurant.fr
Description: Thème WordPress sur-mesure, immersif et convivial pour "Le Druide" — restaurant le midi & bar à tapas / bar à bières à Mont-Saint-Aignan, aux portes de Rouen. Direction artistique "Forêt du Druide" : vert émeraude, ambre houblon, typographie d'estaminet. JS natif, zéro framework lourd, performance Greenlight.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: le-druide
*/

/* ==========================================================================
   1. DESIGN SYSTEM — TOKENS (Variables CSS)
   Toute l'identité visuelle est centralisée ici pour une maintenance facile.
   ========================================================================== */
:root {
    /* — Palette « Forêt du Druide » — */
    --c-druid:         #163F37;  /* Couleur principale : vert émeraude, la forêt, l'estaminet */
    --c-druid-deep:    #0F2E29;  /* Émeraude profond pour les dégradés et sections immersives */
    --c-druid-velvet:  #1E4D44;  /* Variante veloutée pour les survols */
    --c-amber:         #CC8A2C;  /* Ambre houblon : accents, prix (sur fond sombre) */
    --c-amber-light:   #E6A94B;  /* Ambre clair pour les éclats et survols */
    --c-amber-soft:    #B5781F;  /* Ambre mat pour les filets discrets */
    --c-amber-text:    #875812;  /* Ambre foncé : TEXTE sur fond clair (contraste AA ≥ 4.5:1) */
    --c-cream:           #F6EFE8;  /* Fond blush chaud, confort visuel */
    --c-cream-deep:      #ECE2D6;  /* Blush assombri pour les sections alternées */
    --c-jet:           #14211E;  /* Vert-charbon profond, sections immersives */
    --c-jet-soft:      #1E2C28;  /* Vert-charbon adouci */
    --c-ink:           #232B28;  /* Texte courant sur fond clair (vert-charbon, pas de noir pur) */
    --c-ink-muted:     #5C625E;  /* Texte secondaire */
    --c-line:          rgba(22, 63, 55, 0.14); /* Filets discrets vert */
    --c-line-gold:     rgba(204, 138, 44, 0.32);

    /* — Typographie — */
    --f-display: "Oswald", Impact, "Arial Narrow", sans-serif;     /* Condensé d'estaminet */
    --f-serif:   "Fraunces", Georgia, "Times New Roman", serif; /* Titres de caractère */
    --f-body:    "Inter", system-ui, -apple-system, sans-serif;       /* Corps de texte */

    /* — Échelle typographique fluide (clamp = responsive sans media query) — */
    --fs-hero:   clamp(2.6rem, 7vw, 6rem);
    --fs-h1:     clamp(2.2rem, 5vw, 4rem);
    --fs-h2:     clamp(1.8rem, 3.5vw, 2.9rem);
    --fs-h3:     clamp(1.3rem, 2vw, 1.7rem);
    --fs-lead:   clamp(1.05rem, 1.4vw, 1.3rem);
    --fs-body:   1rem;
    --fs-small:  0.82rem;

    /* Taille de police racine : px (rem) sur mobile/tablette, vw sur desktop.
       --fs-scale : multiplicateur hérité, neutre (1) — la taille du texte
       est désormais gérée par le widget Sienna. */
    --root-fs:   100%;
    --fs-scale:  1;

    /* — Rythme spatial — */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;
    --sp-xl: 7rem;
    --sp-2xl: 10rem;
    --container: 1240px;
    --container-narrow: 820px;

    /* — Rayons & ombres — */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-soft:  0 10px 40px -12px rgba(26, 26, 26, 0.18);
    --shadow-card:  0 24px 60px -20px rgba(74, 2, 20, 0.30);
    --shadow-gold:  0 8px 30px -8px rgba(254, 214, 0, 0.45);

    /* — Transitions — */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.25s var(--ease);
    --t-med:  0.5s var(--ease);
    --t-slow: 0.9s var(--ease);

    /* — Hauteur de la nav (utilisée pour le scroll-padding) — */
    --nav-h: 88px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: calc(var(--root-fs) * var(--fs-scale));
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

/* Desktop (≥ 1280px) : tout le texte passe en vw (taille proportionnelle à la
   largeur, fixe quel que soit le zoom navigateur). Référence calée sur 1920px :
   0.8333vw = 16px à 1920px → à cette largeur, le rendu est IDENTIQUE à l'original.
   Plus large → légèrement plus grand ; plus étroit → légèrement plus petit. */
@media (min-width: 1280px) {
    :root { --root-fs: 0.8333vw; }
}

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--c-ink);
    background-color: var(--c-cream);
    /* Texture parchemin très subtile (grain) générée en CSS, sans image */
    background-image:
        radial-gradient(rgba(22, 63, 55, 0.022) 1px, transparent 1px);
    background-size: 18px 18px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--f-serif);
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 0.4em;
    color: var(--c-druid);
}

p { margin: 0 0 1.2em; }

::selection { background: var(--c-amber); color: var(--c-druid-deep); }

/* ==========================================================================
   2bis. ACCESSIBILITÉ (RGAA / WCAG AA)
   ========================================================================== */
/* Texte réservé aux lecteurs d'écran (masqué visuellement, lu vocalement) */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
/* Lien d'évitement : invisible jusqu'au focus clavier, puis bien visible */
.skip-link {
    position: fixed;
    top: -100px; left: 1rem;
    z-index: 2000;
    background: var(--c-druid);
    color: var(--c-cream);
    padding: 0.9rem 1.4rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 0; outline: 3px solid var(--c-amber); outline-offset: 2px; }

/* Focus clavier visible et contrasté sur TOUS les éléments interactifs */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--c-amber);
    outline-offset: 3px;
    border-radius: 3px;
}
/* Sur fonds sombres, halo clair pour rester visible */
.section--dark a:focus-visible,
.section--druid a:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible,
.hero a:focus-visible {
    outline-color: var(--c-amber-light);
    box-shadow: 0 0 0 5px rgba(26,26,26,0.6);
}

/* Barre de défilement stylisée (navigateurs Webkit) */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--c-cream-deep); }
::-webkit-scrollbar-thumb { background: var(--c-druid); border-radius: 10px; border: 2px solid var(--c-cream-deep); }

/* ==========================================================================
   3. UTILITAIRES DE MISE EN PAGE
   ========================================================================== */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.4rem, var(--container-narrow)); margin-inline: auto; }

.section { padding-block: var(--sp-xl); position: relative; }
.section--dark { background: var(--c-jet); color: var(--c-cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-cream); }
.section--druid { background: var(--c-druid); color: var(--c-cream); }
.section--druid h2, .section--druid h3 { color: var(--c-cream); }

/* Suréclat de fond pour les sections immersives */
.section--dark::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(106, 4, 29, 0.5), transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(254, 214, 0, 0.08), transparent 50%);
    pointer-events: none;
}
.section--dark > * { position: relative; z-index: 1; }

/* Sur-titre doré récurrent (label de section) */
.eyebrow {
    font-family: var(--f-display);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-amber-text);
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
}
.eyebrow::before {
    content: "";
    width: 34px; height: 1px;
    background: var(--c-amber);
}
.section--dark .eyebrow, .section--druid .eyebrow { color: var(--c-amber-light); }

.section-title { font-size: var(--fs-h2); max-width: 16ch; }
.section-title--center { margin-inline: auto; text-align: center; max-width: 22ch; }
.lead { font-size: var(--fs-lead); color: var(--c-ink-muted); max-width: 60ch; }
.section--dark .lead { color: rgba(253, 251, 247, 0.78); }

/* ==========================================================================
   4. BOUTONS
   ========================================================================== */
.btn {
    --btn-bg: var(--c-druid);
    --btn-fg: var(--c-cream);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 2.1rem;
    font-family: var(--f-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
/* Effet de survol : balayage doré fluide depuis le bas */
.btn::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(120deg, var(--c-amber), var(--c-amber-light));
    transform: translateY(101%);
    transition: transform var(--t-med);
    z-index: -1;
}
.btn:hover { color: var(--c-druid-deep); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn:hover::after { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--c-amber); outline-offset: 3px; }

.btn--gold  { --btn-bg: var(--c-amber); --btn-fg: var(--c-druid-deep); }
.btn--gold::after { background: linear-gradient(120deg, var(--c-cream), #fff); }
.btn--gold:hover { color: var(--c-druid); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: currentColor;
    border: 1px solid currentColor;
}
.btn--ghost::after { background: var(--c-amber); }

/* Lien doré soulignement animé */
.link-gold {
    color: var(--c-amber-text);
    font-weight: 600;
    letter-spacing: 0.04em;
    background-image: linear-gradient(var(--c-amber), var(--c-amber));
    background-size: 0% 1.5px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size var(--t-med);
    padding-bottom: 2px;
}
.link-gold:hover { background-size: 100% 1.5px; }

/* ==========================================================================
   5. EN-TÊTE / NAVIGATION (sticky, transparent → opaque au scroll)
   ========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background var(--t-med), box-shadow var(--t-med), height var(--t-med);
    background: transparent;
}
.site-header.is-scrolled {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    box-shadow: 0 1px 0 var(--c-line-gold), var(--shadow-soft);
    height: 72px;
}
.site-header__inner {
    width: min(100% - 3rem, 1600px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
    font-family: var(--f-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--c-cream);
    transition: color var(--t-fast);
}
.brand__tagline {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--c-amber);
    margin-top: 3px;
}

/* Navigation principale */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    margin: 0; padding: 0;
}
.main-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--c-cream);
    position: relative;
    padding-block: 0.4rem;
    transition: color var(--t-fast);
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: var(--c-amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med);
}
.main-nav a:hover { color: var(--c-amber-light); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: inline-flex; }

/* Burger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 44px; height: 44px;
    background: none; border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--c-cream);
    border-radius: 2px;
    transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   6. HERO — Vidéo / image plein écran + overlay
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--c-cream);
}
.hero__media {
    position: absolute; inset: 0;
    z-index: 0;
}
.hero__media img,
.hero__media video {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Voile dégradé pour la lisibilité du texte en overlay */
.hero__media::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(to right, rgba(26,26,26,0.75) 0%, rgba(26,26,26,0.15) 55%, transparent 100%),
        linear-gradient(to top, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.35) 50%, rgba(74,2,20,0.55) 100%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    width: min(100% - 2.4rem, var(--container));
    margin-inline: auto;
    padding-top: var(--nav-h);
}
.hero__title {
    font-family: var(--f-serif);
    font-size: var(--fs-hero);
    color: var(--c-cream);
    font-weight: 600;
    max-width: 16ch;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero__title em {
    font-style: italic;
    color: var(--c-amber-light);
}
.hero__sub {
    font-family: var(--f-display);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--c-amber);
    margin-bottom: 1.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* Indicateur de scroll */
.hero__scroll {
    position: absolute;
    bottom: 2.2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    font-family: var(--f-display);
    font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--c-cream);
    opacity: 0.8;
}
.hero__scroll::after {
    content: "";
    width: 1px; height: 46px;
    background: linear-gradient(var(--c-amber), transparent);
    animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
    50%      { transform: scaleY(1);   opacity: 1; transform-origin: top; }
}

/* ==========================================================================
   7. SECTION CONCEPT & HISTOIRE
   ========================================================================== */
.concept-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.concept__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 5;
}
.concept__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.concept__media:hover img { transform: scale(1.05); }
/* Cadre doré décalé (effet "encadrement château") */
.concept__media::after {
    content: "";
    position: absolute; inset: 14px;
    border: 1px solid var(--c-line-gold);
    border-radius: calc(var(--radius-lg) - 12px);
    pointer-events: none;
}
.concept__stats {
    display: flex;
    gap: 2.4rem;
    margin-top: 2.4rem;
    flex-wrap: wrap;
}
.stat__num {
    font-family: var(--f-serif);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--c-druid);
    line-height: 1;
}
.stat__label { font-size: var(--fs-small); letter-spacing: 0.08em; color: var(--c-ink-muted); text-transform: uppercase; }

/* ==========================================================================
   8. SECTION CARTE — Onglets dynamiques (Tabs)
   ========================================================================== */
.menu-section { background: var(--c-cream-deep); }
.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 2.5rem auto 3.5rem;
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 0;
}
.menu-tab {
    font-family: var(--f-display);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
    background: none; border: none;
    padding: 0.9rem 1.4rem;
    cursor: pointer;
    position: relative;
    transition: color var(--t-fast);
    font-weight: 600;
}
.menu-tab::after {
    content: "";
    position: absolute; left: 0; bottom: -1px;
    width: 100%; height: 2px;
    background: var(--c-druid);
    transform: scaleX(0);
    transition: transform var(--t-med);
}
.menu-tab:hover { color: var(--c-druid); }
.menu-tab.is-active { color: var(--c-druid); }
.menu-tab.is-active::after { transform: scaleX(1); }

.menu-panel { display: none; animation: fadeUp var(--t-med); }
.menu-panel.is-active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Liste de plats en double colonne avec lignes pointillées */
.dish-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 3.5rem;
    max-width: 980px;
    margin-inline: auto;
}
.dish {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0.4rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-fast);
}
.dish:hover { border-color: var(--c-line); }
.dish__head {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    min-width: 0;
}
.dish__name {
    font-family: var(--f-serif);
    font-size: 1.32rem;
    font-weight: 600;
    color: var(--c-druid);
    white-space: normal;
    text-wrap: balance;
    margin: 0;
}
/* Ligne de pointillés fine entre le nom et le prix */
.dish__leader {
    flex: 1;
    border-bottom: 1.5px dotted var(--c-line);
    transform: translateY(-4px);
    min-width: 1.5rem;
}
.dish__price {
    font-family: var(--f-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--c-amber-text);
    white-space: nowrap;
}
.dish__desc {
    grid-column: 1 / -1;
    font-size: 0.92rem;
    color: var(--c-ink-muted);
    line-height: 1.55;
    margin: 0.2rem 0 0;
    max-width: 52ch;
}
/* Pictogrammes (allergènes / fait maison) */
.dish__tags { display: inline-flex; gap: 0.35rem; margin-left: 0.4rem; }
.picto {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.18em 0.55em;
    border-radius: 999px;
    border: 1px solid var(--c-line-gold);
    color: var(--c-amber-text);
    white-space: nowrap;
}
.picto--maison { background: rgba(254, 214, 0,0.1); }
.picto--veg {
    color: var(--c-druid);
    border-color: rgba(22, 63, 55, 0.28);
    background: rgba(22, 63, 55, 0.06);
}
.menu-cta { text-align: center; margin-top: 3.5rem; }

/* — Carte complète : sections, notes, formules, sous-groupes — */
.menu-category { margin-bottom: var(--sp-lg); }
.menu-category__title { margin-bottom: 0.4rem; }
.menu-note {
    max-width: 60ch;
    margin: 0 auto 1.6rem;
    color: var(--c-ink-muted);
    font-style: italic;
    line-height: 1.55;
}

/* Bloc de prix des formules */
.menu-formula {
    list-style: none;
    max-width: 560px;
    margin: 0 auto 2.4rem;
    padding: 1.4rem 1.8rem;
    border: 1px solid var(--c-line-gold);
    border-radius: var(--radius-md);
    background: rgba(204, 138, 44, 0.05);
    box-shadow: var(--shadow-card);
}
.menu-formula__row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
}
.menu-formula__row + .menu-formula__row { border-top: 1px dotted var(--c-line-gold); }
.menu-formula__label {
    font-family: var(--f-serif);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--c-druid);
}
.menu-formula__price {
    margin-left: auto;
    font-family: var(--f-serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--c-amber-text);
    white-space: nowrap;
}

/* Sous-titres de sous-groupes (Entrées / Plats / Dessert dans une formule) */
.menu-subgroup__title {
    text-align: center;
    font-family: var(--f-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-amber-text);
    margin: 1.6rem 0 0.4rem;
}
.menu-subgroup__title:first-of-type { margin-top: 0.6rem; }

.menu-legend {
    text-align: center;
    color: var(--c-ink-muted);
    font-size: 0.9rem;
    max-width: 64ch;
    margin: 2.4rem auto 0;
    line-height: 1.6;
}

/* ==========================================================================
   9. SECTION ÉVÉNEMENTS — Grille CSS
   ========================================================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    margin-top: 3rem;
}
.event-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.6rem;
    color: var(--c-cream);
    isolation: isolate;
    transition: transform var(--t-med), box-shadow var(--t-med);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.event-card__bg {
    position: absolute; inset: 0; z-index: -2;
    object-fit: cover; width: 100%; height: 100%;
    transition: transform var(--t-slow);
}
.event-card:hover .event-card__bg { transform: scale(1.08); }
.event-card::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(26,26,26,0.92), rgba(106,4,29,0.15) 60%, transparent);
}
.event-card__date {
    font-family: var(--f-display);
    font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--c-amber-light);
    margin-bottom: 0.5rem;
}
.event-card__title { font-family: var(--f-serif); font-size: 1.5rem; color: var(--c-cream); margin: 0 0 0.3rem; }
.event-card__excerpt { font-size: 0.86rem; opacity: 0.82; margin: 0; }
.event-card__badge {
    position: absolute; top: 1.1rem; left: 1.1rem;
    background: var(--c-amber); color: var(--c-druid-deep);
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.35em 0.7em; border-radius: 999px;
}
.event-card__badge--past { background: rgba(253,251,247,0.85); color: var(--c-ink); }

/* ==========================================================================
   10. SECTION TOURISME / PARTENAIRES
   ========================================================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    margin-top: 3rem;
}
.partner-card {
    background: rgba(253, 251, 247, 0.04);
    border: 1px solid rgba(254, 214, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 2.2rem;
    transition: border-color var(--t-med), transform var(--t-med), background var(--t-med);
}
.partner-card:hover {
    border-color: var(--c-amber);
    transform: translateY(-5px);
    background: rgba(253, 251, 247, 0.07);
}
.partner-card__icon {
    width: 52px; height: 52px;
    display: grid; place-content: center;
    border-radius: 50%;
    border: 1px solid var(--c-amber);
    color: var(--c-amber-light);
    margin-bottom: 1.3rem;
}
.partner-card__icon svg { width: 26px; height: 26px; }
.partner-card h3 { color: var(--c-cream); font-size: var(--fs-h3); }
.partner-card p { color: rgba(253,251,247,0.72); font-size: 0.92rem; }
.partner-card__dist {
    font-family: var(--f-display);
    font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--c-amber); margin-bottom: 0.7rem; display: block;
}

/* ==========================================================================
   11. MODULE DE RÉSERVATION (TheFork stylisé)
   ========================================================================== */
.reservation {
    position: relative;
    overflow: hidden;
}
.reservation__card {
    position: relative;
    background: linear-gradient(135deg, var(--c-druid), var(--c-druid-deep));
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 4.5rem);
    color: var(--c-cream);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    overflow: hidden;
}
/* Filet doré décoratif + texture */
.reservation__card::before {
    content: "";
    position: absolute; inset: 16px;
    border: 1px solid var(--c-line-gold);
    border-radius: calc(var(--radius-lg) - 12px);
    pointer-events: none;
}
.reservation__card::after {
    content: "";
    position: absolute; top: -40%; right: -10%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(254, 214, 0,0.18), transparent 70%);
    pointer-events: none;
}
.reservation__intro h2 { color: var(--c-cream); }
.reservation__intro p { color: rgba(253,251,247,0.8); }
.reservation__hours {
    list-style: none; padding: 0; margin: 1.5rem 0 0;
    font-size: 0.9rem;
}
.reservation__hours li {
    display: flex; justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(254, 214, 0,0.18);
}
.reservation__hours span:last-child { color: var(--c-amber-light); font-weight: 600; }

/* Encapsulation esthétique de l'iframe / widget TheFork */
.thefork-widget {
    background: var(--c-cream);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
    color: var(--c-ink);
}
.thefork-widget__head {
    display: flex; align-items: center; gap: 0.7rem;
    margin-bottom: 1.2rem;
}
.thefork-widget__logo {
    font-family: var(--f-display); font-weight: 700;
    color: var(--c-druid); letter-spacing: 0.08em;
    font-size: 1.05rem;
}
.thefork-widget__title {
    font-family: var(--f-serif); font-weight: 700;
    color: var(--c-druid); letter-spacing: 0.02em;
    font-size: 1.1rem;
}
.thefork-widget__badge {
    margin-left: auto;
    font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: #2e7d32; background: #e8f5e9; font-weight: 700;
    padding: 0.3em 0.7em; border-radius: 999px;
}
/* L'iframe TheFork : hauteurs responsives recommandées par TheFork */
.thefork-widget iframe,
.thefork-widget .thefork {
    width: 100%; border: none; border-radius: var(--radius-sm);
    display: block; min-height: 550px; overflow: hidden;
}
@media (max-width: 516px) { .thefork-widget .thefork { min-height: 650px; } }
@media (max-width: 320px) { .thefork-widget .thefork { min-height: 840px; } }
/* Repli « Réserver sur TheFork » tant que le module iframe n'est pas configuré */
.thefork-fallback { text-align: center; padding: 0.5rem 0 0.2rem; }
.thefork-fallback__lead { color: var(--c-ink); margin: 0 0 1.3rem; }
.thefork-fallback__phone { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--c-ink-muted); }
.thefork-fallback__phone a { color: var(--c-druid); font-weight: 600; }
/* Formulaire de pré-réservation (fallback élégant) */
.prebook { display: grid; gap: 0.9rem; }
.prebook__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.prebook label {
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--c-ink-muted); font-weight: 600; display: block; margin-bottom: 0.3rem;
}
.prebook input, .prebook select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    font-family: var(--f-body);
    font-size: 0.92rem;
    background: var(--c-cream);
    color: var(--c-ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.prebook input:focus, .prebook select:focus {
    outline: none;
    border-color: var(--c-amber);
    box-shadow: 0 0 0 3px rgba(254, 214, 0,0.18);
}
.prebook .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ==========================================================================
   12. PIED DE PAGE
   ========================================================================== */
.site-footer {
    background: var(--c-jet);
    color: rgba(253,251,247,0.74);
    padding-block: var(--sp-xl) var(--sp-md);
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-amber), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4rem);
}
.footer-col h4 {
    font-family: var(--f-display);
    font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--c-amber); margin-bottom: 1.3rem;
}
.footer-brand .brand__name { color: var(--c-cream); font-size: 1.7rem; }
.footer-brand .brand__tagline { font-size: 0.95rem; }
.footer-contact a { transition: color var(--t-fast); }
.footer-contact a:hover { color: var(--c-amber-light); }
.footer-contact p { margin-bottom: 0.6rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--c-amber); flex-shrink: 0; margin-top: 3px; }

/* Tableau des horaires */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.hours-table th { text-align: left; font-weight: 600; color: rgba(253,251,247,0.92); padding: 0.45rem 0; }
.hours-table td { text-align: right; color: var(--c-amber-light); padding: 0.45rem 0; white-space: nowrap; }
.hours-table tr { border-bottom: 1px solid rgba(253,251,247,0.08); }
.hours-table .is-closed td { color: rgba(253,251,247,0.4); font-style: italic; }
.hours-table .is-today th, .hours-table .is-today td { color: var(--c-amber); font-weight: 700; }

/* Réseaux sociaux */
.socials { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.socials a {
    width: 42px; height: 42px;
    display: grid; place-content: center;
    border-radius: 50%;
    border: 1px solid rgba(254, 214, 0,0.3);
    color: var(--c-amber-light);
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.socials a:hover { background: var(--c-amber); color: var(--c-druid-deep); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }

.footer-bottom {
    margin-top: var(--sp-lg);
    padding-top: 1.6rem;
    border-top: 1px solid rgba(253,251,247,0.1);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: 0.78rem;
    color: rgba(253,251,247,0.5);
}

/* ==========================================================================
   12bis. LOGO (SVG inline recolorable)
   ========================================================================== */
.brand__logo {
    width: clamp(150px, 15vw, 205px);
    height: auto;
    display: block;
    color: var(--c-cream);
    transition: color var(--t-fast), width var(--t-med);
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}
.brand:hover .brand__logo { color: var(--c-amber-light); }
.site-header.is-scrolled .brand__logo { width: clamp(138px, 13vw, 182px); }
.brand__logo--footer { color: var(--c-cream); width: 178px; margin-bottom: 0.5rem; filter: none; }

/* ==========================================================================
   12ter. GALERIE — Masonry en colonnes (robuste, respecte les formats)
   ========================================================================== */
.gallery-grid {
    columns: 3;
    column-gap: 16px;
    margin-top: 3.2rem;
}
.gallery-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.9s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
/* Cadre doré au survol */
.gallery-item::after {
    content: "";
    position: absolute; inset: 10px;
    border: 1px solid var(--c-amber);
    border-radius: calc(var(--radius-md) - 8px);
    opacity: 0;
    transition: opacity var(--t-med);
    pointer-events: none;
}
.gallery-item:hover::after { opacity: 0.7; }
/* Loupe « + » au survol — indique que la photo s'agrandit en lightbox */
.gallery-item__zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--c-jet);
    background: var(--c-amber);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
    transition: opacity var(--t-med), transform var(--t-med);
    pointer-events: none;
}
.gallery-item__zoom svg { width: 22px; height: 22px; }
.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom {
    opacity: 1;
    transform: scale(1) rotate(0);
}
.gallery-item { cursor: zoom-in; }
.gallery-item:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .gallery-item__zoom { transition: opacity var(--t-med); transform: none; }
    .gallery-item:hover .gallery-item__zoom,
    .gallery-item:focus .gallery-item__zoom,
    .gallery-item:focus-visible .gallery-item__zoom { transform: none; }
}
.gallery-item__cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 1.2rem 1rem;
    font-family: var(--f-serif);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--c-cream);
    background: linear-gradient(to top, rgba(26,26,26,0.9), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--t-med), transform var(--t-med);
}
.gallery-item:hover .gallery-item__cap { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }

/* ==========================================================================
   13. ANIMATIONS AU SCROLL (révélation progressive via IntersectionObserver)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Décalage en cascade pour les enfants */
.reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    html { scroll-behavior: auto; }
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ==========================================================================
   13bis. PAGES INTERNES (bannière, fil d'Ariane, contact, blog, listes)
   ========================================================================== */
/* Contraste de la nav quand elle est transparente sur une photo */
.site-header:not(.is-scrolled) .main-nav a,
.site-header:not(.is-scrolled) .brand__tagline,
.site-header:not(.is-scrolled) .brand__name {
    text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
/* Page courante dans la navigation */
.main-nav a[aria-current="page"] { color: var(--c-amber-light); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* — Bannière de page interne (hero court) — */
.page-banner {
    position: relative;
    padding: calc(var(--nav-h) + var(--sp-lg)) 0 var(--sp-lg);
    background: linear-gradient(135deg, var(--c-druid), var(--c-druid-deep));
    color: var(--c-cream);
    overflow: hidden;
    text-align: center;
}
.page-banner::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 0%, rgba(254, 214, 0,0.12), transparent 55%);
    pointer-events: none;
}
.page-banner.has-image { background: var(--c-jet); }
.page-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.page-banner > .container { position: relative; z-index: 1; }
.page-banner h1 { color: var(--c-cream); font-size: var(--fs-h1); margin-bottom: 0.4rem; }
.page-banner .lead { color: rgba(253,251,247,0.85); margin-inline: auto; }

/* — Fil d'Ariane — */
.breadcrumb { margin-bottom: 1.4rem; }
.breadcrumb ol {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
    font-size: 0.78rem; letter-spacing: 0.06em;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; color: rgba(253,251,247,0.7); }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--c-amber-light); }
.breadcrumb a { color: var(--c-cream); }
.breadcrumb a:hover { color: var(--c-amber-light); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--c-amber-light); }

/* — Page Contact — */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.contact-info dl { margin: 0; }
.contact-info dt {
    font-family: var(--f-display);
    font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--c-amber-text); margin-top: 1.6rem;
}
.contact-info dd { margin: 0.3rem 0 0; font-size: 1.05rem; }
.contact-info dd a:hover { color: var(--c-druid); text-decoration: underline; }
.map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--c-line);
}
.map-embed iframe { width: 100%; height: 460px; border: 0; display: block; }

/* — Formulaire (contact / réservation) — */
.form-card {
    background: var(--c-cream);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 4vw, 2.6rem);
    box-shadow: var(--shadow-soft);
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
    display: block; margin-bottom: 0.4rem;
    font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--c-ink-muted); font-weight: 600;
}
.form-field .required { color: var(--c-druid); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    font-family: var(--f-body); font-size: 1rem;
    background: var(--c-cream); color: var(--c-ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--c-amber-text);
    box-shadow: 0 0 0 3px rgba(138,107,30,0.22);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--c-ink-muted); margin-top: 0.3rem; }
fieldset { border: none; padding: 0; margin: 0 0 1rem; }
legend { font-family: var(--f-serif); font-size: 1.3rem; color: var(--c-druid); padding: 0; margin-bottom: 0.8rem; }

/* — Liste d'événements (archive) — */
.entry-list { display: grid; gap: 1.8rem; }
.entry-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: var(--c-cream);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--t-med), box-shadow var(--t-med);
}
.entry-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.entry-row__media { position: relative; min-height: 220px; }
.entry-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entry-row__body { padding: 1.8rem 2rem 1.8rem 0; }
.entry-row__meta {
    font-family: var(--f-display); font-size: 0.7rem; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--c-amber-text); margin-bottom: 0.6rem;
    display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center;
}
.entry-row__meta .tag { background: var(--c-druid); color: var(--c-cream); padding: 0.2em 0.7em; border-radius: 999px; }
.entry-row__title { font-size: 1.7rem; margin-bottom: 0.5rem; }
.entry-row__title a:hover { color: var(--c-druid-velvet); }

/* — Tableau d'affiches (page Événements) — */
.affiches { columns: 2; column-gap: 1.8rem; }
.affiche {
    break-inside: avoid;
    margin-bottom: 1.8rem;
    background: var(--c-cream);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--t-med), box-shadow var(--t-med);
}
.affiche:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.affiche__poster { display: block; position: relative; overflow: hidden; }
.affiche__poster img { width: 100%; display: block; transition: transform 0.9s var(--ease); }
.affiche:hover .affiche__poster img { transform: scale(1.04); }
.affiche__badge {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--c-amber); color: var(--c-druid-deep);
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.35em 0.8em; border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.affiche__badge--past { background: rgba(253,251,247,0.94); color: var(--c-ink); }
.affiche__body { padding: 1.5rem 1.6rem 1.8rem; }
.affiche__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0 0 0.5rem; }
.affiche__date { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-amber-text); }
.affiche__price { background: var(--c-druid); color: var(--c-cream); font-size: 0.72rem; font-weight: 700; padding: 0.2em 0.7em; border-radius: 999px; }
.affiche__title { font-size: 1.6rem; margin: 0.1rem 0 0.5rem; }
.affiche__excerpt { color: var(--c-ink-muted); font-size: 0.95rem; margin: 0 0 1.3rem; }
.btn--sm { padding: 0.72rem 1.5rem; font-size: 0.72rem; }
@media (max-width: 700px) { .affiches { columns: 1; } }

/* — Article / contenu éditorial (blog, événement, page) — */
.entry-content { max-width: 70ch; margin-inline: auto; font-size: 1.08rem; }
.entry-content > * + * { margin-top: 1.3rem; }
.entry-content h2 { font-size: var(--fs-h3); margin-top: 2.4rem; }
.entry-content a { color: var(--c-druid); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--c-amber-text); }
.entry-content img { border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.entry-content blockquote {
    border-left: 3px solid var(--c-amber); padding-left: 1.4rem;
    font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--c-druid);
}

/* — Pagination — */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination .page-numbers {
    display: grid; place-content: center;
    min-width: 44px; height: 44px; padding: 0 0.6rem;
    border: 1px solid var(--c-line); border-radius: var(--radius-sm);
    font-weight: 600; color: var(--c-ink);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.pagination .page-numbers:hover { border-color: var(--c-amber); color: var(--c-druid); }
.pagination .page-numbers.current { background: var(--c-druid); color: var(--c-cream); border-color: var(--c-druid); }

/* — Back link — */
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2.5rem; font-weight: 600; color: var(--c-druid); }
.back-link:hover { color: var(--c-amber-text); gap: 0.8rem; }

/* ==========================================================================
   13ter. CARTE DES VINS
   ========================================================================== */
.wine-actions { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.wine-list { columns: 2; column-gap: 3.5rem; max-width: 980px; margin-inline: auto; }
.wine-group { break-inside: avoid; margin-bottom: 2.6rem; }
.wine-group__title {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 1.7rem;
    color: var(--c-druid);
    margin: 0 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--c-line-gold);
}
.wine-group__items { list-style: none; margin: 0; padding: 0; }
.wine { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0; }
.wine__head { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; min-width: 0; }
.wine__name { font-family: var(--f-serif); font-size: 1.18rem; font-weight: 600; color: var(--c-ink); }
.wine__appellation { font-style: italic; font-size: 0.82rem; color: var(--c-ink-muted); }
.wine__leader { flex: 1; border-bottom: 1.5px dotted var(--c-line); transform: translateY(-4px); min-width: 1.2rem; }
.wine__price { font-family: var(--f-serif); font-weight: 700; color: var(--c-amber-text); white-space: nowrap; }
.wine-note { text-align: center; color: var(--c-ink-muted); font-size: 0.9rem; max-width: 60ch; margin: 2rem auto 0; }
.wine-legal { text-align: center; color: var(--c-ink-muted); font-size: 0.75rem; font-style: italic; margin: 0.6rem auto 0; }
@media (max-width: 680px) { .wine-list { columns: 1; } }

/* ==========================================================================
   13quater. AVIS CLIENTS
   ========================================================================== */
.reviews-widget { margin-bottom: 1rem; }
.reviews-admin-note {
    background: #FFF8E1;
    border: 1px solid var(--c-line-gold);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 2rem;
    color: var(--c-ink);
    font-size: 0.92rem;
}
.reviews-admin-note p { margin: 0 0 0.5rem; }
.reviews-admin-note p:last-child { margin-bottom: 0; }
.reviews-admin-note code { background: rgba(0,0,0,0.06); padding: 0.1rem 0.35rem; border-radius: 4px; }
.reviews-cta {
    max-width: 640px;
    margin: 3rem auto 0;
    text-align: center;
    background: var(--c-druid);
    color: var(--c-cream);
    border: 1px solid var(--c-line-gold);
    border-radius: var(--radius);
    padding: 2.6rem 2rem;
    box-shadow: var(--shadow-soft);
}
.reviews-cta__icon {
    width: 56px; height: 56px;
    margin: 0 auto 1.1rem;
    background: var(--c-cream);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.reviews-cta__icon svg { width: 30px; height: 30px; }
.reviews-cta__title { font-family: var(--f-serif); color: var(--c-cream); font-size: 1.7rem; margin: 0 0 0.6rem; }
.reviews-cta__text { color: rgba(253,251,247,0.85); max-width: 46ch; margin: 0 auto 1.6rem; }
.reviews-cta .btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 0.45rem; }
.footer-reviews-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-reviews-link svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   13quinquies. INFORMATIONS PRATIQUES (équipements & services)
   ========================================================================== */
.section--cream { background: #F4EEE3; }
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-top: 2.6rem;
}
.amenity-card {
    background: var(--c-cream);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.amenity-card__icon {
    width: 50px; height: 50px;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-druid);
    background: rgba(106, 4, 29, 0.07);
    border-radius: 50%;
}
.amenity-card__icon svg { width: 25px; height: 25px; }
.amenity-card__title { font-family: var(--f-serif); font-size: 1.25rem; color: var(--c-druid); margin: 0 0 0.7rem; }
.amenity-card__list { list-style: none; margin: 0; padding: 0; }
.amenity-card__list li { font-size: 0.92rem; color: var(--c-ink); padding: 0.2rem 0; }
@media (max-width: 900px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .amenities-grid { grid-template-columns: 1fr; } }

/* — Impression (carte des vins, carte) — */
@media print {
    .no-print, .site-header, .site-footer, .page-banner__img, .skip-link, .hero__scroll { display: none !important; }
    body { background: #fff !important; color: #000; }
    body::before { display: none; }
    .page-banner { background: none !important; color: #000; padding: 0.5rem 0 1.5rem; text-align: center; }
    .page-banner h1, .wine-group__title { color: #000; }
    .page-banner .breadcrumb, .page-banner .lead { display: none; }
    .section { padding: 0; }
    .wine-list { columns: 2; }
    .wine__name, .wine__price { color: #000; }
    .wine-group__title { border-color: #999; }
    a[href]::after { content: ""; }
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
/* En-tête — resserrement sur écrans intermédiaires puis menu plein écran.
   Avec 7 entrées + le bouton, la barre horizontale ne tient plus en dessous
   de ~1024px : on bascule alors sur le menu mobile (burger). */
@media (min-width: 1025px) and (max-width: 1200px) {
    .site-header__inner { gap: 1.2rem; }
    .main-nav ul { gap: 1.05rem; }
    .main-nav a { letter-spacing: 0.05em; font-size: 0.74rem; }
    .header-cta { padding-inline: 1.1rem; }
}
@media (max-width: 1024px) {
    .header-cta { display: none; }
    .nav-toggle { display: flex; z-index: 1100; }
    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform var(--t-med);
        z-index: 1050;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; text-align: center; gap: 2rem; }
    .main-nav a { font-size: 1.1rem; letter-spacing: 0.1em; white-space: normal; }
}

@media (max-width: 980px) {
    .concept-grid { grid-template-columns: 1fr; }
    .concept__media { aspect-ratio: 16 / 11; max-height: 420px; }
    .reservation__card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --sp-xl: 4.5rem; }

    .dish-list { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .prebook__row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .concept__stats { gap: 1.4rem; }
}

@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .entry-row { grid-template-columns: 1fr; }
    .entry-row__media { min-height: 200px; }
    .entry-row__body { padding: 1.4rem 1.6rem 1.8rem; }
}

/* ==========================================================================
   Sélecteur de langue (FR / EN / ES)
   ========================================================================== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    margin-left: 0.7rem;
}
.lang-switcher__item {
    font-family: var(--f-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    color: var(--c-cream);
    opacity: 0.72;
    text-decoration: none;
    padding: 0.28rem 0.42rem;
    border-radius: 5px;
    transition: opacity var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.lang-flag {
    width: 18px;
    height: auto;
    flex: none;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.lang-switcher__txt { display: inline-block; }
.lang-switcher__item:hover { opacity: 1; }
.lang-switcher__item.is-active {
    opacity: 1;
    color: #fff;
    background: var(--c-druid);
}
.site-header.is-scrolled .lang-switcher__item { color: var(--c-cream); }
.site-header.is-scrolled .lang-switcher__item.is-active { color: #fff; }
.site-header:not(.is-scrolled) .lang-switcher__item { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }

@media (max-width: 1024px) {
    .lang-switcher { margin-left: auto; margin-right: 0.5rem; }
}

/* ==========================================================================
   Lightbox galerie (accessible)
   ========================================================================== */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    background: rgba(8, 8, 8, 0.93);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; animation: lb-fade var(--t-med) ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure {
    margin: 0; max-width: min(1100px, 92vw); max-height: 88vh;
    display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.lightbox__img {
    max-width: 100%; max-height: 80vh; width: auto; height: auto;
    border-radius: var(--radius-sm); object-fit: contain;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    background: var(--c-jet);
}
.lightbox__cap {
    color: var(--c-cream); font-family: var(--f-body);
    font-size: 0.95rem; text-align: center; letter-spacing: 0.02em;
    max-width: 60ch;
}
.lightbox__btn {
    position: absolute; background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--c-line-gold); color: var(--c-cream);
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.lightbox__btn:hover { background: var(--c-amber); color: var(--c-jet); transform: scale(1.06); }
.lightbox__btn:focus-visible { outline: 3px solid var(--c-amber-light); outline-offset: 2px; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__next { right: clamp(0.5rem, 2vw, 2rem); }
.lightbox__counter {
    position: absolute; bottom: clamp(1rem, 3vw, 2rem); left: 50%; transform: translateX(-50%);
    color: rgba(253, 252, 246, 0.7); font-family: var(--f-display);
    letter-spacing: 0.12em; font-size: 0.8rem; text-transform: uppercase;
}
@media (max-width: 600px) {
    .lightbox__nav { top: auto; bottom: 4.2rem; transform: none; }
    .lightbox__nav:hover { transform: scale(1.06); }
    .lightbox__prev { left: 50%; margin-left: -64px; }
    .lightbox__next { right: 50%; margin-right: -64px; }
    .lightbox__counter { bottom: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .lightbox.is-open { animation: none; }
    .lightbox__btn:hover { transform: none; }
}

/* — En-tête : le bouton « Réserver », le logo et le sélecteur de langue gardent
   leur taille naturelle (pas de compression → plus de texte qui « casse » ni de
   chevauchement avec la navigation). L'en-tête dispose d'un peu plus de largeur. — */
.site-header__inner { gap: 1.4rem; }
.site-header__inner > .brand,
.site-header__inner > .header-cta,
.site-header__inner > .lang-switcher { flex: 0 0 auto; }
.header-cta { white-space: nowrap; }

/* ==========================================================================
   PAGE 404 — « Égaré dans la forêt du Druide »
   Plein écran immersif : le bar aux verres suspendus voilé d'émeraude,
   grand « 404 » monumental dont le sceau tient lieu de zéro, filet ambré
   ponctué en écho au sceau. Gabarit : 404.php.
   ========================================================================== */
.error-404 {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: calc(var(--nav-h) + var(--sp-md)) 0 var(--sp-lg);
    color: var(--c-cream);
    text-align: center;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--c-druid-deep); /* Repli si l'image ne charge pas */
}

/* La photo du bar, voilée de nuit émeraude, halo ambré derrière le sceau */
.error-404::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("assets/img/hero.jpg") center 35% / cover no-repeat;
}
.error-404::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(46% 34% at 50% 30%, rgba(204, 138, 44, 0.20), transparent 70%),
        linear-gradient(180deg, rgba(15, 46, 41, 0.92) 0%, rgba(22, 63, 55, 0.86) 48%, rgba(15, 25, 22, 0.96) 100%);
}

.error-404__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Le grand « 4 ⊙ 4 » monumental : chiffres Fraunces, sceau en guise de zéro */
.error-404__code {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2.2vw, 1.3rem);
    margin: 0 0 1.8rem;
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(6.5rem, 21vw, 13rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--c-cream);
    text-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.error-404__seal {
    width: clamp(5.4rem, 17vw, 10.6rem);
    height: auto;
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.55));
}

.error-404__title {
    margin: 0;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 500;
    font-size: var(--fs-h2);
    color: var(--c-cream);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Filet ambré ponctué — écho des deux points du sceau */
.error-404__filet {
    display: block;
    width: 96px;
    height: 5px;
    margin: 1.4rem 0 1.3rem;
    background:
        radial-gradient(circle 2.5px at 3px 50%,  var(--c-amber-light) 98%, transparent) no-repeat,
        radial-gradient(circle 2.5px at calc(100% - 3px) 50%, var(--c-amber-light) 98%, transparent) no-repeat,
        linear-gradient(var(--c-line-gold), var(--c-line-gold)) center / 64px 1px no-repeat;
}

.error-404__lead {
    margin: 0 auto;
    max-width: 44ch;
    font-size: var(--fs-lead);
    color: rgba(246, 239, 232, 0.82);
}

/* Les sentiers de sortie : accueil & carte */
.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.2rem;
}
.error-404 .btn--ghost { color: var(--c-cream); }
