/* ═══════════════════════════════════════════════════════
   LES TEMPLIERS 24 · V3
   Dark cinematic heritage · Cursor glow · Motion-first
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────── */
:root {
  --bg:              #070604;
  --bg-soft:         #0f0c07;
  --bg-card:         #110e08;
  --card:            rgba(255, 255, 255, 0.04);
  --card-hover:      rgba(255, 255, 255, 0.07);
  --card-border:     rgba(201, 162, 39, 0.18);
  --card-border-hover: rgba(201, 162, 39, 0.6);
  --text:            #F4EEE2;
  --text-dim:        #d4c9b0;
  --muted:           #B8AB8F;
  --primary:         #C9A227;
  --primary-light:   #E8C65A;
  --primary-dim:     rgba(201, 162, 39, 0.1);
  --secondary:       #8B1E2B;
  --secondary-light: #B4303F;
  --radius:          18px;
  --radius-sm:       10px;
  --radius-lg:       28px;
  --shadow:          0 24px 70px rgba(0, 0, 0, 0.6);
  --shadow-gold:     0 0 60px rgba(201, 162, 39, 0.15);
  --t:               0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── Base ────────────────────────────────────────────── */
body {
  min-height: 100svh;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}


/* ── Grain texture overlay ───────────────────────────── */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Cursor glow désactivé */
#cursor-glow, #cursor-dot { display: none; }

/* ── Scroll progress ─────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary-light), var(--primary-light));
  z-index: 300;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── Background radial gradients ─────────────────────── */
.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: fixed; border-radius: 50%;
  filter: blur(120px); opacity: 0.18;
  z-index: -1; animation: driftOrb 20s ease-in-out infinite alternate;
  pointer-events: none;
}
.bg-orbs::before { width: 600px; height: 600px; background: var(--primary); top: -8%; left: -12%; }
.bg-orbs::after  { width: 500px; height: 500px; background: var(--secondary); bottom: -6%; right: -10%; animation-delay: 4s; }

/* ── Header ──────────────────────────────────────────── */
/* ── Barre compte à rebours ──────────────────────────── */
.countdown-bar {
  background: rgba(201, 162, 39, 0.1);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.countdown-bar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}
.countdown-bar-units {
  display: flex;
  align-items: center;
  gap: 4px;
}
.countdown-bar-unit {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.countdown-bar-unit span {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-light);
  min-width: 1.6ch;
  text-align: right;
}
.countdown-bar-unit small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-bar-sep {
  color: var(--primary);
  font-weight: 700;
  opacity: 0.5;
  padding: 0 2px;
  font-size: 0.9rem;
}
@media (max-width: 480px) {
  .countdown-bar { gap: 8px; padding: 6px 14px; }
  .countdown-bar-label { font-size: 0.62rem; }
  .countdown-bar-unit span { font-size: 0.9rem; }
}

.header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  backdrop-filter: blur(24px) saturate(1.5);
  background: rgba(7, 6, 4, 0.65);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  transition: padding var(--t), background var(--t), border-color var(--t);
}
.header.scrolled {
  background: rgba(7, 6, 4, 0.94);
  border-bottom-color: rgba(201, 162, 39, 0.25);
}
.navbar {
  max-width: 1240px; margin: auto;
  padding: 15px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: padding var(--t);
}
.header.scrolled .navbar { padding-top: 10px; padding-bottom: 10px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 0.98rem; letter-spacing: 0.03em; flex-shrink: 0;
}
.brand img {
  width: 40px; height: 40px; object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(201, 162, 39, 0.6));
  transition: filter var(--t), transform var(--t);
}
.brand:hover img { filter: drop-shadow(0 0 26px rgba(201, 162, 39, 1)); transform: rotate(-5deg) scale(1.1); }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  color: var(--muted); font-size: 0.88rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
  transition: color var(--t), background var(--t);
  position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--primary-light); background: rgba(201,162,39,0.09); }
.nav-links a.active::after {
  content: ""; position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 2px;
  background: var(--primary-light); border-radius: 999px;
}

