/* =========================================================
   FISSV — Système de design
   Univers : terrain / rallye-raid / savane ivoirienne
   Palette : latérite (piste), nuit d'asphalte, or de savane
   ========================================================= */

:root {
  /* Couleurs — recalées sur le logo FISSV (noir, orange, vert, ivoire) */
  --ink:        #0A0A0A;   /* noir du logo — fond dominant */
  --ink-soft:   #171613;
  --ink-line:   #322F27;
  --laterite:   #F17A0A;   /* orange du logo — accent signature */
  --laterite-d: #C4630A;
  --gold:       #16A369;   /* vert du logo — accent secondaire */
  --bush:       #0C7C50;   /* vert plus sombre — touches rares */
  --sand:       #F7F2DC;   /* ivoire des défenses — fond clair, sections alternées */
  --sand-dim:   #EDE4C4;
  --stone-700:  #47443B;
  --stone-500:  #8C8878;
  --paper:      #FFFCF4;
  --white:      #FFFFFF;

  /* Typographie */
  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body:    'Manrope', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --radius: 2px;
  --wrap: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  line-height: 1.05;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--laterite);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--laterite);
}
.eyebrow--light { color: var(--gold); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 15px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translate(2px, -2px); }
.btn-primary { background: var(--laterite); color: var(--white); }
.btn-primary:hover { background: var(--laterite-d); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-vert { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-vert:hover { background: rgba(22, 163, 105, 0.12); border-color: var(--bush); color: var(--bush); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Bouton arrondi (pilule) — formulaires ---------- */
.btn-arrondi {
  border-radius: 999px;
  clip-path: none;
  padding: 15px 34px;
}
.btn-arrondi:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(241,122,10,0.55);
}
.btn-outline-light.btn-arrondi:hover,
.btn-outline-dark.btn-arrondi:hover {
  box-shadow: 0 16px 34px -16px rgba(10,10,10,0.25);
}

/* ---------- Liseré tricolore (signature) ---------- */
.livree {
  height: 6px;
  display: flex;
  width: 100%;
}
.livree span { flex: 1; }
.livree span:nth-child(1) { background: var(--laterite); }
.livree span:nth-child(2) { background: var(--white); }
.livree span:nth-child(3) { background: var(--gold); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 12px;
  line-height: 1;
  position: relative;
}
.logo-img {
  display: block;
  height: 56px;
  width: auto;
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), filter .3s ease;
}
.logo:hover .logo-img,
.logo:focus-visible .logo-img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 10px rgba(241,122,10,0.5));
}
.logo.logo--pulse .logo-img { animation: logo-pulse .55s ease; }
@keyframes logo-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.9) rotate(0deg); }
  70%  { transform: scale(1.14) rotate(-3deg); filter: drop-shadow(0 0 14px rgba(241,122,10,0.65)); }
  100% { transform: scale(1) rotate(0deg); }
}
.logo::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 12px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  line-height: 1.4;
  padding: 8px 13px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
.logo:hover::after,
.logo:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.logo-texte { display: flex; flex-direction: column; }
.logo strong {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.logo-fi { color: var(--laterite); }
.logo-ss { color: var(--white); }
.logo-v { color: var(--gold); }
.logo small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--stone-500);
  text-transform: uppercase;
  margin-top: 4px;
}
.nav-principale { display: flex; align-items: center; gap: 20px; }
.nav-principale a {
  font-family: var(--f-display);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--sand-dim);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav-principale a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav-principale a:hover::after,
