/* ==========================================================================
   LES 3 B — Restaurant buffet à volonté · Pompignan
   Feuille de style unique pour toutes les pages.

   SOMMAIRE
   1.  Polices (auto-hébergées, aucun appel à Google Fonts)
   2.  Variables (couleurs, espacements) — à modifier ici pour changer le thème
   3.  Reset & base
   4.  Utilitaires (conteneur, boutons, titres de section)
   5.  Page d'ouverture (portes qui s'ouvrent)
   6.  En-tête & navigation
   7.  Hero (accueil + bannières de pages)
   8.  Sections de l'accueil
   9.  Page Buffet
   10. Galerie & lightbox (fond flouté)
   11. Page Contact (formulaire + carte)
   12. Pages légales
   13. Pied de page
   14. Bandeau cookies
   15. Animations d'apparition
   16. Responsive
   17. Accessibilité : mouvement réduit
   ========================================================================== */


/* 1. POLICES ------------------------------------------------------------- */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }


/* 2. VARIABLES ----------------------------------------------------------- */
:root {
  /* Couleurs inspirées de la devanture (vert citron) et du mur en bois brûlé */
  --bg:        #14130f;   /* fond principal : charbon */
  --bg-2:      #1d1b15;   /* fond des cartes / sections alternées */
  --bg-3:      #28251c;
  --line:      rgba(244, 239, 227, .12);
  --text:      #f4efe3;   /* crème */
  --text-soft: #b9b3a2;
  --lime:      #8ec63f;   /* vert de l'enseigne */
  --lime-dark: #6ea12a;
  --amber:     #d9892b;   /* bois brûlé / grillades */

  --font-title: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:  "DM Sans", system-ui, sans-serif;

  --radius: 18px;
  --header-h: 76px;
  --container: 1160px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .8, .24, 1);
}


/* 3. RESET & BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }          /* bloque le scroll (page d'ouverture, lightbox) */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: #14130f; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #14130f;
  padding: .6rem 1rem; border-radius: 8px; z-index: 10000; font-weight: 700; }
.skip-link:focus { left: 8px; }


/* 4. UTILITAIRES --------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--bg-2); }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--lime); margin-bottom: .9rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-soft); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--lime); color: #14130f; }
.btn--primary:hover { background: #a3d94f; }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }


/* 5. PAGE D'OUVERTURE ----------------------------------------------------
   Deux « portes » (gauche/droite) portent chacune la MOITIÉ du logo et du texte :
   chaque porte contient la scène complète (largeur 100vw) alignée sur le bord
   extérieur, et la porte masque ce qui dépasse (overflow:hidden).
   Au clic (ou après quelques secondes), chaque porte pivote vers l'extérieur
   comme si on entrait dans le restaurant. Le JS est dans animations.js. */
.splash { position: fixed; inset: 0; z-index: 9999; perspective: 1600px; background: transparent; }
.splash__door { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 46px),   /* lames de bois */
    linear-gradient(180deg, #1a1812, #0f0e0b);
  transition: transform 1.9s cubic-bezier(.65, 0, .35, 1), opacity .7s ease 1.2s;   /* ouverture douce, fondu en toute fin */
  will-change: transform; }
.splash__door--left  { left: 0;  transform-origin: left center;  border-right: 1px solid rgba(142,198,63,.35); }
.splash__door--right { right: 0; transform-origin: right center; border-left:  1px solid rgba(142,198,63,.35); }
.splash__scene { position: absolute; top: 0; bottom: 0; width: 100vw; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.4rem; text-align: center; padding: 1rem; }
.splash__door--left  .splash__scene { left: 0; }
.splash__door--right .splash__scene { right: 0; }
.splash__logo { width: min(52vw, 340px, 42vh); height: auto; filter: drop-shadow(0 0 30px rgba(142,198,63,.25)); }
.splash__title { font-family: var(--font-title); font-weight: 800; font-size: clamp(1.6rem, 5vw, 3rem);
  letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin: 0; }
.splash__title span { color: var(--lime); }
.splash__hint { position: absolute; bottom: 9vh; left: 0; right: 0; z-index: 2; text-align: center;
  transition: opacity .4s; }
.splash__hint button { background: none; border: 2px solid var(--lime); color: var(--lime); padding: .8rem 2rem;
  border-radius: 999px; font: 700 .95rem var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; animation: pulse 2s ease-in-out infinite; }
