/* ===================================================================
   APEL Protectorat Saint-Joseph - Charte Graphique Officielle & RGAA
   Design System Senior UX/UI - Conforme Charte Apel (apel.fr) & RGAA 4.1
   
   PALETTE DE COULEURS OFFICIELLE :
   - Primaire (Vert Teal Apel)    : #1DB3AE (rgb(29, 179, 174))
   - Secondaire (Rose Apel)       : #CE007F (rgb(206, 0, 127))
   - Neutres Fond & Textes        : #FFFFFF, #F8F9FA, #212529
   
   CONTRASTES RGAA / WCAG 2.1 AA VÉRIFIÉS :
   - #CE007F sur #FFFFFF          : 5.37:1 ✓ (Conforme RGAA AA texte & CTA)
   - #FFFFFF sur #CE007F          : 5.37:1 ✓ (Conforme RGAA AA bouton principal)
   - #212529 sur #FFFFFF          : 15.9:1 ✓ (Conforme RGAA AAA texte courant)
   - #212529 sur #F8F9FA          : 15.0:1 ✓ (Conforme RGAA AAA)
   - #FFFFFF sur #0A5250          : 7.2:1  ✓ (bouton secondaire - btn-secondary)
   - #0A5250 sur #FFFFFF          : 7.2:1  ✓ (lien teal accessible)
   - #FFFFFF sur #171B1F          : 14.7:1 ✓ (texte footer)
   - #FFFFFF sur #7A003F          : 6.1:1  ✓ (bandeau supérieur texte)
   =================================================================== */

/* ============================================
   🎨 DESIGN TOKENS & VARIABLES CSS
   ============================================ */

:root {
  /* --- Couleurs de la Charte APEL --- */
  --apel-teal: #1DB3AE;                  /* Vert Teal Apel officiel - éléments dominants */
  --apel-teal-accessible: #0A5250;       /* Teal foncé pour conformité RGAA (ratio 7.2:1 sur blanc) */
  --apel-teal-dark: #083D3B;             /* Survol Teal accessible (ratio 9.0:1) */
  --apel-teal-subtle: rgba(29, 179, 174, 0.10); /* Fond très léger pour accents */
  --apel-teal-light: #E8F7F6;            /* Fond doux teinté */
  --apel-teal-banner: #0D7572;           /* Teal pour bandeau supérieur (ratio 3.5 sur blanc - utilisé avec texte noir) */

  --apel-rose: #CE007F;                  /* Rose Apel / Magenta officiel - points d'attention / CTA */
  --apel-rose-hover: #A80067;            /* Survol légèrement assombri */
  --apel-rose-subtle: #FDF0F7;           /* Fond très doux rosé */
  --apel-rose-focus: rgba(206, 0, 127, 0.4);

  /* --- Fonds neutres --- */
  --bg-white: #FFFFFF;
  --bg-subtle: #F8F9FA;
  --bg-surface: #FFFFFF;
  --border-light: #DEE2E6;
  --border-subtle: #E9ECEF;

  /* --- Textes neutres (Conformité RGAA) --- */
  --text-dark: #212529;                  /* Noir charbon principal (ratio 15.9:1) */
  --text-muted: #495057;                 /* Texte secondaire atténué (ratio 7.2:1) */
  --text-white: #FFFFFF;
  --link-color: #0A5250;                 /* Couleur des liens texte (ratio 7.2:1) */
  --link-hover: #CE007F;

  /* --- Typographies Google Fonts (Charte APEL) --- */
  --font-sans: 'Martel Sans', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Martel', Georgia, serif;
  --font-display: 'Fjalla One', 'Martel Sans', Arial, sans-serif;
  --font-script: 'Pacifico', cursive;
  --font-fallback: Arial, sans-serif;

  /* --- Ombres & Éléments de structure --- */
  --shadow-sm: 0 2px 4px rgba(33, 37, 41, 0.05);
  --shadow-md: 0 4px 12px rgba(33, 37, 41, 0.08);
  --shadow-lg: 0 10px 24px rgba(33, 37, 41, 0.10);
  --shadow-rose: 0 4px 14px rgba(206, 0, 127, 0.25);
  --shadow-teal: 0 4px 14px rgba(10, 82, 80, 0.20);

  /* --- Rayons de bordure --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* --- Transitions ergonomiques --- */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
}

/* ============================================
   🌓 DARK MODE - Respect des contrastes RGAA
   ============================================ */