.nav-principale a.actif::after { transform: scaleX(1); }
.nav-principale a.actif { color: var(--white); }
.nav-cta {
  margin-left: 8px;
  background: var(--laterite);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 8px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--laterite-d); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--white); }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav-principale {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    overflow-y: auto;
  }
  .nav-principale.ouvert { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-principale a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--ink-line); white-space: normal; }
  .nav-cta { margin: 16px 0 0; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 140px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 45%, rgba(10,10,10,0.8) 100%);
}
.hero::before {
  /* texture "carte de terrain" — courbes de niveau discrètes */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(232,163,61,0.10), transparent 40%),
    radial-gradient(circle at 82% 70%, rgba(193,68,14,0.16), transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: -6%;
  bottom: -18%;
  width: 60%;
  height: 160%;
  background: linear-gradient(100deg, transparent 0%, transparent 52%, rgba(232,163,61,0.85) 52%, rgba(232,163,61,0.85) 55%, transparent 55%);
  transform: rotate(8deg);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p.lead {
  font-family: var(--f-body);
  font-size: 18px;
  color: var(--sand-dim);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero diaporama (2-3 slides, configuré depuis l'admin) ---------- */
.hero--diaporama { padding: 0; min-height: clamp(560px, 82vh, 780px); }
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 110px 0 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.hero-slide--actif { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-media--photo { background-size: cover; background-position: center; }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 45%, rgba(10,10,10,0.8) 100%);
}
.hero-diaporama-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-diaporama-fleche {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(10,10,10,0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hero-diaporama-fleche svg { width: 18px; height: 18px; }
.hero-diaporama-fleche:hover { background: var(--laterite); border-color: var(--laterite); }
.hero-diaporama-puces { display: flex; gap: 2px; }
.hero-diaporama-puce {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-diaporama-puce::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-diaporama-puce.actif::before { background: var(--laterite); transform: scale(1.3); }
@media (max-width: 640px) {
  .hero-slide { padding: 96px 0 88px; }
  .hero-diaporama-nav { bottom: 14px; gap: 10px; }
}

/* ---------- Bande d'accès rapide (sous le hero) ---------- */
.acces-rapide { background: var(--ink-soft); border-bottom: 1px solid var(--ink-line); position: relative; z-index: 3; }
.acces-rapide-liste { display: grid; grid-template-columns: repeat(4, 1fr); }
.acces-rapide-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  color: var(--sand-dim);
  border-right: 1px solid var(--ink-line);
  transition: background 0.15s ease, color 0.15s ease;
}
.acces-rapide-item:last-child { border-right: none; }
.acces-rapide-item:hover { background: rgba(241,122,10,0.10); color: var(--white); }
.acces-rapide-item svg { width: 21px; height: 21px; color: var(--laterite); flex-shrink: 0; }
.acces-rapide-item .txt { display: flex; flex-direction: column; min-width: 0; }
.acces-rapide-item .txt strong { font-family: var(--f-display); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acces-rapide-item .txt span { font-family: var(--f-mono); font-size: 11px; color: var(--stone-500); }
@media (max-width: 860px) {
  .acces-rapide-liste { grid-template-columns: repeat(2, 1fr); }
  .acces-rapide-item { border-bottom: 1px solid var(--ink-line); }
  .acces-rapide-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 520px) {
  .acces-rapide-liste { grid-template-columns: 1fr; }
}

/* Bandeau prochain événement, chevauche le hero */
.prochain-event {
  position: relative;
  z-index: 3;
  margin-top: -56px;
}
.prochain-event .box {
  background: var(--paper);
  border: 1px solid var(--sand-dim);
  border-left: 6px solid var(--laterite);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(21,19,14,0.18);
}
.prochain-event .info h3 { margin: 4px 0 6px; font-size: 22px; }
.prochain-event .info .lieu { font-family: var(--f-mono); font-size: 13px; color: var(--stone-500); }
.compte-a-rebours { display: flex; gap: 18px; }
.compte-a-rebours .unite { text-align: center; }
.compte-a-rebours .val {
  font-family: var(--f-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--laterite);
  line-height: 1;
}
.compte-a-rebours .lab {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
}

/* =========================================================
   SECTIONS génériques
   ========================================================= */
.section { padding: 64px 0; }
.section--sombre { background: var(--ink); color: var(--white); }
.section--sable { background: var(--sand); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 0; }
.section--sombre .section-head p,
.section--sombre .stone { color: var(--stone-500); }
.section-intro { max-width: 620px; color: var(--stone-700); }

/* ---------- Grilles cartes actus ---------- */
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .grille-3, .grille-2 { grid-template-columns: 1fr; } }

.carte-actu {
  background: var(--white);
  border: 1px solid var(--sand-dim);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.carte-actu:hover { border-color: var(--laterite); box-shadow: 0 22px 40px -26px rgba(10,10,10,0.4); transform: translateY(-3px); }
.carte-actu:hover .media { transform: scale(1.06); }
.carte-actu .media { transition: transform 0.4s ease; }
.carte-actu .media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--ink) 0%, var(--stone-700) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.carte-actu .media::after {
  content: attr(data-tag);
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(21,19,14,0.75);
  padding: 5px 10px;
}
.carte-actu .corps { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.carte-actu .date { font-family: var(--f-mono); font-size: 12px; color: var(--stone-500); margin-bottom: 8px; }
.carte-actu h3 { font-size: 20px; text-transform: none; letter-spacing: 0; margin-bottom: 10px; }
.carte-actu p { color: var(--stone-700); font-size: 14.5px; flex: 1; }
.carte-actu .lire {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--laterite);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
}

.carte-club {
  background: var(--white);
  border: 1px solid var(--sand-dim);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.carte-club:hover { border-color: var(--laterite); box-shadow: 0 20px 36px -26px rgba(10,10,10,0.4); transform: translateY(-2px); }
.carte-club-logo {
  aspect-ratio: 16/10;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  box-sizing: border-box;
}
.carte-club-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.carte-club-logo-vide { color: var(--stone-500); opacity: 0.5; }
.carte-club-logo-vide svg { width: 44px; height: 44px; }
.carte-club .corps { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.carte-club h3 { font-size: 19px; text-transform: none; letter-spacing: 0; margin-bottom: 10px; }
.carte-club .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--stone-700);
  font-size: 14px;
  margin: 0 0 8px;
}
.carte-club .meta svg { width: 15px; height: 15px; color: var(--laterite); flex-shrink: 0; }
.carte-club-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 14px; }
.carte-club-actions .btn { padding: 11px 20px; font-size: 13px; }
.carte-club-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--stone-700);
  transition: color 0.15s ease;
}
.carte-club-tel svg { width: 15px; height: 15px; color: var(--laterite); }
.carte-club-tel:hover { color: var(--laterite); }

/* ---------- Bloc vidéo / discipline ---------- */
.bloc-video {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .bloc-video { grid-template-columns: 1fr; } }
.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder .play {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.video-placeholder .play::after {
  content: '';
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--gold);
  margin-left: 4px;
}

/* ---------- Partenaires ---------- */
.bande-partenaires {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.logo-partenaire {
  flex: 1 1 180px;
  height: 96px;
  background: var(--white);
  border: 1px solid var(--sand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--stone-500);
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  opacity: 0;
  will-change: transform, opacity;
}

/* ---------- Bande de partenaires défilante (page d'accueil) ---------- */
.partenaires-defilement {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.partenaires-piste {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: partenaires-defiler 34s linear infinite;
}
.partenaires-defilement:hover .partenaires-piste { animation-play-state: paused; }
@keyframes partenaires-defiler {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-partenaire-defilant {
  flex: 0 0 180px;
  height: 96px;
  background: var(--white);
  border: 1px solid var(--sand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 6px;
}
.logo-partenaire-defilant img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 640px) { .partenaires-piste { animation-duration: 22s; gap: 12px; } }

/* ---------- Chiffres clés ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }
.chiffre .val { font-family: var(--f-display); font-size: 44px; color: var(--gold); }
.chiffre .lab { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone-500); }
.section--sombre .chiffre .lab { color: var(--sand-dim); opacity: 0.75; }
/* Animation compteur : petit effet d'empilement pendant l'animation */
.chiffre .val.counting { transform: translateY(-2px); transition: transform 0.18s ease; }

/* ---------- Étapes : "Comment se déroule une épreuve" ---------- */
.etapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1080px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .etapes { grid-template-columns: 1fr; } }
.etape { background: var(--white); border: 1px solid var(--sand-dim); border-radius: 12px; padding: 26px 22px 24px; }
.etape .num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 17px;
  margin-bottom: 16px;
}
.etape h3 { font-size: 16.5px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.etape p { color: var(--stone-700); font-size: 14px; margin: 0; line-height: 1.55; }

/* ---------- Podium mini (accueil) ---------- */
.podium-mini { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin: 8px 0 6px; }
.podium-mini .place {
  flex: 1; max-width: 210px;
  background: var(--white);
  border: 1px solid var(--sand-dim);
  border-top: 4px solid var(--stone-500);
  border-radius: 10px 10px 4px 4px;
  padding: 22px 16px 20px;
  text-align: center;
}
.podium-mini .place .rang { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--stone-500); margin-bottom: 10px; }
.podium-mini .place .pilote { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.podium-mini .place .ecurie { font-family: var(--f-mono); font-size: 11.5px; color: var(--stone-500); }
.podium-mini .place .temps { font-family: var(--f-mono); font-size: 12px; color: var(--laterite); margin-top: 8px; }
.podium-mini .place--1 { order: 2; border-top-color: var(--laterite); transform: translateY(-16px); box-shadow: 0 16px 32px rgba(10,10,10,0.10); z-index: 2; padding-top: 30px; }
.podium-mini .place--1 .rang { color: var(--laterite); font-size: 38px; }
.podium-mini .place--2 { order: 1; }
.podium-mini .place--3 { order: 3; border-top-color: var(--laterite-d); }
.podium-mini .place--3 .rang { color: var(--laterite-d); }
@media (max-width: 640px) {
  .podium-mini { flex-direction: column; align-items: stretch; gap: 10px; }
  .podium-mini .place { max-width: none; order: initial !important; transform: none !important; }
}

/* =========================================================
   TABLEAUX (résultats)
   ========================================================= */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-resultats { width: 100%; min-width: 480px; border-collapse: collapse; font-family: var(--f-mono); font-size: 14px; }
.table-resultats th {
  text-align: left;
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.table-resultats td { padding: 12px 16px; border-bottom: 1px solid var(--sand-dim); }
.table-resultats tr:nth-child(1) td:first-child { color: var(--laterite); font-weight: 700; }
.table-resultats tr:nth-child(2) td:first-child { color: var(--stone-700); font-weight: 700; }
.table-resultats tr:nth-child(3) td:first-child { color: var(--laterite-d); font-weight: 700; }

/* ---------- Accordéon de résultats (page Résultats & Calendrier) ---------- */
.resultats-accordeon { border: 1px solid var(--sand-dim); border-radius: 10px; overflow: hidden; margin-bottom: 18px; background: var(--white); }
.resultats-accordeon summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--stone-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--sand);
}
.resultats-accordeon summary::-webkit-details-marker { display: none; }
.resultats-accordeon summary .chevron { width: 15px; height: 15px; color: var(--stone-500); flex-shrink: 0; transition: transform 0.18s ease; }
.resultats-accordeon[open] summary .chevron { transform: rotate(180deg); }
.resultats-accordeon .table-resultats { margin: 0; }

/* ---------- Communiqués de presse ---------- */
.liste-communiques { display: flex; flex-direction: column; gap: 12px; }
.carte-communique {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--sand-dim);
  border-radius: 10px;
  padding: 18px 22px;
  flex-wrap: wrap;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.carte-communique:hover { border-color: var(--laterite); box-shadow: 0 16px 30px -22px rgba(10,10,10,0.35); transform: translateY(-2px); }
.carte-communique-icone {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: rgba(241,122,10,0.10);
  color: var(--laterite);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.carte-communique-icone svg { width: 20px; height: 20px; }
.carte-communique-info { flex: 1; min-width: 200px; }
.carte-communique-info h3 { font-size: 16px; text-transform: none; margin-bottom: 4px; }
.carte-communique-info .date { font-family: var(--f-mono); font-size: 12px; color: var(--stone-500); }
.tag-indisponible { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--stone-500); }
@media (max-width: 560px) {
  .carte-communique { padding: 16px; }
}
/* ---------- Cartes événements calendrier ---------- */
.carte-event {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--sand-dim);
  border-left: 6px solid var(--stone-500);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.carte-event.a-venir { border-left-color: var(--laterite); }
.carte-event .date-bloc {
  font-family: var(--f-mono);
  text-align: center;
  min-width: 64px;
}
.carte-event .date-bloc .jour { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; }
.carte-event .date-bloc .mois { font-size: 11px; text-transform: uppercase; color: var(--stone-500); }
.carte-event .date-bloc .an { font-size: 10px; color: var(--stone-500); margin-top: 2px; }

.filtre-vue {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--sand);
  border: 1px solid var(--sand-dim);
  border-radius: 999px;
}
.filtre-vue-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--stone-700);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .25s cubic-bezier(0.34, 1.56, 0.64, 1), color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.filtre-vue-btn:hover { color: var(--laterite); transform: translateY(-1px); }
.filtre-vue-btn.actif { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: 0 8px 20px -10px rgba(10,10,10,0.55); }
.carte-event .info { flex: 1; min-width: 220px; }
.carte-event .info h3 { font-size: 18px; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.carte-event .lieu { font-family: var(--f-mono); font-size: 12.5px; color: var(--stone-500); }
.badge {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
}
.badge--venir { background: rgba(193,68,14,0.12); color: var(--laterite); }
.badge--fini { background: rgba(140,133,112,0.15); color: var(--stone-500); }
.badge--next { background: var(--laterite); color: var(--white); }

/* =========================================================
   TIMELINE DE SAISON (page Résultats & Calendrier)
   ========================================================= */
.timeline-intro { color: var(--stone-500); max-width: 560px; margin: 0 0 24px; }

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--sand-dim) 0 6px, transparent 6px 11px);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 16px;
}
.timeline-node {
  position: relative;
  z-index: 2;
  flex: 0 0 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.timeline-node-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 3px solid var(--stone-500);
  color: var(--white);
}
.timeline-node-dot--fini { background: var(--stone-500); }
.timeline-node-dot--fini svg { width: 10px; height: 10px; }
.timeline-node-dot--venir { border-color: var(--laterite); background: var(--paper); }
.timeline-item--next .timeline-node-dot--venir {
  background: var(--laterite);
  box-shadow: 0 0 0 5px rgba(241,122,10,0.18);
  animation: timelinePulse 2.2s ease-in-out infinite;
}
@keyframes timelinePulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(241,122,10,0.18); }
  50% { box-shadow: 0 0 0 9px rgba(241,122,10,0.05); }
}