/* ── Menu toggle ─────────────────────────────────────── */
.menu-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 42px; height: 42px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border);
  border-radius: 10px; cursor: pointer; transition: background var(--t);
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, #9a7a18 50%, var(--secondary) 100%);
  background-size: 220% 220%; background-position: 0% 0%;
  color: #0d0a04; font-weight: 800; font-size: 0.92rem;
  border: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 24px rgba(201,162,39,0.22);
  transition: transform var(--t), box-shadow var(--t), background-position 0.5s ease;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0; transition: opacity var(--t);
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 40px rgba(201,162,39,0.4); background-position: 100% 100%; }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  color: var(--text); box-shadow: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--card-border-hover); box-shadow: var(--shadow-gold); }
.btn-secondary::after { display: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-light); box-shadow: none; }
.btn-ghost::after { display: none; }
.btn-small { padding: 9px 20px; font-size: 0.82rem; }

/* ── Typography ──────────────────────────────────────── */
h1 {
  font-family: "Cinzel", Georgia, serif; font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 20px;
}
h2 {
  font-family: "Cinzel", Georgia, serif; font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1; margin-bottom: 18px;
}
h3 { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 9px; line-height: 1.3; }

.gradient-title {
  background: linear-gradient(135deg,
    var(--primary) 0%, #fff 30%, var(--primary-light) 50%, #fff 70%, var(--primary) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}
.eyebrow {
  color: var(--primary-light); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 900;
  margin-bottom: 14px; display: block;
}
.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 20px; color: var(--primary-light); font-weight: 800; font-size: 0.88rem;
  transition: gap var(--t), color var(--t);
}
.text-link:hover { gap: 12px; color: #fff; }

/* ── Layout ──────────────────────────────────────────── */
.section { max-width: 1240px; margin: auto; padding: 88px 28px; }
.section-heading { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-heading p { color: var(--muted); }
.page-main { padding-top: 72px; }

/* ── Page intro compact ──────────────────────────────── */
.page-intro {
  max-width: 1240px; margin: 0 auto; padding: 44px 28px 36px;
  border-bottom: 1px solid var(--card-border);
}
.page-intro .eyebrow { margin-bottom: 8px; }
.page-intro h1 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 600; margin-bottom: 10px; line-height: 1.15; }
.page-intro p { color: var(--muted); font-size: 0.93rem; max-width: 560px; line-height: 1.7; }
.page-hero-wrap { padding: 44px 28px 30px; }

/* ── Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.reveal.visible { opacity: 1; }

.stagger-children > * {
  opacity: 0;
  transition: opacity 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-children > * { transition: none; opacity: 1; }
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100svh; position: relative;
  display: flex; align-items: center;
  padding: 130px 28px 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(201,162,39,0.1) 0%, transparent 60%),
              radial-gradient(ellipse 50% 60% at 100% 50%, rgba(139,30,43,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Moto positionée en fond à droite */
.hero-moto {
  position: absolute;
  right: 0;
  top: 0; bottom: 0;
  width: 52vw;
  max-width: 820px;
  pointer-events: none;
  z-index: 1;
}
.hero-moto img {
  width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(-20px 0 80px rgba(201,162,39,0.2)) drop-shadow(0 30px 60px rgba(0,0,0,0.7));
  animation: floatMoto 8s ease-in-out infinite;
  display: block;
}

/* Décoration "XXV" géant en fond */
.hero-deco-xxv {
  position: absolute;
  right: 2%;
  top: 50%; transform: translateY(-50%);
  font-family: "Cinzel", serif;
  font-size: clamp(12rem, 22vw, 22rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 39, 0.08);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.95; margin-bottom: 0;
}
.hero-tagline {
  display: flex; align-items: center; gap: 16px;
  margin: 18px 0 22px;
}
.hero-tagline-line {
  flex: 1; max-width: 80px; height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.hero-tagline-text {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary-light);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted); line-height: 1.6; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }


.scroll-indicator {
  position: absolute; bottom: 36px; left: 28px;
  display: flex; align-items: center; gap: 10px;
  color: rgba(184,171,143,0.6); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.8s both;
  z-index: 2;
}
.scroll-indicator::before {
  content: ""; display: block;
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--primary));
  animation: scrollLine 2s ease-in-out infinite;
}

