/* ============================================
   AJCDL — v3 « Lumière »
   Fond clair · couleurs du logo assumées · motion soignée
   Effets adaptés de la bibliothèque 21st.dev :
   - Aurora Background (YadHakim) → bannière animée du hero
   - Interactive Hover Button (Magic UI) → CTA
   - Spotlight Card → cartes programmes
   ============================================ */

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #101B33;
  --ink-soft: #4D5A75;
  --line: #E7E3DA;
  --blue: #2456B3;
  --blue-soft: #EAF0FB;
  --red: #C42B3D;
  --red-dark: #A32232;
  --red-soft: #FBEDEF;
  --green: #1F9D55;
  --green-soft: #EAF7F0;
  --amber: #F5A623;
  --amber-soft: #FEF4E2;
  --navy: #14203C;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 27, 51, 0.06);
  --shadow-lg: 0 18px 40px -18px rgba(16, 27, 51, 0.25);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* L'attribut hidden doit gagner même sur les éléments qui ont un display explicite (.btn, etc.). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); }

::selection { background: var(--amber); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.22rem; line-height: 1.25; }

/* Mot souligné au marqueur ambre */
.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: 0.06em;
  width: 104%;
  height: 0.32em;
  background: var(--amber);
  opacity: 0.55;
  z-index: -1;
  border-radius: 3px;
  transform: skewX(-8deg);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.creole { font-style: italic; font-weight: 700; color: var(--blue); }

/* ---------- Boutons « Interactive Hover » (adapté Magic UI) ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition: box-shadow 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.btn-cta {
  background: var(--surface);
  border-color: var(--line);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* point qui s'étend */
.btn-cta::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn-cta .btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.1rem;
  transition: color 300ms ease 100ms, transform 300ms ease;
}

.btn-cta .btn-arrow {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.btn-cta:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-cta:hover::before { transform: scale(42); }
.btn-cta:hover .btn-label { color: #fff; padding-left: 0; }
.btn-cta:hover .btn-arrow { opacity: 1; transform: translateX(0); }

.btn-cta:active { transform: translateY(0) scale(0.98); }

/* variante pleine (header, bandes colorées) */
.btn-solid {
  background: var(--red);
  color: #fff;
  border-color: var(--red-dark);
}
.btn-solid:hover { background: var(--red-dark); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-solid:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.brand img {
  width: auto;
  height: 60px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 1.5rem; }

.main-nav a:not(.btn) {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  transition: color 200ms ease;
}

/* soulignement qui balaie de gauche à droite */
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}
.main-nav a:not(.btn):hover { color: var(--navy); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.main-nav .btn { min-height: 44px; padding: 0 1.4rem; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  color: var(--navy);
  align-items: center;
  justify-content: center;
}

/* ---------- HERO avec Aurora animée (adapté YadHakim) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  will-change: transform;
  animation: aurora-drift 16s ease-in-out infinite alternate;
}

.aurora .a1 { width: 480px; height: 480px; left: -8%; top: -20%; background: #A8C3F0; }
.aurora .a2 { width: 420px; height: 420px; right: -6%; top: -10%; background: #F6C6CD; animation-delay: -3s; animation-duration: 19s; }
.aurora .a3 { width: 360px; height: 360px; right: 18%; bottom: -30%; background: #FBDFA8; animation-delay: -7s; animation-duration: 14s; }
.aurora .a4 { width: 300px; height: 300px; left: 22%; bottom: -22%; background: #B8E4CC; animation-delay: -10s; animation-duration: 21s; }
.aurora .a5 { width: 260px; height: 260px; left: 46%; top: -14%; background: #DCE6F8; animation-delay: -5s; animation-duration: 17s; }

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vw, 4vh) scale(1.15); }
  100% { transform: translate(-5vw, -3vh) scale(0.92); }
}

/* grain léger par-dessus les blobs */
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge img { width: auto; height: 26px; }

.hero h1 { max-width: 18ch; margin-bottom: 1.3rem; }
.hero .lead { margin-bottom: 2.2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 46rem;
}

.stat {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--navy);
}
.stat span { font-size: 0.83rem; color: var(--ink-soft); }

/* ---------- Marquee créole (bannière défilante) ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 0.9rem 0;
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  color: var(--ink-soft);
}
.marquee-track span em { font-style: normal; }
.marquee-track .m-blue { color: var(--blue); }
.marquee-track .m-red { color: var(--red); }
.marquee-track .m-green { color: var(--green); }
.marquee-track .m-amber { color: var(--amber); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

section { padding: clamp(3.5rem, 7vw, 5rem) 0; }

.section-head { margin-bottom: 2.4rem; max-width: 62ch; }
.section-head p { color: var(--ink-soft); margin-top: 0.9rem; }

/* ---------- Cartes programmes « Spotlight » ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  --spot-x: 50%;
  --spot-y: 50%;
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease, border-color 300ms ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* halo qui suit la souris */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--spot-x) var(--spot-y), var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* liseré coloré en haut */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover::after { transform: scaleX(1); }

.card > * { position: relative; z-index: 1; }

.card-wide { grid-column: span 2; }

.card-blue  { --accent: var(--blue);  --accent-soft: var(--blue-soft); }
.card-amber { --accent: var(--amber); --accent-soft: var(--amber-soft); }
.card-red   { --accent: var(--red);   --accent-soft: var(--red-soft); }
.card-green { --accent: var(--green); --accent-soft: var(--green-soft); }
.card-navy  { --accent: var(--navy);  --accent-soft: #E8EBF2; }

.card-top { display: flex; align-items: center; justify-content: space-between; }

.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 300ms ease;
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.08); }