.timeline-card {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--sand-dim);
  border-left: 4px solid var(--stone-500);
  border-radius: 10px;
  padding: 14px 18px;
}
.timeline-item--venir .timeline-card { border-left-color: var(--laterite); }
.timeline-item--next .timeline-card { border-left-color: var(--laterite); box-shadow: 0 12px 26px -18px rgba(241,122,10,0.5); }

.timeline-card-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.timeline-card-date { font-family: var(--f-mono); text-align: center; min-width: 48px; }
.timeline-card-date .jour { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1; }
.timeline-card-date .mois { font-size: 10.5px; text-transform: uppercase; color: var(--stone-500); }
.timeline-card-date .an { font-size: 10px; color: var(--stone-500); margin-top: 1px; }
.timeline-card-titre { flex: 1; min-width: 180px; }
.timeline-card-titre h3 { font-size: 16.5px; text-transform: none; letter-spacing: 0; margin-bottom: 3px; }
.timeline-card-titre .lieu { font-family: var(--f-mono); font-size: 12.5px; color: var(--stone-500); }
.timeline-card .resultats-accordeon { margin: 12px 0 0; }

.timeline-today {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 16px;
}
.timeline-today-flag {
  flex: 0 0 40px;
  width: 40px;
  display: flex;
  justify-content: center;
}
.timeline-today-flag svg { width: 22px; height: 22px; color: var(--gold); }
.timeline-today-label {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--sand-dim);
  padding: 5px 14px;
  border-radius: 999px;
}