/* ── Marquee ─────────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
  padding: 14px 0; background: rgba(201,162,39,0.025); position: relative;
}
.marquee-strip::before, .marquee-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee-strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-strip::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite; will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  color: var(--primary-light); font-family: "Cinzel", serif;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.marquee-sep { color: rgba(201,162,39,0.3); font-size: 1rem; }

/* ── Stats ───────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat-card {
  padding: 36px 28px; text-align: center;
  background: var(--card); backdrop-filter: blur(20px);
  border-right: 1px solid var(--card-border);
  transition: background var(--t), box-shadow var(--t);
  position: relative; overflow: hidden;
}
.stat-card:last-child { border-right: none; }
.stat-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,50%), rgba(201,162,39,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--t); pointer-events: none;
}
.stat-card:hover { background: var(--card-hover); }
.stat-card:hover::after { opacity: 1; }
.stat-card strong {
  display: block; font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700;
  color: var(--primary-light); line-height: 1; margin-bottom: 10px;
}
.stat-card span { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }

/* ── Section accent band ─────────────────────────────── */
.section-band {
  background: linear-gradient(135deg, rgba(139,30,43,0.06) 0%, rgba(201,162,39,0.04) 100%);
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
}

/* ── Glass / cards ───────────────────────────────────── */
.glass-panel {
  padding: 34px 38px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); backdrop-filter: blur(22px); box-shadow: var(--shadow);
}
.glass-panel p { color: var(--muted); line-height: 1.75; }
.glass-panel p + p { margin-top: 14px; }
.glass-panel strong { color: var(--text); }
.glass-panel h3 { margin-top: 26px; }
.glass-panel h3:first-child { margin-top: 0; }

.card, .value-card, .team-card, .edition-card, .contact-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px);
  position: relative; overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t), background var(--t);
}
.card::after, .value-card::after, .pillar-card::after, .edition-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,50%), rgba(201,162,39,0.08) 0%, transparent 55%);
  opacity: 0; transition: opacity var(--t); pointer-events: none;
}
.card:hover::after, .value-card:hover::after, .pillar-card:hover::after, .edition-card:hover::after { opacity: 1; }
.card, .value-card, .team-card { padding: 28px; }
.card:hover, .value-card:hover, .team-card:hover, .edition-card:hover {
  border-color: var(--card-border-hover); transform: translateY(-5px);
  box-shadow: 0 32px 72px rgba(0,0,0,0.5), var(--shadow-gold); background: var(--card-hover);
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }

/* ── Value cards ─────────────────────────────────────── */
.value-card .icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(201,162,39,0.1); border: 1px solid rgba(201,162,39,0.22);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.value-card .icon svg { width: 24px; height: 24px; stroke: var(--primary-light); fill: none; stroke-width: 1.8; }

/* ── Pillar cards ────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar-card {
  padding: 30px 26px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); backdrop-filter: blur(18px);
  position: relative; overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.pillar-card::before {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity var(--t);
}
.pillar-card:hover { border-color: var(--card-border-hover); transform: translateY(-5px); box-shadow: var(--shadow-gold); }
.pillar-card:hover::before { opacity: 1; }
.pillar-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(201,162,39,0.08); border: 1px solid rgba(201,162,39,0.2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.pillar-icon svg { width: 24px; height: 24px; stroke: var(--primary-light); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Tilt ────────────────────────────────────────────── */
.tilt-card { transform-style: preserve-3d; }

