/* ==========================================================================
   Les Criquets — styles du thème
   Couleurs & typos : design/moodboard.html (à garder synchronisé)
   ========================================================================== */

/* Polices hébergées sur le site (sous-ensemble latin de Google Fonts, polices variables) — licences OFL dans assets/fonts
   Jost : nom, titres, surtitres et étiquettes. Inter : tout le reste (texte, menu, boutons, formulaires, prix, horaires). */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/jost-300-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-400-600.woff2) format('woff2'); }
/* BD Script (Beautifully Delicious Script Bold, Elena Genova) : écriture manuscrite des cartes imprimées du restaurant Locusta,
   reprise pour les noms des cartes (page Restaurant, visionneuse, pages /carte/…). Licence web détenue par la cliente (27/11/2026).
   Fichier réduit au latin + ponctuation française (109 → 30 Ko, liaisons conservées). Téléchargée seulement là où elle sert. */
@font-face { font-family: 'BD Script'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/bdscript-700.woff2) format('woff2'); }

/*
   Direction visuelle v3 (12/11/2026) : site hôtel clair, écru dominant, bleu canard de la cliente (#07505A) en accent.
   La page Restaurant garde son univers sombre (plus bas, .crk-univers-locusta).
   Les noms historiques (--nuit, --or, --braise, --parchemin…) sont gardés : les extensions criquets-* les lisent.
   Ils désignent maintenant des rôles, pas des couleurs : --nuit = fond de page, --parchemin = texte, etc.
*/
:root {
    /* Palette v3 */
    --profond: #07505a;      /* bleu canard de la cliente : titres, logo */
    --moyen: #126c75;        /* boutons pleins, liens d'action (texte écru ou blanc dessus) */
    --teinte: #dce7e4;       /* T1 « canard voilé » : sections alternées, encarts, formulaires */
    --ecru: #f5f0e3;         /* fond de page */
    --encre-v3: #14211f;     /* texte */

    /* Rôles (noms historiques) */
    --nuit: var(--ecru);              /* fond de page */
    --nuit-2: var(--teinte);          /* sections alternées, menu, formulaires */
    --noir-doux: #e9e4d6;
    --or: var(--moyen);               /* filets, bordures, puces, focus */
    --or-clair: var(--profond);       /* titres H2 / H3, mises en avant, survols */
    --braise: var(--moyen);           /* boutons pleins, étiquettes, liens d'action */
    --braise-sombre: var(--profond);
    --parchemin: var(--encre-v3);     /* texte courant */
    --parchemin-2: #3d4a47;           /* texte secondaire */
    --encre: var(--encre-v3);
    --mousse: #55615d;                /* légendes, libellés discrets (lisible sur écru et sur la teinte) */
    --trait: rgba(20, 33, 31, .12);
    --trait-fort: rgba(20, 33, 31, .24);
    --champ: #fbf9f3;                 /* fond des champs de formulaire */
    --erreur: #b3261e;
    /* Verres clairs : en-tête au défilement, barre de réservation, retour en haut (bleu nuit dans l'univers Locusta) */
    --verre-entete: rgba(245, 240, 227, .9);
    --verre: rgba(245, 240, 227, .94);
    --ombre: rgba(20, 33, 31, .28);
    --voile: 10, 26, 28;              /* voile sombre sur les photos (r, g, b) */
    --voile-accueil: .16;             /* léger voile sur les photos de l'ouverture de l'accueil (ordinateur) */
    --voile-accueil-petit: .3;        /* idem en tablette et sur téléphone (photo unique, plus de contraste pour le logo) */

    --f-titre: 'Jost', 'Futura', 'Century Gothic', sans-serif;
    --f-texte: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --f-manuscrit: 'BD Script', 'Segoe Script', 'Brush Script MT', cursive; /* noms des cartes du restaurant (extension criquets-cartes) */
    /* Anciens noms, lus par les extensions : --f-display / --f-mono → Jost, --f-serif / --f-sans → Inter (sans italique) */
    --f-display: var(--f-titre);
    --f-mono: var(--f-titre);
    --f-serif: var(--f-texte);
    --f-sans: var(--f-texte);

    --marge: clamp(16px, 3vw, 36px);
    --large: 1560px;
    --texte: 760px;
    --rayon: 20px;
    --entete: 76px;
    --section: clamp(72px, 11vw, 160px);

    /* Logo : taille XXL de l'ouverture et taille compacte de l'en-tête (le JS calcule l'échelle entre les deux) */
    --logo-xxl: clamp(1.9rem, 4.6vw, 5.4rem);
    --logo-compact: 1.05rem;
}

/*
   Seuils d'écran utilisés (chacun réglé pour un composant précis : ne pas les unifier sans tout revérifier) :
   560  téléphone : barre de réservation en 3 boutons empilés, flèche « retour en haut » remontée d'autant
   700  « Pourquoi nous choisir » : 3 par ligne au-dessus (1 par ligne en dessous)
   760  accueil : 2 photos d'ouverture empilées ; visionneuse de photos (flèches en bas)
   761–1024  tablette : une seule photo d'ouverture, voilée
   860  menu plein écran sur une colonne ; colonnes empilées (Restaurant : texte puis photo) ; section réservation non collante
   960  barre de réservation version mobile (formulaire en panneau) ; flèche au-dessus de la barre
   961–1180  flèche au-dessus de la barre presque pleine largeur
   961–1240  liens « Réserver une table / un spa » l'un sous l'autre
   1300 « Pourquoi nous choisir » : les 5 sur une ligne
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--nuit);
    color: var(--parchemin);
    font: 400 1.0625rem/1.65 var(--f-sans);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--or); text-underline-offset: .2em; }
a:hover { color: var(--or-clair); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; color: var(--or-clair); }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.crk-skip { position: absolute; left: -9999px; }
.crk-skip:focus { left: var(--marge); top: var(--marge); z-index: 200; background: var(--parchemin); color: var(--nuit); padding: .5em 1em; }

/* Étiquette / surtitre (Jost, petites capitales espacées) */
.crk-etiquette {
    font: 500 .76rem/1.4 var(--f-titre);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--braise);
    margin-bottom: .8em;
}

/* Logo : criquet au trait + « LES / CRIQUETS » en Jost capitales espacées.
   Tout est en em : l'accueil agrandit le même bloc (taille XXL) et le JS le réduit par une simple mise à l'échelle. */
.crk-wordmark {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font: 400 var(--logo-compact)/1.08 var(--f-titre);
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--profond);
}
.crk-wordmark__criquet {
    flex: none; height: 2.1em; aspect-ratio: 508.11 / 556.3; /* proportions du dessin (20/11 : criquet noun_Cricket ; ancien : 435 / 609) */
    background-color: currentColor; /* couleur du texte : bleu canard, ou écru sur photo */
    -webkit-mask: url(../img/criquet-noun.svg) center / contain no-repeat;
            mask: url(../img/criquet-noun.svg) center / contain no-repeat;
    /* Ancien dessin à l'encre, conservé : remettre aspect-ratio 435 / 609 et url(../img/criquet-pinceau.svg) */
}
.crk-wordmark__nom { display: flex; flex-direction: column; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.crk-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--entete);
    display: flex; align-items: center; justify-content: flex-end;
    padding: 0 var(--marge);
    transition: background-color .3s, backdrop-filter .3s;
}
.crk-header.is-solid {
    background: var(--verre-entete);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--trait);
}