.timeline-empty { list-style: none; padding-left: 56px; color: var(--stone-500); }

@media (min-width: 900px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .timeline-item { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: start; gap: 0 24px; }
  .timeline-item--left .timeline-node { grid-column: 2; }
  .timeline-item--left .timeline-card { grid-column: 1; grid-row: 1; }
  .timeline-item--right .timeline-node { grid-column: 2; }
  .timeline-item--right .timeline-card { grid-column: 3; grid-row: 1; }
  .timeline-today { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 0 24px; }
  .timeline-today-flag { grid-column: 2; justify-self: center; }
  .timeline-today-label { grid-column: 3; justify-self: start; }
  .timeline-empty { padding-left: 0; text-align: center; }
}

/* =========================================================
   FORMULAIRES
   ========================================================= */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.formulaire-carte {
  background: var(--white);
  border: 1px solid var(--sand-dim);
  border-radius: 10px;
  padding: 36px 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(10,10,10,0.35);
}
.formulaire-carte::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--laterite) 0%, var(--gold) 100%);
}
.formulaire-carte h3 {
  font-size: 22px;
  margin: 8px 0 6px;
}
.formulaire-carte .formulaire-souscription {
  color: var(--stone-500);
  font-size: 14px;
  margin-bottom: 26px;
}
.formulaire-carte .champ input,
.formulaire-carte .champ textarea,
.formulaire-carte .champ select {
  background: var(--paper);
  border-radius: 8px;
}

.champ { margin-bottom: 20px; }
.champ label {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-700);
  margin-bottom: 8px;
}
.champ input, .champ textarea, .champ select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--sand-dim);
  background: var(--white);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: 2px solid var(--laterite);
  outline-offset: 1px;
}
.champ textarea { resize: vertical; min-height: 140px; }

.alerte { padding: 16px 18px; border-left: 4px solid var(--bush); background: rgba(75,107,68,0.09); margin-bottom: 24px; font-size: 14.5px; }
.alerte.erreur { border-color: var(--laterite); background: rgba(193,68,14,0.08); }

/* ---------- Vérification anti-robot (case à cocher) ---------- */
.verif-robot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--sand-dim);
  background: var(--white);
  padding: 16px 20px;
  max-width: 320px;
}
.verif-robot-gauche { display: flex; align-items: center; gap: 14px; }
.verif-robot-case {
  width: 28px;
  height: 28px;
  border: 2px solid var(--stone-500);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, background .15s ease;
}
.verif-robot-case:hover { border-color: var(--laterite); }
.verif-robot-case.coche { background: var(--bush); border-color: var(--bush); }
.verif-robot-case svg { width: 16px; height: 16px; opacity: 0; transition: opacity .15s ease; }
.verif-robot-case.coche svg { opacity: 1; }
.verif-robot-case .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--sand-dim);
  border-top-color: var(--laterite);
  border-radius: 50%;
  animation: verif-robot-spin .6s linear infinite;
}
.verif-robot-case.chargement .spinner { display: block; }
.verif-robot-case.chargement svg { display: none; }
@keyframes verif-robot-spin { to { transform: rotate(360deg); } }
.verif-robot-texte { font-family: var(--f-body); font-size: 14.5px; color: var(--ink); user-select: none; }
.verif-robot-marque {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--stone-500);
  line-height: 1.4;
}
.verif-robot-marque strong {
  display: block;
  font-family: var(--f-display);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.03em;
}

