/* ==========================================================================
   L'italien — refonte 2026 (modèle Amazónico)
   Design system + accueil. Feuille autonome : ne dépend pas de style.css.
   Les pages non refaites (carte, galerie, mentions, 404) restent sur
   l'ancienne feuille jusqu'à leur étape ; à terme, style.css part en _ancien/.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Polices auto-hébergées (assets/fonts/, sous-ensemble latin, SIL OFL)
   Plus de dépendance à Google Fonts : chargement plus rapide et aucune
   adresse IP de visiteur transmise à Google (RGPD).
   -------------------------------------------------------------------------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }


/* --------------------------------------------------------------------------
   1. Variables & thème
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light; /* thème clair forcé */

  --vert:        #002a0c;  /* vert principal : bandes, fonds, titres */
  --vert-motif:  #0b3a1c;  /* arabesques du hero, à peine plus claires */
  --vert-fonce:  #001606;  /* pied de page, dégradés d'attente */
  --creme:       #FBF7EF;
  --dore:        #C9A24C;  /* filets, arabesques, détails */
  --dore-clair:  #E3C98A;
  --blanc:       #FFFDF9;
  --encre:       #22322C;  /* texte courant sur fond clair */

  --police-titre: "Cormorant Garamond", "Georgia", serif;
  --police-texte: "Jost", "Segoe UI", sans-serif;

  --largeur-max: 1200px;
  --rayon:       14px;
  --ombre:       0 10px 30px rgba(34, 50, 44, 0.12);
  --transition:  0.45s cubic-bezier(0.25, 0.8, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
  html  { background: #00170a; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html { background: #00170a; } /* sous le fond fleuri (overscroll) */
body {
  font-family: var(--police-texte);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--encre);
  background: transparent; /* le calque fleuri ::before fait le fond */
  /* repli : Safari < 16 et Firefox < 81 ne connaissent pas `clip` et
     ignorent la ligne ; `hidden` sur body se propage au viewport (html
     reste en overflow visible), donc position:fixed et position:sticky
     continuent de fonctionner */
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

/* Fond commun à tout le site (nov. 2026) : vert émeraude façon couverture
   de la carte (cuir + léger vignettage), avec un double liseré doré sur
   les côtés, comme le cadre de la carte imprimée. Calque fixe (pas de
   background-attachment, iOS l'ignore). Plus de photo fleurie. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #0f4a34;
  background-image:
    linear-gradient(180deg, rgba(0, 23, 10, 0.55), rgba(0, 23, 10, 0) 120px),
    radial-gradient(ellipse 110% 85% at 50% 40%, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.38) 100%),
    url("../img/carte/cuir.webp");
  background-size: auto, cover, cover;
  background-position: center;
}
/* Cadre de la maison (nov. 2026) : une vigne d'olivier dorée grimpe le
   long des deux bords de l'écran — tige ondulante, feuilles, baies et
   rosaces, comme une dorure à chaud. Le dessin (assets/img/cadre/) sert
   de masque ; l'or est un dégradé qui scintille lentement de haut en bas.
   Décor pur : ne capte aucun clic. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  background-image: linear-gradient(180deg,
    #8a6420 0%, #d9b866 12%, #f6e3a6 18%, #c9a24c 26%, #8a6420 38%,
    #c9a24c 50%, #f3dc95 56%, #b8902f 64%, #8a6420 76%, #d9b866 88%, #8a6420 100%);
  background-size: 100% 220vh;
  -webkit-mask:
    url("../img/cadre/vigne-g.svg?v=3") left 10px top 0 / 44px 200px repeat-y,
    url("../img/cadre/vigne-d.svg?v=3") right 10px top 0 / 44px 200px repeat-y;
          mask:
    url("../img/cadre/vigne-g.svg?v=3") left 10px top 0 / 44px 200px repeat-y,
    url("../img/cadre/vigne-d.svg?v=3") right 10px top 0 / 44px 200px repeat-y;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
  opacity: 0.85;
  animation: cadre-or 14s linear infinite;
}
@keyframes cadre-or {
  from { background-position: 0 0; }
  to   { background-position: 0 220vh; }
}
@media (max-width: 767px) {
  body::after {
    -webkit-mask:
      url("../img/cadre/vigne-g.svg?v=3") left 0 top 0 / 22px 100px repeat-y,
      url("../img/cadre/vigne-d.svg?v=3") right 0 top 0 / 22px 100px repeat-y;
            mask:
      url("../img/cadre/vigne-g.svg?v=3") left 0 top 0 / 22px 100px repeat-y,
      url("../img/cadre/vigne-d.svg?v=3") right 0 top 0 / 22px 100px repeat-y;
    opacity: 0.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

img, svg, video { display: block; max-width: 100%; }

/* surbrillance d'appui discrète au lieu du bloc bleu par défaut (iOS/Android) */
a, button, [role="button"], input, select, textarea {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.15;
  color: var(--vert);
}

::selection { background: var(--dore); color: var(--blanc); }

.conteneur {
  width: min(100% - 2.5rem, var(--largeur-max));
  margin-inline: auto;
}

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Composants : logo, gélules, lien souligné
   -------------------------------------------------------------------------- */
/* Logo : le point du second i est une étoile dorée (SVG dans le HTML) */
.logo {
  font-family: var(--police-titre);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--creme);
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
/* dans la barre : zone tactile ≥ 44 px sans bouger la mise en page */
.entete .logo { padding-block: 0.55rem; margin-block: -0.55rem; }
.logo__i { position: relative; display: inline-block; }
.logo__etoile {
  position: absolute;
  top: 0.07em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.32em;
  height: 0.32em;
  color: var(--dore);
}

/* Gélule fantôme : transparente, bordure crème 1 px, texte crème */
.btn-gelule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1px solid var(--creme);
  border-radius: 999px;
  color: var(--creme);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.btn-gelule:hover {
  background: var(--creme);
  color: var(--vert);
}

/* variante pleine : crème, texte vert (action principale sur fond sombre) */
.btn-gelule--pleine {
  background: var(--creme);
  color: var(--vert);
}
.btn-gelule--pleine:hover { background: var(--blanc); }

/* L'en-tête est fixe : toute cible d'ancre (chevrons des heros, « Contact »
   du menu, filtre appelé par galerie.html#brunch) doit s'arrêter dessous et
   non dessous la barre. */
:target,
#contenu,
#menu,
#galerie,
#contact,
#fil {
  scroll-margin-top: clamp(5.5rem, 14vw, 7rem);
}

/* Lien d'évitement : invisible jusqu'au focus clavier */
.aller-contenu {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.4rem;
  background: var(--creme);
  color: var(--vert);
  border-radius: 0 0 12px 12px;
  font-size: 0.9375rem;
}
.aller-contenu:focus { top: 0; }

/* Surtitre doré en petites capitales espacées */
.surtitre {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 0.75rem;
}

/* Gélules de filtre / onglets de catégorie */
.filtres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.filtre {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(251, 247, 239, 0.8);
  border-radius: 999px;
  color: var(--creme);
  transition: background var(--transition), color var(--transition);
}
/* écrans tactiles : gélules assez hautes pour le pouce */
@media (pointer: coarse) {
  .filtre { min-height: 44px; }
}
.filtre:hover { background: rgba(251, 247, 239, 0.14); }
.filtre.est-actif,
.filtre[aria-selected="true"] {
  background: var(--creme);
  border-color: var(--creme);
  color: var(--vert);
}

/* Bandeau d'entête des pages intérieures — branche essai-fleurs-partout :
   photo de fleurs + voile sombre et vignette (même matière que les heros) */
.bandeau-vert {
  background: transparent;   /* fond fleuri fixe du body */
  color: var(--creme);
  text-align: center;
  padding: clamp(8rem, 18vw, 11rem) 1.5rem clamp(3rem, 7vw, 4.5rem);
}
.bandeau-vert h1 {
  color: var(--creme);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}
.bandeau-vert p {
  margin-top: 0.5rem;
  color: rgba(251, 247, 239, 0.85);
  font-size: 0.9375rem;
}

/* Hero fleuri (carte & galerie) : photo de gerbéras plein écran (100svh),
   voile sombre dégradé (~35 %) + vignette pour la lisibilité du titre
   crème, chevron d'invitation au défilement. Desktop : fleurs-169.jpg
   (paysage) ; < 768 px : fleurs-45.jpg (portrait). Le fond vert reste
   affiché tant que la photo n'est pas arrivée. */
.hero-fleuri {
  position: relative;
  min-height: 100vh;   /* repli : Safari < 15.4, Firefox < 101 */
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--creme);
  padding: 7rem 1.5rem 6rem;
  background: transparent;   /* fond fleuri fixe du body */
}
.hero-fleuri h1 {
  color: var(--creme);
  font-size: clamp(2.5rem, 4.8vw + 1.2rem, 4.2rem);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}