.card-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--line);
  transition: color 300ms ease;
}
.card:hover .card-num { color: var(--accent); }

.card p { color: var(--ink-soft); font-size: 0.97rem; }

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.card-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.card-cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  white-space: nowrap;
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}
.card:hover .card-cta { transform: translateX(0); opacity: 1; }

/* ---------- Bande impact (navy chaleureux sur fond clair) ---------- */

.band {
  position: relative;
  background: var(--navy);
  border-radius: clamp(18px, 3vw, 32px);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  overflow: hidden;
  color: #fff;
}

.band::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.35), transparent 70%);
}

.band h2 { color: #fff; }
.band .kicker { background: rgba(245, 166, 35, 0.16); color: var(--amber); }
.band .kicker::before { background: var(--amber); }
.band .lead { color: rgba(255, 255, 255, 0.72); }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  position: relative;
}

.impact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 1.4rem;
  transition: transform 250ms ease, background-color 250ms ease;
}
.impact-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }

.impact-amount {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--amber);
  margin-bottom: 0.4rem;
}

.impact-card p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); }
.impact-card h3 { color: #fff; }

.impact-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin-top: 1.2rem; position: relative; }

/* ---------- Pages détail ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 22ch; margin-bottom: 1rem; font-size: clamp(2.1rem, 5.5vw, 3.4rem); }

.programme {
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.prog-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

.prog-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }

.prog-objectif {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  max-width: 55ch;
}

.prog-list { list-style: none; }
.prog-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.9rem;
  color: var(--ink-soft);
}
.prog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center/contain no-repeat;
}

.prog-impact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 4px solid var(--green);
  padding: 1.4rem;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}
.prog-impact h3 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; }
.prog-impact p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Don ---------- */

.don-box {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
  box-shadow: var(--shadow-lg);
}
.don-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--amber), var(--green));
}

.don-box img {
  width: auto;
  height: 150px;
  margin: 0 auto 1.2rem;
}

.don-pending { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }

.collecte { margin-top: 1.8rem; text-align: left; }

.collecte-bar {
  height: 15px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.collecte-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--red));
  transition: width 800ms ease;
}

.collecte-label { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.collecte-label strong { color: var(--red); font-size: 1.1rem; }

.don-steps { list-style: none; counter-reset: etape; max-width: 42rem; }

.don-steps li {
  counter-increment: etape;
  position: relative;
  padding: 0 0 2rem 4.2rem;
}

.don-steps li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.don-steps li::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 46px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.don-steps li:last-child { padding-bottom: 0; }
.don-steps li:last-child::after { display: none; }

.don-steps h3 { margin-bottom: 0.3rem; }
.don-steps p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 1.15rem; max-width: 34rem; }

label { font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.35rem; color: var(--navy); }

input, textarea, select {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
textarea { min-height: 130px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 86, 179, 0.18);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #B9C3D6;
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.9rem; }
.site-footer a { color: #B9C3D6; text-decoration: none; transition: color 200ms ease; }
.site-footer a:hover { color: #fff; }
.site-footer li { list-style: none; padding: 0.22rem 0; }

.footer-proverbe {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--amber);
  margin: 0.6rem 0 0.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.2rem;
  font-size: 0.83rem;
  color: rgba(185, 195, 214, 0.65);
}

/* ---------- Réseaux sociaux (liens gérés depuis l'admin) ---------- */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #B9C3D6;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.social-links a:hover {
  background: var(--amber);
  color: var(--navy);
  transform: translateY(-3px);
}

.social-links svg { width: 19px; height: 19px; fill: currentColor; }

/* Variante sur fond clair (page contact) */
.social-links-page { margin-top: 0; }
.social-links-page a { background: var(--blue-soft); color: var(--blue); }
.social-links-page a:hover { background: var(--blue); color: #fff; }

/* ---------- Photos terrain ---------- */

.prog-photo {
  margin: 0 0 1.8rem;
}
.prog-photo img,
.photo-grid img,
.photo-duo img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.prog-photo img { max-height: 440px; }
.prog-photo figcaption,
.photo-grid figcaption,
.photo-duo figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  align-items: start;
}
.photo-grid img { aspect-ratio: 4 / 3; height: auto; }

.photo-duo {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.1rem;
  align-items: start;
}
.photo-duo img { aspect-ratio: 16 / 10; height: auto; }

/* ---------- Reveal ---------- */

html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 550ms ease, transform 550ms ease; }
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .aurora span { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 0.95rem 0.2rem; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 1rem; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat strong { font-size: 1.3rem; }
  .stat span { font-size: 0.8rem; }

  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }

  .prog-cols { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .photo-duo { grid-template-columns: 1fr; }
  .prog-photo img { max-height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ===== Actualités (contenu publié depuis l'espace admin) ===== */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.2rem;
}
.actu-grid-page { margin-bottom: 2.5rem; }
.actu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.actu-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.actu-body { padding: 1.2rem 1.3rem 1.4rem; }
.actu-body time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.7rem;
}
.actu-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.actu-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.actu-body p:last-child { margin-bottom: 0; }
.actu-vide {
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 1rem 4rem;
}

/* ===== Boutons de don alternatifs (PayPal / Stripe, gérés depuis l'admin) ===== */
.don-alt { margin-top: 1.5rem; }
.don-alt-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}
.don-alt-btns {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
