/* ============================================
   LE FOUR DE PUYRICARD — Design System
   Direction: Dark Ember
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-warm: #2d1f14;
  --text-primary: #f5e6d3;
  --accent: #c8a882;
  --ember: #ff7820;
  --text-muted: #8a7560;
  --text-dim: #6b5a4a;
  --border: rgba(200,168,130,0.15);
  --card-bg: rgba(255,255,255,0.03);
  --error: #c0392b;
  --ember-glow: rgba(255,120,30,0.3);
  --section-padding: 100px 40px;
  --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* --- Typography --- */
.font-serif { font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif; }
.label {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ember);
  text-transform: uppercase;
  font-weight: 600;
}
.section-title {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.05;
}
.separator {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 12px auto;
}

/* --- Layout --- */
.section {
  padding: var(--section-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}
.section--full {
  max-width: none;
  padding: 0;
}

/* --- Shared Components --- */

/* Pills / Badges */
.pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  display: inline-block;
}
.pill--accent {
  background: rgba(200,168,130,0.12);
  color: var(--accent);
  border: 1px solid rgba(200,168,130,0.2);
}
.pill--hiver {
  background: rgba(100,160,255,0.1);
  color: #7ab0e8;
}
.pill--veg {
  background: rgba(100,180,100,0.1);
  color: #6b8f5e;
}

/* Buttons */
.btn {
  padding: 14px 32px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn--primary {
  background: linear-gradient(135deg, #ff7f29, #d2541a);
  border: 1px solid rgba(255,150,80,0.4);
  color: #1a0e06;
  font-weight: 700;
  box-shadow: 0 10px 34px rgba(255,120,30,0.22);
}
.btn--primary:hover {
  box-shadow: 0 12px 44px rgba(255,120,30,0.42);
  transform: translateY(-2px);
}
.btn--secondary {
  border: 1px solid var(--border);
  color: var(--accent);
}
.btn--secondary:hover {
  border-color: var(--accent);
  background: rgba(200,168,130,0.05);
}
.btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   ACCESSIBILITÉ — anneaux de focus clavier
   ============================================ */
.btn:focus-visible,
.carte__filter:focus-visible,
.nav__phone:focus-visible,
.nav__logo:focus-visible,
.nav__burger:focus-visible,
.contact__address:focus-visible,
.footer__icon:focus-visible,
.galerie__item:focus-visible,
.lightbox__close:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}
.galerie__item:focus-visible { outline-offset: -2px; border-radius: 6px; }

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(200,168,130,0.1);
  border-radius: 10px;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,168,130,0.28);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25), 0 0 22px rgba(255,120,30,0.06);
}