.crk-header__logo {
    position: fixed; top: 16px; left: var(--marge); z-index: 51;
    text-decoration: none;
    transform-origin: 0 0;
    will-change: transform; /* à garder aussi hors accueil : il fixe le rendu de l'image du logo Locusta (réduction de 480 à 48 px) */
}
.crk-header__logo:hover { color: inherit; }
.crk-header__logo.is-animating { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .crk-header__logo.is-animating { transition: none; } }

/* Accueil : le logo démarre en XXL sur l'ouverture et rétrécit au défilement (JS) */
.home .crk-header__logo .crk-wordmark { font-size: var(--logo-xxl); }
.home .crk-header__logo { top: 24px; }

/* En-tête posé sur une photo (accueil, page à photo de tête), tant qu'il est transparent : tout passe en écru */
body:has(.crk-ouverture, .crk-page__header.has-photo) .crk-header:not(.is-solid) {
    --parchemin: var(--ecru); --or: var(--ecru); --or-clair: var(--ecru); --profond: var(--ecru);
    color: var(--ecru);
}
body:has(.crk-ouverture, .crk-page__header.has-photo) .crk-header:not(.is-solid) .crk-header__resa:hover { color: var(--encre-v3); }

.crk-header__actions { display: flex; align-items: center; gap: 22px; }
.crk-langs { display: flex; gap: 10px; font: 500 .8rem var(--f-titre); letter-spacing: .12em; }
.crk-langs a { text-decoration: none; opacity: .7; }
.crk-langs a[aria-current] { opacity: 1; color: var(--or-clair); }
.crk-header__resa {
    font: 500 .78rem var(--f-titre); letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; padding: .7em 1.3em; border: 1px solid var(--or); border-radius: 999px;
}
.crk-header__resa:hover { background: var(--or); color: var(--nuit); }

/* Burger : 3 traits fins */
.crk-burger { width: 40px; height: 34px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--parchemin); }
.crk-burger__bars, .crk-burger__bars::before, .crk-burger__bars::after {
    display: block; width: 40px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s;
}
.crk-burger__bars { position: relative; }
.crk-burger__bars::before, .crk-burger__bars::after { content: ''; position: absolute; left: 0; }
.crk-burger__bars::before { top: -10px; }
.crk-burger__bars::after { top: 10px; }
.crk-burger[aria-expanded="true"] .crk-burger__bars { background: transparent; }
.crk-burger[aria-expanded="true"] .crk-burger__bars::before { transform: translateY(10px) rotate(45deg); }
.crk-burger[aria-expanded="true"] .crk-burger__bars::after { transform: translateY(-10px) rotate(-45deg); }

/* Menu plein écran */
.crk-menu {
    position: fixed; inset: 0; z-index: 40;
    background: var(--nuit-2);
    overflow-y: auto;
    padding: calc(var(--entete) + 40px) var(--marge) 120px;
}
.crk-menu[hidden] { display: none; }
.crk-menu__inner { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 1fr 280px; gap: 60px; }
.crk-menu__list { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 60px; }
.crk-menu__list > li { break-inside: avoid; margin-bottom: 28px; }
.crk-menu__list > li > a {
    font: 400 clamp(1.7rem, 3.2vw, 2.6rem)/1.1 var(--f-titre); letter-spacing: -.005em;
    text-decoration: none; color: var(--parchemin);
}
.crk-menu__list > li > a:hover, .crk-menu__list > li.current-menu-item > a { color: var(--profond); }
.crk-menu__list .sub-menu { list-style: none; margin: 10px 0 0; padding: 0; }
.crk-menu__list .sub-menu a { font: 400 1rem/2 var(--f-texte); text-decoration: none; color: var(--parchemin-2); }
.crk-menu__list .sub-menu a:hover { color: var(--profond); }
.crk-menu__aside { border-left: 1px solid var(--trait); padding-left: 28px; color: var(--parchemin-2); }
/* Plan du menu : image statique qui mène à Google Maps (pas d'iframe : aucun script ni cookie Google) */
.crk-menu__plan { display: block; margin: 0 0 1em; text-decoration: none; }
.crk-menu__plan img { display: block; width: 100%; height: auto; border-radius: var(--rayon); transition: opacity .2s; }
.crk-menu__plan span { display: block; margin-top: 8px; font-size: .88rem; color: var(--parchemin); }
.crk-menu__plan:hover img, .crk-menu__plan:focus-visible img { opacity: .85; }
.crk-menu__plan:hover span { text-decoration: underline; }
body.menu-open { overflow: hidden; }
@media (max-width: 860px) {
    .crk-menu__inner { grid-template-columns: 1fr; gap: 30px; }
    .crk-menu__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--trait); padding-top: 24px; }
    /* Mobile : menu allégé, uniquement les rubriques (pas les sous-pages, accessibles depuis la page de leur rubrique) */
    .crk-menu__list .sub-menu { display: none; }
    .crk-menu__list > li { margin-bottom: 18px; }
    .crk-langs, .crk-header__resa { display: none; }
}

/* ==========================================================================
   Accueil — ouverture (matre.world)
   ========================================================================== */
.crk-ouverture {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr;
    height: 100vh; height: 100svh; min-height: 560px;
}
.crk-ouverture__photo { margin: 0; overflow: hidden; position: relative; }
.crk-ouverture__photo::after { /* petit filtre sombre sur chaque photo */
    content: ''; position: absolute; inset: 0; background: rgba(var(--voile), var(--voile-accueil)); pointer-events: none;
}
.crk-ouverture__photo img { width: 100%; height: 100%; object-fit: cover; }
.crk-ouverture::after { /* léger voile en haut pour la lisibilité du logo et du burger */
    content: ''; position: absolute; inset: 0 0 auto 0; height: 40%;
    background: linear-gradient(rgba(var(--voile), .5), transparent); pointer-events: none;
}
.crk-ouverture__suite {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    font: 500 .78rem var(--f-titre); letter-spacing: .16em; text-transform: uppercase;
    text-decoration: none; color: var(--ecru); text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
/* Tablette et téléphone (jusqu'à 1024 px) : les 2 photos côte à côte (ou empilées) deviennent trop étroites pour bien se lire.
   Une seule photo pleine page, avec un voile un peu plus marqué, les remplace (depuis le 26/11/2026 : aussi sur téléphone,
   où l'on empilait avant les 2 photos de l'ordinateur). */
.crk-ouverture__photo--tablette { display: none; }
@media (max-width: 1024px) {
    .crk-ouverture { display: block; }
    .crk-ouverture__photo:not(.crk-ouverture__photo--tablette) { display: none; }
    .crk-ouverture__photo--tablette { display: block; position: absolute; inset: 0; }
    .crk-ouverture__photo--tablette::after {
        content: ''; position: absolute; inset: 0; background: rgba(var(--voile), var(--voile-accueil-petit));
    }
}

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.crk-page__header { padding: calc(var(--entete) + 60px) var(--marge) 40px; max-width: var(--large); margin: 0 auto; }
.crk-page__header.has-photo { position: relative; max-width: none; padding: 0; height: 78vh; min-height: 480px; display: flex; align-items: flex-end; }
.crk-page__photo { position: absolute; inset: 0; margin: 0; }
.crk-page__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Voile en haut (lisibilité de l'en-tête écru) et en bas (titre) */
.crk-page__header.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(var(--voile), .45), transparent 22%, transparent 45%, rgba(var(--voile), .72)); }
.crk-page__titre {
    position: relative; z-index: 1; margin: 0;
    font: 400 clamp(2.5rem, 5.6vw, 5.4rem)/1.04 var(--f-titre); letter-spacing: -.012em;
    color: var(--profond); max-width: 18ch; text-wrap: balance;
}
.has-photo .crk-page__titre { padding: 0 var(--marge) clamp(24px, 4vw, 56px); color: var(--ecru); }

