/* ============================================================
   Feuille de style — base restaurant.
   Les couleurs, polices et l'arrondi viennent de src/content.mjs
   (injectés en variables CSS dans le <head>). Ne pas écrire de
   couleur en dur ici : tout passe par les variables.
   ============================================================ */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --max-w: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --z-header: 30;
  --z-float: 40;
  --z-lightbox: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
/* Grain léger pour casser l'aplat */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background-image: url("/assets/grain.png");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typo ---------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h1, h2 { font-family: var(--font-display); letter-spacing: -.01em; line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.lede { color: var(--ink-soft); font-size: 1.06rem; max-width: 58ch; margin-top: 18px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-ghost svg { transition: transform .25s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions { gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: transparent;
  color: var(--ink);
  font: 600 .75rem/1 var(--font-body); letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }
.header-cta { margin-left: 6px; }

/* Soleil en mode sombre (passer au clair), lune en mode clair. */
.theme-icon-moon, [data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: grid; }
.theme-icon-sun { display: grid; }

/* Logo : une version par mode. */
.logo-for-light, [data-theme="light"] .logo-for-dark { display: none !important; }
[data-theme="light"] .logo-for-light { display: block !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-header.is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block; padding: 16px 0;
    font-family: var(--font-display); font-size: 1.7rem; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 70%, transparent) 0%,
    color-mix(in srgb, var(--bg) 45%, transparent) 22%,
    color-mix(in srgb, var(--bg) 78%, transparent) 50%,
    color-mix(in srgb, var(--bg) 92%, transparent) 75%,
    var(--bg) 100%);
}
.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 40px;
  width: 100%;
}
.hero h1 { font-size: clamp(3rem, 10vw, 6.4rem); max-width: 12ch; }
.hero-text { margin-top: 20px; max-width: 44ch; font-size: 1.08rem; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .85rem; font-weight: 500;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--alert); }
.status-pill.is-open .dot { background: var(--leaf); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 25%, transparent); }

.hero-strip { border-top: 1px solid var(--line); }
.hero-strip-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 18px; padding-bottom: 18px; }
.hero-strip a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--ink-soft); text-decoration: none;
  transition: color .2s var(--ease);
}
.hero-strip a:hover { color: var(--ink); }
.hero-strip svg { color: var(--accent); width: 1.1em; height: 1.1em; }

/* Téléphone : haut de page plus compact pour que l'adresse ET le numéro
   restent visibles sans faire défiler. */
@media (max-width: 600px) {
  .hero-inner { padding-top: calc(var(--header-h) + 20px); padding-bottom: 22px; }
  .status-pill { margin-bottom: 16px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3rem); }
  .hero-text { margin-top: 14px; font-size: 1rem; }
  .hero-ctas { margin-top: 22px; gap: 10px; }
  .hero-ctas .btn { min-height: 46px; padding: 0 20px; }
  .hero-strip-inner { gap: 6px 20px; padding-top: 12px; padding-bottom: 14px; }
  .hero-strip a { font-size: .85rem; }
}

/* Mode clair sur mobile : voile plus couvrant pour garder le texte lisible. */
@media (max-width: 959px) {
  [data-theme="light"] .hero-media::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 82%, transparent) 0%,
      color-mix(in srgb, var(--bg) 62%, transparent) 22%,
      color-mix(in srgb, var(--bg) 86%, transparent) 50%,
      color-mix(in srgb, var(--bg) 95%, transparent) 75%,
      var(--bg) 100%);
  }
}

/* Grand écran : texte à gauche, photo (portrait) à droite. */
@media (min-width: 960px) {
  /* La photo commence sous l'en-tête : les liens restent lisibles. */
  .hero-media { left: 52%; top: var(--header-h); }
  .hero-media::after {
    background: linear-gradient(90deg, var(--bg) 0%, transparent 30%), linear-gradient(0deg, var(--bg) 0%, transparent 25%);
  }
  .hero-inner { justify-content: center; padding-bottom: 60px; }
}