/* Pot de miel — invisible pour un visiteur humain, souvent rempli par les robots */
.champ-piege {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* =========================================================
   GALERIE
   ========================================================= */
.galerie-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .galerie-grille { grid-template-columns: repeat(2, 1fr); } }
.galerie-item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--stone-700), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--stone-500);
  text-align: center;
  padding: 8px;
}
.galerie-item-btn {
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  display: block;
  width: 100%;
}
.galerie-item.wide { grid-column: span 2; }
.galerie-item-btn:hover .legende { padding-bottom: 14px; }

/* ---------- Visionneuse (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(21,19,14,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.ouvert { display: flex; }
.lightbox-corps {
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.lightbox-corps img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: #000;
}
.lightbox-info { padding: 18px 4px; color: var(--white); }
.lightbox-info h3 { font-size: 19px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.lightbox-info p { color: var(--sand-dim); font-size: 14.5px; margin: 0; }
.lightbox-fermer {
  position: absolute; top: 22px; right: 26px;
  background: none; border: none; color: var(--white);
  font-size: 34px; line-height: 1; cursor: pointer;
}
.lightbox-nav {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  margin: 0 18px;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
@media (max-width: 720px) {
  .lightbox { padding: 16px; flex-direction: column; }
  .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ---------- Grille vidéo (site + YouTube) ---------- */
.grille-video {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .grille-video { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grille-video { grid-template-columns: 1fr; } }

.carte-video-locale {
  display: block;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--sand-dim);
  overflow: hidden;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s ease, border-color .3s ease;
  border-radius: 2px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
}
.carte-video-locale:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  border-color: var(--laterite);
}
.video-apercu {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.video-apercu video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.carte-video-locale:hover .video-apercu video {
  transform: scale(1.05);
}
.video-apercu .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(10,10,10,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), background .3s ease, border-color .3s ease;
}
.video-apercu .play::after {
  content: '';
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--gold);
  margin-left: 3px;
}
.carte-video-locale:hover .video-apercu .play {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(241,122,10,0.3);
  border-color: var(--laterite);
}
.carte-video-locale:hover .video-apercu .play::after {
  border-color: transparent transparent transparent var(--laterite);
}
.legende-sous-video {
  padding: 10px 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--stone-700);
  transition: color .3s ease;
}
.carte-video-locale:hover .legende-sous-video {
  color: var(--laterite);
}

/* ---------- Modal de lecture vidéo (page Galerie) ---------- */
.dg-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6,6,6,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 24px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s cubic-bezier(0.34, 1.56, 0.64, 1), background .35s ease;
  backdrop-filter: blur(0px);
}
.dg-video-modal.actif {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(4px);
}
.dg-video-modal-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.dg-video-modal-player {
  width: 100%;
  max-height: 74vh;
  background: #000;
  box-shadow: 0 40px 90px rgba(0,0,0,0.6);
}
.dg-video-modal-titre {
  width: 100%;
  color: var(--white);
  font-family: var(--f-body);
  font-size: 15px;
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.pagination a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--sand-dim);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  transition: all .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 8px;
}
.pagination a:hover {
  border-color: var(--laterite);
  color: var(--laterite);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241,122,10,0.15);
}
.pagination a.actif {
  background: var(--laterite);
  border-color: var(--laterite);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(241,122,10,0.3);
}
.pagination--sombre a {
  border-color: var(--ink-line);
  color: var(--sand-dim);
}
.pagination--sombre a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22,163,105,0.15);
}
.pagination--sombre a.actif {
  background: var(--laterite);
  border-color: var(--laterite);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(241,122,10,0.3);
}

.galerie-item {
  position: relative;
  overflow: hidden;
}
.galerie-item .legende {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px;
  background: linear-gradient(to top, rgba(21,19,14,0.88), transparent);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.galerie-item .type-badge,
.video-placeholder .type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(21,19,14,0.75);
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
}
.video-placeholder {
  position: relative;
  flex-direction: column;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s ease, border-color .3s ease;
  border-radius: 2px;
  overflow: hidden;
}
.video-placeholder:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.video-placeholder .play {
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .3s ease;
}
.video-placeholder:hover .play {
  transform: scale(1.12);
  border-color: var(--laterite);
}
.video-placeholder .legende {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(to top, rgba(21,19,14,0.88), transparent);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 12px;
  text-align: left;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.video-placeholder:hover .legende {
  transform: translateY(-4px);
}

/* =========================================================
   PAGE HEADER (bandeau interne pour pages secondaires)
   ========================================================= */
.page-hero {
  background: var(--ink) url('../img/hero-bg.jpg') center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
  padding: 48px 0 40px;
  position: relative;
}
.page-hero.page-hero--resultats {
  background-image: url('../img/hero-bg-resultats.jpg');
}
.page-hero.page-hero--galerie {
  background-image: url('../img/hero-bg-galerie.jpg');
}
.page-hero.page-hero--presse {
  background-image: url('../img/hero-bg-presse.jpg');
}
.page-hero.page-hero--contact {
  background-image: url('../img/hero-bg-contact.jpg');
}
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-top: 14px; }
.page-hero p.lead { margin-top: 12px; max-width: 560px; color: var(--sand-dim); font-size: 15.5px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.page-hero-head h1 { margin: 14px 0 0; }
@media (max-width: 640px) { .page-hero-head { align-items: flex-start; } }
.page-hero-emblem {
  height: 168px;
  opacity: 0.92;
  pointer-events: none;
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  z-index: 1;
}
@media (max-width: 900px) { .page-hero-emblem { height: 120px; right: 24px; opacity: 0.55; } }
@media (max-width: 640px) { .page-hero-emblem { display: none; } }
.fil-ariane { font-family: var(--f-mono); font-size: 12px; color: var(--stone-500); }
.fil-ariane a:hover { color: var(--gold); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 45%);
  color: var(--sand-dim);
  padding: 52px 0 26px;
  position: relative;
  border-top: 1px solid var(--ink-line);
  box-shadow: inset 0 22px 26px -24px rgba(0,0,0,0.65);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--laterite) 0%, var(--gold) 100%);
}
.footer-grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--ink-line);
}
@media (max-width: 760px) { .footer-grille { grid-template-columns: 1fr 1fr; } }
.footer-logo-img { display: block; height: 48px; width: auto; margin-bottom: 14px; }
.footer-grille h4 {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-grille ul li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grille ul li a:hover { color: var(--white); }
.footer-bas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--stone-500);
  flex-wrap: wrap;
  gap: 12px;
}
.reseaux-footer { display: flex; gap: 14px; }
.reseaux-footer a {
  width: 36px; height: 36px;
  border: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
}
.reseaux-footer a:hover { border-color: var(--laterite); color: var(--laterite); }
.reseaux-footer a img { display: block; width: 18px; height: 18px; object-fit: contain; }

