/* ═══════════════════════════════════════════════════
   CCMQ, Design System Partagé
   Extrait de index.html + extensions pour sous-pages
   ═══════════════════════════════════════════════════ */

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

:root {
  /* Couleurs principales */
  --navy: #0F2B3C;
  --navy-light: #1B4F72;
  --blue: #2980B9;
  --blue-light: #3498DB;
  --blue-pale: #EBF5FB;
  --blue-glow: rgba(41, 128, 185, 0.12);
  --teal: #1ABC9C;
  --teal-dark: #16A085;
  --green: #27AE60;
  --green-light: #2ECC71;
  --gold: #F39C12;
  --gold-light: #F1C40F;
  --red: #E74C3C;
  --purple: #9B59B6;
  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #F0F3F5;
  --gray-200: #E2E8ED;
  --gray-300: #CBD5DE;
  --gray-400: #9CAAB8;
  --gray-500: #7B8D9E;
  --gray-600: #5A6B7A;
  --gray-700: #3D4F5F;
  --gray-800: #2C3E50;
  --gray-900: #1A252F;

  /* Typographie */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Espaces */
  --section-py: clamp(64px, 8vw, 120px);
  --container-px: clamp(20px, 4vw, 40px);
  --container-max: 1200px;

  /* Effets */
  --shadow-sm: 0 1px 3px rgba(15,43,60,0.06);
  --shadow-md: 0 4px 16px rgba(15,43,60,0.08);
  --shadow-lg: 0 8px 32px rgba(15,43,60,0.10);
  --shadow-xl: 0 16px 48px rgba(15,43,60,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

h1, h2, h3, h4 { line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-logo img {
  height: 52px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop > a,
.nav-dropdown > .nav-dropdown-trigger {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 8px;
  letter-spacing: -0.01em;
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-desktop > a:hover,
.nav-dropdown:hover > .nav-dropdown-trigger {
  color: var(--navy);
  background: var(--blue-pale);
}

.nav-desktop > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-desktop > a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--blue-pale);
  color: var(--blue);
  padding-left: 18px;
}

.nav-dropdown-menu a .dd-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--gray-50);
  flex-shrink: 0;
}

.nav-dropdown-menu a:hover .dd-icon {
  background: var(--blue-pale);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(41,128,185,0.3);
}

.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: 0 4px 20px rgba(41,128,185,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(26,188,156,0.3);
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* Burger mobile */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.mobile-nav.open { display: flex; flex-direction: column; gap: 4px; }

.mobile-nav a {
  display: block;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: 12px;
}

.mobile-nav a:hover { background: var(--blue-pale); color: var(--blue); }

.mobile-nav .btn {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}

.mobile-nav .mobile-submenu {
  padding-left: 20px;
}

.mobile-nav .mobile-submenu a {
  font-size: 0.95rem;
  padding: 12px 20px;
  color: var(--gray-600);
}

/* ═══════════════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════════════ */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--blue);
  border-radius: 2px;
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   PAGE HERO (sous-pages)
   ═══════════════════════════════════════════════════ */

.page-hero {
  padding-top: 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, var(--blue) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 60%, rgba(41,128,185,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(26,188,156,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 80px) 0;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.page-hero-text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 640px;
}

.page-hero-accent {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  background: var(--white);
  pointer-events: none;
}

.page-hero-accent-1 { width: 500px; height: 500px; top: -200px; right: -100px; }
.page-hero-accent-2 { width: 300px; height: 300px; bottom: -100px; left: -80px; }

/* ═══════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .bc-sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
}

.breadcrumb .bc-current {
  color: var(--teal);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════ */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--blue-pale);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.card-link:hover { gap: 10px; }

/* Card accents colorés */
.card-accent-blue { border-left: 4px solid var(--blue); }
.card-accent-teal { border-left: 4px solid var(--teal); }
.card-accent-gold { border-left: 4px solid var(--gold); }
.card-accent-green { border-left: 4px solid var(--green); }
.card-accent-purple { border-left: 4px solid var(--purple); }

/* ═══════════════════════════════════════════════════
   BADGES / TAGS
   ═══════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-blue { background: rgba(41,128,185,0.1); color: var(--blue); }
.badge-green { background: rgba(39,174,96,0.1); color: var(--green); }
.badge-gold { background: rgba(243,156,18,0.1); color: var(--gold); }
.badge-teal { background: rgba(26,188,156,0.1); color: var(--teal); }
.badge-purple { background: rgba(155,89,182,0.1); color: var(--purple); }
.badge-red { background: rgba(231,76,60,0.1); color: var(--red); }

/* ═══════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,43,60,0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--navy);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   FORMULAIRES
   ═══════════════════════════════════════════════════ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CAAB8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.active { display: block; }

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(39,174,96,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════
   ORGANIGRAMME
   ═══════════════════════════════════════════════════ */

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 40px 0;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.org-connector {
  width: 2px;
  height: 32px;
  background: var(--gray-300);
  margin: 0 auto;
}

.org-connector-h {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.org-connector-h::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 16px;
  background: var(--gray-300);
}

.org-connector-h::after {
  content: '';
  position: absolute;
  top: 16px;
  height: 2px;
  background: var(--gray-300);
}

.org-box {
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 2px solid transparent;
  min-width: 180px;
}

.org-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.org-box-navy {
  background: var(--navy);
  color: var(--white);
}

.org-box-blue {
  background: var(--blue);
  color: var(--white);
}

.org-box-teal {
  background: var(--teal);
  color: var(--white);
}

.org-box-outline {
  background: var(--white);
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.org-box-light {
  background: var(--blue-pale);
  color: var(--navy);
}

.org-box small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   DOCUMENT LIST
   ═══════════════════════════════════════════════════ */

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
}

.doc-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(231,76,60,0.08);
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
}