/* ---------- Sections ---------- */
section:not(.hero) { padding: clamp(80px, 11vw, 140px) 0 clamp(90px, 12vw, 160px); position: relative; z-index: 2; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .lede { margin-left: auto; margin-right: auto; }
.section-head-left { text-align: left; margin-left: 0; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: clamp(48px, 7vw, 96px); align-items: center; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.05fr 1fr; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--accent); }
.facts dd { margin: 10px 0 0; font-size: .86rem; color: var(--ink-soft); }
.intro-media { position: relative; padding: 0 0 18% 0; }
.intro-fig { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
/* Pastille « +1 » : d'autres photos s'ouvrent dans la galerie plein écran. */
.more-hint {
  position: absolute; left: 12px; bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #000 55%, transparent);
  color: #fff;
  font-size: .78rem; font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.intro-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.intro-fig:hover img { transform: scale(1.03); }
.intro-fig-1 { aspect-ratio: 4 / 3; width: 86%; }
.intro-fig-2 {
  position: absolute; right: 0; bottom: 0;
  width: 44%; aspect-ratio: 3 / 4;
  border: 6px solid var(--bg);
  border-radius: calc(var(--radius) + 6px);
}

/* ---------- Carte ---------- */
.menu { background: var(--bg-raised); }
.legend { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.star { color: var(--accent); display: inline-flex; }
.star svg { width: .9em; height: .9em; }

.menu-tabs {
  position: sticky; top: var(--header-h); z-index: 5;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 24px;
  padding: 12px var(--gutter);
  background: var(--bg-raised);
  scroll-snap-type: x proximity;
}
.menu-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .menu-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.chip {
  flex: none; scroll-snap-align: start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: 500 .9rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.menu-board { max-width: 1000px; margin: 0 auto; display: grid; gap: 64px; }
.menu-cat h3 { font-family: var(--font-display); font-style: italic; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--ink); }
.menu-sub { margin-top: 8px; color: var(--ink-soft); font-size: .92rem; max-width: 70ch; }
.dishes { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px 64px; }
@media (min-width: 820px) { .dishes { grid-template-columns: 1fr 1fr; } }
.dish { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dish-line { display: flex; align-items: baseline; gap: 10px; }
.dish-name { font-weight: 600; font-size: 1rem; display: inline-flex; align-items: baseline; gap: 8px; }
.dish-name .star { transform: translateY(1px); }
.dish-dots { flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--ink-soft) 45%, transparent); transform: translateY(-4px); min-width: 16px; }
.dish-price { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); white-space: nowrap; }
.dish-desc { margin-top: 4px; font-size: .88rem; color: var(--ink-soft); max-width: 46ch; }

/* Onglets actifs : une rubrique à la fois. */
.js .menu-board.is-tabbed .menu-cat { display: none; }
.js .menu-board.is-tabbed .menu-cat.is-active { display: block; animation: fadeUp .45s var(--ease) both; }
.js .menu-board.is-tabbed .menu-cat h3 { display: none; }

/* ---------- Galerie ---------- */
.gallery-track {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
@media (min-width: 1240px) {
  .gallery-track { padding-left: calc((100vw - var(--max-w)) / 2 + var(--gutter)); scroll-padding-left: calc((100vw - var(--max-w)) / 2 + var(--gutter)); }
}
.gallery-track figure {
  flex: none; margin: 0;
  width: clamp(240px, 30vw, 360px);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.gallery-track figure:nth-child(even) { margin-top: 48px; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-track figure:hover img { transform: scale(1.04); }

/* ---------- Événements ---------- */
.events { background: var(--bg-raised); }
.events-grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) { .events-grid { grid-template-columns: .9fr 1.1fr; } }
.events-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; cursor: zoom-in; }
.events-media img { width: 100%; height: 100%; object-fit: cover; }
.events-copy .btn { margin-top: 32px; }

/* ---------- Infos ---------- */
.info-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1.15fr 1fr; gap: 28px; } }
.info-side { display: grid; gap: 20px; }
.info-block {
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
.info-block h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.info-block h3 svg { width: 1.3em; height: 1.3em; }
.info-block p { color: var(--ink); }
.info-block p + p { margin-top: 6px; }
.info-block a:not(.link-arrow) { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s var(--ease); }
.info-block a:not(.link-arrow):hover { border-color: var(--accent); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { color: var(--ink-soft); text-align: right; }
.today-tag {
  display: none;
  margin-left: 10px; padding: 2px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
}
.hours li.is-today span:first-child { font-weight: 600; }
.hours li.is-today span:last-child { color: var(--ink); }
.hours li.is-today .today-tag { display: inline-block; }

/* ---------- Réservation ---------- */
.booking-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (min-width: 900px) { .booking-grid { grid-template-columns: .85fr 1.15fr; } }
.booking-copy { position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 899px) { .booking-copy { position: static; } }
.booking-call { margin-top: 28px; color: var(--ink-soft); }
.booking-call a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }

.booking-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px;
  background: var(--bg-raised);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(22px, 4vw, 40px);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 520px) { .booking-form .field:not(.field-full) { grid-column: 1 / -1; } }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  color-scheme: var(--scheme);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 60%, transparent); }
.field.has-error input { border-color: var(--alert); }
.field-error { font-size: .82rem; color: var(--alert); min-height: 0; }
.field-error:empty { display: none; }
.form-actions { display: grid; gap: 14px; margin-top: 6px; }
.form-status { font-size: .9rem; color: var(--leaf); }
.form-status:empty { display: none; }
.form-note { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); position: relative; z-index: 2; }
.footer-inner { display: grid; justify-items: center; gap: 14px; text-align: center; color: var(--ink-soft); font-size: .9rem; }
.footer-logo { margin-bottom: 6px; }
.footer-logo img { height: 56px; width: auto; }
.site-footer a { text-decoration: none; color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.footer-meta { font-size: .8rem; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; z-index: var(--z-float);
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--bg) 80%, black);
  transition: transform .25s var(--ease), opacity .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float:active { transform: scale(.96); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 96%, black);
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 84svh; object-fit: contain; border-radius: 10px; user-select: none; }
.lightbox button {
  position: absolute;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lightbox button:hover { background: color-mix(in srgb, var(--ink) 20%, transparent); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--ink-soft); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* ---------- 404 ---------- */
.page-404 { min-height: 100svh; display: grid; place-items: center; }
.nf { text-align: center; display: grid; justify-items: center; padding-top: 60px; padding-bottom: 60px; position: relative; z-index: 2; }
.nf-logo { margin-bottom: 40px; }
.nf-logo img { height: 80px; width: auto; }
.nf h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.nf .lede { margin-left: auto; margin-right: auto; }
.nf .hero-ctas { justify-content: center; }

/* ---------- Apparition au défilement ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