.hero-fleuri p {
  margin-top: 0.75rem;
  color: rgba(251, 247, 239, 0.9);
  font-size: 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}
.hero-fleuri .surtitre { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75); }

/* chevron : ancre vers le contenu sous le hero, flottement très doux.
   Centré par calc (pas de transform : l'entrée en scène [data-entree]
   pose transform:none et casserait un translateX) */
.hero-fleuri__chevron {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  left: calc(50% - 22px);
  width: 44px;  /* zone tactile */
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--creme);
  opacity: 0.85;
  transition: opacity var(--transition);
}
.hero-fleuri__chevron:hover { opacity: 1; }
.hero-fleuri__chevron svg { width: 26px; height: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-fleuri__chevron svg { animation: chevron-flotte 2.6s ease-in-out infinite; }
}
@keyframes chevron-flotte {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* Numéro de téléphone : cible d'appel confortable au doigt (le padding
   d'un inline-block agrandit la zone cliquable sans décaler le texte) */
a[href^="tel:"] {
  display: inline-block;
  padding-block: 0.7rem;
  margin-block: -0.7rem;
}

/* Lien texte simplement souligné (sections plein écran) */
.lien-souligne {
  display: inline-block;
  color: var(--creme);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  padding-block: 0.6rem;   /* zone tactile ≥ 44 px */
  margin-block: -0.35rem;  /* sans gonfler la mise en page */
  transition: color var(--transition), text-decoration-color var(--transition);
}
.lien-souligne:hover {
  color: var(--dore-clair);
  text-decoration-color: var(--dore-clair);
}

/* consigne ⚠️ au centre d'un emplacement photo vide, sous l'image réelle */
.photo-attente {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 1rem;
  color: rgba(251, 247, 239, 0.75);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.photo-attente strong {
  font-weight: 400;
  font-size: 1rem;
  color: rgba(251, 247, 239, 0.9);
}

/* --------------------------------------------------------------------------
   4. En-tête : transparent en permanence, fixe par-dessus le contenu
   Hauteur fixe 72 px (60 px une fois collée au défilement) ;
   aucun enfant direct ne peut s'étirer.
   -------------------------------------------------------------------------- */
.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
}

/* Partout : barre transparente en haut de page, voile vert dès qu'on
   défile pour rester lisible sur le fond fleuri. */
.entete.est-plein {
  background: rgba(0, 42, 12, 0.96);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.entete__barre {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
  transition: height var(--transition);
}
.entete.est-plein .entete__barre { height: 60px; }
.entete__barre > * {
  flex: 0 0 auto;
  align-self: center;
}

/* liens centrés : sans-serif 15 px, crème, espacés de 28 px */
@media (min-width: 768px) {
  .entete .nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
.nav__liste {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__lien {
  display: inline-block;
  color: var(--creme);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-block: 0.65rem; /* zone tactile ≥ 44 px */
}
.nav__lien::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.35rem; /* reste près du texte malgré la zone tactile */
  width: 100%; height: 1px;
  background: var(--creme);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.nav__lien:hover::after,
.nav__lien[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* à droite : gélule crème pleine, texte vert — dimensions explicites */
.entete__reserver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: auto;
  max-width: 220px;
  padding: 0 26px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 22px;
  background: var(--creme);
  color: var(--vert);
  font-size: 0.9375rem;
  transition: transform var(--transition), background var(--transition);
}
.entete__reserver:hover {
  background: var(--blanc);
  transform: translateY(-1px);
}

/* Bouton burger (mobile) */
.burger {
  display: none;
  z-index: 120;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.burger span {
  width: 26px;
  height: 2px;
  background: var(--creme);
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 767px) {
  .burger { display: flex; }

  .entete__reserver {
    margin-left: auto;
    padding: 0 20px;
    font-size: 0.875rem;
  }

  /* Menu plein écran */
  .nav {
    position: fixed;
    inset: 0;
    /* annule le align-self:center hérité de .entete__barre > * : sur un
       élément positionné, il centrerait la boîte au lieu de l'étirer */
    align-self: normal;
    z-index: 110;
    background: var(--vert-fonce);
    display: grid;
    place-items: center;
    /* filet de sécurité si l'écran est vraiment bas : la liste défile
       au lieu d'être coupée (iOS : défilement inertiel) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .nav.est-ouverte { opacity: 1; visibility: visible; }

  .nav__liste {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .nav__lien { font-size: 1.4rem; }

  body.menu-ouvert { overflow: hidden; }
}

/* téléphone en paysage (ou petit écran bas) : le menu tient sans être
   coupé par le centrage — on resserre au lieu de laisser déborder */
@media (max-width: 767px) and (max-height: 560px) {
  .nav__liste { gap: 0.8rem; }
  .nav__lien { font-size: 1.1rem; }
}

/* --------------------------------------------------------------------------
   5. Hero — branche essai-fleurs-partout : photo de fleurs plein écran,
   voile sombre dégradé + vignette (même matière que les heros de la carte
   et de la galerie), titre et boutons inchangés.
   -------------------------------------------------------------------------- */
.hero-plat {
  min-height: 100vh;   /* repli : Safari < 15.4, Firefox < 101 */
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: transparent;   /* le fond fleuri fixe du body traverse la page */
  color: var(--creme);
  padding: 7rem 1.5rem 4rem;
}

/* branche essai : titres et textes ombrés sur la photo, et version
   portrait de la photo sous 768 px (hero de l'accueil/404 et bandeau) */
.hero-plat__titre,
.hero-plat__texte,
.hero-plat .surtitre,
.bandeau-vert .surtitre,
.bandeau-vert h1,
.bandeau-vert p { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75); }


.hero-plat__contenu {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  max-width: 60rem;
}

/* titre : Cormorant, crème, 40 → 76 px, interligne 1.1, deux lignes */
.hero-plat__titre {
  font-size: clamp(2.5rem, 4.8vw + 1.4rem, 4.75rem);
  line-height: 1.1;
  color: var(--creme);
}

/* paragraphe : sans-serif 16 px, crème à 85 %, 620 px maxi, centré */
.hero-plat__texte {
  font-size: 1rem;
  color: rgba(251, 247, 239, 0.85);
  max-width: 620px;
}

.hero-plat__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.8rem;
}

/* --------------------------------------------------------------------------
   6. Bande de photos défilante : 75vh, largeurs inégales, écart 4 px
   Pas de flèches ni de points — le bord coupé de la dernière photo suffit.
   Molette / doigt / cliquer-glisser gérés par site.js.
   -------------------------------------------------------------------------- */
.fil {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  outline: none;
}
.fil::-webkit-scrollbar { display: none; }
.fil.est-saisi { cursor: grabbing; }
.fil:focus-visible { box-shadow: inset 0 0 0 2px rgba(201, 162, 76, 0.55); }

.fil__piste {
  display: flex;
  gap: clamp(14px, 1.6vw, 26px);
  width: max-content;
  height: 75vh;
}
/* téléphone : bande moins haute, ~60 % de l'écran maxi */
@media (max-width: 767px) {
  .fil__piste {
    height: min(60vh, 480px);   /* repli : Safari < 15.4, Firefox < 101 */
    height: min(60svh, 480px);
  }
}

.fil__item {
  position: relative;
  flex: none;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(165deg, #0b3a1c, #001606);
}
/* rythme irrégulier : étroite, large, étroite, large… */
.fil__item          { width: 24vw; }   /* tout en portrait : photos réelles */
@media (max-width: 767px) {
  .fil__item          { width: 62vw; }
}

.fil__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   7. Sections plein écran : photo 100 % × 100vh, texte posé en bas centré
   Aucune boîte, aucun encadré — un dégradé sombre léger pour la lisibilité.
   -------------------------------------------------------------------------- */
.panneau {
  position: relative;
  height: 100vh;       /* repli : Safari < 15.4, Firefox < 101 */
  height: 100svh;
  overflow: hidden;
  /* en attendant la photo du plat : les fleurs telles quelles — le
     dégradé bas .panneau__voile assure la lisibilité du texte */
  background: transparent;
}

.panneau__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dégradé du bas vers le haut, uniquement pour la lisibilité du texte */
.panneau__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 22, 6, 0) 55%,
    rgba(0, 22, 6, 0.75) 100%
  );
}

/* contenu en bas, centré, à ~12 % du bas */
.panneau__contenu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  text-align: center;
  padding-inline: 1.5rem;
  color: var(--creme);
}
.panneau__titre {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  color: var(--creme);
}
.panneau__texte {
  font-size: 0.9375rem;
  max-width: 560px;
  color: rgba(251, 247, 239, 0.92);
}
.panneau__contenu .lien-souligne { margin-top: 0.5rem; }

/* titre-lien d'un panneau (ex. brunch → brunch.html) : même habillage que
   les titres simples ; site.js rend alors tout le panneau cliquable */
.panneau__titre a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  /* zone tactile >= 44 px sans gonfler la mise en page */
  padding-block: 0.45rem;
  margin-block: -0.45rem;
}
.panneau--cliquable { cursor: pointer; }

/* --------------------------------------------------------------------------
   8. Nous trouver : fond vert uni, adresse + horaires + plan
   -------------------------------------------------------------------------- */
.trouver {
  color: var(--creme);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
/* assombrissement localisé derrière le seul bloc titre + infos +
   horaires — un calque flouté aux bords fondus (aucune coupe nette),
   les fleurs restent éclatantes autour */
.trouver .conteneur {
  position: relative;
  z-index: 0;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.trouver .conteneur::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 23, 10, 0.72);
  border-radius: 28px;
  filter: blur(28px); /* statique : peint une seule fois */
}
.trouver h2,
.trouver h3,
.trouver address,
.trouver p { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75); }
.trouver h2 {
  color: var(--creme);
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.trouver__colonnes {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .trouver__colonnes { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.trouver h3 {
  color: var(--creme);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1rem;
}
.trouver address { font-style: normal; }
.trouver a:hover { color: var(--dore-clair); }
.trouver .lien-souligne { display: inline-block; margin-top: 1.2rem; }

.horaires { display: grid; gap: 0.4rem; }
.horaires__ligne {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.horaires__points {
  flex: 1;
  min-width: 1rem; /* les pointillés cèdent avant de faire déborder la ligne */
  border-bottom: 1px dotted rgba(201, 162, 76, 0.6);
  transform: translateY(-0.25em);
}
.horaires__ligne span:last-child { text-align: right; }
/* très petits écrans : horaires un cran plus compacts, boutons pleine largeur */
@media (max-width: 479px) {
  .horaires__ligne { font-size: 0.9375rem; }
  .trouver .btn-gelule,
  .hero-plat__actions .btn-gelule { width: 100%; }
  .hero-plat__actions { width: 100%; }
}

/* --------------------------------------------------------------------------
   Téléphones étroits (360 → 414 px) : gouttières resserrées et titres
   calibrés pour que rien ne soit coupé ni ne déborde de l'écran.
   -------------------------------------------------------------------------- */
@media (max-width: 430px) {
  .conteneur { width: min(100% - 2rem, var(--largeur-max)); }

  .hero-plat    { padding: 6.5rem 1.15rem 3.5rem; }
  .hero-fleuri  { padding: 6.5rem 1.15rem 5.5rem; }
  .bandeau-vert { padding: clamp(7rem, 22vw, 9rem) 1.15rem clamp(2.5rem, 8vw, 3.5rem); }

  .hero-plat__titre  { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-fleuri h1    { font-size: clamp(2rem, 9.5vw, 2.7rem); }
  .bandeau-vert h1   { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .panneau__titre    { font-size: clamp(1.75rem, 8vw, 2.4rem); }

  .hero-plat__texte,
  .hero-fleuri p { font-size: 0.9375rem; }

  /* la barre : le logo ne doit jamais pousser la gélule « Réserver »
     hors de l'écran — le padding compense la typo resserrée pour garder
     une cible tactile de 44 px */
  .entete .logo {
    font-size: 1.45rem;
    padding-block: 0.72rem;
    margin-block: -0.72rem;
  }
  .entete__barre { gap: 0.5rem; }
}

/* --------------------------------------------------------------------------
   9. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--vert-fonce);
  color: var(--creme);
  padding-block: 3rem 5.5rem; /* marge basse pour la bulle WhatsApp */
  text-align: center;
}
.pied .logo { font-size: 2rem; }
.pied__devise {
  font-family: var(--police-titre);
  font-style: italic;
  color: var(--dore-clair);
  margin-top: 0.4rem;
}
.pied__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  margin-block: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.pied__nav a {
  display: inline-block;
  padding-block: 0.65rem; /* zone tactile ≥ 44 px */
}
.pied__nav a:hover { color: var(--dore); }
.pied__mentions {
  font-size: 0.8rem;
  opacity: 0.72; /* contraste suffisant sur le vert foncé */
}

/* --------------------------------------------------------------------------
   10. Fleur WhatsApp flottante : bouton de gerbera qui s'ouvre au survol.
   SVG inline dans la page : pétales magenta→framboise resserrés au repos
   (bouton de fleur), déployés en éventail au survol/focus avec un léger
   décalage par pétale ; cœur doré et logo WhatsApp blanc TOUJOURS
   visibles. Sur tactile, site.js déclenche une éclosion périodique
   (classe est-eclose).
   -------------------------------------------------------------------------- */
.whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.whatsapp svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.whatsapp__petale,
.whatsapp__petale path {
  transform-box: view-box;
  transform-origin: 50% 50%; /* centre de la fleur */
}
.whatsapp__petale { transform: rotate(var(--angle)); } /* position d'éventail */
.whatsapp__petale path {
  fill: url(#wa-petale);
  transform: rotate(-25deg) scale(0.45); /* fermé : bouton resserré, vrillé */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.3, 1) calc(var(--i) * 0.02s);
}
.whatsapp__coeur { fill: #3d1226; } /* cœur sombre de gerbera */
.whatsapp__picot { fill: var(--dore); } /* picots dorés du cœur */
.whatsapp__wa { fill: #fff; }
.whatsapp:hover,
.whatsapp:focus-visible,
.whatsapp.est-eclose { transform: scale(1.15); }
.whatsapp:hover .whatsapp__petale path,
.whatsapp:focus-visible .whatsapp__petale path,
.whatsapp.est-eclose .whatsapp__petale path { transform: none; } /* éclosion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp { transition: none !important; }
  .whatsapp__petale path {
    transition: none !important;
    transform: none; /* fleur ouverte fixe */
  }
}

/* --------------------------------------------------------------------------
   11. Pages vivantes (carte, galerie) : lueur qui respire
   Décor purement visuel — transform/opacity uniquement, aucun reflow.
   Le <body> porte .a-feuillages : il devient le repère du décor et le
   contenu (main, pied) passe au-dessus.
   -------------------------------------------------------------------------- */
.a-feuillages { position: relative; }
.a-feuillages main,
.a-feuillages .pied { position: relative; z-index: 1; }

/* Lueur qui respire : halo radial doré/vert, fixe à l'écran, qui glisse
   et pulse très lentement — perceptible sans être identifiable */
.lueur {
  position: fixed;
  top: 12%;
  left: 55%;
  z-index: 0;
  width: min(72vw, 880px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(201, 162, 76, 0.55) 0%,
    rgba(31, 107, 82, 0.30) 45%,
    rgba(31, 107, 82, 0) 72%);
  opacity: 0.04;
  animation: lueur-respire 38s ease-in-out infinite alternate;
}
@keyframes lueur-respire {
  from { transform: translate3d(-38%, -12%, 0) scale(1);   opacity: 0.03; }
  50%  {                                                   opacity: 0.05; }
  to   { transform: translate3d(2%, 16%, 0) scale(1.18);   opacity: 0.035; }
}

/* mouvement réduit : décor figé (animation:none, sinon la règle globale
   en 0.01ms ferait boucler les keyframes en continu) */
@media (prefers-reduced-motion: reduce) {
  .lueur { animation: none !important; }
}

/* --------------------------------------------------------------------------
   12. Apparitions au scroll : .apparition → .est-visible (site.js)
   L'état masqué n'existe que si le JS est chargé (html.no-js = tout
   visible d'emblée, rien ne saute). Chaque élément ne s'anime qu'une fois ;
   le décalage en cascade est posé par site.js via --apparition-delai.
   -------------------------------------------------------------------------- */
html:not(.no-js) .apparition {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease var(--apparition-delai, 0s),
              transform 0.6s ease var(--apparition-delai, 0s);
}
html:not(.no-js) .apparition.est-visible {
  opacity: 1;
  transform: none;
}
/* mouvement réduit : pas de glissement — la règle globale (0.01ms) rend
   déjà le fondu instantané */
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) .apparition { transform: none; }
}

/* --------------------------------------------------------------------------
   13. Effet wow : ouverture rideau, titres déployés, transitions de pages
   Piloté par le script d'amorçage du <head> (classes intro-complete /
   intro-finie sur <html>) et orchestré par site.js.
   Tout est en transform/opacity : aucun décalage de mise en page.
   - html.no-js : intro-complete n'est jamais posée → aucune ouverture,
     aucun état masqué, site entièrement visible.
   - failsafe : le <head> pose intro-finie après 3,4 s quoi qu'il arrive →
     plus rien ne peut masquer la page au-delà.
   -------------------------------------------------------------------------- */

/* ---- Ouverture rideau : velours vert ----
   Rendus réalistes (WebP) dans assets/img/rideau/, générés par
   assets/img/rideau/velours.py. Variante « -portrait » (plis plus serrés)
   pour téléphones et tablettes en hauteur.
   Un seul mouvement continu, sans étapes ni fondu enchaîné :
     0 → 0,5 s    rideau fermé, le logo apparaît
     0,5 → 2,5 s  les deux pans s'écartent en douceur : ils glissent,
                  se ramassent vers les côtés (scale) et le bas du tissu
                  traîne légèrement derrière le haut (skew), puis ils se
                  posent juste hors champ en ralentissant.
   translate / scale (propriétés individuelles) et transform (skew) sont
   animés séparément pour garder deux courbes indépendantes. */
.rideau { display: none; }
html.intro-complete .rideau {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  overflow: hidden;
}
html.intro-finie .rideau { display: none; }

.rideau__voile {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, #013317 0%, #00170a 78%);
}

.rideau__pan {
  position: absolute;
  top: 0;
  bottom: -2vh;
  width: 51vw;            /* les deux pans se recouvrent de 2 vw au centre */
  will-change: translate, scale, transform;
  backface-visibility: hidden;
}
/* l'image est portée par ::before pour pouvoir retourner le pan droit
   sans gêner l'animation du pan lui-même */
.rideau__pan::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right bottom;   /* bord intérieur + ourlet cadrés */
}
.rideau__ferme--g { left: 0;  transform-origin: left top;  z-index: 1; }
.rideau__ferme--d { right: 0; transform-origin: right top; z-index: 2; }
.rideau__ferme--d::before { transform: scaleX(-1); }
.rideau__ferme--g::before { background-image: url(../img/rideau/pan-ferme-g.webp); }
.rideau__ferme--d::before { background-image: url(../img/rideau/pan-ferme-d.webp); }
/* ombre douce de la jonction centrale */
.rideau__ferme--d::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  width: 14px;
  background: linear-gradient(to left, rgba(0, 10, 4, 0.55), rgba(0, 10, 4, 0));
}

/* écrans en hauteur (téléphones, tablettes debout) */
@media (max-aspect-ratio: 4/5) {
  .rideau__ferme--g::before { background-image: url(../img/rideau/pan-ferme-g-portrait.webp); }
  .rideau__ferme--d::before { background-image: url(../img/rideau/pan-ferme-d-portrait.webp); }
}

/* logo centré sur le rideau fermé */
.rideau__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  margin: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.97);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