.splash__hint button:hover { background: var(--lime); color: #14130f; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(142,198,63,.45); } 50% { box-shadow: 0 0 0 14px rgba(142,198,63,0); } }
/* Entrée en douceur du logo et du texte */
.splash__logo, .splash__title { opacity: 0; transform: translateY(14px); animation: splash-in 1s .2s var(--ease) forwards; }
.splash__title { animation-delay: .6s; }
@keyframes splash-in { to { opacity: 1; transform: none; } }
/* État « ouverture » : ajouté par animations.js */
.splash.is-open .splash__door--left  { transform: rotateY(-100deg); opacity: 0; }
.splash.is-open .splash__door--right { transform: rotateY(100deg);  opacity: 0; }
.splash.is-open .splash__hint { opacity: 0; pointer-events: none; }
.splash.is-gone { display: none; }
/* Si le JS est désactivé, on ne montre jamais la page d'ouverture */
.no-js .splash, .splash-seen .splash { display: none; }


/* 6. EN-TÊTE & NAVIGATION ------------------------------------------------ */
#site-header { min-height: var(--header-h); }
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--header-h);
  display: flex; align-items: center; transition: background .3s, backdrop-filter .3s, box-shadow .3s; }
.header.is-scrolled { background: rgba(20,19,15,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--font-title);
  font-weight: 800; font-size: 1.15rem; }
.brand img { width: 46px; height: 46px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4rem 0;
  position: relative; color: var(--text-soft); transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--lime); transition: width .3s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .btn { padding: .65rem 1.3rem; font-size: .92rem; }
.burger { display: none; width: 46px; height: 46px; background: none; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 50%;
  width: 20px; height: 2px; background: var(--text); transform: translateX(-50%); transition: transform .3s, opacity .3s; }
.burger span { top: 50%; margin-top: -1px; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }


/* 7. HERO ---------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 3rem) 0 4rem; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: -6% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,19,15,.92) 8%, rgba(20,19,15,.55) 60%, rgba(20,19,15,.35)),
              linear-gradient(0deg, var(--bg) 0, transparent 30%); }
.hero__content { max-width: 720px; }
.hero h1 span { color: var(--lime); }
.hero .lead { color: var(--text); opacity: .85; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: .92rem; backdrop-filter: blur(6px); }
.chip svg { width: 18px; height: 18px; color: var(--lime); }
/* Encart « Informations » (plat du jour spécial, congés…) — voir index.html pour le mode d'emploi */
.info-box { margin: 0 0 1.6rem; max-width: 560px; padding: 1.2rem 1.5rem 1.3rem; border-radius: var(--radius);
  background: rgba(20,19,15,.72); border: 1px solid rgba(217,137,43,.55); border-left: 5px solid var(--amber);
  backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.info-box[hidden] { display: none; }              /* l'attribut « hidden » cache l'encart */
.info-box__label { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.info-box__label svg { width: 18px; height: 18px; }
.info-box__title { font-size: 1.35rem; margin: .35rem 0 .3rem; }
.info-box__text { margin: 0; color: var(--text); opacity: .92; line-height: 1.5; }
.info-box__text + .info-box__text { margin-top: .5rem; }
.price-tag { position: absolute; right: max(1.25rem, calc((100vw - var(--container)) / 2)); bottom: 12%;
  width: 190px; height: 190px; border-radius: 50%; background: var(--lime); color: #14130f;
  display: grid; place-content: center; text-align: center; transform: rotate(8deg); box-shadow: var(--shadow);
  font-family: var(--font-title); }
.price-tag small { font: 700 .7rem/1.25 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 0 1.6rem; }
.price-tag strong { font-size: 3rem; font-weight: 800; line-height: 1; }
.price-tag em { font: 500 .78rem var(--font-body); font-style: normal; }
.page-banner { position: relative; padding: calc(var(--header-h) + 4.5rem) 0 4rem; margin-top: calc(var(--header-h) * -1);
  isolation: isolate; overflow: hidden; }
.page-banner__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,19,15,.75), var(--bg)); }
.page-banner h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: .3em; }