/* Scroll reveal */
.reveal {
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1279px) {
  :root { --section-padding: 80px 30px; }
}
@media (max-width: 767px) {
  :root { --section-padding: 60px 20px; }
  .section-title { font-size: 26px; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background 0.3s ease, padding 0.3s ease;
}
.nav--scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  padding: 16px 40px;
}
.nav__logo {
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 2px;
}
.nav__links {
  display: flex;
  gap: 30px;
}
.nav__link {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav__link:hover { color: var(--accent); }
.nav__phone {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(200,168,130,0.3);
  padding: 8px 20px;
  border-radius: 2px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.nav__phone:hover {
  background: rgba(200,168,130,0.1);
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.nav__burger {
  position: relative;
  z-index: 110;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
}
.nav__burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav__burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
  /* Perf scroll : isole le mix-blend:screen des calques de feu au hero
     (sinon recomposition de toute la page derrière le flou à chaque frame),
     et borne l'invalidation de paint des animations à la boîte du hero. */
  isolation: isolate;
  contain: paint;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 0;
  animation: hero-zoom 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.16); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 60% 45%, rgba(10,8,6,0) 0%, rgba(10,8,6,0.45) 60%, rgba(10,8,6,0.8) 100%),
    linear-gradient(to bottom, rgba(8,6,4,0.72) 0%, rgba(8,6,4,0.3) 38%, rgba(8,6,4,0.6) 72%, rgba(8,6,4,0.95) 100%);
}
.hero__glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--ember-glow) 0%, rgba(255,80,0,0.1) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}
/* ====== FOYER DE FLAMMES (bouche du four) — vraies langues de feu, plus de points ====== */
.hero__fire {
  position: absolute;
  left: 50%;
  bottom: 33%;                  /* bas, sur la bouche du four — ne grimpe plus dans le titre/CTA */
  width: min(46%, 460px);
  height: 14%;                  /* foyer bas : un départ de feu, pas un mur de flammes */
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  filter: blur(3px) saturate(1.05);
  opacity: 0.74;                /* intensité relevée d'un cran, sans redevenir un mur de flammes */
}
/* Lit de braises incandescent à la base du foyer */
.hero__fire-bed {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%,
     rgba(255,206,120,0.85) 0%, rgba(255,120,40,0.42) 46%, rgba(255,70,10,0) 76%);
  filter: blur(9px);
  will-change: opacity, transform;
  animation: fire-bed 3.4s ease-in-out infinite;
}
@keyframes fire-bed {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scaleX(1);    }
  50%      { opacity: 1;    transform: translateX(-50%) scaleX(1.05); }
}
/* Une langue de flamme : dégradé braise→or qui s'éteint en pointe, flouté */
.flame {
  position: absolute;
  bottom: 0;
  left: var(--fx, 50%);
  width: var(--fw, 120px);
  height: var(--fh, 78%);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  border-radius: 46% 46% 46% 46% / 74% 74% 30% 30%;
  background: radial-gradient(ellipse 64% 74% at 50% 100%,
     rgba(255,176,92,0.6) 0%,
     rgba(248,116,40,0.48) 38%,
     rgba(206,58,14,0.3) 60%,
     rgba(150,30,4,0.1) 78%,
     rgba(120,18,0,0) 90%);
  filter: blur(7px);
  will-change: transform, opacity;
  animation: flame-lick var(--fd, 3s) ease-in-out var(--fdelay, 0s) infinite;
}
/* Cœur du foyer : à peine plus chaud (braise, pas blanc incandescent) */
.flame--core {
  background: radial-gradient(ellipse 58% 76% at 50% 100%,
     rgba(255,196,116,0.66) 0%,
     rgba(252,132,48,0.52) 34%,
     rgba(210,62,16,0.32) 58%,
     rgba(150,28,4,0.12) 78%,
     rgba(120,18,0,0) 88%);
  filter: blur(6px);
}
/* Position / taille / tempo par langue → la masse roule de façon irrégulière */
.flame--1 { --fx: 34%; --fw: 58px; --fh: 42%; --fd: 2.7s; --fdelay: 0s;   }
.flame--2 { --fx: 43%; --fw: 74px; --fh: 60%; --fd: 3.3s; --fdelay: .5s;  }
.flame--3 { --fx: 47%; --fw: 64px; --fh: 68%; --fd: 2.9s; --fdelay: .9s;  }
.flame--4 { --fx: 50%; --fw: 84px; --fh: 74%; --fd: 3.6s; --fdelay: .2s;  }
.flame--5 { --fx: 54%; --fw: 64px; --fh: 66%; --fd: 3.0s; --fdelay: 1.1s; }
.flame--6 { --fx: 58%; --fw: 74px; --fh: 58%; --fd: 3.2s; --fdelay: .6s;  }
.flame--7 { --fx: 67%; --fw: 56px; --fh: 40%; --fd: 2.6s; --fdelay: 1.4s; }
@keyframes flame-lick {
  0%   { transform: translateX(-50%) scaleY(1)    scaleX(1)    rotate(0deg);    opacity: 0.82; }
  18%  { transform: translateX(-50%) scaleY(1.16) scaleX(0.93) rotate(-2.5deg); opacity: 1;    }
  36%  { transform: translateX(-50%) scaleY(0.96) scaleX(1.05) rotate(1.5deg);  opacity: 0.78; }
  54%  { transform: translateX(-50%) scaleY(1.2)  scaleX(0.9)  rotate(-1deg);   opacity: 1;    }
  72%  { transform: translateX(-50%) scaleY(1.0)  scaleX(1.02) rotate(2.5deg);  opacity: 0.8;  }
  100% { transform: translateX(-50%) scaleY(1)    scaleX(1)    rotate(0deg);    opacity: 0.82; }
}

/* Escarbilles : quelques braises qui s'élèvent du foyer (sobres, lentes) */
.hero__embers {
  position: absolute;
  left: 50%;
  bottom: 34%;
  width: min(42%, 420px);
  height: 24%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}