/* ==========================================================================
   Contenu (blocs Gutenberg) — mêmes règles en front et dans l'éditeur
   ========================================================================== */
/* Ancres (#reserver-une-table, #carte…) : ne pas arriver sous l'en-tête fixe */
.crk-content [id] { scroll-margin-top: calc(var(--entete) + 24px); }

.crk-content > * { max-width: var(--texte); margin-left: auto; margin-right: auto; padding-left: var(--marge); padding-right: var(--marge); }
/* Les groupes (sections) prennent toute la largeur ; leurs marges internes sont définies par leur classe plus bas */
.crk-content > .alignwide, .crk-content > .wp-block-group { max-width: none; }

.crk-content h2, .editor-styles-wrapper h2 {
    font: 400 clamp(1.9rem, 3.4vw, 2.9rem)/1.12 var(--f-titre);
    color: var(--or-clair); margin-top: 0; margin-bottom: .4em; letter-spacing: -.01em; text-wrap: balance;
}
/* Style de titre « Manuscrit » (éditeur : titre → Styles → Manuscrit), ex. « Romain Molle » sur la page Restaurant.
   Lettres très basses : environ 1,5 fois la taille d'un titre en Jost pour le même effet. */
.crk-content .is-style-manuscrit, .editor-styles-wrapper .is-style-manuscrit {
    font-family: var(--f-manuscrit); font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.15;
}
.crk-content h2.is-style-manuscrit, .editor-styles-wrapper h2.is-style-manuscrit { font-size: clamp(2.9rem, 5.2vw, 4.4rem); }
.crk-content h3.is-style-manuscrit, .editor-styles-wrapper h3.is-style-manuscrit { font-size: clamp(2.1rem, 3vw, 2.6rem); }
/* Variante très grande, posée à la main sur un seul titre (« Romain Molle », page Restaurant) : jusqu'à 180 px,
   réduite avec la largeur de l'écran pour rester sur une ligne (le nom fait environ 3,5 fois la taille de la police en largeur) :
   colonnes empilées jusqu'à 860 px comme le reste du thème (colonne ≈ toute la largeur), deux colonnes au-delà (colonne ≈ 45 % de l'écran) */
.crk-content .is-style-manuscrit.crk-manuscrit-xxl, .editor-styles-wrapper .is-style-manuscrit.crk-manuscrit-xxl { font-size: min(180px, 24vw); line-height: 1; }
@media (min-width: 861px) {
    .crk-content .is-style-manuscrit.crk-manuscrit-xxl, .editor-styles-wrapper .is-style-manuscrit.crk-manuscrit-xxl { font-size: min(180px, 12vw); }
}
/* Tablette et téléphone (colonnes empilées) : le grand logo Locusta de la colonne voisine (bloc Image .crk-logo-locusta, seul
   dans sa colonne) disparaît et revient en petit à gauche du nom, à la hauteur de la police. Nom + logo ≈ 4,6 fois la taille
   de la police en largeur, d'où la taille réduite pour rester sur une ligne. Ordinateur : rien ne change (logo dans sa colonne). */
@media (max-width: 860px) {
    .crk-content .wp-block-columns:has(.crk-manuscrit-xxl) > .wp-block-column:has(> .crk-logo-locusta:only-child) { display: none; }
    .crk-content .wp-block-columns:has(> .wp-block-column > .crk-logo-locusta:only-child) .is-style-manuscrit.crk-manuscrit-xxl {
        display: flex; align-items: center; gap: .18em; font-size: min(180px, 19vw);
    }
    .crk-content .wp-block-columns:has(> .wp-block-column > .crk-logo-locusta:only-child) .is-style-manuscrit.crk-manuscrit-xxl::before {
        content: ''; flex: none; height: 1em; aspect-ratio: 480 / 561;
        background: url(../img/locusta-logo-480.webp) center / contain no-repeat;
    }
}

.crk-content h3, .editor-styles-wrapper h3 {
    font: 500 1.35rem/1.25 var(--f-titre); color: var(--parchemin); margin-top: 0; margin-bottom: .5em; text-wrap: balance;
}
.crk-content ul { padding-left: 1.1em; }
/* Liste posée seule dans la colonne de texte : garde la marge de la colonne en plus du retrait des puces */
.crk-content > ul, .crk-content > ol { padding-left: calc(var(--marge) + 1.1em); }
.crk-content li { margin-bottom: .45em; }
.crk-content li::marker { color: var(--or); }

/* Visionneuse de photos (inc/photos.php) */
.crk-photos-zoom .crk-content :not(a):not(.crk-logo-locusta) > img[class*="wp-image-"] { cursor: zoom-in; }
.crk-photos-ouverte { overflow: hidden; }
.crk-photos {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(var(--voile), .96); color: var(--ecru); overflow: hidden;
    /* toujours sombre, quel que soit l'univers de la page */
    --parchemin: var(--ecru); --trait-fort: rgba(245, 240, 227, .3); --or: var(--ecru); --or-clair: var(--ecru); --mousse: #b9c4c0;
}
.crk-photos[open] { display: grid; place-items: center; }
.crk-photos::backdrop { background: rgba(var(--voile), .96); }
.crk-photos__cadre { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px clamp(8px, 7vw, 110px); }
.crk-photos__cadre img { max-width: 100%; max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.crk-photos button {
    position: absolute; background: none; border: 1px solid var(--trait-fort); border-radius: 50%; width: 48px; height: 48px;
    color: var(--parchemin); font: 300 1.4rem/1 var(--f-titre); cursor: pointer; display: grid; place-items: center;
}
.crk-photos button:hover { border-color: var(--or); color: var(--or-clair); }
.crk-photos__fermer { top: 14px; right: 14px; }
.crk-photos__nav { top: 50%; translate: 0 -50%; }
.crk-photos__nav--prec { left: 12px; }
.crk-photos__nav--suiv { right: 12px; }
.crk-photos__compteur { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; font: 500 .78rem var(--f-texte); font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--mousse); }
.crk-photos.is-seule .crk-photos__nav, .crk-photos.is-seule .crk-photos__compteur { display: none; }
@media (max-width: 760px) {
    .crk-photos__nav { top: auto; bottom: 10px; translate: none; }
    .crk-photos__nav--prec { left: 16px; }
    .crk-photos__nav--suiv { right: 16px; }
    .crk-photos__cadre { padding: 64px 8px 70px; }
    .crk-photos__cadre img { max-height: calc(100vh - 134px); max-height: calc(100dvh - 134px); }
}

/* Questions / réponses (bloc « Détails ») */
.crk-content h2 + .wp-block-details { margin-top: .8em; }
.crk-content .wp-block-details + h2 { margin-top: 1em; }
.wp-block-details { border-bottom: 1px solid var(--trait); }
.wp-block-details > summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1em;
    padding: 1.05em 0; font: 600 1.08rem/1.4 var(--f-sans); color: var(--parchemin);
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after { content: '+'; flex: none; font: 300 1.6rem/1 var(--f-titre); color: var(--or); transition: transform .2s; }
.wp-block-details[open] > summary::after { transform: rotate(45deg); }
.wp-block-details > summary:hover { color: var(--or-clair); }
.wp-block-details > :not(summary):not(.wp-block-details) { color: var(--parchemin-2); }
.wp-block-details > :last-child { padding-bottom: 1.2em; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .wp-block-details > summary::after { transition: none; } }