/* ── Team cards ──────────────────────────────────────── */
.team-card img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 2px solid var(--card-border); }
.team-card span { color: var(--primary-light); font-size: 0.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Edition featured (spotlight 2026) ───────────────── */
.edition-featured {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(139,30,43,0.18) 0%, rgba(201,162,39,0.06) 50%, rgba(7,6,4,0) 100%);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  margin-bottom: 28px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 40px;
}
.edition-featured::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary), transparent);
}
.edition-featured-xxv {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  font-family: "Cinzel", serif; font-size: clamp(8rem, 14vw, 14rem); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(201,162,39,0.1);
  line-height: 1; letter-spacing: -0.04em;
  pointer-events: none; user-select: none; z-index: 0;
}
.edition-featured-content { position: relative; z-index: 1; }
.edition-featured-content .badge {
  color: var(--primary-light); font-size: 0.72rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.16em; display: block; margin-bottom: 10px;
}
.edition-featured-year {
  font-family: "Cinzel", serif; font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700; color: var(--primary-light); line-height: 1; margin: 4px 0 12px;
}
.edition-featured-content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; }
.edition-featured-content p { color: var(--muted); max-width: 480px; line-height: 1.7; margin-bottom: 24px; }

/* ── Edition cards ───────────────────────────────────── */
.edition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.edition-card { padding: 26px; cursor: pointer; }
.edition-card .badge {
  color: var(--primary-light); font-size: 0.75rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 5px;
}
.edition-card .year {
  font-family: "Cinzel", serif; font-size: 2rem; color: var(--text); margin: 4px 0; line-height: 1;
}
.edition-card p { color: var(--muted); font-size: 0.86rem; margin-top: 6px; line-height: 1.6; }
.edition-card.is-locked { opacity: 0.45; filter: grayscale(0.5); pointer-events: none; }
.edition-card .status { display: inline-block; margin-top: 12px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; color: var(--primary-light); }
.edition-card.is-locked .status { color: var(--muted); }
.programme-tile { display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.btn.programme-tile { display: inline-flex; width: auto; }

/* ── Programme thumb ─────────────────────────────────── */
.programme-thumb {
  width: 100%; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
  margin-bottom: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border);
  display: grid; place-items: center;
}
.programme-thumb img { width: 100%; height: 100%; object-fit: cover; }
.programme-thumb .placeholder-icon { font-size: 2.2rem; opacity: 0.5; }

/* ── Recap interactive ───────────────────────────────── */
.recap-interactive {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-border); box-shadow: var(--shadow);
  transform-style: preserve-3d;
  will-change: transform;
}

/* Balayage doré à l'entrée dans le viewport */
.recap-interactive::before {
  content: "";
  position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(201,162,39,0.18) 50%, transparent 100%);
  z-index: 5; pointer-events: none;
  opacity: 0;
}
.recap-interactive.sweep::before {
  opacity: 1;
  animation: recapSweep 1.1s cubic-bezier(0.4,0,0.2,1) forwards;
}

.recap-image {
  width: 100%; display: block;
  transform: scale(1.0);
  transform-origin: center;
  transition: transform 0.3s ease-out, filter 0.3s ease;
  will-change: transform;
}

/* Dim de l'image quand on survole une zone */
.recap-interactive.is-hovering .recap-image {
  filter: brightness(0.55) saturate(0.7);
}

.recap-hotspot {
  position: absolute; border: none; padding: 0; margin: 0;
  width: auto; height: auto;
  background: transparent; cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}
.recap-hotspot:hover, .recap-hotspot:focus-visible {
  background: rgba(201,162,39,0.12);
  box-shadow: inset 0 0 0 2px var(--primary-light),
              inset 0 0 28px rgba(201,162,39,0.1);
  outline: none;
}
/* Zone active : image locale rééclaircit via mix-blend */
.recap-hotspot:hover::after, .recap-hotspot:focus-visible::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(201,162,39,0.06);
  mix-blend-mode: screen;
}