.hero__ember {
  position: absolute;
  bottom: 0;
  left: var(--x, 50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff0d2 0%, #ffc066 40%, var(--ember) 64%, rgba(255,80,10,0) 82%);
  box-shadow: 0 0 11px 1px rgba(255,150,60,0.8);
  mix-blend-mode: screen;       /* braises additives : ressortent vraiment sur la photo sombre */
  opacity: 0;
  will-change: transform, opacity;
  animation: ember-rise var(--dur, 9s) ease-out var(--delay, 0s) infinite;
}
@keyframes ember-rise {
  0%   { opacity: 0;                          transform: translate3d(0, 0, 0) scale(var(--s, 1)); }
  12%  { opacity: var(--o, 0.5);              transform: translate3d(calc(var(--dx, 0px) * 0.2), -26px, 0) scale(var(--s, 1)); }
  72%  { opacity: calc(var(--o, 0.5) * 0.65); transform: translate3d(calc(var(--dx, 0px) * 0.7), -150px, 0) scale(calc(var(--s, 1) * 0.7)); }
  100% { opacity: 0;                          transform: translate3d(var(--dx, 0px), -210px, 0) scale(calc(var(--s, 1) * 0.4)); }
}

/* Lueur de feu sur la ligne de flottaison (bouche du four) — lumière additive qui vacille */
.hero__firelight {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 70%;
  max-width: 720px;
  height: 44%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  background:
    radial-gradient(ellipse at 50% 100%,
      rgba(255,142,58,0.27) 0%,
      rgba(255,100,28,0.13) 32%,
      rgba(255,75,15,0.05) 54%,
      transparent 74%);
  filter: blur(26px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
  will-change: opacity, transform;
  /* flicker organique : stops inégaux + léchage vertical, période ≠ heat pour désynchroniser */
  animation: fire-flicker 4.6s ease-in-out infinite;
}
@keyframes fire-flicker {
  0%   { opacity: 0.86; transform: translateX(-50%) scaleY(1)    scaleX(1);     }
  12%  { opacity: 1;    transform: translateX(-50%) scaleY(1.05) scaleX(0.99);  }
  21%  { opacity: 0.78; transform: translateX(-50%) scaleY(0.98) scaleX(1.012); }
  34%  { opacity: 0.97; transform: translateX(-50%) scaleY(1.06) scaleX(0.986); }
  46%  { opacity: 0.83; transform: translateX(-50%) scaleY(1.01) scaleX(1.006); }
  58%  { opacity: 1;    transform: translateX(-50%) scaleY(1.07) scaleX(0.99);  }
  69%  { opacity: 0.8;  transform: translateX(-50%) scaleY(0.99) scaleX(1.01);  }
  82%  { opacity: 0.94; transform: translateX(-50%) scaleY(1.04) scaleX(0.994); }
  100% { opacity: 0.86; transform: translateX(-50%) scaleY(1)    scaleX(1);     }
}

/* Ondulation de chaleur au-dessus de la bouche du four — distorsion d'air, discrète */
.hero__heat {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 70%;
  max-width: 720px;
  height: 46%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  background: radial-gradient(ellipse at 50% 80%, rgba(255,120,40,0.12) 0%, rgba(255,90,20,0.05) 38%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 2;
  will-change: transform, opacity;
  animation: hero-heat 6.8s ease-in-out infinite;
}
@keyframes hero-heat {
  0%, 100% { transform: translateX(-50%) skewX(0deg)   scaleY(1);    opacity: 0.7; }
  50%      { transform: translateX(-50%) skewX(0.9deg) scaleY(1.05); opacity: 0.92; }
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 5;
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
  padding: clamp(92px, 12vh, 150px) 0 clamp(86px, 10vh, 124px);
}
.hero__title {
  font-size: clamp(56px, 8.8vw, 132px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--text-primary);
  max-width: 10.8ch;
  margin: 18px auto 0;
  text-shadow: 0 6px 40px rgba(0,0,0,0.6);
}
.hero__tagline {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #e8d8c4;
  line-height: 1.7;
  font-style: italic;
  margin: 22px auto 32px;
  max-width: 620px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
.hero__cta {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
/* Entrée hero chorégraphiée — un seul flourish, transform/opacity */
.hero__content > * {
  animation: hero-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero__content > *:nth-child(1) { animation-delay: 0.15s; }
.hero__content > *:nth-child(2) { animation-delay: 0.28s; }
.hero__content > *:nth-child(3) { animation-delay: 0.42s; }
.hero__content > *:nth-child(4) { animation-delay: 0.52s; }
.hero__content > *:nth-child(5) { animation-delay: 0.64s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200,168,130,0.4), transparent);
  margin: 0 auto 8px;
}
.hero__scroll span {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ============================================
   LA CARTE
   ============================================ */
.carte { text-align: center; }
.carte__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 30px auto 38px;
  padding: 6px;
  flex-wrap: wrap;
  border: 1px solid rgba(200,168,130,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.carte__filter {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.carte__filter.active,
.carte__filter:hover {
  background: rgba(200,168,130,0.16);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(200,168,130,0.18);
}
.carte__filter:hover {
  transform: translateY(-1px);
}
.carte__filter--drinks {
  margin-left: 0;
}
.carte__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}
.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.card__name {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.card__veg {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8fb87a;
  border: 1px solid rgba(143,184,122,0.35);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: 2px;
  white-space: nowrap;
}
.card__desc {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}
.card__price { text-align: right; min-width: 50px; }
.card__size {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.card__amount {
  font-size: 18px;
  color: var(--accent);
}
.card__footer {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.card__base {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.card__base--tomate { background: var(--error); }
.card__base--creme { background: var(--text-primary); }
.card__base-label {
  font-size: 11px;
  color: var(--text-dim);
}
.card__price-alt {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}
.card--hidden { display: none !important; }
.carte__allergens {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

/* ============================================
   NOTRE HISTOIRE — TIMELINE
   ============================================ */
.timeline { padding-top: 40px; }
.timeline__track {
  margin-top: 50px;
  position: relative;
  padding-left: 40px;
}
.timeline__track::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,120,30,0.3), rgba(200,168,130,0.2), transparent);
}
.timeline__chapter {
  position: relative;
  padding: 0 0 60px 30px;
}
.timeline__chapter:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -26px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.timeline__title {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 10px 0 14px;
}
.timeline__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 440px;
}
.timeline__badges {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ============================================
   GALERIE
   ============================================ */
.galerie__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 8px;
  margin-top: 30px;
}
.galerie__item {
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.galerie__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200,130,50,0);
  transition: background 0.3s;
}
.galerie__item:hover::after {
  background: rgba(200,130,50,0.08);
}
.galerie__item:hover .galerie__placeholder {
  transform: scale(1.03);
}
.galerie__item--large {
  grid-row: span 2;
}
.galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.galerie__item:hover img { transform: scale(1.05); }
.galerie__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 28px 16px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f5e6d3;
  background: linear-gradient(to top, rgba(8,6,4,0.85), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.galerie__item:hover .galerie__caption {
  opacity: 1;
  transform: translateY(0);
}
.galerie__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  position: relative;
}
.galerie__placeholder span {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  z-index: 1;
}
.galerie__placeholder-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: radial-gradient(ellipse at center bottom, rgba(255,100,20,0.2), transparent);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
}
.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.lightbox__img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox__cap {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================
   CONTACT + INFOS
   ============================================ */
.contact__cta {
  text-align: center;
  padding: 50px 40px;
  background: linear-gradient(135deg, rgba(255,120,30,0.06), rgba(200,100,20,0.03));
  border: 1px solid rgba(200,168,130,0.08);
  border-radius: 12px;
  margin-bottom: 40px;
}
.contact__cta-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.contact__cta-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.contact__cta-buttons {
  display: inline-flex;
  gap: 16px;
}
.contact__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.contact__block .label { margin-bottom: 8px; display: block; }
.contact__address {
  display: inline-block;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: rgba(255,120,30,0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.contact__address:hover {
  color: var(--accent);
  text-decoration-color: var(--ember);
}
.contact__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--text-primary);
}
.contact__day { color: var(--text-muted); }
.contact__day--closed { color: var(--error); font-style: italic; }
.contact__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.contact__services {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 20px 40px;
  border-top: 1px solid rgba(200,168,130,0.08);
  margin: 0;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__logo {
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.footer__sub {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}
.footer__social { display: flex; gap: 16px; }
.footer__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
  transition: all 0.3s;
}
.footer__icon:hover {
  background: rgba(200,168,130,0.1);
  border-color: var(--accent);
}
.footer__copy {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 767px) {
  /* Nav — menu plein écran animé */
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    padding: clamp(112px, 22vh, 150px) 34px 46px;
    background:
      radial-gradient(ellipse at 85% 8%, rgba(255,90,20,0.14), transparent 55%),
      rgba(9,8,7,0.98);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
    counter-reset: navitem;
  }
  .nav__links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.45s ease, visibility 0s;
  }
  .nav__link {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1.12;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0.4px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1), color 0.3s;
  }
  .nav__link::before {
    counter-increment: navitem;
    content: "0" counter(navitem);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--ember);
    vertical-align: middle;
    margin-right: 16px;
    opacity: 0.85;
  }
  .nav__links.open .nav__link { opacity: 1; transform: none; }
  .nav__links.open .nav__link:nth-child(1) { transition-delay: 0.10s; }
  .nav__links.open .nav__link:nth-child(2) { transition-delay: 0.17s; }
  .nav__links.open .nav__link:nth-child(3) { transition-delay: 0.24s; }
  .nav__links.open .nav__link:nth-child(4) { transition-delay: 0.31s; }
  .nav__link:hover, .nav__link:focus-visible { color: var(--accent); }
  .nav__phone { display: none; }
  .nav__burger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: -8px;
  }

  /* Hero */
  .hero__content {
    width: calc(100% - 36px);
    max-width: 520px;
    padding: 108px 0 86px;
  }
  .hero__title {
    font-size: clamp(46px, 15vw, 64px);
    max-width: 8.8ch;
  }
  .hero__tagline { font-size: 14px; max-width: 34ch; }
  .hero__tagline br { display: none; }
  .hero__cta { flex-direction: column; gap: 12px; }
  .hero__cta .btn { width: min(100%, 340px); }

  /* Carte */
  .carte__filters {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 24px 0 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .carte__filters::-webkit-scrollbar { display: none; }
  .carte__filter {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 18px;
    font-size: 10px;
  }
  .carte__grid { grid-template-columns: 1fr; }

  /* Timeline */
  .timeline__title { font-size: 22px; }
  .timeline__track { padding-left: 30px; }

  /* Galerie */
  .galerie__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 150px 150px;
  }
  .galerie__item--large { grid-row: span 1; grid-column: span 2; }

  /* Contact */
  .contact__cta-buttons { flex-direction: column; gap: 12px; }
  .contact__split { grid-template-columns: 1fr; }
  #contact.section { padding-bottom: 28px; }

  /* Footer */
  .footer { padding: 18px 20px max(18px, env(safe-area-inset-bottom)); }
  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
/* ============================================
   CHIFFRES CLÉS (compteurs)
   ============================================ */
.stats { padding-top: 50px; padding-bottom: 50px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  text-align: center;
  padding: 34px 16px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat__num {
  display: block;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   MOMENT TERROIR (marquee)
   ============================================ */
.marquee {
  position: relative;
  padding: 22px 0;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(8,6,4,0), rgba(42,28,18,0.42) 24%, rgba(42,28,18,0.42) 76%, rgba(8,6,4,0));
}
.marquee__viewport {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 14px;
}
.marquee__item {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1;
  color: var(--text-primary);
  padding: 6px 14px;
}
.marquee__dot {
  margin: 0 12px;
  color: var(--ember);
  font-size: 13px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Photo église — accord avec le thème nocturne */
.galerie__item--eglise img { filter: saturate(1.05) contrast(1.04) brightness(0.93); }

@media (max-width: 767px) {
  .marquee {
    padding: 18px 0;
  }
  .marquee__track {
    animation-duration: 24s;
  }
  .marquee__group {
    padding: 0 10px;
  }
  .marquee__item {
    font-size: 21px;
    padding: 5px 12px;
  }
  .marquee__dot {
    margin: 0 9px;
  }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }
}

/* ============================================
   HISTOIRE — timeline scroll-stack (chapitres qui se remplacent)
   ============================================ */
.histoire { position: relative; background: var(--bg-primary); }
.histoire__scroll { height: auto; }
.js .histoire__scroll { height: 190vh; }
.histoire__pin {
  position: static;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 40px;
}
.js .histoire__pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.histoire__kicker, .histoire__head { text-align: center; }
.histoire__stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-top: 66px;
  display: grid;
  grid-template-columns: 34px minmax(0, 620px);
  justify-content: center;
  gap: 28px;
}
/* Rail : ligne + 3 points alignés (centre 14,5px) */
.histoire__rail { display: none; position: relative; min-height: 430px; }
.js .histoire__rail { display: block; }
.histoire__line, .histoire__fill {
  position: absolute; left: 14px; top: -10px; width: 1px;
}
.histoire__line { bottom: -22px; background: rgba(200,168,130,0.18); }
.histoire__fill {
  height: calc(100% + 12px);
  background: linear-gradient(to bottom, var(--ember), var(--accent));
  box-shadow: 0 0 8px rgba(255,120,30,0.3);
  transform: scaleY(var(--hp, 0));
  transform-origin: top center;
  will-change: transform;
}
.histoire__dot {
  position: absolute; left: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(200,168,130,0.28);
  transform: translateY(-50%);
  transition: background 0.4s ease, box-shadow 0.4s ease, scale 0.4s cubic-bezier(0.16,1,0.3,1);
}
.histoire__dot[data-i="0"] { top: 6%; }
.histoire__dot[data-i="1"] { top: 52%; }
.histoire__dot[data-i="2"] { top: 98%; }
.histoire__dot.is-on {
  background: var(--ember);
  box-shadow: 0 0 14px rgba(255,120,30,0.6);
  scale: 1.35;
}
/* Chapitres empilés qui se remplacent */
.histoire__chapters {
  position: relative;
  min-height: 430px;
  transform: translate3d(0, var(--htext-y, 0px), 0);
  will-change: transform;
}
.histoire__scroll.has-gsap-history .histoire__chapter,
.histoire__scroll.has-gsap-history .histoire__dot {
  transition: none;
}
.js .histoire__chapter {
  position: absolute;
  inset: 0;
  max-width: 620px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.36s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: transform, opacity;
}
.js .histoire__chapter.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.histoire__chapter:not(:last-child) { margin-bottom: 48px; }
.histoire__title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 10px 0 14px;
}
.histoire__text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 56ch;
}
.histoire .timeline__badges { max-width: 560px; }
@media (max-width: 767px) {
  .js .histoire__scroll { height: 160vh; }
  .js .histoire__pin { padding: 38px 20px; }
  .histoire__head { font-size: 32px; }
  .histoire__stage { margin-top: 44px; }
  .histoire__stage { grid-template-columns: 22px 1fr; gap: 16px; max-width: 100%; }
  .histoire__rail { min-height: 430px; }
  .histoire__line, .histoire__fill { left: 10px; }
  .histoire__dot { left: 6px; }
  .histoire__title { font-size: 24px; }
  .histoire__chapters { min-height: 430px; }
  .histoire__text { font-size: 14px; max-width: none; }
  .histoire .timeline__badges { max-width: 100%; }
  .histoire .pill { white-space: normal; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  .js .histoire__scroll { height: auto; }
  .js .histoire__pin { position: static; min-height: 0; display: block; padding: 100px 40px; }
  .histoire__chapters { transform: none; }
  .js .histoire__chapter { position: relative; inset: auto; opacity: 1; transform: none; transition: none; pointer-events: auto; }
  .histoire__fill { height: 100%; }
  .histoire__dot { background: var(--ember); }
}

/* ============================================
   SCÈNE SCROLL-DRIVEN — L'ART DU FEU
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--ember), #ffb066);
  z-index: 200;
  pointer-events: none;
}

.scene {
  position: relative;
  height: 100vh;
  min-height: 640px;
  --p: 1;
  background: #080604;
}
.js .scene { height: 150vh; --p: 0; }
.scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  padding: 84px 24px 60px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.scene__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 74%, rgba(255,110,20,0.6), rgba(255,60,0,0.18) 42%, transparent 70%);
  opacity: var(--p);
}
.scene__haze {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  z-index: 0;
  background: linear-gradient(to top, rgba(255,90,10,0.12), transparent);
  mix-blend-mode: screen;
  opacity: var(--p);
}
.scene__kicker { position: absolute; top: 15%; z-index: 3; }
.scene__flame {
  width: clamp(148px, 18vw, 248px);
  height: auto;
  z-index: 2;
  transform-origin: 50% 95%;
  transform: translateY(18px) scale(calc(0.64 + var(--p) * 0.48));
  opacity: calc(0.58 + var(--p) * 0.42);
  filter: drop-shadow(0 0 calc(12px + var(--p) * 55px) rgba(255,120,30, calc(0.3 + var(--p) * 0.6)));
}
.scene__flame-outer,
.scene__flame-inner,
.scene__flame-wisp,
.scene__flame-spark {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene__flame-outer { stroke: url(#flameLine); stroke-width: 1.7; }
.scene__flame-inner { stroke: #ffd488; stroke-width: 1; opacity: 0.8; }
.scene__flame-wisp { stroke: #ffe7ad; stroke-width: 0.7; opacity: 0.6; }
.scene__flame-spark {
  stroke: #fff3cf;
  stroke-width: 1.5;
  stroke-dasharray: 14 600;
  filter: url(#flameSoft);
  animation: ember-run 2.25s linear infinite;
}
.scene__flame-warm { opacity: calc(0.28 + var(--p) * 0.5); }
.scene__flame-embers { opacity: calc(var(--p) * 0.55); filter: url(#flameSoft); }
.scene__flame-spark2 {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #fff3cf;
  stroke-width: 1.1;
  stroke-dasharray: 10 520;
  opacity: 0.8;
  filter: url(#flameSoft);
  animation: ember-run 2.25s linear infinite;
  animation-delay: -1.1s;
}
.scene__flame-licks {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  will-change: transform;
  animation: heat-haze 2.4s ease-in-out infinite;
}
.scene__flame-lick {
  transform-box: view-box;
  fill: none;
  stroke: url(#flameLine);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  will-change: transform, opacity;
  animation: flame-lick-rise 2.15s ease-out infinite;
}
.scene__flame-lick:nth-child(1) { animation-delay: 0s;   animation-duration: 1.9s; }
.scene__flame-lick:nth-child(2) { animation-delay: 0.28s; animation-duration: 2.25s; }
.scene__flame-lick:nth-child(3) { animation-delay: 0.56s; animation-duration: 1.85s; }
.scene__flame-lick:nth-child(4) { animation-delay: 0.84s; animation-duration: 2.35s; }
.scene__flame-lick:nth-child(5) { animation-delay: 0.42s; animation-duration: 2.05s; }
.scene__flame-lick:nth-child(6) { animation-delay: 1.1s; animation-duration: 1.95s; }
@keyframes flame-lick-rise {
  0%   { transform: translate(0px, 0px); opacity: 0; }
  12%  { opacity: 0.9; }
  45%  { transform: translate(calc(var(--dx, 0px) * 0.45), -26px); opacity: 0.65; }
  72%  { transform: translate(calc(var(--dx, 0px) * 0.8), -50px); opacity: 0.3; }
  100% { transform: translate(var(--dx, 0px), -78px); opacity: 0; }
}
@keyframes heat-haze {
  0%, 100% { transform: skewX(0deg) scaleY(1); }
  50%      { transform: skewX(1.6deg) scaleY(1.03); }
}
.scene__flame-sway {
  transform-origin: 50% 96%;
  will-change: transform;
  animation: flame-sway 2.9s ease-in-out infinite;
}
.scene__flame-lines {
  transform-origin: 50% 96%;
  will-change: transform;
  animation: flame-breathe 1.9s ease-in-out infinite;
}
@keyframes flame-sway {
  0%, 100% { transform: rotate(0deg) skewX(0deg); }
  50%      { transform: rotate(0.8deg) skewX(2deg); }
}
@keyframes flame-breathe {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50%      { transform: scaleY(1.045) translateY(-2px); }
}
@keyframes ember-run {
  from { stroke-dashoffset: 614; }
  to   { stroke-dashoffset: 0; }
}
.scene__temp {
  position: absolute;
  top: 23%;
  z-index: 3;
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  opacity: calc(0.25 + var(--p) * 0.75);
  text-shadow: 0 0 40px rgba(255,120,30, calc(var(--p) * 0.5));
}
.scene__deg { font-size: 0.5em; vertical-align: super; }
.scene__steps {
  position: absolute;
  bottom: 24%;
  z-index: 3;
  width: 100%;
  height: 1.1em;
  text-align: center;
}
.scene__word {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(10px);
  font-size: clamp(36px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.scene__word:last-child { opacity: 1; transform: translateX(-50%); }
.js .scene__word:last-child { opacity: 0; transform: translateX(-50%) translateY(10px); }
.js .scene__word.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.scene__hint {
  position: absolute;
  bottom: 7%;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: calc(0.6 - var(--p) * 0.6);
}
@media (max-width: 767px) {
  .scene { min-height: 560px; }
  .js .scene { height: 132vh; }
  .scene__sticky { min-height: 560px; padding: 58px 20px 44px; }
  .scene__flame { width: clamp(138px, 48vw, 186px); transform: translateY(10px) scale(calc(0.68 + var(--p) * 0.42)); }
  .scene__temp { top: 22%; font-size: clamp(54px, 17vw, 74px); }
  .scene__kicker { top: 11%; }
  .scene__steps { bottom: 25%; }
  .scene__word { font-size: clamp(38px, 13vw, 56px); }
  .scene__hint { bottom: 8%; }
}

/* ============================================
   MOTION — révélations, transitions, interactions
   ============================================ */

/* Révélation au scroll, élément par élément (cascade) — masqué seulement si JS actif */
.js .fx, .js .fx-clip { opacity: 0; }
.fx.fx-in {
  animation: fx-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) both;
  will-change: transform, opacity;
}
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* Galerie — révélation avec voile (clip-path / mask) */
.fx-clip.fx-in {
  animation: fx-clip-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms) both;
  will-change: transform, opacity, clip-path;
}
@keyframes fx-clip-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(1.05); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}