/* Sur-titre (sous un titre : « Une affaire familiale depuis 1971 ») */
.crk-surtitre {
    font: 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.35 var(--f-titre);
    color: var(--braise); margin-bottom: 1.1em;
}

/* Accroche centrée (sous l'ouverture) */
.crk-accroche {
    font: 300 clamp(1.7rem, 3.4vw, 2.8rem)/1.2 var(--f-titre);
    color: var(--or-clair); text-align: center; max-width: 26ch; margin: 0 auto; text-wrap: balance;
}

/* Liens éditoriaux « Voir … → » */
.crk-liens { font: 500 1rem/1.8 var(--f-texte); }
.crk-liens a { color: var(--braise); text-decoration: none; display: inline-block; margin-right: 1.4em; }
.crk-liens a:hover { color: var(--or-clair); text-decoration: underline; }

/* Boutons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }
.wp-block-button__link {
    display: inline-block; padding: .95em 1.8em; border-radius: 999px;
    font: 600 .88rem/1 var(--f-texte); letter-spacing: .01em; text-decoration: none;
    background: transparent; color: var(--parchemin); border: 1px solid var(--or);
    transition: background-color .2s, color .2s;
}
.wp-block-button__link:hover { background: var(--or); color: var(--nuit); }
.crk-resa .wp-block-button__link { background: var(--braise); border-color: var(--braise); color: #fff; }
.crk-resa .wp-block-button__link:hover { background: var(--or-clair); border-color: var(--or-clair); color: var(--nuit); }

/* Images dans le contenu : coins arrondis (raus.life) */
.crk-content .wp-block-image { margin: 0 0 16px; }
.crk-content .wp-block-image img { border-radius: var(--rayon); width: 100%; object-fit: cover; }
/* Photo posée seule dans le texte (hors sections) : centrée dans la colonne de texte, format paysage */
.crk-content > .wp-block-image { margin: 1.6em auto 2em; }
.crk-content > .wp-block-image img { aspect-ratio: 16 / 10; }

/* ---------- Sections (contenu migré : photos + texte en deux colonnes) ---------- */
.crk-section { padding: var(--section) var(--marge); }
.crk-section--alt { background: var(--nuit-2); }
.crk-section > .wp-block-group__inner-container,
.crk-intro > .wp-block-group__inner-container,
.crk-cartes > .wp-block-group__inner-container,
.crk-avis > .wp-block-group__inner-container,
.crk-pourquoi > .wp-block-group__inner-container,
.crk-galerie > .wp-block-group__inner-container { max-width: var(--large); margin: 0 auto; }

.wp-block-columns { display: flex; gap: clamp(28px, 5vw, 80px); align-items: center; margin: 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column > *:last-child { margin-bottom: 0; }
/* Titre placé sous des colonnes dans une même section : on respire avant de repartir sur un nouveau thème */
.crk-section .wp-block-columns + h2 { margin-top: clamp(48px, 7vw, 96px); }
.crk-section > .wp-block-group__inner-container > p + h2 { margin-top: clamp(40px, 5vw, 72px); }

/* Plusieurs photos dans une colonne : la première en grand, les autres en vignettes */
.crk-section .wp-block-column:has(> .wp-block-image + .wp-block-image) {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.crk-section .wp-block-column:has(> .wp-block-image + .wp-block-image) > .wp-block-image { margin: 0; }
.crk-section .wp-block-column:has(> .wp-block-image + .wp-block-image) > .wp-block-image:first-child { grid-column: 1 / -1; }
.crk-section .wp-block-column:has(> .wp-block-image + .wp-block-image) img { aspect-ratio: 4 / 3; }

/* Galerie en mosaïque (bloc Galerie, Avancé → Classe CSS : crk-mosaique ; 1re utilisation : « Notre belle histoire »,
   page Restaurant, 29/11/2026) : la 1re photo en grand (2 × 2 cases), les suivantes en vignettes 4:3, autant qu'on veut.
   Photos ajoutées / retirées / réordonnées dans le bloc ; le clic ouvre la visionneuse du site (inc/photos.php) :
   laisser le Lien du bloc sur « Aucun » (pas « Agrandir au clic », qui ouvrirait la visionneuse de WordPress à la place).
   Les sélecteurs reprennent :not(#individual-image) pour passer devant les largeurs du style natif de la galerie. */
.wp-block-gallery.has-nested-images.crk-mosaique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
/* Vignettes 4:3 communes à la mosaïque et au bandeau (ci-dessous) */
:is(.crk-mosaique, .crk-bandeau-photos).wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    position: relative; width: auto; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden;
}
/* La grande photo occupe 2 colonnes × 2 lignes ; les lignes sont dimensionnées par les vignettes (4:3) */
.wp-block-gallery.has-nested-images.crk-mosaique figure.wp-block-image:not(#individual-image):first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
/* Images sorties du calcul de hauteur (sinon la taille réelle de la grande photo étire toute la grille) */
:is(.crk-mosaique, .crk-bandeau-photos).wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
    position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0;
    transition: transform .5s ease;
}
:is(.crk-mosaique, .crk-bandeau-photos).wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }

/* Bandeau de photos sous les colonnes d'une section, à la largeur du contenu (bloc Galerie placé après le bloc Colonnes,
   classe crk-bandeau-photos ; 1re utilisation : « Espace détente », page Spa, 29/11/2026) : toutes les photos sur une
   ligne, autant de cases que de photos ; 2 par ligne sur mobile. Lien du bloc : « Aucun » (visionneuse du site). */