/* ---- chorégraphie (classe rideau--ouvre posée par site.js) ---- */
html.intro-complete .rideau--ouvre .rideau__logo {
  animation: rideau-logo 1.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes rideau-logo {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.97); }
  35%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%  { opacity: 1; transform: translate(-50%, -50%) scale(1.005); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }
}
html.intro-complete .rideau--ouvre .rideau__voile {
  animation: rideau-fondre 0.6s ease 0.6s forwards;
}
html.intro-complete .rideau--ouvre .rideau__ferme--g {
  animation:
    rideau-ouvrir-g 2s cubic-bezier(0.5, 0.02, 0.18, 1) 0.5s both,
    rideau-onduler-g 2s ease-in-out 0.5s both;
}
html.intro-complete .rideau--ouvre .rideau__ferme--d {
  animation:
    rideau-ouvrir-d 2s cubic-bezier(0.5, 0.02, 0.18, 1) 0.5s both,
    rideau-onduler-d 2s ease-in-out 0.5s both;
}
/* bord intérieur : 51 vw → juste hors champ (-2 vw), pan ramassé à 45 % */
@keyframes rideau-ouvrir-g {
  from { translate: 0 0;    scale: 1 1; }
  to   { translate: -49% 0; scale: 0.45 1; }
}
@keyframes rideau-ouvrir-d {
  from { translate: 0 0;   scale: 1 1; }
  to   { translate: 49% 0; scale: 0.45 1; }
}
/* le bas du tissu traîne derrière le haut puis se replace */
@keyframes rideau-onduler-g {
  0%   { transform: skewX(0deg); }
  40%  { transform: skewX(3.2deg); }
  78%  { transform: skewX(-0.8deg); }
  100% { transform: skewX(0deg); }
}
@keyframes rideau-onduler-d {
  0%   { transform: skewX(0deg); }
  40%  { transform: skewX(-3.2deg); }
  78%  { transform: skewX(0.8deg); }
  100% { transform: skewX(0deg); }
}
@keyframes rideau-fondre { to { opacity: 0; } }