/* 8. SECTIONS DE L'ACCUEIL ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__media::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 2px solid var(--lime);
  border-radius: var(--radius); z-index: -1; opacity: .5; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform .3s var(--ease), border-color .3s; }
.section--alt .feature { background: var(--bg); }
.feature:hover { transform: translateY(-6px); border-color: rgba(142,198,63,.5); }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(142,198,63,.12); color: var(--lime);
  display: grid; place-items: center; margin-bottom: 1.1rem; }
.feature__icon svg { width: 26px; height: 26px; }
.feature p { color: var(--text-soft); margin: 0; font-size: .98rem; }

.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: .9rem; }
.mosaic a { position: relative; overflow: hidden; border-radius: 14px; display: block; cursor: zoom-in; }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaic a:hover img { transform: scale(1.07); }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.section--alt .card { background: var(--bg); }
.card h3 { display: flex; align-items: center; gap: .7rem; }
.card h3 svg { width: 24px; height: 24px; color: var(--lime); }
/* Note « plat du jour à emporter » */
.takeaway-note { margin: .6rem 0 0; line-height: 1.5; }
.takeaway-note strong { color: var(--green, inherit); }

.hours { list-style: none; margin: 1rem 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border: 0; }
.hours .is-closed { color: var(--text-soft); }
.hours .is-today { color: var(--lime); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .92rem; padding: .4rem .9rem;
  border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--text-soft); }
.status.is-open::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(142,198,63,.25); }
.status.is-closed::before { background: #e5574b; }

.cta-band { text-align: center; background:
  radial-gradient(circle at 50% 0, rgba(142,198,63,.18), transparent 60%), var(--bg-2); }
.cta-band .btn-row { justify-content: center; }


/* 9. PAGE BUFFET --------------------------------------------------------- */
.price-card { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; background: var(--bg-2);
  border: 1px solid rgba(142,198,63,.4); border-radius: var(--radius); padding: 2rem 2.4rem; margin-bottom: 4rem; }
.price-card__amount { font-family: var(--font-title); font-weight: 800; font-size: clamp(3rem, 7vw, 4.6rem); color: var(--lime); line-height: 1; }
.price-card p { margin: 0; color: var(--text-soft); }
.price-card h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.course { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(3.5rem, 8vw, 6rem); }
.course:nth-of-type(even) .course__text { order: 2; }
.course__photos { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.course__photos a { overflow: hidden; border-radius: 14px; display: block; cursor: zoom-in; aspect-ratio: 3/4; }
.course__photos a:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - .45rem); }  /* 3e photo centrée sous les 2 autres */
.course__photos a:first-child:nth-last-child(1) { grid-column: span 2; aspect-ratio: 4/3; }
.course__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.course__photos a:hover img { transform: scale(1.07); }
.course__num { font-family: var(--font-title); font-weight: 800; font-size: 4.5rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(142,198,63,.6); }
.tick-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.tick-list li { padding-left: 1.8rem; position: relative; color: var(--text-soft); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--lime); }
.note { font-size: .9rem; color: var(--text-soft); }


/* 10. GALERIE & LIGHTBOX ------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.gallery-filters button { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px;
  padding: .55rem 1.3rem; font: 500 .95rem var(--font-body); cursor: pointer; transition: .25s; }
.gallery-filters button:hover { border-color: var(--lime); }
.gallery-filters button.is-active { background: var(--lime); border-color: var(--lime); color: #14130f; font-weight: 700; }
.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery a { display: block; margin-bottom: 1rem; border-radius: 14px; overflow: hidden; break-inside: avoid; cursor: zoom-in; position: relative; }
.gallery a.is-hidden { display: none; }
.gallery img { width: 100%; transition: transform .7s var(--ease), filter .4s; }
.gallery a:hover img { transform: scale(1.05); filter: brightness(1.1); }

/* Lightbox : fond sombre + FLOU de la page derrière (backdrop-filter) */
.lightbox { position: fixed; inset: 0; z-index: 9500; display: none; align-items: center; justify-content: center;
  background: rgba(10,9,7,.55); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  opacity: 0; transition: opacity .3s; padding: 1rem; }
.lightbox.is-visible { display: flex; }
.lightbox.is-shown { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); max-height: 88vh; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 14px; box-shadow: 0 25px 80px rgba(0,0,0,.6);
  transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.is-shown img { transform: none; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 1px solid var(--line); color: var(--text);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; transition: .25s; }
