/* ==========================================================================
   MOÏNAM — Design system
   Mouvement d'Intégration et d'Assistance Mutuelle
   ========================================================================== */

:root {
  /* Couleurs institutionnelles (issues du logo) */
  --c-red: #E01E28;
  --c-red-dark: #AE141C;
  --c-blue: #152C6E;
  --c-blue-2: #1E3F9E;
  --c-navy: #0A1230;
  --c-cream: #F8F3E9;
  --c-gray-50: #F7F8FA;
  --c-gray-100: #EEF0F4;
  --c-gray-200: #E2E5EB;
  --c-gray-400: #9AA1B2;
  --c-gray-600: #5A6072;
  --c-gray-900: #171A26;
  --c-white: #FFFFFF;

  --font-head: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(10, 18, 48, 0.06), 0 1px 1px rgba(10, 18, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 18, 48, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 18, 48, 0.14);

  --container: 1180px;
  --header-h: 76px;

  /* Motif discret "fourmi magnan" — utilisé en filigrane à faible opacité uniquement */
  --ant-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='40' viewBox='0 0 60 40'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.4' stroke-linecap='round'%3E%3Cellipse cx='30' cy='14' rx='3' ry='2.6'/%3E%3Cellipse cx='30' cy='19' rx='4' ry='3.4'/%3E%3Cellipse cx='30' cy='25' rx='5' ry='4.4'/%3E%3Cpath d='M27 12 L24 9 M33 12 L36 9'/%3E%3Cpath d='M27 17 L20 13 M27 19 L19 19 M27 21 L20 25 M33 17 L40 13 M33 19 L41 19 M33 21 L40 25'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--c-gray-900);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-red);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--c-red);
  display: block;
  flex-shrink: 0;
}

.lede {
  font-size: 1.08rem;
  color: var(--c-gray-600);
  max-width: 60ch;
}

:focus-visible {
  outline: 2px solid var(--c-blue-2);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--c-gray-50); }
.section-navy { background: var(--c-navy); color: var(--c-white); }
.section-navy h2, .section-navy h3 { color: var(--c-white); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 0.6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--c-red);
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-red-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: var(--radius-sm);
}
.btn-outline:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }

.btn-secondary {
  background: var(--c-white);
  color: var(--c-blue);
  border: 1.5px solid var(--c-gray-200);
}
.btn-secondary:hover { border-color: var(--c-blue-2); color: var(--c-blue-2); transform: translateY(-1px); }

.btn-ghost {
  color: var(--c-blue);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  border-bottom: 1.5px solid transparent;
}
.btn-ghost:hover { border-color: currentColor; }

.btn-block { width: 100%; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-navy);
  color: var(--c-white);
  padding: 0.8rem 1.2rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-gray-200);
  box-shadow: 0 4px 20px rgba(10,18,48,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-navy);
  flex-shrink: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--c-gray-100);
  background: var(--c-white);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--c-gray-600);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.main-nav { display: flex; flex-shrink: 0; }
.main-nav ul { display: flex; align-items: center; gap: 1.5rem; flex-wrap: nowrap; }
.main-nav li { flex-shrink: 0; }
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-gray-900);
  position: relative;
  padding-block: 0.4rem;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--c-red); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.hamburger:hover { background: var(--c-gray-100); }
.hamburger svg { width: 24px; height: 24px; }
.hamburger .icon-close { display: none; }
.hamburger[aria-expanded="true"] .icon-open { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--c-white);
  z-index: 90;
  padding: 1.5rem 20px 2.5rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a {
  display: block;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--c-gray-100);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
}
.mobile-nav a[aria-current="page"] { color: var(--c-red); }
.mobile-nav a.btn {
  display: inline-flex;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-bottom: none;
  margin-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--c-blue-2) 0%, var(--c-blue) 42%, var(--c-navy) 100%);
  color: var(--c-white);
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 10vw, 8rem);
}
.hero-ants {
  position: absolute;
  inset: 0;
  opacity: 0.10;
  pointer-events: none;
  background-image: var(--ant-pattern);
  background-size: 220px;
  mask-image: radial-gradient(80% 80% at 70% 30%, black 0%, transparent 75%);
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.14);
  pointer-events: none;
}
.hero-ring.r1 { width: 620px; height: 620px; right: -180px; top: -160px; }
.hero-ring.r2 { width: 420px; height: 420px; right: -60px; top: -20px; border-color: rgba(224,30,40,0.35); }

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-red); }