.recap-hint {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 22px 16px;
  background: linear-gradient(to top, rgba(5,3,2,0.97) 0%, rgba(5,3,2,0.7) 60%, transparent 100%);
  color: var(--primary-light); font-weight: 700; font-size: 0.88rem;
  pointer-events: none; z-index: 3;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

@keyframes recapSweep {
  0%   { left: -80%; opacity: 1; }
  100% { left: 120%; opacity: 1; }
}

/* ── Recap pins ──────────────────────────────────────── */
.recap-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; z-index: 2;
}
.pin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(232,198,90,0.35);
  position: relative; display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pin-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(232,198,90,0.5);
  animation: pinPulse 2s ease-in-out infinite;
}
.pin-label {
  background: rgba(7,6,4,0.85);
  color: var(--primary-light);
  font-size: 0.68rem; font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 999px;
  border: 1px solid rgba(232,198,90,0.4);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.recap-pin:hover .pin-dot,
.recap-pin:focus-visible .pin-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 5px rgba(232,198,90,0.25);
}
.recap-pin:hover .pin-label,
.recap-pin:focus-visible .pin-label {
  opacity: 1; transform: translateY(0);
}
.recap-pin:focus-visible { outline: none; }

@keyframes pinPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  60%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── CTA banner ──────────────────────────────────────── */
.cta-banner {
  text-align: center; padding: 60px 40px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 120%, rgba(201,162,39,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }

/* ── Film cards ──────────────────────────────────────── */
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.film-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: border-color var(--t), transform var(--t);
}
.film-card:hover { border-color: var(--card-border-hover); transform: translateY(-4px); }
.film-card .film-embed { position: relative; display: block; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.film-card .film-embed img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.film-card .film-embed:hover img { transform: scale(1.06); }
.film-card .film-embed .play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.film-card .film-embed .play-badge span {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(5,3,2,0.7); border: 2px solid rgba(255,255,255,0.9);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; padding-left: 3px;
  transition: background var(--t), transform var(--t);
}
.film-card .film-embed:hover .play-badge span { background: var(--secondary); transform: scale(1.1); }
.film-card .film-info { padding: 18px 20px; }
.film-card .film-info span { color: var(--primary-light); font-weight: 900; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Timeline ────────────────────────────────────────── */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--primary), transparent); opacity: 0.35;
}
.timeline-item {
  padding: 20px 22px 20px 54px; position: relative;
  border-radius: var(--radius-sm); transition: background var(--t);
}
.timeline-item:hover { background: rgba(201,162,39,0.03); }
.timeline-item::before {
  content: ""; position: absolute; left: 14px; top: 27px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-soft); border: 2px solid var(--primary);
  box-shadow: 0 0 12px rgba(201,162,39,0.4);
}
.timeline-item span { color: var(--primary-light); font-weight: 900; font-size: 0.95rem; display: block; margin-bottom: 5px; }
.timeline-item p { color: var(--muted); line-height: 1.65; font-size: 0.92rem; }

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,3,2,0.9); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-box {
  position: relative; width: 100%; max-width: 950px; max-height: 90svh;
  display: flex; flex-direction: column;
  background: var(--bg-soft); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
  animation: scaleIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-header { padding: 20px 60px 16px 28px; border-bottom: 1px solid var(--card-border); }
.modal-header h3 { margin: 0; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--card-border); background: rgba(255,255,255,0.06);
  color: var(--text); font-size: 1rem; cursor: pointer; z-index: 2;
  transition: background var(--t);
}
.modal-close:hover { background: rgba(255,255,255,0.14); }
.modal-body { overflow: auto; flex: 1; display: flex; flex-direction: column; }
.modal-body img { width: 100%; display: block; }
.modal-body iframe { width: 100%; height: 75svh; border: 0; background: #fff; }
.modal-empty { padding: 50px 30px; text-align: center; color: var(--muted); }

/* ── Gallery ─────────────────────────────────────────── */
.gallery-filter-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
}
.gallery-filter-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap; flex-shrink: 0;
}
.gallery-filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gallery-filter-scroll::-webkit-scrollbar { display: none; }
.gallery-filter-buttons { display: contents; }
.filter-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border);
  color: var(--muted); border-radius: 999px; padding: 8px 18px;
  font-family: "Manrope", sans-serif; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--text); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #0a0806; font-weight: 700; }