.wp-block-gallery.has-nested-images.crk-bandeau-photos {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px;
    margin: clamp(28px, 5vw, 80px) 0 0;
}
@media (max-width: 860px) {
    .wp-block-gallery.has-nested-images.crk-bandeau-photos { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
    .wp-block-gallery.has-nested-images.crk-bandeau-photos figure.wp-block-image:not(#individual-image):last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
    .wp-block-columns { flex-direction: column; align-items: stretch; }
    /* Hôtel et Spa empilent texte puis photo ; Restaurant a la photo en premier (alternance voulue sur desktop,
       photo à gauche) — on harmonise l'ordre d'empilement en dessous de 860px : texte puis photo partout. */
    .crk-pole--restaurant .wp-block-columns { flex-direction: column-reverse; }
}

/* Intro de page */
.crk-intro { padding: clamp(56px, 8vw, 110px) var(--marge) 0; text-align: center; }
.crk-intro h2 { font: 400 clamp(1.5rem, 2.8vw, 2.3rem)/1.25 var(--f-titre); color: var(--or-clair); max-width: 30ch; margin: 0 auto .6em; }
.crk-intro p { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ---------- Accueil ---------- */
.crk-accueil-intro { padding: var(--section) var(--marge) calc(var(--section) * .6); text-align: center; }
.crk-accueil-intro .crk-etiquette { margin-bottom: 2em; }

/* Pôle : sur-titre, grand titre fin, texte, liens */
.crk-pole { padding: calc(var(--section) * .4) var(--marge); }
.crk-pole h2 {
    font-weight: 300; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 1; letter-spacing: -.02em; color: var(--profond); margin-bottom: .3em;
}
.crk-pole .wp-block-column img { aspect-ratio: 4 / 5; border-radius: 0; }
.crk-pole p:not(.crk-surtitre):not(.crk-liens) { max-width: 52ch; color: var(--parchemin-2); }
.crk-pole--restaurant h2 { color: #10293b; } /* bleu nuit de Locusta : annonce la page du restaurant */
.crk-pole--spa h2 { color: var(--moyen); }

/* Pourquoi nous choisir : bandeau bleu canard */
.crk-pourquoi {
    background: var(--profond); color: var(--ecru); padding: var(--section) var(--marge);
    --trait-pourquoi: rgba(245, 240, 227, .24);
}
.crk-pourquoi h2 { color: var(--ecru); text-align: center; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; }
.crk-pourquoi .crk-etiquette { text-align: center; color: var(--teinte); }
.crk-pourquoi ul {
    list-style: none; padding: 0; margin: 2.4em auto 0; max-width: var(--large);
    display: flex; flex-wrap: wrap; justify-content: space-around; row-gap: 0;
    border-top: 1px solid var(--trait-pourquoi);
}
/*
   Nombre de colonnes fixé par palier (pas de minmax auto-fit) : avec 5 items, un auto-fit qui passe de 4 à 5
   colonnes selon la largeur laisse parfois un item tout seul sur sa ligne (ex. 4 + 1, vers 1200-1299px).
   En dessous de 700px : 1 par ligne. De 700 à 1299px : 3 par ligne (5 items => 2 lignes de 3 et 2, centrées
   par le justify-content: space-around ci-dessus). À partir de 1300px : les 5 tiennent sur une seule ligne.
   Si le nombre d'items change dans l'éditeur, revoir ces paliers.
*/
.crk-pourquoi li {
    flex: 0 1 100%; max-width: 420px;
    margin: 0; padding: 22px 24px; border-bottom: 1px solid var(--trait-pourquoi);
    font: 400 1.15rem/1.4 var(--f-titre);
}
@media (min-width: 700px) {
    .crk-pourquoi li { flex-basis: 30%; max-width: 380px; }
}
@media (min-width: 1300px) {
    .crk-pourquoi li { flex-basis: 16%; max-width: 300px; }
}
.crk-pourquoi a { color: var(--ecru); text-decoration-color: var(--teinte); }
.crk-pourquoi strong, .crk-pourquoi b { color: var(--ecru); }

/* Cartes (3 entrées) */
.crk-cartes { padding: var(--section) var(--marge); }
.crk-cartes > .wp-block-group__inner-container > h2,
.crk-cartes > .wp-block-group__inner-container > p { text-align: center; }
.crk-cartes .wp-block-columns { align-items: stretch; margin-top: 2.6em; }
.crk-cartes .wp-block-column { display: flex; flex-direction: column; }
.crk-cartes .wp-block-image img { aspect-ratio: 4 / 5; }
.crk-cartes h3 { color: var(--or-clair); }
.crk-cartes .wp-block-buttons,
.crk-cartes .wp-block-column > .crk-liens:last-child { margin-top: auto; }

/* Questions fréquentes repliées en bas de l'accueil : un accordéon qui contient les questions */
.crk-faq-accueil { padding: var(--section) var(--marge); }
.crk-faq-accueil > .wp-block-group__inner-container { max-width: var(--texte); margin: 0 auto; }
/* Page Questions fréquentes : la colonne de texte part du même bord gauche que le titre de la page */
.crk-page-faq .crk-content { max-width: var(--large); margin: 0 auto; }
.crk-page-faq .crk-content > * { margin-left: 0; }

/* Page privée « Guide du site » (docker/scripts/guide-site.php) : pleine largeur utile, calée à gauche sous le titre,
   rubriques en accordéons sur deux colonnes pour garder des lignes lisibles */
.crk-content > .crk-guide-page { padding: 0 var(--marge) var(--section); }
.crk-guide-page > .wp-block-group__inner-container { max-width: var(--large); margin: 0 auto; }
.crk-guide-page > .wp-block-group__inner-container > p { max-width: 80ch; }
.crk-guide-page h2 { margin-top: clamp(44px, 5vw, 72px); }
.crk-guide-menus { columns: 2 440px; column-gap: 56px; margin: 0; }
.crk-guide-menus li { break-inside: avoid; }
.crk-guide-grille > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; align-items: start; }
@media (max-width: 860px) { .crk-guide-grille > .wp-block-group__inner-container { grid-template-columns: 1fr; } }
.crk-faq-tout { border-top: 1px solid var(--trait-fort); border-bottom-color: var(--trait-fort); }
.crk-faq-tout > summary {
    font: 400 clamp(1.7rem, 3.2vw, 2.6rem)/1.1 var(--f-titre); color: var(--or-clair); padding: .5em 0;
}
.crk-faq-tout > summary::after { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.crk-faq-tout > .crk-liens { margin-top: 1.2em; }

/* Avis (témoignages, « Ils sont venus ») : cartes de largeur fixe, centrées plutôt qu'étirées
   quand il y en a moins de 3 ; chaque carte aligne sa date sur la même ligne que les autres,
   quelle que soit la longueur du texte au-dessus. */
.crk-avis { background: var(--nuit-2); padding: var(--section) var(--marge); text-align: center; }
.crk-avis > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 40px; }
.crk-avis h2 { flex-basis: 100%; }
.crk-avis .wp-block-quote { display: flex; flex-direction: column; flex: 0 1 320px; }
.crk-avis .wp-block-quote cite { margin-top: 0; padding-top: 18px; }
.crk-avis-temoignage__etoiles { margin-top: auto; padding-top: 10px; }
.crk-avis-temoignage__google { flex-basis: 100%; margin: 12px 0 0; }
.crk-avis-temoignage__google a { display: inline-flex; align-items: center; gap: .6em; color: var(--braise); text-decoration: none; font: 500 1rem/1.6 var(--f-texte); }
.crk-avis-temoignage__google a:hover { color: var(--or-clair); text-decoration: underline; }
.wp-block-quote { margin: 0; padding: 0; border: 0; }
.wp-block-quote p { font: 300 1.2rem/1.5 var(--f-titre); color: var(--parchemin); }
.wp-block-quote cite { font: 500 .76rem var(--f-titre); letter-spacing: .16em; text-transform: uppercase; color: var(--braise); font-style: normal; }

/* Section réservation (page Restaurant) : horaires à gauche, formulaire à droite */
.crk-reservation .wp-block-columns { align-items: flex-start; gap: clamp(32px, 6vw, 96px); }
.crk-reservation .wp-block-column:first-child { flex: 0 1 38%; }
.crk-reservation .wp-block-column:last-child { flex: 1 1 62%; }
@media (min-width: 861px) {
    .crk-reservation .wp-block-column:first-child { position: sticky; top: calc(var(--entete) + 32px); }
}
.crk-reservation h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; color: var(--or-clair); margin-bottom: .6em; }
.crk-reservation .crk-horaires { margin: 0 0 1.4em; max-width: none; }
.crk-reservation .crk-horaires__liste li { grid-template-columns: 1fr auto; gap: 4px 16px; }
.crk-reservation .crk-horaires__jours { grid-column: 1 / -1; grid-row: 2; }
.crk-reservation .crk-resa { max-width: none; margin: 0; }
.crk-reservation__note { font-size: .95rem; color: var(--parchemin-2); }
.crk-reservation__note a { color: var(--or-clair); white-space: nowrap; }

/* Tableaux (grilles tarifaires de l'ancien site, largeur forcée à 125 % en style inline) */
.crk-content table { width: 100% !important; max-width: var(--texte); border-collapse: collapse; margin: 0 0 2em; }
.crk-content td { width: auto !important; padding: 12px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.crk-content td:last-child { text-align: right; padding-left: 24px; white-space: nowrap; font: 500 .98rem var(--f-texte); font-variant-numeric: tabular-nums; color: var(--or-clair); }
/* Grille de tarifs (extension Tarifs) : même rendu que les tableaux de prix */
.crk-content .crk-tarifs { margin: 0; }
.crk-content .crk-tarifs table { margin: 0 0 2em; }
/* Dans une introduction centrée : grille étroite, centrée, libellés alignés à gauche */
.crk-intro .crk-tarifs { max-width: 34rem; margin: 1.8em auto; text-align: left; }
.crk-intro .crk-tarifs table { margin-bottom: 0; }
.crk-content .crk-tarifs__titre { font: 500 .76rem/1.4 var(--f-titre); text-transform: uppercase; letter-spacing: .16em; color: var(--braise); margin: 2.4em 0 .4em; }
.crk-content .crk-tarifs > :first-child { margin-top: 0; }
.crk-content tr:has(td:first-child:empty) { display: none; }

/* Galerie */
.crk-galerie { padding: var(--section) var(--marge); }
.crk-galerie > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.crk-galerie .wp-block-image { margin: 0; }
.crk-galerie img { aspect-ratio: 1; }

/* Sous-pages / archives */
.crk-sous-pages {
    max-width: var(--large); margin: 0 auto; padding: var(--section) var(--marge);
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 24px;
}
/* Archives : la grille suit directement le titre de page (l'en-tête donne déjà l'espace) */
.crk-content > .crk-sous-pages:first-child { padding-top: 0; }
/* Tuiles placées dans le contenu (bloc « Tuiles des sous-pages ») : peu d'espace avec les sections voisines */
.crk-content > .crk-sous-pages { padding-top: 0; padding-bottom: 0; }
.crk-content > .crk-section:has(+ .crk-sous-pages) { padding-bottom: clamp(40px, 5vw, 72px); }
.crk-content > .crk-sous-pages + .crk-section { padding-top: clamp(40px, 5vw, 72px); }
.crk-carte { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.crk-carte img { border-radius: var(--rayon); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.crk-carte__titre { font: 400 1.45rem/1.2 var(--f-titre); color: var(--parchemin); }
/* Titres de longueurs différentes : le lien « Découvrir » reste aligné en bas de chaque tuile */
.crk-carte > .crk-liens { margin-top: auto; padding-top: 4px; }

/* Apparition douce au défilement */
@media (prefers-reduced-motion: no-preference) {
    .js .crk-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
    .js .crk-reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.crk-footer { border-top: 1px solid var(--trait); padding: var(--section) var(--marge) 140px; }
.crk-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 60px; margin-bottom: 70px; }
.crk-footer__mark { margin: 0; }
.crk-wordmark--xxl { font-size: var(--logo-xxl); }
.crk-footer__tagline { font: 300 clamp(1.4rem, 2.6vw, 2.2rem)/1.25 var(--f-titre); color: var(--braise); max-width: 20ch; margin: 0 0 .3em; }
.crk-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; color: var(--parchemin-2); font-size: .95rem; }
.crk-footer__cols a { text-decoration: none; }
.crk-footer__social { display: inline-flex; align-items: center; gap: 6px; }
.crk-icone-google { flex: none; opacity: .85; vertical-align: -3px; margin-right: 6px; }
.crk-footer__social .crk-icone-google { margin-right: 0; }
.crk-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
    margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--trait);
    font: 400 .8rem var(--f-texte); color: var(--mousse);
}
.crk-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.crk-footer__links a { text-decoration: none; }

/* ==========================================================================
   Barre de réservation flottante (raus.life)
   ========================================================================== */
.crk-resabar {
    position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 14px;
    width: max-content; max-width: calc(100% - 2 * var(--marge));
    padding: 6px 6px 6px 8px;
    background: var(--verre); backdrop-filter: blur(12px);
    border: 1px solid var(--or); border-radius: 999px;
    box-shadow: 0 20px 40px -18px var(--ombre);
    transition: opacity .35s, transform .35s;
}
.crk-resabar.is-hidden { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; }
.crk-resabar__form { display: flex; align-items: center; }
.crk-resabar__field { display: flex; flex-direction: column; padding: 6px 18px; border-right: 1px solid var(--trait-fort); }
.crk-resabar__field--small { padding-right: 14px; }
.crk-resabar__label { font: 500 .66rem var(--f-titre); letter-spacing: .16em; text-transform: uppercase; color: var(--mousse); }
.crk-resabar input, .crk-resabar select {
    background: transparent; border: 0; padding: 2px 0 0; color: var(--parchemin);
    font: 500 .95rem var(--f-texte); color-scheme: light;
}
.crk-resabar select option { background: var(--nuit-2); }
.crk-resabar__cta {
    margin-left: 8px; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--braise); color: #fff; font: 600 .85rem var(--f-sans); white-space: nowrap;
}
.crk-resabar__cta:hover { background: var(--or-clair); color: var(--nuit); }
.crk-resabar__liens { display: flex; align-items: center; }
.crk-resabar__table { font: 500 .92rem var(--f-texte); color: var(--or-clair); text-decoration: none; padding-right: 18px; white-space: nowrap; }
.crk-resabar__toggle { display: none; }

/* Variante trois boutons (page du restaurant) */
.crk-resabar--boutons { gap: 6px; padding: 6px; }
.crk-resabar__bouton {
    padding: 14px 26px; border-radius: 999px; text-decoration: none; white-space: nowrap;
    background: var(--braise); color: #fff; font: 600 .9rem var(--f-sans); text-align: center;
    transition: background .2s, color .2s;
}
.crk-resabar__bouton:hover { background: var(--or-clair); color: var(--nuit); }

/* Retour en haut : même matière que la barre de réservation (verre sombre + filet or) */
.crk-haut {
    position: fixed; right: var(--marge); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 44;
    display: grid; place-items: center; width: 52px; height: 52px;
    color: var(--or-clair); background: var(--verre); backdrop-filter: blur(12px);
    border: 1px solid var(--or); border-radius: 50%;
    box-shadow: 0 20px 40px -18px var(--ombre);
    transition: opacity .35s, transform .35s, background .2s, color .2s;
}
.crk-haut:hover { background: var(--or); color: var(--nuit); }
.crk-haut:hover svg { transform: translateY(-2px); }
.crk-haut svg { transition: transform .2s; }
.js .crk-haut:not(.is-visible) { opacity: 0; transform: translateY(16px); pointer-events: none; }

@media (min-width: 961px) and (max-width: 1180px) {
    /* Barre de réservation presque pleine largeur : la flèche passe au-dessus */
    .crk-haut { bottom: calc(96px + var(--bandeau, 0px) + env(safe-area-inset-bottom)); }
}

/* Bandeau des fermetures exceptionnelles (30/11/2026) : tout en bas de l'écran, sur ordinateur et tablette, pas sur
   téléphone (jusqu'à 560 px, comme la barre de réservation en boutons empilés) — template-parts/bandeau-fermetures.php.
   La barre de réservation, la flèche « haut de page » et « Découvrir » remontent de sa hauteur. Texte trop long
   pour l'écran : il défile (classe is-defile posée par main.js, contenu doublé pour une boucle sans à-coup). */
.crk-bandeau-fermetures { display: none; }
@media (min-width: 961px) {
    body.crk-avec-bandeau .crk-resabar { bottom: calc(20px + var(--bandeau) + env(safe-area-inset-bottom)); }
    body.crk-avec-bandeau .crk-haut { bottom: calc(20px + var(--bandeau) + env(safe-area-inset-bottom)); }
}
@media (min-width: 561px) and (max-width: 960px) { /* tablette : barre pleine largeur plus basse, flèche au-dessus */
    body.crk-avec-bandeau .crk-resabar { bottom: calc(12px + var(--bandeau) + env(safe-area-inset-bottom)); }
    body.crk-avec-bandeau .crk-haut { bottom: calc(92px + var(--bandeau) + env(safe-area-inset-bottom)); }
}
@media (min-width: 561px) {
    body.crk-avec-bandeau { --bandeau: 36px; padding-bottom: var(--bandeau); }
    body.crk-avec-bandeau .crk-ouverture__suite { bottom: calc(28px + var(--bandeau)); } /* « Découvrir » de l'accueil */
    .crk-bandeau-fermetures {
        display: flex; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
        height: var(--bandeau); overflow: hidden; white-space: nowrap;
        background: var(--braise); color: #fff; font: 500 .84rem/var(--bandeau) var(--f-sans); letter-spacing: .01em;
    }
    /* Page Restaurant (univers Locusta) : --braise y vaut le crème du logo → texte canard (demande du 30/11/2026) */
    .crk-univers-locusta .crk-bandeau-fermetures { color: #07505A; }
    .crk-bandeau-fermetures__piste { display: flex; flex: none; }
    .crk-bandeau-fermetures__liste { margin: 0; padding: 0 var(--marge); }
    .crk-bandeau-fermetures__sep { margin: 0 .9em; opacity: .7; }
    .crk-bandeau-fermetures.is-defile { justify-content: flex-start; }
    .crk-bandeau-fermetures.is-defile .crk-bandeau-fermetures__piste { animation: crk-bandeau-defile var(--duree, 30s) linear infinite; }
    .crk-bandeau-fermetures.is-defile:hover .crk-bandeau-fermetures__piste { animation-play-state: paused; }
    /* Moins d'animations demandé : pas de défilement, le texte est coupé (bulle au survol : tout le texte) */
    .crk-bandeau-fermetures.is-coupe { justify-content: flex-start; }
    .crk-bandeau-fermetures.is-coupe .crk-bandeau-fermetures__liste { overflow: hidden; text-overflow: ellipsis; max-width: 100vw; }
}
@media (min-width: 961px) and (max-width: 1180px) {
    body.crk-avec-bandeau .crk-haut { bottom: calc(96px + var(--bandeau) + env(safe-area-inset-bottom)); }
}
@keyframes crk-bandeau-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 961px) and (max-width: 1240px) {
    /* Écrans moyens : liens « Réserver une table / un spa » l'un sous l'autre pour que la barre tienne */
    .crk-resabar__liens { flex-direction: column; align-items: flex-start; gap: 2px; }
    .crk-resabar__table { font-size: .9rem; }
}
@media (max-width: 960px) {
    /* Au-dessus de la barre de réservation (pleine largeur en bas) ; masqué quand elle est ouverte */
    .crk-haut { right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
    body:has(.crk-resabar.is-open) .crk-haut { opacity: 0; pointer-events: none; }

    /* Mobile : deux boutons, le formulaire s'ouvre en panneau */
    .crk-resabar { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none; width: auto; max-width: none; border-radius: 22px; flex-wrap: wrap; justify-content: space-between; padding: 8px; }
    .crk-resabar.is-hidden { transform: translateY(24px); }
    /* Tablette (30/11/2026) : trois boutons de même largeur côte à côte (chambre, table, spa), comme la barre de la page
       Restaurant, au lieu du gros bouton « chambre » + deux liens texte. Les liens sortent de leur conteneur
       (display: contents) pour être trois boutons égaux de la barre ; « Réserver une chambre » ouvre toujours les dates. */
    .crk-resabar:not(.crk-resabar--boutons) { gap: 4px; padding: 6px; }
    .crk-resabar__toggle {
        display: flex; align-items: center; justify-content: center; flex: 1 1 0; order: 1; padding: 12px 8px; border: 0; border-radius: 999px;
        background: var(--braise); color: #fff; font: 600 .8rem/1.2 var(--f-sans); cursor: pointer;
    }
    .crk-resabar__liens { display: contents; }
    .crk-resabar__table {
        flex: 1 1 0; order: 2; display: flex; align-items: center; justify-content: center; padding: 12px 8px; border-radius: 999px;
        background: var(--braise); color: #fff; font: 600 .8rem/1.2 var(--f-sans); text-align: center; text-decoration: none; white-space: normal;
        transition: background .2s, color .2s;
    }
    .crk-resabar__table:hover, .crk-resabar__toggle:hover { background: var(--or-clair); color: var(--nuit); }
    .crk-resabar__form { display: none; order: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 4px 10px; }
    .crk-resabar.is-open .crk-resabar__form { display: flex; }
    .crk-resabar.is-open .crk-resabar__toggle { display: none; }
    .crk-resabar__field { border-right: 0; border-bottom: 1px solid var(--trait-fort); padding: 8px 10px; }
    .crk-resabar__cta { margin: 8px 0 0; }
    .crk-resabar--boutons { flex-wrap: nowrap; align-items: stretch; gap: 4px; padding: 6px; }
    .crk-resabar__bouton { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px 8px; font-size: .8rem; white-space: normal; line-height: 1.2; }
}

@media (max-width: 560px) {
    /* Téléphone : la moitié/moitié devient trop étroite (le texte des liens se met à casser). Les 3 actions
       (chambre, table, spa) se ramassent plutôt en 3 boutons pleine largeur, empilés, même style que les 3 boutons
       de la page du restaurant. « Réserver une chambre » reste le bouton qui ouvre le formulaire de dates. */
    .crk-resabar:not(.crk-resabar--boutons) { flex-direction: column; align-items: stretch; }
    .crk-resabar:not(.crk-resabar--boutons) .crk-resabar__toggle { flex: none; width: 100%; }
    .crk-resabar:not(.crk-resabar--boutons) { gap: 14px; padding: 8px; }
    .crk-resabar:not(.crk-resabar--boutons) .crk-resabar__toggle { padding: 14px; font-size: .9rem; }
    .crk-resabar:not(.crk-resabar--boutons) .crk-resabar__liens {
        display: flex; order: 2; flex: none; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding: 0;
    }
    .crk-resabar:not(.crk-resabar--boutons) .crk-resabar__table {
        display: block; flex: none; padding: 14px; border-radius: 999px; text-align: center;
        background: var(--braise); color: #fff; font: 600 .9rem var(--f-texte); text-decoration: none;
    }
    .crk-resabar:not(.crk-resabar--boutons) .crk-resabar__table:hover { background: var(--or-clair); color: var(--nuit); }
    /* La barre est maintenant plus haute (3 boutons empilés) : la flèche « retour en haut » remonte d'autant */
    .crk-haut { bottom: calc(204px + env(safe-area-inset-bottom)); }
}

.crk-centre { text-align: center; }

/* ==========================================================================
   Univers Locusta (page du restaurant) — couleurs du site du restaurant, voir moodboard
   Bleu nuit, titres blancs, sous-titres sauge clair ; boutons violet (trait du logo)
   ========================================================================== */
.crk-univers-locusta {
    --nuit: #10293b;
    --nuit-2: #0b2030;
    --parchemin: #f7f4ec;
    --parchemin-2: #c5cdd2;
    --or: #8fa98c;           /* sauge du logo : filets, bordures, focus */
    --or-clair: #c7caa8;     /* titres H2 / H3 */
    --braise: #ffeac3;       /* crème du logo : liens, surtitres (lisible sur le bleu) */
    --mousse: #8fa98c;
    --trait: rgba(255, 234, 195, .14);
    --trait-fort: rgba(255, 234, 195, .3);
    --verre-entete: rgba(16, 41, 59, .85);
    --verre: rgba(16, 41, 59, .92);
    --locusta-violet: #751dff;
    /* Rôles v3 ramenés dans l'univers sombre (logo du pied de page, survols du menu, champs, erreurs) */
    --profond: #ffeac3;
    --moyen: #8fa98c;
    --teinte: #c7caa8;
    --champ: rgba(0, 0, 0, .25);
    --erreur: #ff8a5c;
    --ombre: rgba(0, 0, 0, .8);
}
.crk-univers-locusta .crk-resabar input, .crk-univers-locusta .crk-resabar select { color-scheme: dark; }
/* « Nous contacter » : encart papier clair, texte bleu nuit (comme avant la v3) */
.crk-univers-locusta .crk-pourquoi { background: #f7f4ec; color: #10293b; --trait-pourquoi: rgba(16, 41, 59, .18); }
.crk-univers-locusta .crk-pourquoi h2,
.crk-univers-locusta .crk-pourquoi .crk-etiquette,
.crk-univers-locusta .crk-pourquoi a,
.crk-univers-locusta .crk-pourquoi strong,
.crk-univers-locusta .crk-pourquoi b { color: #10293b; }
.crk-univers-locusta .crk-pourquoi a { text-decoration-color: #8fa98c; }
.crk-univers-locusta .crk-page__titre { color: #fff; }
.crk-univers-locusta .crk-content h3 { color: var(--or-clair); }

/* Boutons pleins : violet + texte blanc (le crème ne porte pas de texte blanc) */
.crk-univers-locusta .crk-resabar__cta,
.crk-univers-locusta .crk-resabar__toggle,
.crk-univers-locusta .crk-resabar__bouton,
.crk-univers-locusta .crk-resa .wp-block-button__link { background: var(--locusta-violet); border-color: var(--locusta-violet); color: #fff; }
.crk-univers-locusta .crk-resabar__bouton:hover { background: var(--or-clair); color: var(--nuit); }
.crk-univers-locusta .crk-resa { --r-accent: var(--locusta-violet); }
.crk-univers-locusta .crk-resa__titre { color: #fff; }
.crk-univers-locusta .crk-resa__legende span { color: var(--braise); }
.crk-univers-locusta .crk-resa__jour[aria-checked="true"] { background: rgba(117, 29, 255, .2); }

/* Retour en haut : pas de changement de fond au survol sur cette page (comportement d'origine, à revoir si souhaité) */
.crk-univers-locusta .crk-haut:hover { background: var(--verre); }

/* Logo du restaurant à la place de « LES CRIQUETS » */
.crk-header__locusta { display: block; width: auto; height: 48px; }

/* Titre « LOCUSTA » comme sur le site du restaurant : USTA à l'horizontale, LOC à la verticale (se lit de bas en haut) */
.crk-univers-locusta .crk-content h2 { color: var(--or-clair); }
.crk-locusta-titre {
    display: grid; grid-template-columns: auto 1fr; justify-items: start; align-items: start;
    font: 600 clamp(2.4rem, 5.5vw, 4.6rem)/1 var(--f-sans); letter-spacing: .42em; color: #fff; max-width: none;
}
/* Lettres en contenu CSS : le H1 lu par Google et les lecteurs d'écran reste « Restaurant Locusta » */
.crk-locusta-titre__usta::before { content: 'USTA'; }
.crk-locusta-titre__loc::before { content: 'LOC'; }
.crk-locusta-titre__usta { grid-column: 1 / 3; grid-row: 1; }
.crk-locusta-titre__loc { grid-column: 1; grid-row: 2; writing-mode: vertical-rl; transform: rotate(180deg); margin: .1em 0 0 -.12em; }

/* Logo dans le contenu : affiché entier, sans recadrage ni coins arrondis */
.crk-content .crk-logo-locusta img,
.crk-pole .wp-block-column .crk-logo-locusta img { aspect-ratio: 1612 / 1885; height: auto; max-height: 80vh; object-fit: contain; border-radius: 0; }

/* Vidéo d'aperçu qui mène à la vidéo complète (bloc Vidéo, classe crk-video-lien ; voir inc/video-lien.php) */
.crk-video-lien { margin: 28px 0 0; }
.crk-video-lien__lien { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; }
.crk-video-lien video { display: block; width: 100%; height: auto; aspect-ratio: 640 / 292; object-fit: cover; background: var(--trait); }
.crk-video-lien__lecture { /* pastille « lecture » : on comprend que c'est cliquable */
    position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(var(--voile), .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); transition: transform .2s, background-color .2s;
}
.crk-video-lien__lecture::after {
    content: ''; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent var(--ecru);
}
.crk-video-lien__lien:hover .crk-video-lien__lecture, .crk-video-lien__lien:focus-visible .crk-video-lien__lecture { transform: scale(1.08); background: rgba(var(--voile), .75); }
.crk-video-lien figcaption { margin-top: 10px; font-size: .9rem; text-align: left; }

/* Vidéo d'accroche lue UNE FOIS, puis voile + bouton vers la vidéo complète (bloc Vidéo, classe crk-video-teaser ;
   voir inc/video-teaser.php). Reste sur la dernière image une fois lue : le voile + bouton s'ajoutent par-dessus.
   Couleurs du bouton posées en dur (pas les variables --parchemin/--or/--nuit du thème : en v3 elles ont été
   réaffectées à des rôles clairs — voir « noms de variables historiques = rôles » — donc illisibles sur un fond
   sombre comme celui-ci ; même logique que .crk-univers-locusta, qui les réaffecte localement pour la même raison). */
.crk-video-teaser { position: relative; margin: 28px 0 0; border-radius: var(--rayon); overflow: hidden; }
.crk-video-teaser__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--trait); }
.crk-video-teaser__fin {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(var(--voile), .72); opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
.crk-video-teaser--fin .crk-video-teaser__fin { opacity: 1; pointer-events: auto; }
.crk-video-teaser__bouton {
    display: inline-block; padding: .95em 1.8em; border-radius: 999px;
    font: 600 .88rem/1 var(--f-texte); letter-spacing: .01em; text-decoration: none;
    background: transparent; color: #f7f4ec; border: 1px solid #c7caa8;
    transition: background-color .2s, color .2s;
}
.crk-video-teaser__bouton:hover, .crk-video-teaser__bouton:focus-visible { background: #c7caa8; color: #10293b; }