.doc-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.doc-info p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════
   TEAM CARDS
   ═══════════════════════════════════════════════════ */

.team-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-pale), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 auto 16px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   ASSOCIATION CARDS
   ═══════════════════════════════════════════════════ */

.assoc-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  align-items: flex-start;
}

.assoc-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.assoc-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  background: var(--gray-50);
  padding: 8px;
  flex-shrink: 0;
  border: 1px solid var(--gray-100);
}

.assoc-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.assoc-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 12px;
}

.assoc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   SECTION VARIANT (fond alterné)
   ═══════════════════════════════════════════════════ */

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.section-dark .section-label { color: var(--teal); }
.section-dark .section-label::before,
.section-dark .section-label::after { background: var(--teal); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════════════
   CTA BOX
   ═══════════════════════════════════════════════════ */

.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(26,188,156,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-address-bar {
  padding: 16px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════
   GRILLES UTILITAIRES
   ═══════════════════════════════════════════════════ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .org-level { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .lang-trigger { padding: 7px 8px; font-size: 0.76rem; }
  .header-inner { height: 68px; }
  .header-logo img { height: 42px; }

  .page-hero { padding-top: 68px; }
  .page-hero-inner { padding: 40px 0 48px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .form-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .assoc-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .assoc-actions { justify-content: center; }

  .modal-content { padding: 28px 20px; }

  .cta-box { padding: 40px 24px; }

  .org-tree { overflow-x: auto; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .org-box { min-width: 140px; font-size: 0.82rem; padding: 12px 16px; }
}

/* ═══════════════════════════════════════════════════
   NAVIGATION RESSERRÉE (6 entrées + sélecteur de langue)
   ═══════════════════════════════════════════════════ */

.nav-desktop { gap: 0; }

.nav-desktop > a,
.nav-dropdown > .nav-dropdown-trigger {
  padding: 9px 11px;
  font-size: 0.845rem;
  letter-spacing: -0.015em;
  gap: 3px;
  white-space: nowrap;
}

.nav-dropdown-menu { min-width: 230px; }

.nav-dropdown-menu-wide {
  min-width: 320px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

.nav-dropdown-menu a { font-size: 0.85rem; padding: 9px 12px; }

.nav-dropdown-menu .dd-all {
  margin-top: 6px;
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
  font-weight: 700;
  color: var(--blue);
}

/* ── Sélecteur de langue ── */
.lang-switch { position: relative; flex-shrink: 0; }

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.lang-trigger:hover { color: var(--navy); background: var(--blue-pale); border-color: var(--blue-pale); }

.lang-switch .lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
}

.lang-switch:hover .lang-menu,
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--gray-600);
}

.lang-menu a:hover { background: var(--blue-pale); color: var(--blue); }
.lang-menu a.is-current { color: var(--blue); font-weight: 700; }

.mobile-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  margin-top: 8px;
  border-top: 1px solid var(--gray-200);
}

.mobile-lang span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

.mobile-lang a {
  display: inline-block !important;
  padding: 6px 14px !important;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.82rem !important;
  font-weight: 600;
}

.mobile-lang a.is-current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ═══════════════════════════════════════════════════
   BANNIÈRE DE CONSENTEMENT AUX COOKIES
   ═══════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 900px;
  margin: 0 auto;
  display: none;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(15,43,60,0.18);
}

.cookie-banner.visible { display: flex; }

.cookie-banner p {
  flex: 1 1 340px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.cookie-banner a { color: var(--blue); font-weight: 600; text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .cookie-banner { padding: 18px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* ═══════════════════════════════════════════════════
   GRILLE DES PROGRAMMES (3 par ligne)
   ═══════════════════════════════════════════════════ */

.programmes { padding: var(--section-py) 0; background: var(--gray-50); }

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

.prog-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.prog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  opacity: 0;
  transition: var(--transition);
}

.prog-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.prog-card:hover::before { opacity: 1; }

.prog-logo {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.prog-logo img {
  max-height: 76px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.prog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.prog-card p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 18px;
}

.prog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue);
}

.prog-link:hover { gap: 10px; }

.prog-footer { margin-top: 44px; text-align: center; }

@media (max-width: 1024px) {
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .prog-grid { grid-template-columns: 1fr; }
}

/* Navigation : bascule vers le menu mobile plus tôt (6 entrées) */
@media (max-width: 1180px) {
  .nav-cta .btn-outline { display: none; }
}

@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
}

/* ═══════════════════════════════════════════════════
   FORMULAIRES : VALIDATION ET CONFIRMATION
   ═══════════════════════════════════════════════════ */

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 0.79rem;
  line-height: 1.5;
  font-weight: 500;
  color: #C0392B;
}