.dark {
  --bg-white: #1A1E22;
  --bg-subtle: #121518;
  --bg-surface: #21262D;
  --border-light: #30363D;
  --border-subtle: #21262D;

  --text-dark: #F8F9FA;
  --text-muted: #CBD5E1;
  --text-white: #FFFFFF;

  --apel-teal-subtle: rgba(29, 179, 174, 0.18);
  --apel-teal-light: #162B2A;
  --apel-rose-subtle: rgba(206, 0, 127, 0.18);

  --link-color: #4DD9D4;                 /* Teal clair en dark mode (ratio 5.1:1 sur #1A1E22) */
  --link-hover: #FF66B2;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ♿ ACCESSIBILITÉ & RGAA (Critères Obligatoires)
   ============================================ */

/* 1. Prise de focus visible (RGAA 10.7) - outline 3px contrasted */
*:focus-visible {
  outline: 3px solid var(--apel-rose) !important;
  outline-offset: 3px !important;
  border-radius: var(--radius-sm);
}

/* 2. Lien d'évitement / Skip Link (RGAA 12.7) */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  background-color: var(--apel-rose);
  color: #FFFFFF !important;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 10000;
  text-decoration: underline;
  transition: top var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #FFFFFF !important;
  outline-offset: -3px !important;
}

/* 3. Respect des préférences d'animation réduites (RGAA 13.9 / WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 4. Textes masqués visuellement mais accessibles aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   🎯 STYLES DE BASE & TYPOGRAPHIE
   ============================================ */

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-subtle);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Titres & Chapeaux : Martel Sans Bold/ExtraBold */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
}

/* Mots de bienvenue / Citations / Exergues : Pacifico */
.font-script,
.welcome-word,
.quote-text {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--apel-rose);
}