/* Newsletter */
.newsletter-form { display: flex; gap: 0; margin-top: 6px; border-radius: 8px; overflow: hidden; }
.newsletter-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 14px;
}
.newsletter-form button {
  background: var(--laterite);
  color: var(--white);
  border: none;
  padding: 0 18px;
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
}
.newsletter-form button:hover { background: var(--laterite-d); }

/* ---------- Utilitaires ---------- */
.mt-0 { margin-top: 0; }
.texte-centre { text-align: center; }

/* =========================================================
   Galerie photo — grille à ancrage CSS ("vol" vers l'image
   principale au clic, via CSS Anchor Positioning)
   ========================================================= */
.ag-gallery {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
@media (max-width: 640px) {
  .ag-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
}

.ag-main {
  anchor-name: --ag-main;
  aspect-ratio: 1;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  display: grid;
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  overflow: hidden;
  padding: 1.4rem;
  place-content: end start;
  position: relative;
}
@media (max-width: 640px) {
  .ag-main { grid-column: 1 / span 2; grid-row: 1 / span 1; }
}
.ag-main::after {
  background: linear-gradient(to top, rgba(10,10,10,0.85), rgba(10,10,10,0));
  block-size: 55%;
  content: '';
  inline-size: 100%;
  inset-block-end: 0;
  inset-inline-start: 0;
  pointer-events: none;
  position: absolute;
  z-index: 11;
}
.ag-main-kicker {
  color: var(--laterite);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  position: relative;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
  z-index: 12;
}
.ag-main-titre {
  color: var(--white);
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  margin: 0;
  position: relative;
  transition: opacity 0.4s ease;
  z-index: 12;
}
.ag-item:target ~ .ag-main .ag-main-kicker,
.ag-item:target ~ .ag-main .ag-main-titre { opacity: 0; }

.ag-item {
  aspect-ratio: 1;
  border: 1px solid var(--sand-dim);
  display: block;
  overflow: hidden;
  position: relative;
  scroll-margin: 3rem;
  text-decoration: none;
}
.ag-item:focus-visible { outline: 2px solid var(--laterite); outline-offset: 2px; }

.ag-thumb {
  block-size: 100%;
  display: block;
  inline-size: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}
.ag-item:hover .ag-thumb { opacity: 0.82; }
.ag-item:target .ag-thumb { opacity: 0.32; }

.ag-fly {
  block-size: anchor-size(height);
  inline-size: anchor-size(width);
  inset-block-start: anchor(top);
  inset-inline-start: anchor(left);
  object-fit: cover;
  pointer-events: none;
  position: absolute;
  transition:
    block-size 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    inline-size 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    inset-block-start 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    inset-inline-start 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    z-index 0.75s step-end;
  z-index: 2;
}

.ag-caption {
  bottom: 1.4rem;
  color: var(--white);
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  left: 1.4rem;
  margin: 0;
  max-inline-size: calc(100% - 2.8rem);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  position-anchor: --ag-main;
  bottom: calc(anchor(bottom) + 1.4rem);
  left: calc(anchor(left) + 1.4rem);
  transform: translateY(1rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 12;
}
.ag-caption-desc {
  color: var(--sand-dim);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  margin: 4px 0 0;
  text-transform: none;
}
.ag-caption-lien {
  color: var(--laterite);
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  margin-top: 10px;
  pointer-events: auto;
  text-transform: uppercase;
}
.ag-caption-lien:hover { text-decoration: underline; }

/* Liaison ancre <-> vignette, item par item (8 max = 1 page de pagination) */
#ag-item-1 { anchor-name: --ag-item-1; } #ag-fly-1 { position-anchor: --ag-item-1; }
#ag-item-2 { anchor-name: --ag-item-2; } #ag-fly-2 { position-anchor: --ag-item-2; }
#ag-item-3 { anchor-name: --ag-item-3; } #ag-fly-3 { position-anchor: --ag-item-3; }
#ag-item-4 { anchor-name: --ag-item-4; } #ag-fly-4 { position-anchor: --ag-item-4; }
#ag-item-5 { anchor-name: --ag-item-5; } #ag-fly-5 { position-anchor: --ag-item-5; }
#ag-item-6 { anchor-name: --ag-item-6; } #ag-fly-6 { position-anchor: --ag-item-6; }
#ag-item-7 { anchor-name: --ag-item-7; } #ag-fly-7 { position-anchor: --ag-item-7; }
#ag-item-8 { anchor-name: --ag-item-8; } #ag-fly-8 { position-anchor: --ag-item-8; }

#ag-item-1:target ~ #ag-fly-1, #ag-item-2:target ~ #ag-fly-2,
#ag-item-3:target ~ #ag-fly-3, #ag-item-4:target ~ #ag-fly-4,
#ag-item-5:target ~ #ag-fly-5, #ag-item-6:target ~ #ag-fly-6,
#ag-item-7:target ~ #ag-fly-7, #ag-item-8:target ~ #ag-fly-8 {
  position-anchor: --ag-main;
  z-index: 10;
}
#ag-item-1:target ~ #ag-caption-1, #ag-item-2:target ~ #ag-caption-2,
#ag-item-3:target ~ #ag-caption-3, #ag-item-4:target ~ #ag-caption-4,
#ag-item-5:target ~ #ag-caption-5, #ag-item-6:target ~ #ag-caption-6,
#ag-item-7:target ~ #ag-caption-7, #ag-item-8:target ~ #ag-caption-8 {
  opacity: 1;
  transform: translateY(0);
}