.field-error::before {
  content: '!';
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 50%;
  background: #C0392B;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #C0392B !important;
  background-color: #FDF3F2;
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.14);
}

.form-error-summary {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #F1C0BB;
  border-left: 4px solid #C0392B;
  border-radius: 10px;
  background: #FDF3F2;
  font-size: 0.85rem;
  color: #7B241C;
}

.form-error-summary strong { display: block; margin-bottom: 8px; font-size: 0.88rem; }
.form-error-summary ul { margin: 0; padding-left: 18px; }
.form-error-summary li { margin-bottom: 4px; line-height: 1.55; }

/* ── Écran de confirmation ── */
.form-confirmation {
  padding: 44px 32px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  animation: fadeInUp 0.5s ease both;
}

.confirm-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(39,174,96,0.12);
  color: #1E8449;
}

.confirm-icon svg { width: 34px; height: 34px; }

.form-confirmation h3 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.confirm-lead {
  max-width: 520px;
  margin: 0 auto 18px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray-600);
}

.confirm-mail {
  max-width: 520px;
  margin: 0 auto 14px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--blue-pale, #EBF5FB);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--gray-700);
}

.confirm-mail strong { color: var(--navy); }

.confirm-ref {
  margin: 0 0 24px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.confirm-ref span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.confirm-note {
  font-size: 0.79rem;
  line-height: 1.7;
  color: var(--gray-500);
}

.confirm-note a { color: var(--blue); font-weight: 600; }

@media (max-width: 560px) {
  .form-confirmation { padding: 32px 20px; }
  .confirm-actions .btn { width: 100%; justify-content: center; }
}

/* Adresse du site sous la présentation d'un programme */
.prog-url {
  display: block;
  margin: -8px 0 16px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--gray-500);
  word-break: break-word;
}

.prog-url::before {
  content: '\2197';
  margin-right: 6px;
  color: var(--blue);
  font-weight: 700;
}

.prog-url:hover { color: var(--blue); text-decoration: underline; }

/* ── Bloc de paiement dans l'écran de confirmation ── */
.confirm-payment {
  max-width: 540px;
  margin: 0 auto 22px;
  padding: 24px 26px;
  border: 1px solid #F5D9A8;
  border-radius: 12px;
  background: #FEF9F0;
  text-align: center;
}

.confirm-payment-lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.confirm-payment-lead strong { color: var(--navy); }

.confirm-payment .btn { width: 100%; justify-content: center; }

.confirm-redirect {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════
   CONSENTEMENT LOI 25 (formulaires)
   ═══════════════════════════════════════════════════ */

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 20px;
  padding: 15px 18px;
  background: var(--gray-50, #F8FAFB);
  border: 1px solid var(--gray-200, #E2E8ED);
  border-radius: 10px;
}

.form-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue, #2980B9);
  cursor: pointer;
}

.form-consent label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gray-600, #5A6B7A);
  cursor: pointer;
}

.form-consent strong { color: var(--navy, #0F2B3C); }

.form-consent a {
  color: var(--blue, #2980B9);
  font-weight: 600;
  text-decoration: underline;
}

.form-consent input.is-invalid {
  outline: 2px solid #C0392B;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════
   RÉSEAUX SOCIAUX (composant partagé)
   ═══════════════════════════════════════════════════ */

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 8px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-social-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
}

.footer-social-icons { display: inline-flex; }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: inherit;
  background: rgba(255,255,255,0.06);
  transition: var(--transition, 0.25s ease);
}

.social-link svg { width: 20px; height: 20px; display: block; }

.social-link:hover,
.social-link:focus-visible {
  background: var(--blue, #2980B9);
  color: #ffffff;
  transform: translateY(-2px);
  outline: none;
}

/* Variante sur fond clair (page contact) */
.social-on-light .social-link {
  color: var(--gray-600, #5A6B7A);
  background: var(--gray-100, #F0F3F5);
}
.social-on-light .social-link:hover,
.social-on-light .social-link:focus-visible {
  background: var(--blue, #2980B9);
  color: #ffffff;
}

@media (max-width: 400px) {
  .social-link { width: 44px; height: 44px; }
}