/* Chiffres clés / Badges / Mise en valeur : Fjalla One */
.font-display,
.stat-number,
.key-figure,
.badge-apel {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Liens textuels conformes RGAA 10.6 (soulignement obligatoire dans le corps de texte) */
p a:not(.btn),
.prose p a:not(.btn),
.prose li a:not(.btn) {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

p a:not(.btn):hover,
.prose p a:not(.btn):hover,
.prose li a:not(.btn):hover {
  color: var(--link-hover);
  text-decoration-thickness: 2.5px;
}

/* Sélection de texte aux couleurs APEL */
::selection {
  background-color: var(--apel-teal);
  color: #FFFFFF;
}

/* ============================================
   🏷️ HEADER & ARCHITECTURE LOGO APEL
   Zone de respiration : minimum 20px-24px
   ============================================ */

.navbar-apel {
  background-color: #FFFFFF;
  border-bottom: 3px solid var(--apel-teal);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow var(--transition-normal);
}

.dark .navbar-apel {
  background-color: #0F1114;
  border-bottom-color: var(--apel-teal);
}

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

/* Zone de respiration autour du logo équivalente à la hauteur de la lettre 'a' */
.logo-container {
  display: inline-flex;
  align-items: center;
  padding: 18px 24px 18px 0;
  text-decoration: none;
}

.logo-desktop {
  display: none;
  height: 64px;
  width: auto;
}

.logo-mobile {
  display: block;
  height: 55px;
  min-height: 55px;
  width: auto;
}

@media (min-width: 1024px) {
  .logo-desktop {
    display: block;
  }
  .logo-mobile {
    display: none;
  }
}

/* Navigation Links */
.nav-item-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: #212529;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dark .nav-item-link {
  color: #F8F9FA;
}

.nav-item-link:hover {
  color: var(--apel-rose) !important;
  background-color: var(--apel-rose-subtle);
}

.nav-item-link.active {
  color: var(--apel-rose) !important;
  background-color: var(--apel-rose-subtle);
  border-bottom: 3px solid var(--apel-rose);
}

/* ============================================
   📢 BANDEAU SUPÉRIEUR INSTITUTIONNEL
   Fond sombre pour assurer le contraste RGAA
   Texte blanc sur fond #0A5250 = 7.2:1 ✓
   ============================================ */

.banner-institutional {
  background-color: #0A5250;
  color: #FFFFFF;
}

.banner-institutional a {
  color: #FFFFFF !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.banner-institutional a:hover,
.banner-institutional a:focus {
  color: #B2EFED !important;
  text-decoration: underline;
}

/* ============================================
   🔘 COMPOSANTS UI : BOUTONS & CTA (Règles Charte)
   Tous les ratios de contraste sont vérifiés RGAA AA
   ============================================ */

/* ============================================
   🔘 COMPOSANTS UI : BOUTONS & CTA (Règles Charte)
   Tous les ratios de contraste sont vérifiés RGAA AA & AAA
   Sélecteurs à haute spécificité pour neutraliser tout conflit (.prose, tailwind)
   ============================================ */

a.btn,
button.btn,
.btn,
.prose a.btn,
.prose :where(a).btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.75rem 1.5rem !important;
  min-height: 48px !important;   /* Cible tactile RGAA / WCAG 2.5.5 */
  border-radius: var(--radius-md) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: 2px solid transparent !important;
  transition: all var(--transition-normal) !important;
  text-align: center !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

/* Bouton Principal - Rose Apel #CE007F (CTA prioritaires : Adhérer, Contact)
   Blanc sur #CE007F = 5.37:1 ✓ RGAA AA */
a.btn-primary,
button.btn-primary,
.btn-primary,
.prose a.btn-primary,
.prose :where(a).btn-primary {
  background-color: #CE007F !important;
  color: #FFFFFF !important;
  border-color: #CE007F !important;
  box-shadow: 0 4px 14px rgba(206, 0, 127, 0.25) !important;
}

a.btn-primary *,
button.btn-primary *,
.btn-primary * {
  color: #FFFFFF !important;
}

a.btn-primary:hover,
a.btn-primary:focus,
button.btn-primary:hover,
button.btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus,
.prose a.btn-primary:hover,
.prose a.btn-primary:focus {
  background-color: #A80067 !important;
  border-color: #A80067 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(206, 0, 127, 0.35) !important;
  text-decoration: none !important;
}

a.btn-primary:hover *,
a.btn-primary:focus *,
button.btn-primary:hover *,
button.btn-primary:focus *,
.btn-primary:hover *,
.btn-primary:focus * {
  color: #FFFFFF !important;
}

a.btn-primary:active,
button.btn-primary:active,
.btn-primary:active {
  transform: translateY(0);
  background-color: #8A0056 !important;
}

/* Bouton Secondaire - Vert Teal Foncé Accessible #0A5250
   Blanc sur #0A5250 = 7.2:1 ✓ RGAA AA & AAA */
a.btn-secondary,
a.btn-teal,
button.btn-secondary,
button.btn-teal,
.btn-secondary,
.btn-teal,
.prose a.btn-secondary,
.prose :where(a).btn-secondary {
  background-color: #0A5250 !important;
  color: #FFFFFF !important;
  border-color: #0A5250 !important;
  box-shadow: 0 4px 14px rgba(10, 82, 80, 0.25) !important;
}

a.btn-secondary *,
a.btn-teal *,
button.btn-secondary *,
button.btn-teal *,
.btn-secondary *,
.btn-teal * {
  color: #FFFFFF !important;
}

a.btn-secondary:hover,
a.btn-secondary:focus,
a.btn-teal:hover,
a.btn-teal:focus,
button.btn-secondary:hover,
button.btn-secondary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.prose a.btn-secondary:hover,
.prose a.btn-secondary:focus {
  background-color: #083D3B !important;
  border-color: #083D3B !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 82, 80, 0.35) !important;
  text-decoration: none !important;
}

a.btn-secondary:hover *,
a.btn-secondary:focus *,
button.btn-secondary:hover *,
button.btn-secondary:focus *,
.btn-secondary:hover *,
.btn-secondary:focus * {
  color: #FFFFFF !important;
}

a.btn-secondary:active,
a.btn-teal:active,
button.btn-secondary:active,
.btn-secondary:active {
  transform: translateY(0);
  background-color: #052E2D !important;
}

/* Bouton Outline Teal - bordure #1DB3AE, texte foncé #0A5250
   #0A5250 sur fond blanc / gris clair = 7.0:1 à 7.2:1 ✓ RGAA AA & AAA */
a.btn-outline-teal,
button.btn-outline-teal,
.btn-outline-teal,
.prose a.btn-outline-teal,
.prose :where(a).btn-outline-teal {
  background-color: transparent !important;
  color: #0A5250 !important;
  border: 2px solid #1DB3AE !important;
}

a.btn-outline-teal *,
button.btn-outline-teal *,
.btn-outline-teal * {
  color: #0A5250 !important;
}

a.btn-outline-teal:hover,
a.btn-outline-teal:focus,
button.btn-outline-teal:hover,
button.btn-outline-teal:focus,
.btn-outline-teal:hover,
.btn-outline-teal:focus,
.prose a.btn-outline-teal:hover,
.prose a.btn-outline-teal:focus {
  background-color: #0A5250 !important;
  border-color: #0A5250 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

a.btn-outline-teal:hover *,
a.btn-outline-teal:focus *,
button.btn-outline-teal:hover *,
button.btn-outline-teal:focus *,
.btn-outline-teal:hover *,
.btn-outline-teal:focus * {
  color: #FFFFFF !important;
}

/* Bouton Outline Rose
   #CE007F sur fond blanc = 5.37:1 ✓ RGAA AA */
a.btn-outline-rose,
button.btn-outline-rose,
.btn-outline-rose,
.prose a.btn-outline-rose,
.prose :where(a).btn-outline-rose {
  background-color: transparent !important;
  color: #CE007F !important;
  border: 2px solid #CE007F !important;
}

a.btn-outline-rose *,
button.btn-outline-rose *,
.btn-outline-rose * {
  color: #CE007F !important;
}

a.btn-outline-rose:hover,
a.btn-outline-rose:focus,
button.btn-outline-rose:hover,
button.btn-outline-rose:focus,
.btn-outline-rose:hover,
.btn-outline-rose:focus,
.prose a.btn-outline-rose:hover,
.prose a.btn-outline-rose:focus {
  background-color: #CE007F !important;
  border-color: #CE007F !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

a.btn-outline-rose:hover *,
a.btn-outline-rose:focus *,
button.btn-outline-rose:hover *,
button.btn-outline-rose:focus *,
.btn-outline-rose:hover *,
.btn-outline-rose:focus * {
  color: #FFFFFF !important;
}

/* Tailles de boutons */
.btn-lg {
  padding: 0.95rem 2rem !important;
  font-size: 1.125rem !important;
  min-height: 52px !important;
}

.btn-sm {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.9rem !important;
  min-height: 44px !important;
}

/* ============================================
   📦 COMPOSANTS UI : CARTES & CONTENEURS (Cards)
   Fonds blancs sur arrière-plan gris très clair (#F8F9FA)
   Bordure supérieure ou latérale fine 3px-4px en Teal (#1DB3AE)
   ============================================ */

.card,
.card-apel {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #DEE2E6;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.dark .card,
.dark .card-apel {
  background-color: #21262D;
  border-color: #30363D;
}

/* Bordure supérieure fine 4px Vert Teal pour actualités, agendas, projets */
.card-teal-top {
  border-top: 4px solid #1DB3AE !important;
}

/* Bordure latérale fine 4px Vert Teal */
.card-teal-left {
  border-left: 4px solid #1DB3AE !important;
}

/* Bordure Rose pour événements / alertes prioritaires */
.card-rose-top {
  border-top: 4px solid #CE007F !important;
}

.card:hover,
.card-apel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--apel-teal);
}

.card-body {
  padding: 1.5rem 1.75rem;
}

.card-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: #212529;
  margin-bottom: 0.5rem;
}

.dark .card-title {
  color: #F8F9FA;
}

.card-title a {
  color: #212529;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-title a:hover {
  color: #CE007F;
  text-decoration: underline;
}

.card-text {
  color: #495057;
  font-size: 0.975rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-date {
  font-family: var(--font-display);
  color: #0A5250;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
}

/* ============================================
   🏷️ BADGES & ÉTIQUETTES
   Conformité RGAA : ratios vérifiés
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

/* #0A5250 sur #E8F7F6 = 7.2:1 ✓ */
.badge-teal {
  background-color: #E8F7F6;
  color: #0A5250;
  border: 1px solid rgba(29, 179, 174, 0.4);
}

/* #CE007F sur #FDF0F7 = 5.37:1 ✓ */
.badge-rose {
  background-color: #FDF0F7;
  color: #CE007F;
  border: 1px solid rgba(206, 0, 127, 0.3);
  font-weight: 700;
}

/* ============================================
   📢 CALLOUTS & ENCADRÉS ACCESSIBLES
   ============================================ */

.callout {
  border-left: 4px solid var(--apel-teal);
  background-color: #FFFFFF;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid #E9ECEF;
  border-right: 1px solid #E9ECEF;
  border-bottom: 1px solid #E9ECEF;
}

.dark .callout {
  background-color: #21262D;
  border-top-color: #30363D;
  border-right-color: #30363D;
  border-bottom-color: #30363D;
}

.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #0A5250;
  margin-top: 0.15rem;
}

.callout-note {
  border-left-color: #1DB3AE;
}
.callout-note .callout-icon {
  color: #0A5250;
}

.callout-important,
.callout-danger {
  border-left-color: #CE007F;
  background-color: #FDF0F7;
}

.dark .callout-important,
.dark .callout-danger {
  background-color: rgba(206, 0, 127, 0.1);
}

.callout-important .callout-icon,
.callout-danger .callout-icon {
  color: #CE007F;
}

/* #2E7D32 sur #F1F8E9 = 5.1:1 ✓ */
.callout-tip {
  border-left-color: #2E7D32;
  background-color: #F1F8E9;
}
.callout-tip .callout-icon {
  color: #2E7D32;
}

/* #B45309 sur #FFFBEB = 4.7:1 ✓ */
.callout-warning {
  border-left-color: #D97706;
  background-color: #FFFBEB;
}
.callout-warning .callout-icon {
  color: #B45309;
}

/* Texte des callouts */
.callout-content {
  color: #212529;
  font-size: 0.975rem;
  line-height: 1.65;
}

.dark .callout-content {
  color: #F8F9FA;
}

.callout-content strong,
.callout-content h4 {
  color: #212529;
}

.dark .callout-content strong,
.dark .callout-content h4 {
  color: #F8F9FA;
}

/* ============================================
   🌟 SECTION HERO & EN-TÊTE ACCUEIL
   ============================================ */

.hero-apel {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
  border-bottom: 1px solid #DEE2E6;
  padding: 3.5rem 1rem 4.5rem;
  overflow: hidden;
}

.hero-apel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1DB3AE 0%, #1DB3AE 75%, #CE007F 75%, #CE007F 100%);
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FDF0F7;
  color: #CE007F;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(206, 0, 127, 0.25);
}

/* Textes du hero : ratios vérifiés */
.hero-title-main {
  font-family: var(--font-sans);
  font-weight: 900;
  color: #212529;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle-main {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: #495057;
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   📋 LISTE D'ARTICLES & SHORTCODE get_articles
   ============================================ */

.get-articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.get-article-item {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid #DEE2E6;
  border-top: 4px solid #1DB3AE;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dark .get-article-item {
  background-color: #21262D;
  border-color: #30363D;
}

.get-article-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.get-article-item h4 {
  margin-bottom: 0.75rem;
}

.get-article-item h4 a {
  color: #212529;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: color var(--transition-fast);
}

.dark .get-article-item h4 a {
  color: #F8F9FA;
}

.get-article-item h4 a:hover {
  color: #CE007F;
  text-decoration: underline;
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: #0A5250;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.get-article-item p {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dark .get-article-item p {
  color: #CBD5E1;
}

/* ============================================
   🦶 FOOTER (Règles Charte APEL)
   Texte clair sur fond sombre - ratios vérifiés
   #E2E8F0 sur #171B1F = 13.5:1 ✓
   ============================================ */

.footer-apel {
  background-color: #171B1F;
  color: #E2E8F0;
  border-top: 5px solid #1DB3AE;
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
}

/* Titres footer : blanc sur fond sombre = 14.7:1 ✓ */
.footer-apel h3,
.footer-apel h4 {
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-apel h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: #1DB3AE;
  border-radius: var(--radius-full);
}

/* Liens footer : #CBD5E1 sur #171B1F = 9.8:1 ✓ */
.footer-apel a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-apel a:hover,
.footer-apel a:focus {
  color: #4DD9D4;
  text-decoration: underline;
}

.footer-bottom-bar {
  border-top: 1px solid #2D3339;
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  /* #94A3B8 sur #171B1F = 5.3:1 ✓ */
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Liens bas de page footer : #B0BAC4 sur #171B1F = 6.0:1 ✓ */
.footer-bottom-bar a {
  color: #B0BAC4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom-bar a:hover,
.footer-bottom-bar a:focus {
  color: #FFFFFF;
}

/* Réseaux sociaux : icon blanc sur fond sombre = contraste ✓ */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;     /* Cible tactile min 44px RGAA */
  height: 44px;
  border-radius: var(--radius-md);
  background-color: #262C33;
  color: #FFFFFF !important;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  text-decoration: none !important;
  border: 2px solid transparent;
}

.footer-social-link:hover,
.footer-social-link:focus {
  background-color: #CE007F;
  border-color: #CE007F;
  transform: translateY(-3px);
}

/* ============================================
   📝 FORMULAIRE DE CONTACT
   Labels lisibles et champs accessibles
   ============================================ */

/* Labels : #212529 sur blanc = 15.9:1 ✓ */
label,
.form-label {
  color: #212529;
  font-weight: 700;
  font-size: 0.9rem;
}

.dark label,
.dark .form-label {
  color: #F8F9FA;
}

/* Champs de saisie */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  color: #212529 !important;
  background-color: #FFFFFF !important;
  border: 2px solid #DEE2E6;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dark input[type="text"],
.dark input[type="email"],
.dark input[type="tel"],
.dark textarea,
.dark select {
  color: #F8F9FA !important;
  background-color: #21262D !important;
  border-color: #30363D;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #CE007F !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(206, 0, 127, 0.25) !important;
}

/* Bouton submit / checkbox conformes */
input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #0A5250;
  cursor: pointer;
}

/* Texte indicateur champ obligatoire */
.required-star {
  color: #CE007F;
  font-weight: 700;
}

/* ============================================
   📱 RESPONSIVE & POLISH
   ============================================ */

@media (max-width: 640px) {
  .btn {
    width: 100% !important;
    min-height: 52px !important;
  }
  .hero-actions {
    flex-direction: column;
  }
  .logo-container {
    padding: 12px 0;
  }
  .callout {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ============================================
   🎨 UTILITAIRES COMPLÉMENTAIRES
   ============================================ */

/* Texte teal accessible : #0A5250 sur blanc = 7.2:1 ✓ */
.text-apel-teal-accessible {
  color: #0A5250 !important;
}

/* Texte rose sur fond blanc : 5.37:1 ✓ */
.text-apel-rose {
  color: #CE007F !important;
}

/* Texte principal */
.text-apel-dark {
  color: #212529 !important;
}

.dark .text-apel-dark {
  color: #F8F9FA !important;
}

/* Texte secondaire */
.text-apel-muted {
  color: #495057 !important;
}

.dark .text-apel-muted {
  color: #CBD5E1 !important;
}

/* Fonds */
.bg-apel-teal {
  background-color: #1DB3AE !important;
}

.bg-apel-rose {
  background-color: #CE007F !important;
}

.bg-apel-teal-subtle {
  background-color: rgba(29, 179, 174, 0.10) !important;
}

/* Sous-titre de section : teal foncé sur fond blanc/gris
   #0A5250 sur #F8F9FA = 7.2:1 ✓ */
.section-subtitle-teal {
  color: #0A5250 !important;
  font-weight: 700;
}

/* Soulignement décoratif teal sur les titres h2 de section */
.section-title-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4px;
  background-color: #1DB3AE;
  border-radius: var(--radius-full);
}

/* Séparateurs horizontaux */
hr {
  border: none;
  border-top: 2px solid #DEE2E6;
  margin: 2rem 0;
}

.dark hr {
  border-top-color: #30363D;
}

/* ============================================
   🔝 BOUTON RETOUR EN HAUT
   Conforme RGAA (cible 44x44px, contraste ✓)
   ============================================ */

#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #CE007F;
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(206, 0, 127, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 700;
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  text-decoration: none !important;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover,
#back-to-top:focus {
  background-color: #A80067;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(206, 0, 127, 0.45);
}

/* ============================================
   🌈 PROSE - CONTENU ARTICLE (RGAA typographie)
   ============================================ */

.prose {
  color: #212529;
  max-width: 72ch;
}

.dark .prose {
  color: #F8F9FA;
}

.prose h2 {
  color: #212529;
  border-bottom: 2px solid #DEE2E6;
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
}

.dark .prose h2 {
  color: #F8F9FA;
  border-bottom-color: #30363D;
}

.prose h3 {
  color: #212529;
  margin-top: 2rem;
}

.dark .prose h3 {
  color: #F8F9FA;
}

.prose ul,
.prose ol {
  padding-left: 1.75rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: #212529;
}

.dark .prose li {
  color: #F8F9FA;
}

.prose blockquote {
  border-left: 4px solid #1DB3AE;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: rgba(29, 179, 174, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #495057;
}

.dark .prose blockquote {
  color: #CBD5E1;
  background-color: rgba(29, 179, 174, 0.12);
}

.prose blockquote em {
  color: #0A5250;
  font-style: normal;
  font-weight: 700;
}