/* Navigateur sans CSS Anchor Positioning : repli en grille statique lisible */
@supports not (anchor-name: --ag-test) {
  .ag-fly { display: none; }
  .ag-item:target ~ .ag-main .ag-main-kicker,
  .ag-item:target ~ .ag-main .ag-main-titre { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-fly, .ag-thumb, .ag-caption { transition: none; }
}

/* =========================================================
   Bureau exécutif — cartes cliquables + fenêtre de détail
   ========================================================= */
.carte-membre {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--sand-dim);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  text-align: left;
  width: 100%;
}
.carte-membre:hover .media,
.carte-membre:hover .membre-avatar-fallback { filter: brightness(0.92); }
.carte-membre:hover h3 { color: var(--laterite); }
.carte-membre h3 { transition: color 0.2s; }
.membre-avatar-fallback {
  align-items: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--stone-700) 100%);
  color: var(--sand-dim);
  display: flex;
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.04em;
}
.carte-membre .media {
  height: 240px !important;
  background-position: center 22% !important;
  border-radius: 14px 14px 0 0;
}
.carte-membre .membre-avatar-fallback {
  height: 240px !important;
  border-radius: 14px 14px 0 0;
}

.membre-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 1000;
}
.membre-modal.ouvert { display: block; }
.membre-modal-fond {
  background: rgba(10,10,10,0.82);
  inset: 0;
  position: absolute;
}
.membre-modal-boite {
  background: var(--white);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  left: 50%;
  max-height: 88vh;
  max-width: 820px;
  overflow: auto;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 820px);
}
@media (max-width: 700px) {
  .membre-modal-boite { grid-template-columns: 1fr; max-height: 90vh; }
}
.membre-modal-photo {
  background: var(--ink);
  min-height: 260px;
  position: relative;
}
.membre-modal-photo img { display: block; height: 100%; object-fit: cover; width: 100%; }
.membre-modal-photo.membre-avatar-fallback { font-size: 64px; min-height: 260px; }
.membre-modal-corps { padding: 34px 34px 38px; }
.membre-modal-corps .date { font-family: var(--f-mono); font-size: 12px; color: var(--laterite); text-transform: uppercase; letter-spacing: 0.05em; }
.membre-modal-corps h3 { font-size: 26px; margin: 10px 0 16px; text-transform: none; letter-spacing: 0; }
.membre-modal-corps p { color: var(--stone-700); font-size: 15px; line-height: 1.7; white-space: pre-line; }
.membre-modal-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.membre-contact-lien {
  align-items: center;
  border: 1px solid var(--sand-dim);
  color: var(--ink);
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: 12.5px;
  gap: 6px;
  padding: 8px 14px;
  transition: border-color 0.2s, color 0.2s;
}
.membre-contact-lien:hover { border-color: var(--laterite); color: var(--laterite); }

.recherche-actus {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.recherche-actus input[type="search"] {
  background: var(--white);
  border: 1px solid var(--sand-dim);
  flex: 1 1 280px;
  font-family: var(--f-body);
  font-size: 14.5px;
  min-width: 220px;
  padding: 12px 16px;
}
.recherche-actus input[type="search"]:focus { border-color: var(--laterite); outline: none; }
.recherche-actus-reset {
  color: var(--stone-500);
  font-family: var(--f-mono);
  font-size: 12.5px;
  text-decoration: underline;
}
.recherche-actus-reset:hover { color: var(--laterite); }
.membre-modal-fermer,
.membre-modal-nav {
  align-items: center;
  appearance: none;
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  z-index: 2;
}
.membre-modal-fermer:hover,
.membre-modal-nav:hover { background: var(--laterite); border-color: var(--laterite); }
.membre-modal-fermer { font-size: 22px; line-height: 1; right: 14px; top: 14px; width: 42px; }
.membre-modal-nav { top: 14px; width: 42px; }
.membre-modal-prev { left: 14px; }
.membre-modal-next { left: 64px; }
@media (max-width: 700px) {
  .membre-modal-prev { left: 14px; }
  .membre-modal-next { left: 64px; }
}

/* =========================================================
   Fly-text — texte qui s'envole/se recompose au scroll (GSAP)
   Générique : s'applique directement aux titres/paragraphes
   existants (aucune section dédiée requise).
   ========================================================= */
.fly-text { position: relative; }
.fly-char { will-change: transform, opacity; }
.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* =========================================================
   ALBUM PHOTOS — mosaïque + lightbox plein écran
   ========================================================= */
.galerie-mosaique {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 6px;
}
@media (max-width: 900px) {
  .galerie-mosaique { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 640px) {
  .galerie-mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 4px; }
}

.galerie-tuile {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--ink);
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  min-height: 0;
  min-width: 0;
}
.galerie-tuile--grande {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 640px) {
  .galerie-tuile--grande { grid-column: span 2; grid-row: span 1; }
}

.galerie-tuile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.16,.84,.44,1);
}
.galerie-tuile:hover img { transform: scale(1.07); }