.hero h1 {
  color: var(--c-white);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  max-width: 14ch;
}
.hero h1 .accent { color: #FF6B6B; }

.hero-tagline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.92);
}

.hero-text {
  max-width: 56ch;
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
}
.hero-secondary-link:hover { color: var(--c-white); border-color: var(--c-white); }

.hero-photo-note {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  border: 1px dashed rgba(255,255,255,0.25);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
}

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); margin-top: 6rem; position: relative; z-index: 2; }
.pillar-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-gray-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(10,18,48,0.16); }
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-card:nth-child(1) .pillar-icon { background: rgba(224,30,40,0.1); color: var(--c-red); }
.pillar-card:nth-child(2) .pillar-icon { background: rgba(30,63,158,0.1); color: var(--c-blue-2); }
.pillar-card:nth-child(3) .pillar-icon { background: rgba(10,18,48,0.08); color: var(--c-navy); }
.pillar-card h3 { margin-bottom: 0.5rem; }
.pillar-card p { color: var(--c-gray-600); font-size: 0.96rem; }

/* ---------- Presentation split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c-blue) 0%, var(--c-navy) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.split-media .media-ants {
  position: absolute; inset: 0;
  background-image: var(--ant-pattern);
  background-size: 160px;
  opacity: 0.12;
}
.media-placeholder-badge {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255,255,255,0.85);
  padding: 2rem;
}
.media-placeholder-badge .brand-mark {
  width: 76px; height: 76px;
  margin: 0 auto 1rem;
  border-color: rgba(255,255,255,0.3);
}
.media-placeholder-badge span {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  max-width: 26ch;
  margin-inline: auto;
  color: rgba(255,255,255,0.7);
}

.split-body ul.checklist { margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--c-gray-600); }
.checklist svg { width: 20px; height: 20px; color: var(--c-red); flex-shrink: 0; margin-top: 2px; }

.split-body { display: grid; gap: 1.1rem; }
.split-body .lede { max-width: none; }

/* ---------- Mission / Vision / Valeurs ---------- */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mvv-card {
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  transition: border-color .2s ease, transform .2s ease;
}
.mvv-card:hover { transform: translateY(-3px); border-color: var(--c-blue-2); }
.mvv-card .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 0.9rem;
}
.mvv-card p { color: var(--c-gray-600); }
.mvv-card.values ul { display: grid; gap: 0.55rem; margin-top: 0.3rem; }
.mvv-card.values li { display: flex; align-items: center; gap: 0.55rem; color: var(--c-gray-600); font-size: 0.96rem; }
.mvv-card.values li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-blue-2);
  flex-shrink: 0;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-cell {
  background: var(--c-navy);
  padding: 1.8rem 1.2rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-white);
}
.stat-value.is-placeholder { color: rgba(255,255,255,0.35); font-size: 1.4rem; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.35rem; }
.stats-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ---------- Testimonials ---------- */
.testimonial-placeholder {
  border: 1.5px dashed var(--c-gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--c-gray-600);
  background: var(--c-gray-50);
}
.testimonial-placeholder svg { width: 34px; height: 34px; color: var(--c-gray-400); margin: 0 auto 1rem; }
.testimonial-placeholder strong { display: block; color: var(--c-navy); font-family: var(--font-head); margin-bottom: 0.3rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--c-white);
}
.cta-band h2 { color: var(--c-white); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 42ch; }
.cta-band .btn-secondary { border: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy); color: rgba(255,255,255,0.7); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer-brand .brand { color: var(--c-white); }
.footer-brand p { margin-top: 1rem; font-size: 0.92rem; max-width: 32ch; color: rgba(255,255,255,0.55); }
.footer-tagline { font-family: var(--font-head); font-weight: 600; color: rgba(255,255,255,0.85); margin-top: 0.6rem; font-size: 0.95rem; }
.footer-col h4 {
  color: var(--c-white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.62); }
.footer-col a:hover { color: var(--c-white); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: rgba(255,255,255,0.62); }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--c-red); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
}
.footer-bottom .ant-divider { color: rgba(255,255,255,0.3); }

/* ---------- Ant divider ---------- */
.ant-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--c-gray-400);
  margin-block: 0.5rem;
  text-align: center;
}
.ant-divider svg { width: 16px; height: 16px; }
.ant-divider::before, .ant-divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--c-gray-200);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: var(--c-white);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero .hero-ants { opacity: 0.08; }
.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.breadcrumb a:hover { color: var(--c-white); }
.page-hero h1 { color: var(--c-white); position: relative; z-index: 1; max-width: 20ch; }
.page-hero .lede { color: rgba(255,255,255,0.72); position: relative; z-index: 1; margin-top: 0.8rem; }