.gallery-edition-group { margin-bottom: 64px; }
.gallery-edition-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border); flex-wrap: wrap;
}
.gallery-edition-title { font-family: "Cinzel", serif; font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; color: var(--text); letter-spacing: 0.02em; margin: 0; }
.gallery-edition-count { color: var(--primary-light); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--card-border); background: var(--card); transition: border-color var(--t), transform var(--t); }
.gallery-item:hover { border-color: var(--card-border-hover); transform: translateY(-2px); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 10px 14px; font-size: 0.78rem; color: var(--muted); }
.archive-preview-grid { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 600px) { .archive-preview-grid { grid-template-columns: repeat(2, 1fr) !important; } }
.voir-plus-wrap { margin-top: 18px; text-align: center; }
.voir-plus-btn {
  display: inline-block;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border);
  color: var(--muted); border-radius: 999px; padding: 10px 24px;
  font-family: "Manrope", sans-serif; font-size: 0.83rem; font-weight: 700;
  cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t);
  text-decoration: none;
}
.voir-plus-btn:hover { background: rgba(201,162,39,0.1); border-color: var(--primary); color: var(--primary-light); }
.archive-back-link {
  display: inline-block; margin-top: 14px;
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
  transition: color var(--t);
}
.archive-back-link:hover { color: var(--primary-light); }
.gallery-empty { text-align: center; color: var(--muted); padding: 60px 30px; }

/* ── Contact / Upload ────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-card { padding: 32px; }
.contact-info p { margin-bottom: 14px; color: var(--muted); line-height: 1.75; }
.contact-info strong { color: var(--text); }
form.contact-form { display: grid; gap: 16px; }
.contact-form label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 5px; font-weight: 700; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--card-border); background: rgba(255,255,255,0.04);
  color: var(--text); font-family: inherit; font-size: 0.92rem;
  transition: border-color var(--t);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8ab8f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.contact-form select option { background: #1a1208; color: var(--text); }
.upload-status { margin-top: 14px; font-size: 0.88rem; font-weight: 700; }
.upload-status.success { color: #6fbf73; }
.upload-status.error { color: var(--secondary-light); }
.upload-status[hidden] { display: none; }

/* ── Admin ───────────────────────────────────────────── */
.admin-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; align-items: center; padding: 18px; border-bottom: 1px solid var(--card-border); }
.admin-item:last-child { border-bottom: none; }
.admin-item img { width: 140px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--card-border); }
.admin-item .admin-meta strong { display: block; }
.admin-item .admin-meta span { color: var(--muted); font-size: 0.83rem; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions button { border: none; border-radius: 999px; padding: 9px 16px; font-weight: 800; cursor: pointer; font-family: "Manrope", sans-serif; font-size: 0.82rem; }
.admin-actions .approve { background: #3f8f4a; color: white; }
.admin-actions .reject  { background: var(--secondary); color: white; }
.admin-actions .delete  { background: #5c3317; color: #f3ede0; }
.admin-section-title { padding: 20px 18px 10px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--card-border); }
.admin-login { max-width: 420px; margin: 0 auto; }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  padding: 48px 28px 36px;
  text-align: center; border-top: 1px solid var(--card-border); color: var(--muted);
}
.footer a { color: var(--primary-light); transition: color var(--t); }
.footer a:hover { color: #fff; }
.footer-inner { max-width: 1240px; margin: auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.footer-logo img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(201,162,39,0.4)); }
.footer-logo span { font-family: "Cinzel", serif; font-weight: 600; color: var(--text); font-size: 0.92rem; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; font-size: 0.84rem; }
.footer-copy { font-size: 0.76rem; color: rgba(184,171,143,0.5); }

/* ── Keyframes ───────────────────────────────────────── */
@keyframes driftOrb { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(90px,-70px,0) scale(1.25); } }
@keyframes floatMoto { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-20px) rotate(1deg); } }
@keyframes shimmer { from { background-position: 0% center; } to { background-position: 200% center; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollLine { 0% { height: 36px; opacity: 1; } 100% { height: 0; opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulsGlow { from { opacity: 0.5; transform: scale(0.9); } to { opacity: 1; transform: scale(1.12); } }

/* ── Responsive ──────────────────────────────────────── */

/* Tablette large */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat-card { border-right: 1px solid var(--card-border); }
  .stats .stat-card:nth-child(2) { border-right: none; }
  .stats .stat-card:nth-child(3) { border-top: 1px solid var(--card-border); }
  .stats .stat-card:nth-child(4) { border-top: 1px solid var(--card-border); border-right: none; }
  .card-grid, .team-grid, .film-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .edition-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .edition-featured { padding: 40px; }
}

/* ── Page Souvenirs ──────────────────────────────────── */
.souvenirs-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--card-border);
  margin-left: 20px;
  padding-left: 0;
}

.souvenir-year-block {
  position: relative;
  padding: 28px 0 28px 40px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
}

.souvenir-year-block:last-child { border-bottom: none; }

.souvenir-year-block::before {
  content: "";
  position: absolute;
  left: -7px; top: 34px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}

.souvenir-year-label {
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.souvenir-year-label span {
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.souvenir-photos-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
}

.souvenir-count {
  font-weight: 800;
  color: var(--text);
  font-size: 0.92rem;
}

.souvenir-status {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.film-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--card);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-sm);
  padding: 30px 20px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  min-height: 140px;
}