.galerie-tuile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.78) 100%);
  opacity: 0.7;
  transition: opacity .3s ease;
}
.galerie-tuile:hover::after { opacity: 0.9; }

.galerie-tuile .legende {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.01em;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.galerie-tuile--grande .legende { font-size: 22px; }

.galerie-tuile .compte {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(10,10,10,0.6);
  padding: 5px 9px;
}

.galerie-tuile .zoom-hint {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}
.galerie-tuile:hover .zoom-hint {
  opacity: 1;
  transform: none;
  background: rgba(241,122,10,0.2);
  border-color: var(--laterite);
}

@keyframes galleryItemFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}


/* ---------- Lightbox plein écran ---------- */
body.dg-lock { overflow: hidden; }

.dg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6,6,6,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 24px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s cubic-bezier(0.34, 1.56, 0.64, 1), background .35s ease;
  backdrop-filter: blur(0px);
}
.dg-lightbox.actif {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(4px);
}

.dg-lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.dg-lightbox-imgwrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dg-lightbox-img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  box-shadow: 0 40px 90px rgba(0,0,0,0.6);
  opacity: 0;
  transform: scale(0.95) rotateX(8deg);
  transition: opacity .35s cubic-bezier(0.34, 1.56, 0.64, 1), transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dg-lightbox-img.actif {
  opacity: 1;
  transform: scale(1) rotateX(0deg);
}

.dg-lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  color: var(--sand-dim);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dg-lightbox-meta span:first-child {
  color: var(--white);
  font-family: var(--f-body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.dg-lightbox-close,
.dg-lightbox-nav {
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(10,10,10,0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .25s cubic-bezier(0.34, 1.56, 0.64, 1), color .25s ease, background .25s ease, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease;
  border-radius: 2px;
}
.dg-lightbox-close:hover,
.dg-lightbox-nav:hover {
  border-color: var(--laterite);
  color: var(--laterite);
  background: rgba(241,122,10,0.15);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(241,122,10,0.3);
}
.dg-lightbox-close:active,
.dg-lightbox-nav:active {
  transform: scale(0.95);
}

.dg-lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 42px; height: 42px;
  z-index: 2;
}
.dg-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  z-index: 2;
}
.dg-lightbox-prev { left: -8px; }
.dg-lightbox-next { right: -8px; }
@media (max-width: 760px) {
  .dg-lightbox-close { top: -46px; }
  .dg-lightbox-nav { width: 40px; height: 40px; }
  .dg-lightbox-prev { left: 0; }
  .dg-lightbox-next { right: 0; }
}

.dg-lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
  scroll-behavior: smooth;
}
.dg-lightbox-thumb {
  width: 60px; height: 60px;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity .25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .25s ease, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px;
}
.dg-lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-lightbox-thumb:hover {
  opacity: 0.85;
  transform: scale(1.08);
}
.dg-lightbox-thumb.actif {
  opacity: 1;
  border-color: var(--laterite);
  box-shadow: 0 0 0 1px var(--laterite), 0 4px 12px rgba(241,122,10,0.25);
}

/* =========================================================
   MODAL D'ENTRÉE (accueil — configuré depuis l'admin)
   ========================================================= */
.entree-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.entree-modal--ferme { opacity: 0; pointer-events: none; }
.entree-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.88);
}
.entree-modal-panneau {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.75);
  animation: entreeModalIn 0.35s ease;
}
@keyframes entreeModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.entree-modal-image { width: 100%; max-height: 64vh; object-fit: cover; display: block; }
.entree-modal-fermer {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10,10,10,0.55);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.entree-modal-fermer svg { width: 18px; height: 18px; }
.entree-modal-fermer:hover { background: var(--laterite); border-color: var(--laterite); }
.entree-modal-bas {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.entree-modal-barre {
  width: 100%;
  height: 3px;
  background: var(--ink-line);
  border-radius: 999px;
  overflow: hidden;
}
.entree-modal-barre span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--laterite);
  transition-property: width;
  transition-timing-function: linear;
}
@media (max-width: 560px) {
  .entree-modal-image { max-height: 46vh; }
}

/* =========================================================
   FORMULAIRE D'ADHÉSION — sections numérotées + upload stylisé
   ========================================================= */
.form-section { display: flex; gap: 14px; margin: 0 0 18px; }
.form-section-num {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.form-section-titre { padding-top: 3px; }
.form-section-titre h4 {
  font-family: var(--f-display);
  font-size: 15.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 3px;
}
.form-section-titre p { font-size: 13px; color: var(--stone-500); margin: 0; }

.form-divider { border: none; border-top: 1px dashed var(--sand-dim); margin: 26px 0; }

.champ-requis::after { content: ' *'; color: var(--laterite); }
.champ-optionnel {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--stone-500);
  font-family: var(--f-body);
  font-size: 11.5px;
}

/* ---------- Upload de document stylisé ---------- */
.fichier-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed var(--sand-dim);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.fichier-upload:hover { border-color: var(--laterite); background: var(--white); }
.fichier-upload.rempli { border-style: solid; border-color: var(--gold); background: rgba(22,163,105,0.05); }
.fichier-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.fichier-upload-icone {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--stone-700);
  display: flex; align-items: center; justify-content: center;
}
.fichier-upload.rempli .fichier-upload-icone { background: var(--gold); color: var(--white); }
.fichier-upload-texte { min-width: 0; flex: 1 1 auto; }
.fichier-upload-nom {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fichier-upload-aide {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--stone-500);
  margin-top: 2px;
}
.fichier-upload.rempli .fichier-upload-aide { color: var(--bush); }

.form-note-securite {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--stone-700);
}
.form-note-securite svg { flex: 0 0 auto; margin-top: 1px; color: var(--stone-500); }

.btn-arrondi .ico-fleche { transition: transform .15s ease; }
.btn-arrondi:hover .ico-fleche { transform: translateX(3px); }