.lightbox button:hover { background: var(--lime); color: #14130f; }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; margin-top: -26px; }
.lightbox__next { right: 1.2rem; top: 50%; margin-top: -26px; }


/* 11. PAGE CONTACT ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(142,198,63,.12); color: var(--lime);
  display: grid; place-items: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); font-weight: 500; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--lime); }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; padding: .9rem 1rem; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(142,198,63,.18); }
.field textarea { min-height: 150px; resize: vertical; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--text-soft); }
.checkbox input { margin-top: .3rem; accent-color: var(--lime); }
.honeypot { position: absolute; left: -9999px; }            /* champ anti-spam invisible */
.form__msg { padding: .9rem 1.1rem; border-radius: 12px; display: none; font-weight: 500; }
.form__msg.is-ok  { display: block; background: rgba(142,198,63,.14); color: var(--lime); }
.form__msg.is-err { display: block; background: rgba(229,87,75,.14); color: #ff8d83; }
.map { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 450px; border: 0; filter: grayscale(.25) contrast(1.05); }


/* 12. PAGES LÉGALES ------------------------------------------------------ */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.legal dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: .1rem 1.5rem; margin: 1.2rem 0; }
.legal dt { color: var(--text-soft); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.legal dd { margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.legal a { color: var(--lime); }
.todo { background: rgba(217,137,43,.18); color: #ffc57e; padding: 0 .4rem; border-radius: 4px; }  /* champs à compléter */


/* 13. PIED DE PAGE ------------------------------------------------------- */
.footer { background: #0e0d0a; border-top: 1px solid var(--line); padding: 4rem 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; color: var(--text-soft); transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer__brand img { width: 84px; margin-bottom: 1rem; }
.footer__brand p { color: var(--text-soft); font-size: .95rem; max-width: 32ch; }
.footer__hours li { display: flex; justify-content: space-between; gap: 1rem; color: var(--text-soft); font-size: .94rem; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--text); transition: .25s; }
.socials a:hover { background: var(--lime); border-color: var(--lime); color: #14130f; transform: translateY(-3px); }
.socials svg { width: 22px; height: 22px; }
.footer__bottom { margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: .8rem 2rem; font-size: .88rem; color: var(--text-soft); }
.footer__bottom a { color: var(--text); }
.footer__bottom button { background: none; border: 0; padding: 0; color: var(--text-soft); font: inherit; text-decoration: underline; cursor: pointer; }
.footer__bottom button:hover { color: var(--text); }
.footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }


/* 14. BANDEAU COOKIES ---------------------------------------------------- */
.cookie { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 140%); width: min(100% - 2rem, 760px);
  z-index: 9000; background: rgba(29,27,21,.96); backdrop-filter: blur(14px); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow); display: grid; gap: .8rem;
  transition: transform .6s var(--ease); }
.cookie.is-visible { transform: translate(-50%, 0); }
.cookie h2 { font-size: 1.15rem; margin: 0 0 .3rem; }
.cookie p { margin: 0; font-size: .92rem; color: var(--text-soft); }
.cookie a { color: var(--lime); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cookie__actions .btn { padding: .7rem 1.4rem; font-size: .92rem; flex: 1 1 140px; }


/* 15. ANIMATIONS D'APPARITION (déclenchées par animations.js) ------------ */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--left  { transform: translateX(-40px); }
.js .reveal--right { transform: translateX(40px); }


/* 16. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 980px) {
  .burger { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1.2rem;
    padding: 1.5rem 1.25rem 2rem; background: rgba(20,19,15,.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility .45s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: .2rem; }
  .nav a:not(.btn) { display: block; padding: .8rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { justify-content: center; }
  .header.is-menu-open { background: rgba(20,19,15,.98); }
  .split, .contact-grid, .course { grid-template-columns: 1fr; }
  .course:nth-of-type(even) .course__text { order: 0; }
  .split__media::before { display: none; }
  .split__media img { aspect-ratio: 4/3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .price-tag { position: relative; right: auto; bottom: auto; margin: 2.5rem 0 0 0; width: 140px; height: 140px; }
  .price-tag strong { font-size: 2.4rem; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .mosaic a:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { min-height: auto; padding-bottom: 3rem; }
  .form__row { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; gap: .8rem; padding: 1.6rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { border: 0; padding-bottom: 0; }
  .map iframe { height: 340px; }
  .gallery { columns: 2 140px; column-gap: .7rem; }
  .gallery a { margin-bottom: .7rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.2rem; margin: 0; }
  .lightbox__prev { left: calc(50% - 64px); } .lightbox__next { right: calc(50% - 64px); }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .splash__logo { width: 34vh; } .splash__hint { bottom: 3vh; }
}


/* 17. ACCESSIBILITÉ : MOUVEMENT RÉDUIT ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