.coming-soon-icon {
  font-size: 2rem;
  opacity: 0.5;
}

/* ── Mobile ≤900px : header compact, bottom nav, pas de hamburger ── */
@media (max-width: 900px) {
  /* Hamburger et nav overlay inutiles — bottom nav gère la navigation */
  .menu-toggle { display: none; }
  .nav-links { display: none !important; }

  /* Header : juste le logo, compact */
  .countdown-bar { display: none; }
  .navbar { padding: 0 18px; height: 54px; }
  .brand span { font-size: 0.9rem; }
  .brand img { width: 34px; height: 34px; }

  /* Décalage du contenu : header seul = 54px */
  .page-main { padding-top: 70px; }
  .hero { padding: 100px 24px 56px; min-height: 85svh; }
  .hero h1 { font-size: clamp(2.8rem, 9vw, 5rem); }
  .hero-moto { width: 65vw; right: -8%; opacity: 0.45; }
  .hero-deco-xxv { font-size: clamp(10rem, 20vw, 16rem); opacity: 0.5; }
  .hero-content { max-width: 56%; }
  .scroll-indicator { display: none; }

  /* Footer masqué sur mobile — bottom nav suffit */
  .footer { display: none; }

  /* Mise en page générale */
  .split, .contact-grid { grid-template-columns: 1fr; }
  .edition-featured { grid-template-columns: 1fr; padding: 32px 28px; }
  .edition-featured-xxv { font-size: 9rem; opacity: 0.4; }
  .gallery-filter-bar { flex-wrap: wrap; }
  .admin-item { grid-template-columns: 1fr; }
  .admin-item img { width: 100%; height: 180px; }
}

/* ── Barre de navigation mobile fixe en bas ──────────── */
.mobile-bottom-nav {
  display: none;
  transition: transform 0.3s ease;
}
.mobile-bottom-nav.nav-hidden {
  transform: translateY(100%);
}
.header {
  transition: transform 0.3s ease, background var(--t), backdrop-filter var(--t);
}
@media (max-width: 900px) {
  .header.nav-hidden {
    transform: translateY(-100%);
  }
}

@media (max-width: 900px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(11, 9, 5, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }
  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 10px;
    min-width: 56px;
    transition: color var(--t);
  }
  .mobile-bottom-nav a svg {
    width: 22px; height: 22px;
    stroke: currentColor; fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover { color: var(--primary-light); }

  /* Espace sous le contenu pour la bottom nav */
  body { padding-bottom: 80px; }
}