/* ---------- Org chart (Gouvernance) ---------- */
.orgchart { display: grid; gap: 0.9rem; max-width: 760px; margin-inline: auto; }
.org-level { display: flex; justify-content: center; }
.org-connector { display: flex; justify-content: center; height: 24px; }
.org-connector svg { width: 20px; height: 24px; color: var(--c-gray-400); }

.org-node {
  width: 100%;
  text-align: left;
  background: var(--c-white);
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.org-node:hover { border-color: var(--c-blue-2); box-shadow: var(--shadow-md); }
.org-node[aria-expanded="true"] {
  border-color: var(--c-red);
  background: linear-gradient(0deg, rgba(224,30,40,0.03), rgba(224,30,40,0.03));
  box-shadow: var(--shadow-md);
}
.org-node .org-index {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--c-white);
  background: var(--c-blue);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.org-node[data-level="1"] .org-index { background: var(--c-red); }
.org-node .org-title { flex: 1; }
.org-node .org-title strong { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--c-navy); }
.org-node .org-title span { font-size: 0.86rem; color: var(--c-gray-600); }
.org-node .chev { width: 20px; height: 20px; color: var(--c-gray-400); transition: transform .2s ease; flex-shrink: 0; }
.org-node[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--c-red); }

.org-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.org-panel.is-open { max-height: 600px; }
.org-panel-inner {
  background: var(--c-gray-50);
  border: 1.5px solid var(--c-gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: -0.9rem;
  padding: 1.4rem 1.4rem 1.6rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.org-panel-inner div h5 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-red);
  margin-bottom: 0.4rem;
}
.org-panel-inner div p, .org-panel-inner div ul { font-size: 0.9rem; color: var(--c-gray-600); }
.org-panel-inner ul { display: grid; gap: 0.3rem; }
.org-panel-inner ul li::before { content: "— "; color: var(--c-gray-400); }

.org-branches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.org-branches .org-node { flex-direction: column; align-items: flex-start; text-align: left; height: 100%; justify-content: space-between; }
.org-branches .org-node .org-title strong { font-size: 0.92rem; }

/* ---------- Adhesion page ---------- */
.member-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.member-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.member-card.featured { border-color: var(--c-red); box-shadow: var(--shadow-md); position: relative; }
.member-card.featured::before {
  content: "Recommandé";
  position: absolute;
  top: -12px; left: 1.5rem;
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.member-card .m-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--c-gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue-2);
}
.member-card .m-icon svg { width: 24px; height: 24px; }
.member-card p { color: var(--c-gray-600); font-size: 0.94rem; flex: 1; }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.why-item { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem; border-radius: var(--radius-sm); }
.why-item:hover { background: var(--c-gray-50); }
.why-item svg { width: 22px; height: 22px; color: var(--c-red); flex-shrink: 0; margin-top: 2px; }
.why-item strong { display: block; font-family: var(--font-head); color: var(--c-navy); margin-bottom: 0.2rem; }
.why-item p { font-size: 0.9rem; color: var(--c-gray-600); }

/* Form */
.form-shell {
  max-width: 720px;
  margin-inline: auto;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-steps-nav {
  display: flex;
  background: var(--c-gray-50);
  border-bottom: 1px solid var(--c-gray-200);
  padding: 1.3rem 1.5rem 0;
  gap: 0.4rem;
}
.form-step-pill {
  flex: 1;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--c-gray-200);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-gray-400);
  transition: color .2s ease, border-color .2s ease;
}
.form-step-pill .num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-gray-200);
  color: var(--c-white);
  font-size: 0.72rem;
  margin-right: 0.4rem;
}
.form-step-pill.is-active { color: var(--c-navy); border-color: var(--c-red); }
.form-step-pill.is-active .num { background: var(--c-red); }
.form-step-pill.is-done .num { background: var(--c-blue-2); }
.form-step-pill span.label { display: none; }
@media (min-width: 640px) { .form-step-pill span.label { display: inline; } }

.form-body { padding: clamp(1.6rem, 4vw, 2.6rem); }
.form-panel { display: none; }
.form-panel.is-active { display: block; animation: fadeUp .35s ease; }