/* Filtre carte — re-cascade au changement */
@keyframes card-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Séparateur qui se trace */
.reveal .separator { width: 0; }
.reveal.visible .separator {
  width: 40px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

/* Ligne de timeline qui se dessine (line-drawing) */
.timeline__track::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.timeline.visible .timeline__track::before { transform: scaleY(1); }

/* Boutons — ressenti tactile + ripple */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(0.97); }
.btn--primary:active { transform: translateY(-1px) scale(0.97); }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  pointer-events: none;
  animation: ripple-out 0.6s ease-out forwards;
}
@keyframes ripple-out { to { transform: scale(2.6); opacity: 0; } }

/* Téléphone nav — pulsation discrète (idle) */
@media (hover: hover) {
  .nav__phone { animation: phone-pulse 3s ease-in-out infinite; }
  .nav__phone:hover { animation-play-state: paused; }
}
@keyframes phone-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 120, 30, 0); }
  50% { box-shadow: 0 0 0 5px rgba(255, 120, 30, 0.07); }
}

/* Nav — entrée de la chrome + soulignement origin-aware */
@keyframes nav-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
.nav { animation: nav-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.nav__link { position: relative; }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .hero__media { animation: none; }
  .flame, .hero__fire-bed { animation: none; }
  .hero__ember { animation: none; opacity: 0; }
  .hero__heat { animation: none; }
  .hero__firelight { animation: none; opacity: 0.9; }
  .hero__content > * { animation: none; }
  .card:hover { transform: none; }
  .galerie__item:hover img { transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .fx, .fx-clip { opacity: 1 !important; }
  .fx.fx-in, .fx-clip.fx-in { animation: none !important; }
  .reveal .separator { width: 40px; transition: none; }
  .timeline__track::before { transform: scaleY(1); transition: none; }
  .nav__phone { animation: none !important; }
  .ripple { display: none !important; }
  .marquee__track { animation: none !important; }
  .nav { animation: none !important; }
  .nav__link::after { transition: none; }
  .nav__links, .nav__link, .nav__burger span { transition: none !important; }
  .nav__links .nav__link { transform: none; }
  .scene, .js .scene { height: 100vh; --p: 1; }
  .scene__word { transition: none; }
  .scene__word:last-child { opacity: 1; }
  .scene__flame-sway, .scene__flame-lines, .scene__flame-spark,
  .scene__flame-spark2, .scene__flame-lick, .scene__flame-licks { animation: none; }
  .scene__flame-lick { opacity: 0; }
  .scroll-progress { display: none; }
  * { scroll-behavior: auto; }
}