/* Mobile — plein écran */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 48px 20px; }
  .glass-panel { padding: 22px 20px; }
  .page-intro { padding: 32px 20px 24px; }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  p { line-height: 1.75; }

  /* Hero mobile — lisible, centré, direct */
  .hero {
    padding: 140px 24px 60px;
    min-height: auto;
    align-items: center;
    text-align: center;
  }
  .hero-content { max-width: 100%; position: relative; z-index: 3; }
  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.6rem);
    /* Titre plein couleur or — plus lisible que le dégradé sur petit écran */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--primary-light);
    color: var(--primary-light);
  }
  .hero-subtitle { font-size: 1rem; line-height: 1.7; color: var(--text-dim); margin-bottom: 28px; }
  .hero-moto { display: none; }
  .hero-deco-xxv { display: none; }
  /* Tagline simplifiée — on garde juste le texte */
  .hero-tagline { margin: 10px 0 18px; justify-content: center; }
  .hero-tagline-line { display: none; }
  .hero-tagline-text { font-size: 0.75rem; letter-spacing: 0.12em; }
  .hero-actions { flex-direction: column; gap: 12px; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; min-height: 54px; font-size: 1rem; }

  /* Stats 2 colonnes propres */
  .stats {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
  }
  .stats .stat-card { padding: 24px 16px; }
  .stats .stat-card:nth-child(1) { border-right: 1px solid var(--card-border); }
  .stats .stat-card:nth-child(2) { border-right: none; }
  .stats .stat-card:nth-child(3) { border-top: 1px solid var(--card-border); border-right: 1px solid var(--card-border); }
  .stats .stat-card:nth-child(4) { border-top: 1px solid var(--card-border); border-right: none; }
  .stats .stat-card strong { font-size: 1.75rem; }
  .stats .stat-card span { font-size: 0.76rem; }

  /* Grilles en 1 col */
  .card-grid, .team-grid, .edition-grid, .film-grid, .pillars { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Edition featured compacte */
  .edition-featured { padding: 26px 20px; }
  .edition-featured-xxv { display: none; }
  .edition-featured-year { font-size: 2.2rem; }
  .edition-featured-content h2 { font-size: 1.5rem; }
  .edition-featured-content .hero-actions { flex-direction: column; }
  .edition-featured-content .hero-actions .btn { width: 100%; justify-content: center; min-height: 48px; }

  /* CTA et footer */
  .cta-banner { padding: 36px 20px; }
  .cta-banner h2 { font-size: 1.4rem; }
  .footer-links { gap: 12px; font-size: 0.78rem; }
  .marquee-item { font-size: 0.7rem; padding: 0 14px; }

  /* Boutons full-width dans sections */
  .section .btn + .btn { margin-top: 0; }
  .btn { min-height: 46px; }
  .btn-small { min-height: 38px; }

  /* Modal plein écran sur mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92svh; }
  .modal-body iframe { height: 70svh; }
}

/* Très petits écrans */
@media (max-width: 380px) {
  .navbar { padding: 11px 14px; }
  .brand span { display: none; }
  .section { padding: 40px 14px; }
  .hero { padding: 100px 14px 44px; }
  .hero h1 { font-size: 2.2rem; }
  .stats .stat-card strong { font-size: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .glass-panel { padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Lightbox ───────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px 10px;
  z-index: 1;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 4px;
  opacity: 0.75;
  z-index: 1;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.gallery-item img {
  cursor: zoom-in;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
}
/* Animation skeleton pendant le chargement */
.gallery-item img:not([src]), .gallery-item img[src=""] {
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

/* ── Bouton signaler (archives) ─────────────────────── */
.gallery-item { position: relative; }
.archive-report-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.gallery-item:hover .archive-report-btn { opacity: 1; }
@media (hover: none) {
  .archive-report-btn { opacity: 0.85; }
}

/* ── Modal signalement ──────────────────────────────── */
#report-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#report-modal.open { display: flex; }
.report-box {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.report-box h3 {
  font-family: "Cinzel", serif;
  color: var(--primary);
  margin-bottom: 8px;
}
.report-box p { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.report-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.report-close:hover { color: var(--text); }
.report-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report-row > * { min-width: 0; }
#report-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#report-form input,
#report-form textarea {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
}
#report-form textarea { resize: vertical; }
#report-form input:focus,
#report-form textarea:focus { border-color: var(--primary); }
#report-form [type=submit] { width: 100%; margin-top: 4px; }
.report-feedback { font-size: 0.85rem; margin-top: 10px; min-height: 1.2em; }
@media (max-width: 480px) {
  .report-row { grid-template-columns: 1fr; }
  .report-box { padding: 24px 18px; }
}