/* ---- Transition de page : au clic sur un lien interne, le voile vert
   réapparaît et fonce en 0,45 s avant la navigation (site.js) ---- */
html .rideau.rideau--fondu {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
html .rideau--fondu .rideau__pan,
html .rideau--fondu .rideau__logo { display: none; }
html .rideau--fondu .rideau__voile {
  display: block;
  animation: none;
  opacity: 1;
}
html .rideau--fondu.est-plein { opacity: 1; }

/* ---- Titres déployés : mots masqués qui montent depuis sous leur ligne ----
   Les spans .mot/.mot__int n'existent que si site.js a découpé le titre
   (jamais en no-js ni en mouvement réduit). */
.mot {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* marge interne compensée : les descendantes (g, p…) ne sont pas rognées */
  padding-block: 0.09em;
  margin-block: -0.09em;
}
.mot__int {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* éléments d'accompagnement (surtitre, texte, boutons) : fondu + montée.
   État masqué seulement quand un voile va se dissiper. */
html.intro-complete .sequence-entree [data-entree],
html.intro-courte .sequence-entree [data-entree] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* révélation : à la dissipation du voile (est-jouee), à l'entrée dans le viewport
   (est-visible, panneaux de l'accueil), ou au failsafe (intro-finie) */
.sequence-entree.est-jouee .mot__int,
.apparition.est-visible .mot__int,
html.intro-finie .sequence-entree .mot__int { transform: none; }

/* le préfixe html égale la spécificité de l'état masqué ci-dessus :
   déclarées après, ces règles reprennent la main dès est-jouee */
html .sequence-entree.est-jouee [data-entree],
html.intro-finie .sequence-entree [data-entree] {
  opacity: 1;
  transform: none;
}

/* ---- Cascades musclées ---- */
/* galerie : les tuiles entrent en scale + montée + fondu */
html:not(.no-js) .tuile.apparition {
  transform: translateY(40px) scale(0.92);
  transition: opacity 0.7s ease var(--apparition-delai, 0s),
              transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) var(--apparition-delai, 0s);
}
/* carte : le livre fermé arrive en scale 0.95 → 1 + montée */
html:not(.no-js) .livre.apparition {
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.8s ease var(--apparition-delai, 0s),
              transform 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) var(--apparition-delai, 0s);
}
html:not(.no-js) .tuile.apparition.est-visible,
html:not(.no-js) .livre.apparition.est-visible { transform: none; }

/* ---- Micro-interactions ---- */
/* gélules : remplissage qui balaie de gauche à droite + légère élévation */
.btn-gelule,
.entete__reserver {
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.btn-gelule::before,
.entete__reserver::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--creme);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.btn-gelule {
  transition: color 0.25s ease, transform 0.25s ease;
}
.btn-gelule:hover {
  background: transparent; /* le balayage du ::before fait le remplissage */
  color: var(--vert);
  transform: translateY(-2px);
}
.btn-gelule:hover::before { transform: scaleX(1); }
.btn-gelule--pleine::before { background: var(--blanc); }
.btn-gelule--pleine:hover { background: var(--creme); }
.entete__reserver::before { background: var(--blanc); }
.entete__reserver:hover {
  background: var(--creme);
  transform: translateY(-2px);
}
.entete__reserver:hover::before { transform: scaleX(1); }

/* étoile du logo : scintillement périodique */
.logo__etoile {
  animation: etoile-scintille 5s ease-in-out 2.4s infinite;
}
@keyframes etoile-scintille {
  0%, 86%, 100% { transform: translateX(-50%) scale(1);    opacity: 1; }
  90%           { transform: translateX(-50%) scale(1.35); opacity: 0.7; }
  95%           { transform: translateX(-50%) scale(0.95); opacity: 1; }
}

/* fleur WhatsApp : arrivée en douceur après l'ouverture (site.js) ;
   l'état caché tombe de lui-même au failsafe (intro-finie) */
@media (prefers-reduced-motion: no-preference) {
  html.intro-complete:not(.intro-finie) .whatsapp:not(.est-arrivee),
  html.intro-courte:not(.intro-finie) .whatsapp:not(.est-arrivee) {
    transform: scale(0);
  }
}

/* ---- Mouvement réduit : fondus simples, aucun déplacement ---- */
@media (prefers-reduced-motion: reduce) {
  /* ouverture : simple fondu 0,3 s du voile, sans pans de rideau */
  html.intro-complete .rideau {
    opacity: 1;
    transition: opacity 0.3s ease !important;
  }
  html.intro-complete .rideau--ouvre { opacity: 0; }
  .rideau__pan,
  .rideau__logo { display: none; }
  .rideau__voile { animation: none !important; }
  .mot__int,
  html.intro-complete .sequence-entree [data-entree],
  html.intro-courte .sequence-entree [data-entree] { transform: none; }
  html:not(.no-js) .tuile.apparition,
  html:not(.no-js) .livre.apparition { transform: none; }
  .logo__etoile { animation: none !important; }
  .btn-gelule:hover,
  .entete__reserver:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   13 bis. Filet de sécurité « animations qui ne démarrent jamais »
   Certains navigateurs gèlent animations et requestAnimationFrame pour
   économiser les ressources (limiteur d'Opera GX, onglet en arrière-plan,
   mode économie d'énergie). site.js pose html.anim-secours au bout de 3,4 s :
   à partir de là, plus rien ne peut rester invisible faute d'animation.
   Les .apparition encore hors de l'écran gardent leur révélation au
   défilement — site.js ne débloque que celles réellement à l'écran.
   -------------------------------------------------------------------------- */
html.anim-secours .rideau:not(.rideau--fondu) { display: none !important; }
html.anim-secours .sequence-entree [data-entree] {
  opacity: 1 !important;
  transform: none !important;
}
html.anim-secours .mot__int { transform: none !important; }
html.anim-secours .whatsapp { transform: none !important; }
html.anim-secours .apparition.est-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   14. Fonds vivants (carte & galerie) : lucioles, halo souris
   Éléments créés par site.js sur les pages .a-feuillages — jamais en no-js.
   Uniquement transform/opacity : rien ne bouge dans la mise en page.
   -------------------------------------------------------------------------- */

/* Lucioles dorées : points qui flottent et pulsent, désynchronisés.
   Positions, tailles, trajectoires et durées posées par site.js en
   variables CSS. */
.lucioles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.luciole {
  position: absolute;
  border-radius: 50%;
  background: var(--dore);
  box-shadow: 0 0 8px 2px rgba(201, 162, 76, 0.35);
  opacity: 0.2;
  animation:
    luciole-flotte var(--duree, 12s) ease-in-out var(--delai, 0s) infinite alternate,
    luciole-pulse var(--pulse, 6s) ease-in-out var(--delai, 0s) infinite;
}
@keyframes luciole-flotte {
  0%   { transform: translate3d(0, 0, 0); }
  33%  { transform: translate3d(var(--dx1, 30px), var(--dy1, -40px), 0); }
  66%  { transform: translate3d(var(--dx2, -20px), var(--dy2, -70px), 0); }
  100% { transform: translate3d(var(--dx3, 25px), var(--dy3, -30px), 0); }
}
@keyframes luciole-pulse {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.7; }
}

/* Halo doré très doux qui suit le curseur (lissage rAF dans site.js).
   Créé uniquement à la souris (hover + pointer fine), jamais en tactile. */
.halo-souris {
  position: fixed;
  top: -260px;
  left: -260px;
  width: 520px;
  height: 520px;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(201, 162, 76, 0.13) 0%,
    rgba(201, 162, 76, 0.05) 40%,
    rgba(201, 162, 76, 0) 68%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.halo-souris.est-visible { opacity: 1; }

/* mouvement réduit : lucioles immobiles à faible opacité
   (le halo souris n'est pas créé par site.js dans ce cas) */
@media (prefers-reduced-motion: reduce) {
  .luciole { animation: none !important; opacity: 0.25; }
}


/* ==========================================================================
   Respiration entre les sections de l'accueil (ajout Claude) : le fond
   fleuri se voit entre chaque bloc, les panneaux ne se touchent plus.
   ========================================================================== */
.fil {
  /* moins d'air entre le hero et la bande, un peu plus dessous */
  padding-top: clamp(0.9rem, 1.6vw, 1.5rem);
  padding-bottom: clamp(2rem, 3.6vw, 3.2rem);
  padding-inline: clamp(14px, 1.6vw, 26px);
}
.panneau + .panneau,
.fil + .panneau,
.panneau + .fil {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.panneau:last-of-type {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (max-width: 767px) {
  .fil { padding-inline: 14px; }
}


/* ==========================================================================
   Hero de l'accueil : vidéo de la salle en fond
   ========================================================================== */
.hero-plat { position: relative; overflow: hidden; }
.hero-plat__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* lisibilité du titre par-dessus la vidéo : dégradé localisé, pas de voile plat */
.hero-plat__voile {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,23,10,.62) 0, rgba(0,23,10,0) 220px),
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(0,23,10,.55), rgba(0,23,10,.12) 70%, rgba(0,23,10,0)),
    linear-gradient(0deg, rgba(0,23,10,.5) 0, rgba(0,23,10,0) 200px);
}
.hero-plat__contenu { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-plat__video { display: block; }
}


/* ==========================================================================
   Panneaux (La carte / Nos plats / Le brunch) : moins hauts que l'écran,
   on en devine le suivant et la page se parcourt plus vite.
   ========================================================================== */
.panneau {
  height: auto;
  min-height: clamp(420px, 62svh, 640px);
}
@media (max-width: 767px) {
  .panneau { min-height: clamp(360px, 52svh, 520px); }
}

/* ==========================================================================
   Panneaux « duo » (accueil : La carte, Nos plats, Le brunch)
   Photo d'un côté, texte de l'autre sur le fond du site — jamais de texte
   posé sur les plats. La photo se fond dans le fond par un masque dégradé.
   - .panneau--duo-inverse : photo à gauche, texte à droite (zigzag)
   - .panneau--duo-portrait : photo verticale → colonne photo plus étroite
   - téléphone / tablette (< 900 px) : photo puis texte dessous
   ========================================================================== */
.panneau--duo {
  display: grid;
  height: auto;
  min-height: 0;
}
.panneau--duo picture { display: block; position: relative; overflow: hidden; }
.panneau--duo .panneau__voile { display: none; }
.panneau--duo .panneau__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panneau--duo .panneau__contenu {
  position: relative;
  inset: auto;
}
@media (min-width: 900px) {
  .panneau--duo {
    grid-template-columns: minmax(320px, 34%) 1fr;
    min-height: clamp(460px, 72svh, 780px);
  }
  .panneau--duo picture {
    grid-column: 2;
    grid-row: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 94%, transparent 100%);
  }
  .panneau--duo .panneau__contenu {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-items: start;
    text-align: left;
    padding: 2rem 1rem 2rem clamp(1.5rem, 6vw, 6.5rem);
  }
  /* photo verticale : colonne photo ~46 %, cadrée sur le plat */
  .panneau--duo-portrait { grid-template-columns: 1fr minmax(380px, 46%); }
  .panneau--duo-portrait .panneau__photo { object-position: 50% 55%; }
  /* zigzag : photo à gauche, texte à droite */
  .panneau--duo-inverse { grid-template-columns: 1fr minmax(320px, 34%); }
  .panneau--duo-inverse.panneau--duo-portrait { grid-template-columns: minmax(380px, 46%) 1fr; }
  .panneau--duo-inverse picture {
    grid-column: 1;
    -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 16%, #000 94%, transparent 100%);
            mask-image: linear-gradient(270deg, transparent 0, #000 16%, #000 94%, transparent 100%);
  }
  .panneau--duo-inverse .panneau__contenu {
    grid-column: 2;
    padding: 2rem clamp(1.5rem, 6vw, 6.5rem) 2rem 1rem;
  }
  .panneau--duo-portrait .panneau__contenu { padding-inline: clamp(1.5rem, 7vw, 8rem); }
}
@media (max-width: 899px) {
  .panneau--duo picture {
    aspect-ratio: 4 / 5;
    max-height: 72svh;
    -webkit-mask-image: linear-gradient(transparent 0, #000 8%, #000 82%, transparent 100%);
            mask-image: linear-gradient(transparent 0, #000 8%, #000 82%, transparent 100%);
  }
  #panneau-carte picture { aspect-ratio: 1200 / 866; }
  .panneau--duo .panneau__contenu { padding: 0 1.5rem 3rem; margin-top: -1.5rem; }
}
#panneau-carte .panneau__photo { object-position: 50% 45%; }


/* ==========================================================================
   15. Passe qualité (oct. 2026)
   ========================================================================== */

/* ---- Bandes vertes : le contenu se pose sur le vert uni de la maison,
   les fleurs restent en ouverture de page et respirent entre les
   sections. Les plats et les textes ne luttent plus avec les gerberas. */
.panneau--duo,
.trouver,
.zone-galerie,
.zone-mentions,
.zone-reservation { background: var(--vert); }
.zone-galerie,
.zone-mentions,
.zone-reservation { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.trouver .conteneur::before { display: none; }
.trouver h2,
.trouver h3,
.trouver address,
.trouver p { text-shadow: none; }
.trouver { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
/* fin filet doré en tête de chaque bande */
.panneau--duo,
.trouver,
.zone-galerie,
.zone-mentions,
.zone-reservation { box-shadow: inset 0 1px 0 rgba(201, 162, 76, 0.28); }

/* ---- Hero de l'accueil : texte lisible sur la vidéo ---- */
.hero-plat__voile {
  background:
    linear-gradient(180deg, rgba(0,23,10,.65) 0, rgba(0,23,10,0) 220px),
    radial-gradient(ellipse 62% 50% at 50% 50%, rgba(0,23,10,.72), rgba(0,23,10,.28) 65%, rgba(0,23,10,.08) 100%),
    linear-gradient(0deg, rgba(0,23,10,.55) 0, rgba(0,23,10,0) 220px);
}
.hero-plat__texte { color: rgba(251, 247, 239, 0.95); }

/* ---- Horaires sur téléphone : le jour au-dessus, l'horaire dessous ---- */
@media (max-width: 479px) {
  .horaires { gap: 0.85rem; }
  .horaires__ligne { display: grid; gap: 0.1rem; }
  .horaires__points { display: none; }
  .horaires__ligne span:last-child { text-align: left; color: var(--dore-clair, #e2c172); }
}

/* ---- Page brunch : lien carte + les plats du dimanche ---- */
.hero-split__lien { margin-top: 0.4rem; color: var(--creme); }
.brunch-plats {
  background: var(--vert);
  box-shadow: inset 0 1px 0 rgba(201, 162, 76, 0.28);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  color: var(--creme);
}
.brunch-plats__titre {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.brunch-plats__grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
}
@media (max-width: 899px) { .brunch-plats__grille { grid-template-columns: repeat(2, 1fr); } }
.brunch-plats__plat { position: relative; overflow: hidden; border-radius: var(--rayon); }
.brunch-plats__plat img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.brunch-plats__plat:hover img { transform: scale(1.04); }
.brunch-plats__plat span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 0.9rem 0.8rem;
  font-family: var(--police-titre);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  background: linear-gradient(0deg, rgba(0, 23, 10, 0.85), rgba(0, 23, 10, 0));
}
.brunch-plats__suite { margin-top: clamp(1.8rem, 4vw, 2.6rem); text-align: center; }

/* ---- Réserver : note de groupe en encart doré (plus d'émoji) ---- */
.note-groupe {
  border-left: 3px solid var(--dore);
  background: rgba(201, 162, 76, 0.1);
  padding: 0.8rem 1rem;
  border-radius: 0 10px 10px 0;
}

/* ---- Pied de page : adresse, horaire du jour, contact ---- */
.pied__infos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  width: min(100%, 860px);
  margin: 1.8rem auto 2.2rem;
  padding-block: 1.6rem;
  border-block: 1px solid rgba(201, 162, 76, 0.22);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(251, 247, 239, 0.88);
}
.pied__bloc { display: grid; justify-items: center; gap: 0.25rem; align-content: start; }
.pied__titre {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dore);
  margin-bottom: 0.2rem;
}
.pied__infos a { color: inherit; }
.pied__infos a:hover { color: var(--dore-clair); }
.pied__ouvert { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: #a6d38c; }
.pied__ouvert::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pied__ouvert--ferme { color: rgba(251, 247, 239, 0.6); }
@media (max-width: 767px) {
  .pied__infos { grid-template-columns: 1fr; gap: 1.3rem; }
}

/* ---- Barre d'actions sur téléphone ---- */
.barre-actions { display: none; }
@media (max-width: 767px) {
  .barre-actions {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.25fr;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.45rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom));
    background: rgba(0, 32, 10, 0.94);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    box-shadow: 0 -1px 0 rgba(201, 162, 76, 0.3), 0 -8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(110%);
    transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
  }
  .barre-actions.est-visible { transform: none; }
  .barre-actions a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.15rem;
    min-height: 48px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: var(--creme);
    border-radius: 12px;
  }
  .barre-actions svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--dore-clair);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .barre-actions .barre-actions__reserver {
    background: var(--creme);
    color: var(--vert);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  /* la barre remplace la fleur WhatsApp ; le bas de page reste lisible */
  body:has(.barre-actions) .whatsapp { display: none; }
  body:has(.barre-actions) .pied { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .barre-actions { transition: none; }
}


/* ==========================================================================
   16. Un seul vert (nov. 2026)
   Toutes les grandes bandes laissent voir le fond émeraude commun (body
   ::before) : plus de seconde teinte de vert entre les sections. Les
   séparations se font par un filet doré.
   ========================================================================== */
.panneau--duo,
.trouver,
.zone-galerie,
.zone-mentions,
.zone-reservation,
.hero-split__panneau,
.brunch-plats { background: transparent; }
.pied {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
  border-top: 1px solid rgba(201, 162, 76, 0.45);
}
html { background: #0f4a34; }
/* en-tête collé et menu mobile : même émeraude que le fond, pas un 2e vert */
.entete.est-plein {
  background: rgba(15, 74, 52, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(201, 162, 76, 0.4), 0 6px 18px rgba(0, 0, 0, 0.18);
}
@media (max-width: 767px) {
  .nav { background: #0f4a34; }
}

/* ===== Réservation Zenchef (page Réserver) ===== */
.reserver-zenchef { text-align: center; padding: 8px 0 72px; }
.reserver-zenchef__aide { margin-top: 14px; font-size: .95rem; opacity: .8; }

/* ==========================================================================
   17. Cadre autour des pages (nov. 2026)
   Un vrai cadre, comme un tableau : passe-partout vert sur les 4 côtés,
   vigne d'olivier dorée tout autour, rosace dans chaque coin. Le contenu
   défile à l'intérieur. Remplace les deux liserés latéraux (body::after).
   Le cadre est ajouté par site.js (<div class="cadre">).
   ========================================================================== */
:root {
  --cadre-e: 8px;    /* marge entre le bord de l'écran et la vigne */
  --cadre-b: 38px;   /* épaisseur de la vigne */
  --cadre: 54px;     /* épaisseur totale du cadre */
}
@media (max-width: 767px) {
  :root { --cadre-e: 3px; --cadre-b: 16px; --cadre: 22px; }
}

body::after { content: none; }
body { padding: var(--cadre); }

.entete { inset: var(--cadre) var(--cadre) auto var(--cadre); }
.whatsapp {
  right: calc(1.2rem + var(--cadre));
  bottom: calc(1.2rem + var(--cadre));
}
@media (max-width: 767px) {
  .barre-actions { left: var(--cadre); right: var(--cadre); bottom: var(--cadre); }
}

/* les grands écrans « plein écran » tiennent dans le cadre */
.hero-fleuri,
.hero-plat {
  min-height: calc(100vh - 2 * var(--cadre));
  min-height: calc(100svh - 2 * var(--cadre));
}
.panneau {
  height: calc(100vh - 2 * var(--cadre));
  height: calc(100svh - 2 * var(--cadre));
}

.cadre {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}
.cadre__fond {
  position: absolute;
  inset: 0;
  border: var(--cadre) solid #0c3f2c;
  box-shadow:
    inset 0 0 0 1px rgba(201, 162, 76, 0.6),
    inset 0 0 30px rgba(0, 0, 0, 0.45);
}
.cadre__v,
.cadre__h,
.cadre__c {
  position: absolute;
  background-image: linear-gradient(180deg,
    #8a6420 0%, #d9b866 12%, #f6e3a6 18%, #c9a24c 26%, #8a6420 38%,
    #c9a24c 50%, #f3dc95 56%, #b8902f 64%, #8a6420 76%, #d9b866 88%, #8a6420 100%);
  background-size: 100% 220vh;
  background-attachment: fixed;
  animation: cadre-or 14s linear infinite;
  opacity: 0.92;
}
.cadre__v {
  top: calc(var(--cadre-e) + var(--cadre-b));
  bottom: calc(var(--cadre-e) + var(--cadre-b));
  width: var(--cadre-b);
}
.cadre__v--g {
  left: var(--cadre-e);
  -webkit-mask: url("../img/cadre/vigne-g.svg?v=3") center top / var(--cadre-b) calc(var(--cadre-b) * 4.5455) repeat-y;
          mask: url("../img/cadre/vigne-g.svg?v=3") center top / var(--cadre-b) calc(var(--cadre-b) * 4.5455) repeat-y;
}
.cadre__v--d {
  right: var(--cadre-e);
  -webkit-mask: url("../img/cadre/vigne-d.svg?v=3") center top / var(--cadre-b) calc(var(--cadre-b) * 4.5455) repeat-y;
          mask: url("../img/cadre/vigne-d.svg?v=3") center top / var(--cadre-b) calc(var(--cadre-b) * 4.5455) repeat-y;
}
.cadre__h {
  left: calc(var(--cadre-e) + var(--cadre-b));
  right: calc(var(--cadre-e) + var(--cadre-b));
  height: var(--cadre-b);
}
.cadre__h--haut {
  top: var(--cadre-e);
  -webkit-mask: url("../img/cadre/vigne-haut.svg?v=3") left center / calc(var(--cadre-b) * 4.5455) var(--cadre-b) repeat-x;
          mask: url("../img/cadre/vigne-haut.svg?v=3") left center / calc(var(--cadre-b) * 4.5455) var(--cadre-b) repeat-x;
}
.cadre__h--bas {
  bottom: var(--cadre-e);
  -webkit-mask: url("../img/cadre/vigne-bas.svg?v=3") left center / calc(var(--cadre-b) * 4.5455) var(--cadre-b) repeat-x;
          mask: url("../img/cadre/vigne-bas.svg?v=3") left center / calc(var(--cadre-b) * 4.5455) var(--cadre-b) repeat-x;
}
.cadre__c {
  width: var(--cadre-b);
  height: var(--cadre-b);
  -webkit-mask: url("../img/cadre/coin.svg?v=3") center / contain no-repeat;
          mask: url("../img/cadre/coin.svg?v=3") center / contain no-repeat;
}
.cadre__c--hg { top: var(--cadre-e); left: var(--cadre-e); }
.cadre__c--hd { top: var(--cadre-e); right: var(--cadre-e); transform: scaleX(-1); }
.cadre__c--bg { bottom: var(--cadre-e); left: var(--cadre-e); transform: scaleY(-1); }
.cadre__c--bd { bottom: var(--cadre-e); right: var(--cadre-e); transform: scale(-1); }
@media (prefers-reduced-motion: reduce) {
  .cadre__v, .cadre__h, .cadre__c { animation: none; }
}

/* sous-titre doré du hero (sous le grand titre) */
.hero-plat__sous {
  font-family: var(--police-titre, "Cormorant Garamond", serif);
  font-size: clamp(1.35rem, 1.6vw + 0.8rem, 2rem);
  font-style: italic;
  line-height: 1.25;
  color: #ecd28e;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 18px rgba(0, 0, 0, 0.75);
  margin: -0.2rem 0 0.4rem;
}
.hero-plat__sous span { white-space: nowrap; }

/* panneaux sans description : titre en grand */
.panneau--titre-seul .panneau__titre { font-size: clamp(3rem, 1.6rem + 5.2vw, 6rem); line-height: 1; }
@media (max-width: 767px) {
  .panneau--titre-seul .panneau__titre { font-size: clamp(2.6rem, 12vw, 3.4rem); }
}

/* page Carte : grand titre + slogan doré */
.hero-fleuri--carte h1 { font-size: clamp(3.6rem, 2rem + 6.5vw, 7.5rem); line-height: 1; }
.hero-fleuri--carte .hero-fleuri__slogan {
  font-family: var(--police-titre, "Cormorant Garamond", serif);
  font-style: italic;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.3rem);
  color: #ecd28e;
  margin-top: 0.6rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
@media (max-width: 767px) {
  .hero-fleuri--carte h1 { font-size: clamp(3.2rem, 16vw, 4.2rem); }
}

/* slogan doré sous « La carte » (accueil) */
.panneau__slogan {
  font-family: var(--police-titre, "Cormorant Garamond", serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  color: #ecd28e;
  margin: 0.2rem 0 0.4rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.panneau--titre-seul .panneau__contenu { align-content: center; }
.panneau--titre-seul .panneau__slogan { margin-top: -0.2rem; }