.form-panel h3 { margin-bottom: 0.3rem; }
.form-panel .step-desc { color: var(--c-gray-600); font-size: 0.92rem; margin-bottom: 1.6rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: 0.86rem; font-weight: 600; color: var(--c-navy); }
.field label .req { color: var(--c-red); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.96rem;
  background: var(--c-white);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-blue-2); }
.field textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: 0.78rem; color: var(--c-gray-400); }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.radio-card {
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.radio-card:hover { border-color: var(--c-blue-2); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card strong { display: block; font-family: var(--font-head); font-size: 0.92rem; color: var(--c-navy); }
.radio-card span { font-size: 0.82rem; color: var(--c-gray-600); }
.radio-card:has(input:checked) { border-color: var(--c-red); background: rgba(224,30,40,0.04); }

.summary-list { display: grid; gap: 0.6rem; }
.summary-list .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--c-gray-100); font-size: 0.92rem; }
.summary-list .row dt { color: var(--c-gray-600); }
.summary-list .row dd { font-weight: 600; color: var(--c-navy); text-align: right; }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.4rem; font-size: 0.88rem; color: var(--c-gray-600); }
.consent input { margin-top: 3px; }

.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem clamp(1.6rem, 4vw, 2.6rem);
  border-top: 1px solid var(--c-gray-100);
  background: var(--c-gray-50);
}

.form-success { text-align: center; padding: 2rem 1rem 1rem; display: none; }
.form-success.is-active { display: block; animation: fadeUp .4s ease; }
.form-success .success-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(30,63,158,0.1);
  color: var(--c-blue-2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}
.form-success .success-icon svg { width: 34px; height: 34px; }
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--c-gray-600); max-width: 44ch; margin-inline: auto; }
.form-success .demo-note {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: var(--c-gray-400);
  border-top: 1px dashed var(--c-gray-200);
  padding-top: 1rem;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Reveal on scroll ----------
   Hidden state only applies once JS has confirmed it will reveal it
   (body.js-anim, set in main.js). Without JS, or before it runs, or when
   printing, content stays fully visible — it never gets permanently stuck
   at opacity:0 (e.g. on a full-page capture/print that doesn't fire scroll
   events, or if a browser blocks IntersectionObserver). */
.reveal { transition: opacity .6s ease, transform .6s ease; }
body.js-anim .reveal { opacity: 0; transform: translateY(18px); }
body.js-anim .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  body.js-anim .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  body.js-anim .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; margin-top: 3.5rem; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .mvv-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .org-branches { grid-template-columns: repeat(2, 1fr); }
  .member-cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .org-panel-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .org-branches { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .form-step-pill .label-short { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* ==========================================================================
   Contenu éditorial : listes, filtres, pagination, galerie, timeline, partenaires
   ========================================================================== */

/* ---------- Filtres ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--c-gray-200);
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--c-gray-200);
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--c-gray-600);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.filter-pill:hover { border-color: var(--c-blue-2); color: var(--c-blue-2); }
.filter-pill.is-active { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }

.filter-aux { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.filter-aux select, .filter-aux input[type="search"] {
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  background: var(--c-white);
  color: var(--c-gray-900);
}
.filter-aux .btn { padding: 0.55rem 1.1rem; font-size: 0.86rem; }

/* ---------- Grille de contenu (actualités / projets) ---------- */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.content-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.content-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--c-blue) 0%, var(--c-navy) 100%);
  overflow: hidden;
}
.content-card-media img { width: 100%; height: 100%; object-fit: cover; }
.content-card-media .no-image {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
}
.content-card-media .no-image svg { width: 34px; height: 34px; }
.content-card-tag {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.content-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.content-card-date { font-size: 0.78rem; color: var(--c-gray-400); font-family: var(--font-head); font-weight: 600; }
.content-card-body h3 { font-size: 1.08rem; }
.content-card-body h3 a:hover { color: var(--c-red); }
.content-card-body p { font-size: 0.92rem; color: var(--c-gray-600); flex: 1; }

.empty-state {
  border: 1.5px dashed var(--c-gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--c-gray-600);
  background: var(--c-gray-50);
  grid-column: 1 / -1;
}
.empty-state svg { width: 34px; height: 34px; color: var(--c-gray-400); margin: 0 auto 1rem; }
.empty-state strong { display: block; color: var(--c-navy); font-family: var(--font-head); margin-bottom: 0.3rem; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2.5rem; font-family: var(--font-head); font-size: 0.9rem;
}
.pagination a { color: var(--c-blue-2); font-weight: 600; }
.pagination a:hover { text-decoration: underline; }
.pagination span { color: var(--c-gray-600); }

/* ---------- Détail article/projet ---------- */
.article-hero {
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: var(--c-white);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.article-hero .hero-ants { opacity: 0.08; }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; position: relative; z-index: 1; }
.article-meta .content-card-tag { position: static; }
.article-meta span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.article-body { max-width: 72ch; margin-inline: auto; }
.article-body img.article-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 2rem; box-shadow: var(--shadow-lg); }
.article-body .prose { font-size: 1.05rem; color: var(--c-gray-900); line-height: 1.8; }
.article-body .prose p { margin-bottom: 1.2rem; }
.article-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 2rem; }
.article-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }

/* ---------- Documents ---------- */
.doc-list { display: grid; gap: 0.9rem; }
.doc-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  background: var(--c-white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.doc-row:hover { border-color: var(--c-blue-2); box-shadow: var(--shadow-sm); }
.doc-row .doc-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--c-gray-100);
  color: var(--c-blue-2);
  display: flex; align-items: center; justify-content: center;
}
.doc-row .doc-icon svg { width: 22px; height: 22px; }
.doc-row .doc-info { flex: 1; min-width: 0; }
.doc-row .doc-info strong { display: block; font-family: var(--font-head); color: var(--c-navy); font-size: 0.98rem; }
.doc-row .doc-info span { font-size: 0.82rem; color: var(--c-gray-600); }
.doc-row .doc-year {
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  color: var(--c-gray-600); background: var(--c-gray-100);
  padding: 0.3rem 0.7rem; border-radius: 999px; flex-shrink: 0;
}

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-card {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(150deg, var(--c-blue) 0%, var(--c-navy) 100%);
  display: block;
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(10,18,48,0.85) 0%, transparent 100%);
  color: var(--c-white);
}
.gallery-card-overlay strong { display: block; font-family: var(--font-head); font-size: 0.98rem; }
.gallery-card-overlay span { font-size: 0.78rem; color: rgba(255,255,255,0.75); }

.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.media-thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; border: none; padding: 0; position: relative; background: var(--c-gray-100);
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.media-thumb:hover img { transform: scale(1.06); }
.media-thumb .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10,18,48,0.35); color: var(--c-white);
}
.media-thumb .play-badge svg { width: 28px; height: 28px; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,13,26,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img, .lightbox iframe { max-width: min(90vw, 1000px); max-height: 82vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox iframe { width: min(90vw, 1000px); aspect-ratio: 16/9; height: auto; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--c-white);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ---------- Retour en haut ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 80;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top:hover { background: var(--c-red); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 600px) {
  .back-to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}

/* ---------- Timeline (Festival) ---------- */
.timeline { position: relative; max-width: 800px; margin-inline: auto; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-gray-200); }
.timeline-item { position: relative; padding-bottom: 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.2rem; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-red); border: 3px solid var(--c-white); box-shadow: 0 0 0 2px var(--c-red);
}
.timeline-year { font-family: var(--font-head); font-weight: 800; color: var(--c-red); font-size: 0.85rem; letter-spacing: 0.03em; }
.timeline-content h3 { margin-top: 0.3rem; margin-bottom: 0.4rem; }
.timeline-content p { color: var(--c-gray-600); font-size: 0.95rem; }
.timeline-meta { font-size: 0.82rem; color: var(--c-gray-400); margin-top: 0.4rem; }

.programme-day { margin-bottom: 1.6rem; }
.programme-row { display: flex; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--c-gray-100); }
.programme-row .heure { font-family: var(--font-head); font-weight: 700; color: var(--c-blue-2); font-size: 0.85rem; width: 90px; flex-shrink: 0; }
.programme-row .details strong { display: block; color: var(--c-navy); }
.programme-row .details span { font-size: 0.85rem; color: var(--c-gray-600); }

/* ---------- Partenaires ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.partner-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.partner-logo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--c-gray-50); display: flex; align-items: center; justify-content: center; border: 1px solid var(--c-gray-100); }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; padding: 0.6rem; }
.partner-card h3 { font-size: 1rem; }
.partner-card p { font-size: 0.88rem; color: var(--c-gray-600); }
.partner-tag { font-size: 0.72rem; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-blue-2); }

@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .article-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .content-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr; }
  .doc-row { flex-wrap: wrap; }
  .filter-bar { flex-direction: column; align-items: stretch; }
}
