/* ==========================================================================
   CDC BEAUHARNOIS-SALABERRY - FEUILLE DE STYLE PRINCIPALE
   VERSION : DEEP FUCHSIA PURPLE PALETTE
   Design d'élite, accessible (WCAG 2.1 AA), responsive et ultra-performant
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* PALETTE DEEP FUCHSIA PURPLE */
  --primary: #4a044e;         /* Deep Plum / Midnight Purple */
  --primary-dark: #24002a;    /* Noir Pourpre / Obsidian */
  --primary-light: #701a75;   /* Améthyste Profond */
  --primary-subtle: #fae8ff;  /* Lilas Très Clair */
  --primary-soft: #fdf4ff;    /* Fond Poudré Fuchsia */
  
  --accent: #c026d3;          /* Deep Fuchsia Vibrant */
  --accent-dark: #86198f;     /* Fuchsia Foncé */
  --accent-light: #e879f9;    /* Fuchsia Lumineux / Glow */
  --accent-soft: #fdf2f8;     /* Voile Rose Fuchsia */
  
  --secondary: #9333ea;       /* Violet Impérial */
  --secondary-soft: #f3e8ff;  /* Violet Pastel */
  --highlight-pink: #f472b6;  /* Rose Corail Lumineux */
  
  /* Nuances neutres teintées pourpre */
  --neutral-900: #1a0826;
  --neutral-800: #2d123d;
  --neutral-700: #4a285f;
  --neutral-600: #66417d;
  --neutral-500: #88659f;
  --neutral-400: #b194c4;
  --neutral-300: #d6c4e3;
  --neutral-200: #ece2f4;
  --neutral-100: #f6f0fa;
  --neutral-50:  #fdfbfe;
  --white: #ffffff;
  
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(74, 4, 78, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(74, 4, 78, 0.08), 0 2px 4px -2px rgba(74, 4, 78, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(74, 4, 78, 0.12), 0 4px 6px -4px rgba(74, 4, 78, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(74, 4, 78, 0.15), 0 8px 10px -6px rgba(74, 4, 78, 0.08);
  --shadow-fuchsia-glow: 0 0 25px rgba(192, 38, 211, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset et règles de base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-700);
  background-color: var(--neutral-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--neutral-900);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Conteneurs et mise en page */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-lg {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.bg-white { background-color: var(--white); }
.bg-subtle { background-color: var(--neutral-50); }
.bg-primary-soft { background-color: var(--primary-soft); }
.bg-dark { background-color: var(--primary-dark); color: var(--white); }

/* BARRE D'ANNONCE SUPÉRIEURE (TOPBAR) */
.topbar {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(232, 121, 249, 0.2);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar a:hover {
  color: var(--accent-light);
}

.topbar-tag {
  background: linear-gradient(135deg, #c026d3 0%, #db2777 100%);
  color: var(--white);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(192, 38, 211, 0.3);
}

/* EN-TÊTE ET NAVIGATION PRINCIPALE (STYLE COLOR BLOCKS DU LOGO & MÉGA-MENU NEW GEN) */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--neutral-200);
  transition: box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(74, 4, 78, 0.12);
}

.site-header-container {
  max-width: 1440px;
  position: relative;
  padding-right: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  min-height: 72px;
  position: relative; /* Conteneur de référence pour le méga-menu pleine largeur */
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding: 0.5rem 1rem 0.5rem 0;
  flex-shrink: 0;
}

.brand-icon {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(74, 4, 78, 0.15));
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon {
  transform: scale(1.04);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e1b4b;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* ==========================================================================
   ONGLETS DE NAVIGATION DESKTOP FIDÈLES AU LOGO
   ========================================================================== */
.nav-tabs-bar {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-tab-item {
  position: static !important; /* Permet au méga-menu de s'étendre sur toute la largeur de la barre */
  display: flex;
  align-items: stretch;
}

.nav-tab-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.05rem;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: filter var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
}

.nav-tab-link:hover,
.nav-tab-link:focus-visible {
  filter: brightness(1.2);
  color: #ffffff !important;
}

/* Couleurs spectrales fuchsia-pourpre extraites du logo */
.tab-purple-1 { background-color: #4a044e; } /* Accueil */
.tab-purple-2 { background-color: #571089; } /* C'est quoi une CDC */
.tab-purple-3 { background-color: #6411ad; } /* Nos membres */
.tab-purple-4 { background-color: #7518a3; } /* Services */
.tab-purple-5 { background-color: #822faf; } /* Offres d'emploi */
.tab-purple-6 { background-color: #9727a3; } /* Formations */
.tab-purple-7 { background-color: #ac46a1; } /* Nos projets */
.tab-purple-8 { background-color: #d55d92; } /* Nous joindre */
.tab-purple-social { background-color: #7131dd; } /* Social */

/* Soulignement de l'onglet actif */
.nav-tab-link.active::after,
.nav-tab-item.active .nav-tab-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 4px;
  background-color: #ffffff;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -1px 4px rgba(255, 255, 255, 0.4);
}

.tab-chevron {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85;
}

.nav-tab-item:hover .tab-chevron,
.nav-tab-item:focus-within .tab-chevron,
.nav-tab-item.is-mega-open .tab-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Liens réseaux sociaux dans le bloc dédié */
.nav-tab-social-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.25rem;
  height: 100%;
}

.nav-tab-social-links a {
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-tab-social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* ==========================================================================
   MÉGA-MENU NOUVELLE GÉNÉRATION (DESKTOP)
   ========================================================================== */
.nav-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff !important; /* Fond blanc 100% opaque pour éliminer toute transparence */
  border-radius: 0 0 16px 16px;
  box-shadow: 0 25px 60px -10px rgba(26, 8, 38, 0.3), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 2rem 2.25rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transform-origin: top center;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  z-index: 1050; /* Au-dessus de tout contenu de page */
  pointer-events: none;
}

/* Pont invisible pour éviter la fermeture accidentelle au survol */
.nav-mega-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-tab-item:hover .nav-mega-menu,
.nav-tab-item:focus-within .nav-mega-menu,
.nav-tab-item.is-mega-open .nav-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Bordures colorées du méga-menu selon l'onglet parent */
.mega-border-purple-2 { border-top: 4px solid #571089; }
.mega-border-purple-3 { border-top: 4px solid #6411ad; }
.mega-border-purple-4 { border-top: 4px solid #7518a3; }
.mega-border-purple-5 { border-top: 4px solid #822faf; }
.mega-border-purple-6 { border-top: 4px solid #9727a3; }
.mega-border-purple-7 { border-top: 4px solid #ac46a1; }

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 300px;
  gap: 2rem;
  align-items: stretch;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mega-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
  margin-bottom: 0.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #f1f5f9;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.18s ease;
  background: transparent;
}

.mega-item:hover {
  background: #faf5ff;
  transform: translateX(4px);
}

.mega-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3e8ff;
  color: #7e22ce;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.mega-item:hover .mega-item-icon {
  background: linear-gradient(135deg, #7e22ce 0%, #c026d3 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.35);
  transform: scale(1.05);
}

.mega-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.mega-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.3;
}

.mega-item:hover .mega-item-title {
  color: #7e22ce;
}

.mega-item-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.mega-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fae8ff;
  color: #a21caf;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mega-badge.badge-priority {
  background: #fee2e2;
  color: #b91c1c;
}

.mega-col-spotlight {
  display: flex;
  flex-direction: column;
}

.mega-spotlight {
  flex: 1;
  background: linear-gradient(145deg, #4a044e 0%, #701a75 50%, #9d174d 100%);
  border-radius: 14px;
  padding: 1.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 4, 78, 0.25);
}

.mega-spotlight::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.mega-spotlight-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  margin-bottom: 0.75rem;
}

.mega-spotlight-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.mega-spotlight-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.mega-spotlight-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #4a044e !important;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.mega-spotlight-btn:hover {
  background: #fdf2f8;
  color: #831843 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.mega-footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
  width: 100%;
  box-sizing: border-box;
}

.mega-footer a {
  color: #7e22ce;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mega-footer a:hover {
  color: #c026d3;
  text-decoration: underline;
}

/* ==========================================================================
   NAVIGATION MOBILE : BOUTON ET TIROIR SLIDER NOUVELLE GÉNÉRATION
   ========================================================================== */
.mobile-toggle-btn {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(74, 4, 78, 0.08) 0%, rgba(192, 38, 211, 0.12) 100%);
  border: 1px solid rgba(192, 38, 211, 0.25);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: center;
  margin-right: 0.5rem;
}

.mobile-toggle-btn:hover,
.mobile-toggle-btn:focus-visible {
  background: linear-gradient(135deg, rgba(74, 4, 78, 0.15) 0%, rgba(192, 38, 211, 0.25) 100%);
  transform: scale(1.03);
}

.hamburger-box {
  width: 22px;
  height: 16px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 22px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -7px;
}

.hamburger-inner::after {
  content: '';
  top: 7px;
}

.mobile-toggle-label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* BACKDROP TIROIR */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 0, 28, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  z-index: 2000;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* TIROIR MOBILE (OFF-CANVAS) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90vw;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  box-shadow: -12px 0 45px rgba(26, 8, 38, 0.3);
  transform: translateX(102%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

/* EN-TÊTE TIROIR */
.drawer-header {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-logo-img {
  height: 38px;
  width: auto;
}

.drawer-brand-meta {
  display: flex;
  flex-direction: column;
}

.drawer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.2;
}

.drawer-brand-sub {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.drawer-close-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

/* BARRE DE RECHERCHE TIROIR */
.drawer-search-wrap {
  padding: 0.85rem 1.25rem 0.6rem;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.drawer-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.drawer-search-form input {
  width: 100%;
  padding: 0.65rem 2.6rem 0.65rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.85rem;
  color: #1e1b4b;
  outline: none;
  transition: all 0.2s ease;
}

.drawer-search-form input:focus {
  border-color: #7e22ce;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.15);
}

.drawer-search-form button {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #7e22ce;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* CORPS DÉFILABLE TIROIR */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ITEMS ET GROUPES TIROIR AVEC RAYURES DE COULEURS */
.drawer-item-direct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1b4b;
  border-left: 4px solid #cbd5e1;
  transition: all 0.18s ease;
}

.drawer-item-direct:hover,
.drawer-item-direct.active {
  background: #faf5ff;
  color: #7e22ce;
}

.drawer-item-direct.stripe-purple-1 { border-left-color: #4a044e; }
.drawer-item-direct.stripe-purple-8 { border-left-color: #d55d92; }

/* ACCORDÉONS TIROIR */
.drawer-accordion-group {
  border-radius: var(--radius-md);
  background: #f8fafc;
  border-left: 4px solid #cbd5e1;
  overflow: hidden;
  transition: background 0.18s ease;
}

.drawer-accordion-group.stripe-purple-2 { border-left-color: #571089; }
.drawer-accordion-group.stripe-purple-3 { border-left-color: #6411ad; }
.drawer-accordion-group.stripe-purple-4 { border-left-color: #7518a3; }
.drawer-accordion-group.stripe-purple-5 { border-left-color: #822faf; }
.drawer-accordion-group.stripe-purple-6 { border-left-color: #9727a3; }
.drawer-accordion-group.stripe-purple-7 { border-left-color: #ac46a1; }

.drawer-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e1b4b;
  text-align: left;
}

.drawer-accordion-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7e22ce;
  text-transform: uppercase;
}

.drawer-tag.badge-priority {
  background: #fee2e2;
  color: #b91c1c;
}

.drawer-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #64748b;
  flex-shrink: 0;
}

.drawer-accordion-group.is-expanded .drawer-chevron {
  transform: rotate(180deg);
  color: #7e22ce;
}

.drawer-accordion-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.drawer-accordion-group.is-expanded .drawer-accordion-pane {
  max-height: 480px;
}

.drawer-accordion-pane a {
  padding: 0.65rem 1rem 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-bottom: 1px solid #f8fafc;
  transition: all 0.15s ease;
}

.drawer-accordion-pane a:hover {
  background: #faf5ff;
  color: #7e22ce;
  padding-left: 1.5rem;
}

.drawer-accordion-pane a.drawer-view-all {
  font-weight: 700;
  color: #7e22ce;
  background: #fdf4ff;
  border-bottom: none;
}

/* CARTE URGENCE LOGEMENT TIROIR */
.drawer-urgent-card {
  background: linear-gradient(135deg, #4a044e 0%, #884393 100%);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  color: #ffffff;
}

.drawer-urgent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.drawer-urgent-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.drawer-urgent-title {
  font-weight: 800;
  font-size: 0.9rem;
}

.drawer-urgent-txt {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

/* RACCOURCIS DE CONTACT RAPIDE */
.drawer-quick-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.drawer-contact-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  color: #1e1b4b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.drawer-contact-action:hover {
  background: #fae8ff;
  color: #7e22ce;
}

/* PIED DU TIROIR */
.drawer-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.drawer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.18s ease;
}

.drawer-social-icons a:hover {
  background: #7e22ce;
  color: #ffffff;
}

.drawer-copyright {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: right;
  line-height: 1.3;
}

/* VERROUILLAGE DU CORPS */
body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* BOUTONS & BADGES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #4a044e 0%, #701a75 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(74, 4, 78, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #701a75 0%, #a21caf 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(112, 26, 117, 0.4);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #c026d3 0%, #db2777 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(192, 38, 211, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #d946ef 0%, #f43f5e 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-light);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.badge-primary { background: var(--primary-subtle); color: var(--primary); }
.badge-accent  { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #fbcfe8; }
.badge-secondary { background: var(--secondary-soft); color: var(--secondary); }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-700); }

/* HERO SECTION ACCUEIL - DEEP FUCHSIA PURPLE */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1b0028 0%, #350247 40%, #58086d 75%, #701a75 100%);
  color: var(--white);
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(232, 121, 249, 0.25) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(192, 38, 211, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #f5d0fe;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(232, 121, 249, 0.35);
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #f472b6 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(27, 0, 40, 0.65);
  border: 3px solid rgba(232, 121, 249, 0.35);
}

.hero-image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.hero-floating-card {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--white);
  color: var(--neutral-900);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 5;
  border: 1px solid var(--neutral-200);
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
}

.hero-card-sub {
  font-size: 0.8rem;
  color: var(--neutral-500);
}

/* BANDEAU STATISTIQUES / IMPACT */
.stats-banner {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  padding: 2.25rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--neutral-200);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neutral-600);
  margin-top: 0.25rem;
}

/* EN-TÊTES DE SECTION */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid #fbcfe8;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

.section-description {
  font-size: 1.1rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* CARTES ET GRILLES DE PROJETS */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--neutral-100);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-badge-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--neutral-900);
}

.card-text {
  font-size: 0.95rem;
  color: var(--neutral-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* SECTION LES 4 PILIERS DE LA CDC */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transition: height var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.pillar-card:hover::before {
  height: 6px;
  background: var(--accent);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-card:hover .pillar-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--neutral-900);
}

.pillar-text {
  font-size: 0.92rem;
  color: var(--neutral-600);
  line-height: 1.55;
}

/* RECHERCHE ET FILTRES DYNAMIQUES */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--neutral-300);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
  background-color: var(--neutral-50);
}

.search-input:focus {
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(192, 38, 211, 0.15);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  pointer-events: none;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn {
  background: var(--neutral-100);
  border: 1px solid transparent;
  color: var(--neutral-700);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--neutral-200);
  color: var(--neutral-900);
}

.filter-btn.active {
  background: linear-gradient(135deg, #4a044e 0%, #701a75 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(74, 4, 78, 0.3);
}

/* LISTE DES OFFRES D'EMPLOI */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.job-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.job-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
}

.job-org {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.job-excerpt {
  font-size: 0.92rem;
  color: var(--neutral-600);
  line-height: 1.5;
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ANNUAIRE DES MEMBRES */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.member-header {
  margin-bottom: 1rem;
}

.member-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-top: 0.5rem;
  line-height: 1.3;
}

.member-mission {
  font-size: 0.9rem;
  color: var(--neutral-600);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.member-details {
  border-top: 1px solid var(--neutral-100);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--neutral-600);
}

.member-detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ÉQUIPE & CA */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.team-photo-wrap {
  height: 320px;
  overflow: hidden;
  background: var(--neutral-100);
  position: relative;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-smooth);
}

.team-card:hover .team-photo-wrap img {
  transform: scale(1.04);
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--neutral-600);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.team-contact {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* FORMULAIRES */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--neutral-200);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-300);
  font-size: 0.95rem;
  outline: none;
  background-color: var(--neutral-50);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(192, 38, 211, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #fdf2f8;
  color: #831843;
  border: 1px solid #fbcfe8;
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 8, 38, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--neutral-200);
  transform: scale(0.95);
  transition: all var(--transition-smooth);
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--neutral-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--neutral-900);
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--neutral-400);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--neutral-800);
  background-color: var(--neutral-100);
}

.modal-body {
  padding: 1.75rem;
  line-height: 1.6;
}

/* PIED DE PAGE */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(232, 121, 249, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 0.35rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent-light);
}

.footer-partners-banner {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2.5rem;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.partners-logos img {
  height: 48px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.partners-logos img:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: var(--accent-light);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-content {
    max-width: 100%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 1180px) {
  #desktopNavTabs {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: inline-flex !important;
  }
  .site-header-container {
    padding-right: 1rem !important;
  }
}

/* ==========================================================================
   SUPPORT MULTI-ORIENTATION : MOBILE PAYSAGE (LANDSCAPE AVEC HAUTEUR RÉDUITE)
   ========================================================================== */
@media (orientation: landscape) and (max-height: 550px) {
  .topbar {
    display: none !important;
  }
  .site-header {
    min-height: 52px;
  }
  .navbar {
    min-height: 52px;
  }
  .brand-icon {
    height: 38px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .mobile-drawer {
    width: 100vw;
    max-width: 100vw;
    padding-left: env(safe-area-inset-left, 0.75rem);
    padding-right: env(safe-area-inset-right, 0.75rem);
  }
  .drawer-header {
    padding: 0.6rem 1.25rem;
  }
  .drawer-search-wrap {
    padding: 0.5rem 1.25rem;
  }
  .drawer-body {
    padding: 0.75rem 1.25rem 2rem;
  }
  /* Vue panoramique en 2 colonnes pour un accès immédiat sans défilement excessif */
  .drawer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .drawer-urgent-card {
    margin-top: 0.5rem;
  }
  .drawer-quick-contact {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Ajustements sections hero pour éviter les coupures verticales en paysage */
  .hero {
    padding: 2rem 0;
  }
  .hero-title {
    font-size: 2rem;
  }
  .modal-box {
    max-height: calc(100vh - 30px);
    overflow-y: auto;
  }
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVES STANDARDS (TABLETTES ET MOBILES)
   ========================================================================== */
@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--neutral-200);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .job-card {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-icon {
    height: 42px;
  }
  .mobile-toggle-label {
    display: none;
  }
  .mobile-toggle-btn {
    padding: 0.55rem 0.65rem;
  }
  .mobile-drawer {
    width: 92vw;
  }
  .btn-lg {
    width: 100%;
  }
}
