/* pages.css — Origin Education V2 page-level styles */

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.scrolled {
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-md);
}
/* Non-homepage pages: opaque immediately, no transition delay */
.site-header.header-opaque {
  background: var(--color-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-md);
  transition: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-4);
}
.logo-link { text-decoration: none; color: var(--color-text); flex-shrink: 0; position: relative; }
.logo-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 52%;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-primary);
}
.main-nav { display: flex; gap: var(--space-1); }
.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

/* ===== MEGAMENU "NOS FORMATIONS" ===== */
.nav-dropdown-wrap {
  position: relative;
}
.nav-link--has-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link-chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.nav-dropdown-wrap.dropdown-open .nav-link-chevron {
  transform: rotate(180deg);
}
.formations-megamenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 880px;
  max-width: 960px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(10, 22, 40, 0.12), 0 4px 12px rgba(10, 22, 40, 0.04);
  border: 1px solid rgba(10, 22, 40, 0.04);
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
}
.nav-dropdown-wrap.dropdown-open .formations-megamenu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Pont invisible entre le lien et le menu pour éviter la fermeture au passage */
.formations-megamenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}

.formations-megamenu-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
}

/* Colonne gauche — highlights */
.megamenu-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.megamenu-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.megamenu-section-header h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
.megamenu-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.megamenu-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.megamenu-highlight-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(10, 22, 40, 0.02);
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.megamenu-highlight-card:hover {
  background: rgba(13, 115, 119, 0.09);
  border-color: rgba(13, 115, 119, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 115, 119, 0.14);
}
.megamenu-highlight-card:hover .megamenu-highlight-title {
  color: var(--color-primary);
}
.megamenu-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(10, 22, 40, 0.06);
}
.megamenu-highlight-icon-img img {
  width: 22px;
  height: 22px;
  display: block;
}
.megamenu-highlight-text {
  flex: 1;
  min-width: 0;
}
.megamenu-highlight-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.megamenu-highlight-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.megamenu-highlight-arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.megamenu-highlight-card:hover .megamenu-highlight-arrow {
  opacity: 1;
  color: var(--color-primary);
  transform: translate(2px, -2px);
}

/* Colonne droite — catalogue */
.megamenu-catalog-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}
.megamenu-catalog-group {
  margin-bottom: var(--space-5);
}
.megamenu-catalog-group:last-child {
  margin-bottom: 0;
}
.megamenu-catalog-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.megamenu-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.megamenu-formation-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.megamenu-formation-link:hover {
  background: rgba(13, 115, 119, 0.09);
  border-color: rgba(13, 115, 119, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 115, 119, 0.14);
}
.megamenu-formation-title {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.35;
  transition: color 0.18s ease, font-weight 0.18s ease;
}
.megamenu-formation-link:hover .megamenu-formation-title {
  color: var(--color-primary);
  font-weight: 600;
}
.megamenu-formation-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.megamenu-formation-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

/* Footer */
.megamenu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(10, 22, 40, 0.06);
}
.megamenu-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0D7377 0%, #0A5C5F 50%, #083E42 100%);
  color: #fff;
  border-radius: 14px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3), 0 2px 6px rgba(10, 22, 40, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.megamenu-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.25) 55%, transparent 80%);
  animation: btn-shine 3s ease-in-out infinite;
  pointer-events: none;
}
.megamenu-cta > * {
  position: relative;
  z-index: 1;
}
.megamenu-cta:hover {
  background: linear-gradient(135deg, #0E8589 0%, #0B6A6E 50%, #094548 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 115, 119, 0.4), 0 3px 8px rgba(10, 22, 40, 0.2);
}
.megamenu-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.12s ease;
}
.megamenu-cta-secondary:hover {
  color: var(--color-primary);
}

/* Variante Financement — mégamenu plus compact */
.financement-megamenu {
  min-width: 720px;
  max-width: 800px;
}
.financement-megamenu .formations-megamenu-grid {
  grid-template-columns: 260px 1fr;
}
.megamenu-catalog-grid--single {
  grid-template-columns: 1fr;
  gap: 4px;
}
.megamenu-fin-link {
  justify-content: space-between;
  padding: 10px 12px;
}
.megamenu-fin-text {
  flex: 1;
  min-width: 0;
}
.megamenu-fin-label {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.3;
}
.megamenu-fin-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.megamenu-pill {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.megamenu-footer-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

/* Caché sur mobile (le menu mobile remplace) */
@media (max-width: 1023px) {
  .formations-megamenu { display: none !important; }
  .nav-link-chevron { display: none; }
}

/* Dark mode */
[data-theme="dark"] .formations-megamenu {
  background: var(--color-surface, #0F1F33);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .megamenu-highlight-card {
  background: rgba(255, 255, 255, 0.03);
}
[data-theme="dark"] .megamenu-highlight-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .megamenu-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.admin-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 6px 12px;
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-interactive);
}
.admin-nav-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle-btn:hover { color: var(--color-primary); background: var(--color-primary-highlight); }
.mobile-menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text);
  }
  .mobile-menu.open {
    display: block;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-divider);
    background: var(--color-bg);
  }
  .mobile-nav-link {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-divider);
  }
  .mobile-nav-link:hover { color: var(--color-primary); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding-top: calc(64px + clamp(var(--space-20), 12vw, var(--space-32)));
  padding-bottom: clamp(var(--space-20), 14vw, var(--space-32));
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
/* Smooth fade from hero to next section */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
  z-index: 1;
}

/* Animated gradient mesh background */
.hero-mesh {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 50% 55% at 15% 25%, rgba(13,115,119,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 45% at 80% 60%, rgba(13,115,119,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 55% 65% at 55% 15%, rgba(232,133,74,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 30% 35% at 40% 75%, rgba(232,133,74,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 90% 20%, rgba(13,115,119,0.10) 0%, transparent 60%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
/* Subtle animated dot grid over mesh */
.hero-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle 1px, rgba(13,115,119,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  animation: mesh-dots 25s linear infinite;
}
@keyframes mesh-dots {
  0% { transform: translate(0, 0); }
  100% { transform: translate(32px, 32px); }
}
/* Tech canvas animation layer */
.hero-tech-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@keyframes mesh-drift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(3%, -2%) rotate(1deg) scale(1.02); }
  66% { transform: translate(-2%, 3%) rotate(-0.5deg) scale(0.98); }
  100% { transform: translate(1%, 1%) rotate(0.5deg) scale(1.01); }
}

/* ===== 3D LOGO CAROUSEL ===== */
/* Logo Swiper — center + sides */
.logo-swiper {
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 800px;
  margin-left: 10%;
}
@media (max-width: 768px) {
  .logo-swiper { margin-left: 0; min-height: 300px; }
}
@media (max-width: 480px) {
  .logo-swiper { min-height: 260px; }
}
.logo-swiper::before {
  content: '';
  position: absolute;
  inset: -40px -50px;
  background: radial-gradient(ellipse at center,
    rgba(248,246,243,1) 0%,
    rgba(248,246,243,0.98) 25%,
    rgba(248,246,243,0.85) 40%,
    rgba(248,246,243,0.4) 55%,
    rgba(248,246,243,0.1) 65%,
    transparent 72%
  );
  z-index: 0;
  pointer-events: none;
}
.swiper-logo {
  position: absolute;
  width: min(323px, 70vw);
  height: min(323px, 70vw);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  filter: drop-shadow(0 12px 40px rgba(13,115,119,0.35)) drop-shadow(0 6px 20px rgba(10,22,40,0.2));
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: scale(0.6) translateX(0) rotateY(0deg);
  z-index: 1;
}
.swiper-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Swiper positions */
.swiper-center {
  opacity: 1;
  transform: scale(1.05) translateX(0) translateZ(40px) rotateY(0deg);
  z-index: 3;
  filter: drop-shadow(0 20px 60px rgba(13,115,119,0.4)) drop-shadow(0 10px 30px rgba(10,22,40,0.2));
}
.swiper-left {
  opacity: 0.5;
  transform: scale(0.65) translateX(-160px) translateZ(-30px) rotateY(15deg);
  z-index: 1;
  filter: drop-shadow(0 8px 25px rgba(13,115,119,0.15)) blur(1.2px);
}
.swiper-right {
  opacity: 0.5;
  transform: scale(0.65) translateX(160px) translateZ(-30px) rotateY(-15deg);
  z-index: 1;
  filter: drop-shadow(0 8px 25px rgba(13,115,119,0.15)) blur(1.2px);
}
.swiper-hidden {
  opacity: 0;
  transform: scale(0.5) translateX(0);
  z-index: 0;
  pointer-events: none;
}

/* Spin animations */
.swiper-spin-in {
  animation: swiper-spin-in 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.swiper-spin-out {
  animation: swiper-spin-out 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes swiper-spin-in {
  0% { transform: scale(0.75) rotateY(180deg); }
  100% { transform: scale(1) rotateY(360deg); }
}
@keyframes swiper-spin-out {
  0% { transform: scale(1) rotateY(0deg); }
  100% { transform: scale(0.75) rotateY(-180deg); }
}

/* Hero CTA button gradient + shine */
.btn-hero-gradient {
  background: linear-gradient(135deg, #0D7377 0%, #0A5C5F 50%, #083E42 100%) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(13,115,119,0.3), 0 2px 6px rgba(10,22,40,0.15);
  position: relative;
  overflow: hidden;
}
.btn-hero-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.25) 45%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.25) 55%, transparent 80%);
  animation: btn-shine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine {
  0% { left: -100%; }
  30% { left: 120%; }
  100% { left: 120%; }
}
.btn-hero-gradient:hover {
  background: linear-gradient(135deg, #0E8589 0%, #0B6A6E 50%, #094548 100%) !important;
  box-shadow: 0 6px 20px rgba(13,115,119,0.4), 0 3px 8px rgba(10,22,40,0.2);
}

/* Gradient overlay — protects text readability */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 65% at 25% 50%, rgba(248,246,243,0.95) 0%, rgba(248,246,243,0.7) 40%, transparent 80%),
    linear-gradient(to right, rgba(248,246,243,0.5) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* Hero layout */
.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.hero-content { max-width: 600px; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(13, 115, 119, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 115, 119, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}
.hero h1 .accent { color: var(--color-primary); }

/* Word rotator */
.hero-rotator {
  display: inline-block;
  color: var(--color-primary);
  position: relative;
  min-width: 200px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-rotator--in {
  opacity: 1;
  transform: translateY(0);
}
.hero-rotator--out {
  opacity: 0;
  transform: translateY(16px);
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Badge Expert BPI — SVG badge */
.hero-badge-bpi {
  position: absolute;
  top: -85px;
  right: 0;
  z-index: 5;
  transform: rotate(12deg);
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.hero-badge-bpi img {
  width: 240px;
  height: 240px;
  object-fit: contain;
}
.bpi-stamp {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #0D7377;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  box-shadow: none;
}
/* Double ring */
.bpi-stamp::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 115, 119, 0.5);
}
/* Curved text top */
.bpi-stamp-top {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  color: #0D7377;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1px;
}
.bpi-stamp-stars {
  font-size: 0.45rem;
  color: #0D7377;
  letter-spacing: 0.15em;
  margin-bottom: 1px;
}
.bpi-stamp-main {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0D7377;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1;
  padding: 3px 0;
  border-top: 1.5px solid #0D7377;
  border-bottom: 1.5px solid #0D7377;
  width: 72%;
  text-align: center;
}
.bpi-stamp-sub {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 600;
  color: #0D7377;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 2px;
}

[data-theme="dark"] .bpi-stamp {
  border-color: #14B8A6;
  background: rgba(20, 184, 166, 0.04);
}
[data-theme="dark"] .bpi-stamp::before {
  border-color: rgba(20, 184, 166, 0.4);
}
[data-theme="dark"] .bpi-stamp-top,
[data-theme="dark"] .bpi-stamp-stars,
[data-theme="dark"] .bpi-stamp-main,
[data-theme="dark"] .bpi-stamp-sub {
  color: #14B8A6;
}
[data-theme="dark"] .bpi-stamp-main {
  border-color: #14B8A6;
}

@media (max-width: 768px) {
  .hero-badge-bpi {
    top: -15px;
    right: -5px;
    transform: rotate(12deg) scale(0.8);
  }
}

/* Hero visual area */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero parallax + scale-down on scroll */
.hero {
  will-change: transform, filter, opacity;
  transition: filter 0.1s linear;
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding-block: var(--space-16); }
  .hero-container { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-visual { order: -1; }
  .hero h1 { font-size: clamp(1.75rem, 1rem + 3vw, 2.5rem); }
  .hero-mesh { display: none; }
  .hero-gradient { background: rgba(248,246,243,0.92); }
  .logo-carousel { min-height: 260px; }
  .logo-carousel-scene { width: 140px; height: 140px; }
  .logo-carousel-item { transform: rotateY(var(--item-angle, 0deg)) translateZ(120px); }
  .logo-carousel-face { width: 100px; height: 100px; border-radius: 16px; }
  .logo-carousel-face img { width: 75px; height: 75px; }
}

/* ===== STATS BAND ===== */
.stats-band {
  background: transparent;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  position: relative;
  overflow: visible;
}
.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  text-align: center;
}
.stat-card {
  position: relative;
  padding: var(--space-6) var(--space-16);
}
.stat-card:last-child { }
.stat-card:nth-child(2) { --scroll3d-delay: 0.15s; }
.stat-card:nth-child(3) { --scroll3d-delay: 0.3s; }
.stat-glow { display: none; }
.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a9a9f 50%, #E8854A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(13,115,119,0.35));
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .stat-card { padding: var(--space-6) var(--space-8); }
}
@media (max-width: 640px) {
  .stats-grid { flex-direction: column; gap: var(--space-6); }
  .stat-card { border-right: none; border-bottom: 1px solid rgba(13,115,119,0.15); padding: var(--space-6) var(--space-4); }
  .stat-card:last-child { border-bottom: none; }
}

/* ===== SECTION COMMON ===== */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
}
#app > .section:first-child,
#app > section:first-child {
  padding-top: calc(70px + clamp(var(--space-8), 4vw, var(--space-12)));
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 680px;
  margin-inline: auto;
}
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== FORMATIONS GRID — MARKETPLACE STYLE ===== */

/* Catalog badges */
/* ===== FORMATIONS HERO CARD ===== */
.formations-hero-card {
  background: linear-gradient(135deg, rgba(13,115,119,0.14) 0%, rgba(212,204,194,0.2) 50%, rgba(232,133,74,0.10) 100%);
  border: 1px solid rgba(13,115,119,0.22);
  box-shadow: 0 4px 24px rgba(13,115,119,0.06), 0 1px 4px rgba(10,22,40,0.04);
  border-radius: 20px;
  padding: clamp(var(--space-8), 5vw, var(--space-12)) clamp(var(--space-6), 4vw, var(--space-10));
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}
.formations-hero-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.formations-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  line-height: 1.15;
}
.formations-hero-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.catalog-badges {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-5);
}
.catalog-pill {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(13,115,119,0.1);
  color: var(--color-primary);
}
.btn-catalog {
  margin-top: var(--space-2);
}
.chip-count {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.85em;
}

/* Bottom CTA — reuses .formations-hero-card */
.formations-bottom-cta {
  margin-top: var(--space-12);
  margin-bottom: 0;
}
.catalog-bottom-layout {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  text-align: left;
}
.catalog-bottom-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.7;
}
.catalog-bottom-text {
  flex: 1;
}
.catalog-bottom-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.catalog-bottom-text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .catalog-bottom-layout { flex-direction: column; text-align: center; }
  .catalog-bottom-icon { display: none; }
}

/* Grid */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Card structure — premium with image */
.formation-card {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.formation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

/* Image zone */
.fc-image-zone {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.fc-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
  transition: height 0.3s ease;
}
.formation-card:hover .fc-bar {
  height: 6px;
}
.fc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.formation-card:hover .fc-image {
  transform: scale(1.05);
}

/* Badge overlay on image */
.fc-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}

/* Card body */
.fc-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.formation-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.formation-card .desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex-grow: 1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: tools + CTA */
.fc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
}
.fc-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.fc-tool-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--color-surface-2);
  padding: 3px;
  transition: filter 0.2s, opacity 0.2s;
}
.fc-tool-more {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 600;
}
.formation-card .cta-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Ghost card */
.formation-card--ghost {
  border-style: dashed;
  border-color: var(--color-primary);
  background: rgba(13,115,119,0.02);
  cursor: default;
  box-shadow: none;
}
.formation-card--ghost:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}
.fc-ghost-image {
  background: linear-gradient(135deg, rgba(13,115,119,0.08) 0%, rgba(232,133,74,0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-ghost-visual {
  color: var(--color-primary);
  opacity: 0.4;
}
.fc-ghost-visual svg {
  width: 48px;
  height: 48px;
}
.fc-ghost-body {
  align-items: center;
  text-align: center;
  justify-content: center;
}

/* Dark mode cards */
[data-theme="dark"] .formation-card {
  border-color: var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .formation-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .formations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .formations-grid { grid-template-columns: 1fr; }
  #home-formations .formation-card:nth-child(n+4) { display: none; }
}

/* Sidebar download link */
.fd-sidebar-download {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  opacity: 0.8;
}
.fd-sidebar-download:hover { opacity: 1; }

/* Method section — gradient background blending */
/* Reduce bottom gap on catalogue section */
.section.section--catalogue {
  padding-bottom: var(--space-4);
  background: var(--color-bg);
}

/* ===== STATS STANDALONE SECTION ===== */
.section.section--stats {
  padding-top: 2.5rem;
  padding-bottom: 0rem;
  background: var(--color-bg);
}

/* ===== METHOD SECTION ===== */
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}
.method-step {
  text-align: center;
  position: relative;
}
.method-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.method-step h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.method-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .method-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .method-steps { grid-template-columns: 1fr; }
}

/* ===== WHY US — PREMIUM FLOATING ===== */
.whyus-section {
  background: var(--color-bg);
  padding-block: 0 clamp(4rem, 6vw, 6rem);
  overflow: hidden;
  position: relative;
}
.whyus-universe {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orbit container — logos expand from behind card */
.whyus-orbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.orbit-bubble {
  position: absolute;
  width: 62px;
  height: 62px;
  opacity: 0;
  transition: transform 0.15s ease-out;
  will-change: left, top, opacity, transform;
}
.orbit-bubble img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 4px 24px rgba(13,115,119,0.12), 0 2px 8px rgba(10,22,40,0.06), 0 0 20px rgba(13,115,119,0.08);
}

/* Central content */
.whyus-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 480px;
  animation: whyus-breathe 7s ease-in-out infinite;
}
@keyframes whyus-breathe {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(0.3deg); }
}
.whyus-label {
  display: inline-block;
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  opacity: 0.7;
}
.whyus-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 2.65rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0;
}
.whyus-spacer { height: var(--space-8); }
.whyus-glow {
  background: linear-gradient(135deg, #0D7377 0%, #0fb8bd 40%, #E8854A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(13,115,119,0.3));
}
.whyus-card {
  background: rgba(255,255,255,0.97);
  border-radius: 24px;
  padding: var(--space-5);
  box-shadow: 0 8px 40px rgba(10,22,40,0.06), 0 2px 10px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: visible;
}
.whyus-features {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.whyus-feat {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: 14px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.whyus-feat:hover {
  background: #fff;
  box-shadow: 0 10px 35px rgba(10,22,40,0.12), 0 3px 10px rgba(0,0,0,0.05);
  transform: scale(1.15);
  border-radius: 16px;
  z-index: 2;
}
.whyus-feat-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: rgba(13,115,119,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.4s ease;
}
.whyus-feat-icon svg { width: 22px; height: 22px; }
.whyus-feat h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  transition: color 0.4s ease;
  color: var(--color-text);
  margin-bottom: 2px;
}
.whyus-feat p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .whyus-universe { min-height: 480px; }
  .orbit-bubble { width: 42px; height: 42px; }
  .whyus-card { padding: var(--space-4) var(--space-5); }
  .whyus-feat:hover { transform: scale(1.05); }
}
@media (max-width: 480px) {
  .whyus-universe { min-height: 420px; }
  .orbit-bubble { width: 34px; height: 34px; }
  .whyus-feat:hover { transform: none; }
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: italic;
}
.testimonial-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== FRANCE MAP SECTION ===== */
.france-section {
  background: var(--color-primary);
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-4);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.france-section .section-label--light {
  color: rgba(255,255,255,0.6);
}
.france-section .section-title--light {
  color: #fff;
}
.france-section .section-subtitle--light {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-inline: auto;
}
.france-map-wrapper {
  position: relative;
  max-width: 610px;
  margin: var(--space-6) auto var(--space-4);
  aspect-ratio: 1 / 1;
  filter: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-8%) translateY(-8%);
}
.france-map-container {
  width: 100%;
  height: 100%;
}
.france-map-container svg {
  width: 100%;
  height: 100%;
  display: block;
}
.france-map-container path {
  fill: rgba(255,255,255,0.92);
  stroke: var(--color-primary);
  stroke-width: 0.5;
  transition: fill 0.3s, stroke 0.3s;
  cursor: pointer;
}
/* Hide Corsica to better center mainland France */
.france-map-container path#FR-H {
  display: none;
}
.france-map-container path:hover {
  fill: #E8854A;
  stroke: rgba(255,255,255,0.6);
}

/* City pins */
.city-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.city-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  position: relative;
  flex-shrink: 0;
}
.city-pin-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-navy);
  background: rgba(255,255,255,0.92);
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  letter-spacing: 0.01em;
}

/* Label positions to avoid overlap */
.city-pin--label-right {
  flex-direction: row;
  align-items: center;
}
.city-pin--label-right .city-pin-label {
  margin-top: 0;
  margin-left: 6px;
}
.city-pin--label-left {
  flex-direction: row-reverse;
  align-items: center;
}
.city-pin--label-left .city-pin-label {
  margin-top: 0;
  margin-right: 6px;
}
.city-pin--label-top {
  flex-direction: column-reverse;
  align-items: center;
}
.city-pin--label-top .city-pin-label {
  margin-top: 0;
  margin-bottom: 4px;
}

/* Main city (Paris) */
.city-pin--main .city-pin-dot {
  width: 16px;
  height: 16px;
  background: #E8854A;
  border-width: 2.5px;
}
.city-pin--main .city-pin-label {
  background: #E8854A;
  color: white;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 5px;
}

/* Pulse animation on all city pins */
.city-pin-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(10,22,40,0.2);
  animation: city-pulse 2.5s ease-in-out infinite;
  animation-delay: var(--pin-d, 0s);
}
.city-pin--main .city-pin-dot::before {
  inset: -5px;
  background: rgba(232, 133, 74, 0.3);
}
@keyframes city-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.8); opacity: 0; }
}

/* Progressive city reveal */
.city-pin--reveal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--pin-d, 0s);
}
.france-map--revealed .city-pin--reveal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Hover tooltip on cities */
.city-pin-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--color-navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 10;
}
.city-pin-tooltip small {
  display: block;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-top: 2px;
}
.city-pin-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-navy);
}
.city-pin:hover .city-pin-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* France map SVG draw-in effect */
.france-map-container svg {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.france-map--revealed .france-map-container svg {
  opacity: 1;
}

.france-section-cta {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}
.france-map-container svg {
  filter: none !important;
  drop-shadow: none;
}

@media (max-width: 640px) {
  .france-map-wrapper { max-width: 320px; }
  .city-pin-label { font-size: 0.6rem; padding: 1px 4px; }
  .city-pin-dot { width: 10px; height: 10px; }
  .city-pin--main .city-pin-dot { width: 14px; height: 14px; }
}

/* ===== ARROW CONNECTOR (France map → CTA) ===== */
.arrow-connector {
  display: flex;
  justify-content: flex-end;
  padding-right: 18%;
  margin-top: -280px;
  margin-bottom: -200px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.arrow-connector-svg {
  width: 480px;
  height: auto;
  opacity: 1;
}
.arrow-draw-path {
  fill: #e9854b;
  fill-opacity: 1;
}
@media (max-width: 768px) {
  .arrow-connector { padding-right: 5%; margin-top: -50px; margin-bottom: -60px; }
  .arrow-connector-svg { width: 180px; }
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--color-bg);
  padding-block: var(--space-12) var(--space-20);
  text-align: center;
}
.cta-band-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0A5C5F 60%, var(--color-navy-light) 100%);
  border-radius: 24px;
  padding: clamp(var(--space-12), 6vw, var(--space-20)) clamp(var(--space-8), 5vw, var(--space-16));
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 115, 119, 0.35), 0 8px 30px rgba(10, 22, 40, 0.2), 0 0 100px rgba(13, 115, 119, 0.15);
}
.cta-band-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 80% 20%, rgba(20,184,166,0.2) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 20% 80%, rgba(232,133,74,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
  position: relative;
}
.cta-band p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-inline: auto;
  position: relative;
}
.cta-band .btn-primary {
  background: #fff !important;
  color: var(--color-primary) !important;
  font-weight: 600;
  position: relative;
  padding: var(--space-3) var(--space-8);
  box-shadow: 0 4px 15px rgba(255,255,255,0.2) !important;
}
.cta-band .btn-primary:hover {
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}
.cta-band .btn-primary:hover {
  background: rgba(255,255,255,0.9);
}
.cta-band .btn-primary:hover {
  background: #0D7377;
  color: white;
}

@media (max-width: 768px) {
  .cta-band .btn-primary {
    padding: var(--space-2) var(--space-5);
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .cta-band-card { overflow: visible; border-radius: 20px; }
  .cta-band-card::before { border-radius: 20px; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.8);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer-brand .footer-desc {
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.footer-contact-info {
  font-size: var(--text-xs);
  margin-top: var(--space-4);
  color: rgba(255,255,255,0.5);
}
.footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-socials a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-4);
}
.footer-col a {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding-block: var(--space-1);
  transition: color var(--transition-interactive);
}
.footer-col a:hover { color: var(--color-primary-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}
.pplx-link { color: rgba(255,255,255,0.4); text-decoration: none; }
.pplx-link:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ===== FILTER CHIPS ===== */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  justify-content: center;
}
.filter-chip {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.filter-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-chip.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.chip-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ===== QUIZ ===== */
.quiz-container {
  background: linear-gradient(135deg, rgba(13,115,119,0.14) 0%, rgba(212,204,194,0.2) 50%, rgba(232,133,74,0.10) 100%);
  border: 1px solid rgba(13,115,119,0.22);
  box-shadow: 0 4px 24px rgba(13,115,119,0.06), 0 1px 4px rgba(10,22,40,0.04);
  border-radius: 24px;
  padding: var(--space-8) var(--space-6);
  margin-bottom: var(--space-8);
  animation: page-in 0.3s ease;
  position: relative;
  overflow: hidden;
}
.quiz-progress {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: var(--space-6);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.quiz-step-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
  text-align: center;
}
.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-6);
}
.quiz-options {
  display: grid;
  gap: var(--space-3);
  max-width: 600px;
  margin: 0 auto;
}
.quiz-option {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-size: var(--text-sm);
  backdrop-filter: blur(4px);
}
.quiz-option:hover {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13,115,119,0.1);
}
.quiz-option--selected {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(13,115,119,0.1);
}
.quiz-option-text {
  flex: 1;
}
.quiz-option-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.quiz-nav {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}
.quiz-back-btn {
  font-size: var(--text-sm);
}

/* Quiz result */
.quiz-result {
  background: linear-gradient(135deg, rgba(13,115,119,0.14) 0%, rgba(212,204,194,0.2) 50%, rgba(232,133,74,0.10) 100%);
  border: 1px solid rgba(13,115,119,0.22);
  box-shadow: 0 4px 24px rgba(13,115,119,0.06);
  border-radius: 24px;
  padding: var(--space-8) var(--space-6);
  animation: page-in 0.3s ease;
  margin-bottom: var(--space-8);
}
.quiz-result-inner {
  text-align: center;
}
.quiz-result-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.quiz-result-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.quiz-result-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 800px;
  margin: 0 auto var(--space-6);
}
.quiz-result-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .quiz-result-cards { grid-template-columns: 1fr; }
  .quiz-container { padding: var(--space-6) var(--space-4); }
}

/* ===== QUIZ DARK MODE ===== */
[data-theme="dark"] .quiz-container {
  background: linear-gradient(135deg, rgba(13,115,119,0.2) 0%, rgba(30,30,35,0.6) 50%, rgba(232,133,74,0.1) 100%);
  border-color: rgba(13,115,119,0.3);
}
[data-theme="dark"] .quiz-option {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--color-text);
}
[data-theme="dark"] .quiz-option:hover {
  background: rgba(13,115,119,0.2);
  border-color: var(--color-primary);
}
[data-theme="dark"] .quiz-option--selected {
  background: rgba(13,115,119,0.25);
  border-color: var(--color-primary);
}
[data-theme="dark"] .quiz-result-inner {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

/* ===== FILTER TRANSITIONS ===== */
#formations-list .level-group,
#formations-list > .formations-grid {
  animation: filterFadeIn 0.4s ease both;
}
#formations-list .level-group:nth-child(1) { animation-delay: 0s; }
#formations-list .level-group:nth-child(2) { animation-delay: 0.1s; }
#formations-list .level-group:nth-child(3) { animation-delay: 0.2s; }
#formations-list .formation-card {
  animation: filterCardIn 0.35s ease both;
}
#formations-list .formation-card:nth-child(1) { animation-delay: 0.05s; }
#formations-list .formation-card:nth-child(2) { animation-delay: 0.1s; }
#formations-list .formation-card:nth-child(3) { animation-delay: 0.15s; }
#formations-list .formation-card:nth-child(4) { animation-delay: 0.2s; }
#formations-list .formation-card:nth-child(5) { animation-delay: 0.25s; }
#formations-list .formation-card:nth-child(6) { animation-delay: 0.3s; }
@keyframes filterFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes filterCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== LEVEL GROUPS ===== */
.level-group {
  margin-bottom: var(--space-10);
}
.level-group-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.level-group-bar {
  width: 5px;
  height: 48px;
  border-radius: 3px;
  flex-shrink: 0;
}
.level-group-info {
  flex: 1;
}
.level-group-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.level-group-count {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.level-group-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ===== FORMATION DETAIL — REDESIGN V2 ===== */

/* Breadcrumb (shared) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb--light { color: rgba(255,255,255,0.7); margin-bottom: var(--space-4); }
.breadcrumb--light a { color: rgba(255,255,255,0.9); }
.breadcrumb--light span { color: rgba(255,255,255,0.5); }

/* --- HERO --- */
.fd-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--space-16) + 40px) 0 var(--space-12);
  background: linear-gradient(135deg, #0A1628 0%, #0D7377 50%, #0A1628 100%);
  color: #fff;
}
.fd-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(13,115,119,0.3) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 80%, rgba(13,115,119,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.fd-hero-inner {
  position: relative;
  z-index: 1;
}
.fd-hero-split {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.fd-hero-left {
  flex: 1 1 60%;
  min-width: 0;
}
.fd-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.fd-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  max-width: 800px;
}
.fd-hero-subtitle {
  font-size: var(--text-md);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin-bottom: var(--space-6);
}
.fd-hero-tools {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.fd-tool-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.fd-tool-logo:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
}
.fd-tool-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ===== FLOATING LOGOS IN HERO ===== */
.fd-hero-logos-zone {
  position: relative;
  flex: 0 0 40%;
  min-height: 280px;
}
.fd-floating-logo {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  opacity: 0.6;
  filter: saturate(0.7);
  transition: opacity 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
  animation: fd-float 4s ease-in-out infinite;
}
.fd-floating-logo:nth-child(1) { animation-delay: 0s; }
.fd-floating-logo:nth-child(2) { animation-delay: 0.7s; }
.fd-floating-logo:nth-child(3) { animation-delay: 1.4s; }
.fd-floating-logo:nth-child(4) { animation-delay: 2.1s; }
.fd-floating-logo:nth-child(5) { animation-delay: 2.8s; }
.fd-floating-logo:nth-child(6) { animation-delay: 3.5s; }

.fd-floating-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.fd-floating-logo--text span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
}

/* Active state */
.fd-floating-logo.fd-fl-active {
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 4px 20px rgba(26, 138, 122, 0.3);
  animation-name: fd-float-active;
}

@keyframes fd-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1); }
}
@keyframes fd-float-active {
  0%, 100% { transform: translateY(0px) scale(1.25); }
  50% { transform: translateY(-8px) scale(1.25); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fd-floating-logo {
    animation: none !important;
  }
}
.fd-hero-meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
}
.fd-hero-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.fd-hero-meta svg { opacity: 0.7; }

/* --- LAYOUT (content + sidebar) --- */
.fd-layout {
  padding: var(--space-10) 0 var(--space-16);
  background: var(--color-bg);
}
.fd-layout-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-10);
  align-items: start;
}

/* --- MAIN CONTENT --- */
.fd-main { min-width: 0; }
.fd-section { margin-bottom: var(--space-10); }
.fd-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.3;
}

/* --- OUTCOMES cards --- */
/* --- A4 FICHE FORMAT + SWIPER --- */

/* ========== LEVEL HERO — Premium ========== */
.fd-level-hero {
  --hero-accent: #0D7377;
  background: linear-gradient(160deg, #14918D 0%, #0D7377 30%, #0A5C5F 60%, #053B3D 100%);
  padding: clamp(var(--space-8), 4vw, var(--space-12)) 0 clamp(var(--space-12), 6vw, var(--space-16));
  position: relative;
  overflow: hidden;
}
.fd-level-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(20,184,166,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(13,115,119,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating orbs */
.fd-level-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fd-level-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.fd-level-orb--1 {
  width: 300px; height: 300px;
  background: var(--hero-accent);
  top: -80px; left: -60px;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.fd-level-orb--2 {
  width: 200px; height: 200px;
  background: #2563EB;
  bottom: -40px; right: 10%;
  animation: orb-drift 15s ease-in-out infinite alternate-reverse;
}
.fd-level-orb--3 {
  width: 150px; height: 150px;
  background: #E8854A;
  top: 30%; right: -30px;
  opacity: 0.2;
  animation: orb-drift 18s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.fd-level-hero-inner {
  position: relative;
  z-index: 1;
}

/* Navigation row */
.fd-level-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.fd-level-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  transition: all 0.25s;
}
.fd-level-back-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  transform: translateX(-3px);
}
.fd-level-hero .fd-swiper-counter {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

/* Center content */
.fd-level-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

/* Watermark number */
.fd-level-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-display);
  font-size: clamp(10rem, 20vw, 16rem);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Badge row */
.fd-level-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.fd-level-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 18px;
  border-radius: var(--radius-full);
}
.fd-level-badge-sep {
  color: rgba(255,255,255,0.15);
  font-size: 1.2rem;
}
.fd-level-badge-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* Title */
.fd-level-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--space-5);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Decorative line */
.fd-level-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--hero-accent), rgba(255,255,255,0.15));
  border-radius: 3px;
  margin: 0 auto var(--space-5);
}

/* Description */
.fd-level-desc {
  font-size: clamp(var(--text-base), 1.3vw, var(--text-lg));
  color: rgba(255,255,255,0.9);
  margin: 0 0 var(--space-5);
  line-height: 1.7;
}

/* Hint */
.fd-level-hint {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  margin: 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Catalogue floating button */
.fd-catalogue-float {
  position: relative;
  z-index: 10;
  padding: var(--space-4) var(--space-6) 0;
}
.fd-catalogue-float .fd-level-back-btn {
  color: rgba(255,255,255,0.96);
  background: linear-gradient(135deg, #0D7377 0%, #0A5C5F 50%, #083E42 100%);
  border: 1px solid rgba(7, 34, 43, 0.22);
  box-shadow: 0 4px 15px rgba(13,115,119,0.3), 0 2px 6px rgba(10,22,40,0.15);
  text-shadow: 0 1px 0 rgba(0,0,0,0.14);
}
.fd-catalogue-float .fd-level-back-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0E8589 0%, #0B6A6E 50%, #094548 100%);
  border-color: rgba(9, 52, 65, 0.34);
  box-shadow: 0 6px 20px rgba(13,115,119,0.4), 0 3px 8px rgba(10,22,40,0.2);
  transform: translateX(-3px) translateY(-1px);
}
.fd-catalogue-float .fd-level-back-btn svg {
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .fd-level-orb { animation: none !important; }
}
@media (max-width: 768px) {
  .fd-level-hero { padding: var(--space-6) 0 var(--space-8); }
  .fd-level-title { font-size: 1.6rem; }
  .fd-level-back-btn { padding: 10px 16px; font-size: 0.75rem; }
  .fd-level-watermark { font-size: 8rem; }
  .fd-level-nav { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
}

.fd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.fd-back-link:hover { color: var(--color-primary); }
.fd-swiper-counter {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Page background */
.fd-page-bg {
  background: linear-gradient(180deg, rgba(13,115,119,0.04) 0%, var(--color-bg) 30%);
  padding: 0 0 var(--space-12);
  overflow: hidden;
}

/* Swiper wrapper */
.fd-swiper-wrapper {
  position: relative;
}

/* Swiper */
.fd-swiper {
  overflow: visible;
  position: relative;
}

/* Side arrows — sticky, centered in viewport */
.fd-swiper-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0A5C5F 0%, #0D7377 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #fff;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(13,115,119,0.3);
  position: sticky;
  top: 50vh;
  float: left;
}
.fd-swiper-arrow svg { width: 28px; height: 28px; }
.fd-swiper-prev { left: calc(50% - 480px); margin-bottom: -56px; }
.fd-swiper-next { float: right; left: auto; right: calc(50% - 480px); margin-bottom: -56px; }
.fd-swiper-arrow:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(13,115,119,0.4);
}

/* Hidden slides beyond immediate neighbors */
.fd-swiper-slide.fd-slide-hidden {
  opacity: 0 !important;
  pointer-events: none;
}
.fd-swiper-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  align-items: flex-start;
}
.fd-swiper-slide {
  width: 780px;
  flex-shrink: 0;
  padding: var(--space-4) 0;
  box-sizing: border-box;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
  margin: 0 -180px;
  position: relative;
}
.fd-swiper-slide:not(.fd-slide-active) {
  transform: scale(0.79);
  opacity: 0.32;
  filter: blur(2px);
  pointer-events: none;
  z-index: 1;
}
.fd-swiper-slide.fd-slide-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
  z-index: 3;
}
.fd-swiper-slide .fd-sheet {
  max-width: 760px;
  width: 100%;
  font-size: 1em;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}

@media (max-width: 960px) {
  .fd-swiper-slide { width: 92vw; margin: 0 -60px; }
  .fd-swiper-slide:not(.fd-slide-active) { transform: scale(0.7); opacity: 0.15; filter: blur(3px); }
  .fd-swiper-slide .fd-sheet { min-height: auto; }
  .fd-swiper-arrow { width: 40px; height: 40px; }
  .fd-swiper-arrow svg { width: 22px; height: 22px; }
  .fd-swiper-prev { left: 4px; }
  .fd-swiper-next { right: 4px; }
}
.fd-sheet {
  max-width: 860px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(10,22,40,0.08), 0 1px 3px rgba(0,0,0,0.04);
  padding: 0;
  overflow: hidden;
  position: relative;
}
.fd-sheet-photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.fd-sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fd-sheet-header,
.fd-sheet-section,
.fd-sheet-divider,
.fd-sheet-expand-toggle,
.fd-sheet-footer {
  padding-left: clamp(var(--space-8), 5vw, var(--space-12));
  padding-right: clamp(var(--space-8), 5vw, var(--space-12));
}
.fd-sheet-header {
  padding-top: var(--space-6);
}
.fd-sheet-footer {
  padding-bottom: clamp(var(--space-8), 5vw, var(--space-12));
}
[data-theme="dark"] .fd-sheet {
  background: var(--color-surface);
  box-shadow: 0 4px 40px rgba(0,0,0,0.3);
}

/* Sheet header */
.fd-sheet-header { margin-bottom: var(--space-2); }
.fd-sheet-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.fd-sheet-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), #14B8A6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fd-sheet-tools {
  display: flex;
  gap: var(--space-2);
}
.fd-sheet-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}
.fd-sheet-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 var(--space-5);
  max-width: 640px;
}
.fd-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
}
.fd-sheet-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.fd-sheet-meta-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}
.fd-sheet-meta-opco {
  color: var(--color-primary);
  font-weight: 600;
}
/* Astérisque discret sur la durée (indicateur 1 Qualiopi) */
.fd-meta-asterisk {
  color: var(--color-primary);
  font-size: 0.75em;
  margin-left: 2px;
  cursor: help;
  font-weight: 600;
}
/* Note évaluation discrète sous le programme (indicateur 1 Qualiopi) */
.fd-evaluation-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(13,115,119,0.04);
  border-left: 2px solid var(--color-primary);
  border-radius: 4px;
  line-height: 1.6;
}
.fd-evaluation-note strong {
  color: var(--color-primary);
  font-weight: 600;
}
/* Note prérequis dans "C'est fait pour vous ?" (indicateur 1 Qualiopi) */
.fd-prerequis-note {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider, rgba(0,0,0,0.06));
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.fd-prerequis-note strong {
  color: var(--color-text);
  font-weight: 600;
}
.fd-sheet-cta {
  display: inline-flex;
}
.fd-btn-white {
  background: #fff !important;
  color: var(--color-primary) !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255,255,255,0.2) !important;
  position: relative;
  overflow: hidden;
}
.fd-btn-white::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(13,115,119,0.15) 45%, rgba(13,115,119,0.3) 50%, rgba(13,115,119,0.15) 55%, transparent 80%);
  animation: btn-shine 3s ease-in-out infinite;
  pointer-events: none;
}
.fd-btn-white:hover {
  background: rgba(255,255,255,0.9) !important;
  color: var(--color-primary) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}
/* Expand/collapse details */
.fd-sheet-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}
.fd-sheet--expanded .fd-sheet-details {
  max-height: 3000px;
  opacity: 1;
}
.fd-sheet-expand-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  margin-top: var(--space-4);
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.2s ease;
}
.fd-sheet-expand-toggle::before,
.fd-sheet-expand-toggle::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-divider) 30%, var(--color-divider) 70%, transparent);
}
.fd-sheet-expand-toggle:hover {
  color: var(--color-primary);
}
.fd-expand-arrow {
  transition: transform 0.3s ease;
  color: inherit;
}
.fd-sheet--expanded .fd-expand-arrow {
  transform: rotate(180deg);
}

.fd-sheet-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-divider) 20%, var(--color-divider) 80%, transparent);
  margin: var(--space-8) 0;
}

/* Sheet sections */
.fd-sheet-section { }
.fd-sheet-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 var(--space-5);
}
.fd-sheet-section-title svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* Sheet objectives */
.fd-sheet-objectives {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.fd-sheet-obj {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(13,115,119,0.04);
  border-radius: 12px;
  transition: background 0.2s;
}
.fd-sheet-obj:hover {
  background: rgba(13,115,119,0.08);
}
.fd-sheet-obj svg { flex-shrink: 0; margin-top: 2px; }
.fd-sheet-obj span {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

/* Sheet footer */
.fd-sheet-footer {
  margin-top: var(--space-6);
  text-align: center;
}
.fd-sheet-footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
}
.fd-sheet-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.fd-sheet-footer-link:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .fd-page-bg { padding: var(--space-3) var(--space-2) var(--space-8); }
  .fd-sheet { border-radius: 16px; padding: var(--space-5); }
  .fd-sheet-header-top { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .fd-sheet-meta { flex-direction: column; gap: var(--space-2); }
  .fd-sheet-footer-links { flex-direction: column; align-items: center; gap: var(--space-3); }
}

.fd-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}
.fd-outcome-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fd-outcome-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.fd-outcome-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
}
.fd-outcome-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- PROGRAMME blocks --- */
.fd-programme-block {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--color-surface);
}
.fd-programme-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  cursor: pointer;
  transition: background 0.2s ease;
}
.fd-programme-header:hover {
  background: var(--color-surface-2);
}
.fd-programme-label {
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fd-programme-title {
  flex: 1;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.fd-programme-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.fd-programme-block.open .fd-programme-chevron {
  transform: rotate(180deg);
}
.fd-programme-body {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
}
.fd-programme-block.open .fd-programme-body {
  display: block;
}
.fd-programme-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fd-programme-body li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}
.fd-programme-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}
.fd-programme-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  flex-wrap: wrap;
}
.fd-programme-tools .fd-tool-logo {
  width: 36px;
  height: 36px;
  background: var(--color-surface-2);
  border-color: var(--color-divider);
}
.fd-programme-tools .fd-tool-logo img {
  width: 24px;
  height: 24px;
}
.fd-tools-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  margin-right: var(--space-1);
}

/* --- TIMELINE Programme --- */
.fd-timeline {
  position: relative;
  padding-left: 32px;
}
.fd-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(13,115,119,0.15) 100%);
  border-radius: 2px;
}
.fd-timeline-block {
  position: relative;
  margin-bottom: var(--space-3);
}
.fd-timeline-dot {
  position: absolute;
  left: -32px;
  top: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px rgba(13,115,119,0.15);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fd-timeline-block.open .fd-timeline-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(13,115,119,0.2);
}
.fd-timeline-content {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.fd-timeline-content:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.fd-timeline-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  transition: background 0.2s ease;
}
.fd-timeline-header:hover {
  background: rgba(13,115,119,0.03);
}
.fd-timeline-label {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), #14B8A6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fd-timeline-title {
  flex: 1;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}
.fd-timeline-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--color-text-muted);
}
.fd-timeline-block.open .fd-timeline-chevron {
  transform: rotate(180deg);
}
.fd-timeline-body {
  display: none;
  padding: 0 var(--space-5) var(--space-5);
}
.fd-timeline-block.open .fd-timeline-body {
  display: block;
}
.fd-timeline-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fd-timeline-body li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}
.fd-timeline-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
}

/* --- Prose intro (inside Programme détaillé) --- */
.fd-prose-intro {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
  max-width: 72ch;
}

/* --- Highlights grid --- */
.fd-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.fd-highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5) var(--space-4);
  min-height: 90px;
  background: transparent;
  border: 1px dashed rgba(13,115,119,0.15);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.fd-highlight-card:hover {
  border-color: rgba(13,115,119,0.3);
  background: rgba(13,115,119,0.02);
}
.fd-highlight-icon { display: none; }
.fd-highlight-value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
}
.fd-highlight-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: 16ch;
}

/* --- Prose takeaway --- */
.fd-prose-takeaway {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-8);
  background: rgba(25,100,155,0.04);
  border-left: 3px solid rgba(25,100,155,0.4);
  border-radius: 0 12px 12px 0;
}
.fd-prose-takeaway-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(25,100,155,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(25,100,155);
  margin-top: 2px;
}
.fd-prose-takeaway-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}
.fd-prose-takeaway-content p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .fd-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .fd-highlights-grid {
    grid-template-columns: 1fr;
  }
  .fd-highlight-card + .fd-highlight-card::before {
    left: 20%;
    right: 20%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .fd-highlight-card {
    min-height: auto;
    padding: var(--space-4);
  }
  .fd-highlight-label { max-width: none; }
  .fd-prose-takeaway {
    padding: var(--space-4);
  }
}

/* --- Outcome cards (redesigned) --- */
.fd-outcome-check {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13,115,119,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fd-section-title svg {
  vertical-align: -3px;
  margin-right: 6px;
  opacity: 0.6;
}

/* --- Fit header --- */
.fd-fit-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.fd-fit-header h3 {
  margin: 0;
}

/* --- FIT section (pour vous si...) --- */
.fd-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.fd-fit-col {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.fd-fit-yes {
  background: rgba(13,115,119,0.04);
  border: 1px solid rgba(13,115,119,0.12);
}
.fd-fit-no {
  background: rgba(10,22,40,0.03);
  border: 1px solid rgba(10,22,40,0.08);
}
.fd-fit-col h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.fd-fit-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fd-fit-col li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  line-height: 1.6;
}

/* --- PROCESS steps (Comment ça se passe) --- */
.fd-process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.fd-process-step {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fd-process-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.fd-process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #0A1628);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 0 auto var(--space-4);
}
.fd-process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.fd-process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- ORGANIZE steps (Comment organiser) --- */
.fd-organize-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.fd-organize-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}
.fd-organize-step:hover {
  background: var(--color-surface-2);
}
.fd-organize-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  position: relative;
}
.fd-organize-step:not(:last-child) .fd-organize-num::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(var(--space-4) + var(--space-1));
  background: var(--color-primary);
  opacity: 0.3;
}
.fd-organize-content h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.fd-organize-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- INFOS grid --- */
.fd-infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.fd-info-item {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.fd-info-item strong {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-2);
}
.fd-info-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Infos pratiques accordion */
.fd-infos-accordion { border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; }
.fd-infos-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-5) var(--space-6); background: var(--color-surface); border: none; cursor: pointer; font-family: var(--font-display); color: var(--color-text); }
.fd-infos-toggle:hover { background: var(--color-surface-2); }
.fd-infos-chevron { transition: transform 0.3s ease; }
.fd-infos-accordion.open .fd-infos-chevron { transform: rotate(180deg); }
.fd-infos-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.fd-infos-accordion.open .fd-infos-body { max-height: 800px; }

/* --- SIDEBAR --- */
.fd-sidebar {
  position: relative;
}
.fd-sidebar-inner {
  position: sticky;
  top: 88px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.fd-sidebar-price-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fd-sidebar-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.fd-sidebar-divider {
  height: 1px;
  background: var(--color-divider);
  margin: var(--space-4) 0;
}
.fd-sidebar-info {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
}
.fd-sidebar-info svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.fd-sidebar-highlight {
  color: var(--color-primary);
  font-weight: 600;
}
.fd-sidebar-cta {
  width: 100%;
  margin-top: var(--space-2);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.fd-sidebar-link {
  display: block;
  text-align: center;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-decoration: none;
}
.fd-sidebar-link:hover {
  text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .fd-layout-inner {
    grid-template-columns: 1fr;
  }
  .fd-sidebar {
    order: -1;
  }
  .fd-sidebar-inner {
    position: static;
  }
  .fd-fit-grid {
    grid-template-columns: 1fr;
  }
  .fd-process-steps {
    grid-template-columns: 1fr;
  }
  .fd-hero {
    padding: var(--space-10) 0 var(--space-8);
  }
  .fd-hero-split {
    flex-direction: column;
  }
  .fd-hero-left {
    flex: 1 1 100%;
  }
  .fd-hero-logos-zone {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding: var(--space-4) 0;
    -webkit-overflow-scrolling: touch;
  }
  .fd-floating-logo {
    position: relative;
    top: auto !important;
    right: auto !important;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    animation: none;
  }
  .fd-floating-logo img {
    width: 24px;
    height: 24px;
  }
  .fd-floating-logo.fd-fl-active {
    animation: none;
    transform: scale(1.2);
  }
}

/* --- DARK MODE for formation detail --- */
[data-theme="dark"] .fd-hero {
  background: linear-gradient(135deg, #0A1628 0%, #0b4f52 50%, #0A1628 100%);
}
[data-theme="dark"] .fd-outcome-card,
[data-theme="dark"] .fd-programme-block,
[data-theme="dark"] .fd-process-step,
[data-theme="dark"] .fd-info-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .fd-outcome-card:hover,
[data-theme="dark"] .fd-process-step:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
[data-theme="dark"] .fd-programme-header:hover,
[data-theme="dark"] .fd-organize-step:hover {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .fd-fit-yes {
  background: rgba(13,115,119,0.08);
  border-color: rgba(13,115,119,0.15);
}
[data-theme="dark"] .fd-fit-no {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .fd-sidebar-inner {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
[data-theme="dark"] .fd-tool-logo {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .fd-programme-tools .fd-tool-logo {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

/* ===== FINANCEMENT PAGE ===== */
.financement-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-block: var(--space-8);
}
.financement-step {
  text-align: center;
  padding: var(--space-4);
}
.financement-step .step-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.financement-step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.financement-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (max-width: 768px) {
  .financement-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .financement-steps { grid-template-columns: 1fr; }
}

.faq-container { max-width: 720px; margin-inline: auto; margin-top: var(--space-8); }
.accordion-item {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.accordion-item:hover {
  border-color: rgba(13,115,119,0.2);
}
.accordion-item.open {
  border-color: rgba(13,115,119,0.25);
  box-shadow: 0 2px 12px rgba(13,115,119,0.06);
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  gap: var(--space-3);
  transition: background 0.2s ease, color 0.2s ease;
}
.accordion-header:hover { background: var(--color-surface-2); }
.accordion-item.open .accordion-header { color: var(--color-primary); }
.accordion-header svg {
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-muted);
}
.accordion-item.open .accordion-header svg {
  transform: rotate(180deg);
  color: var(--color-primary);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 var(--space-5);
}
.accordion-item.open .accordion-body {
  max-height: 500px;
  padding: 0 var(--space-5) var(--space-5);
}

/* ===== ABOUT PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.team-card .role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.team-card .bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  justify-items: center;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: var(--space-4) var(--space-5); }
.blog-card-body .category {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
}
.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.blog-card-body .excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.blog-card-body .meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.blog-card-body .meta .read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-xs);
}
.blog-card-body .meta .read-time svg {
  flex-shrink: 0;
}

/* ===== BLOG ARTICLE PAGE ===== */
.ba-breadcrumb {
  padding: calc(var(--space-16) + 48px) 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.ba-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}
.ba-breadcrumb a:hover { text-decoration: underline; }
.ba-breadcrumb-sep {
  margin: 0 var(--space-2);
  color: var(--color-text-faint);
}

.ba-article {
  padding-bottom: var(--space-16);
}

.ba-hero {
  text-align: center;
  padding: var(--space-8) 0 var(--space-6);
}
.ba-category {
  display: inline-block;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}
.ba-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.ba-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.ba-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ba-meta-sep {
  color: var(--color-text-faint);
}

.ba-featured-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-10);
  aspect-ratio: 16/9;
}
.ba-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article prose */
.ba-content {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
}
.ba-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  line-height: 1.25;
}
.ba-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.ba-content p {
  margin-bottom: var(--space-4);
}
.ba-content ul, .ba-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}
.ba-content li {
  margin-bottom: var(--space-2);
}
.ba-content a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.ba-content a:hover {
  text-decoration: underline;
}
.ba-content strong {
  font-weight: 600;
  color: var(--color-text);
}

/* Article tables */
.ba-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
}
.ba-table thead {
  background: var(--color-surface-2);
}
.ba-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-divider);
}
.ba-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-muted);
}
.ba-table tr:last-child td {
  border-bottom: none;
}
.ba-table a {
  color: var(--color-primary);
  text-decoration: none;
}
.ba-table a:hover {
  text-decoration: underline;
}

/* CTA link in article */
.ba-cta-link {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-inverse) !important;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none !important;
  margin-top: var(--space-2);
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.ba-cta-link:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Author box */
.ba-author-box {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding: var(--space-6);
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
}
.ba-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  flex-shrink: 0;
}
.ba-author-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: 2px;
}
.ba-author-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Related articles */
.ba-related {
  background: var(--color-surface-2);
}
.ba-related-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Bottom CTA */
.ba-bottom-cta {
  padding: var(--space-16) 0;
}
.ba-bottom-cta-inner {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
}
.ba-bottom-cta-inner h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.ba-bottom-cta-inner p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.ba-bottom-cta-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ba-title { font-size: var(--text-xl); }
  .ba-meta { flex-direction: column; gap: var(--space-1); }
  .ba-author-box { flex-direction: column; text-align: center; }
  .ba-bottom-cta-buttons { flex-direction: column; align-items: center; }
  .ba-bottom-cta { padding: var(--space-8) 0; }
  .ba-bottom-cta-inner { padding: var(--space-6) var(--space-4); }
}

/* ===== FORMATIONS VILLES (SEO) ===== */
.villes-tabs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.ville-panel { display: none; }
.ville-panel.active { display: block; }

.ville-section {
  margin-bottom: var(--space-8);
}
.ville-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.ville-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.ville-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: var(--space-6);
}
.ville-pourquoi ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.ville-pourquoi li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid rgba(13,115,119,0.12);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}
.ville-pourquoi li::before {
  content: "";
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 7px;
}
.ville-formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}
.ville-formation-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid rgba(13,115,119,0.10);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all 0.2s ease;
}
.ville-formation-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13,115,119,0.08);
}
.ville-formation-link svg { color: var(--color-primary); flex-shrink: 0; }
.ville-deroulement ol {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.ville-deroulement li {
  counter-increment: step;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid rgba(13,115,119,0.10);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.ville-deroulement li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  margin-bottom: var(--space-2);
}
.ville-faq { margin-bottom: var(--space-6); }
.ville-cta {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: linear-gradient(135deg, rgba(13,115,119,0.10) 0%, rgba(212,204,194,0.15) 50%, rgba(232,133,74,0.08) 100%);
  border: 1px solid rgba(13,115,119,0.18);
  border-radius: var(--radius-xl);
}
.ville-cta p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
@media (max-width: 768px) {
  .villes-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
  }
  .villes-tabs::-webkit-scrollbar { display: none; }
  .villes-tabs .filter-chip { white-space: nowrap; flex-shrink: 0; }
  .ville-pourquoi ul { grid-template-columns: 1fr; }
  .ville-deroulement ol { grid-template-columns: 1fr 1fr; }
  .ville-formations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ville-deroulement ol { grid-template-columns: 1fr; }
}

/* ===== CONTACT PAGE V2 ===== */
/* Wrapper extends bg to footer + centers hero block vertically when content is short */
.contact-page-wrap {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
  min-height: calc(100dvh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-page-mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 35% 35% at 75% 18%, rgba(13,115,119,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 25% 60%, rgba(232,133,74,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 30% 28% at 80% 85%, rgba(15,184,189,0.06) 0%, transparent 65%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.contact-page-wrap > section { position: relative; z-index: 1; }

/* Hero — transparent so it inherits the wrapper bg */
.about-hero-section.contact-hero-section {
  min-height: auto;
  padding-top: calc(70px + clamp(var(--space-8), 4vw, var(--space-12)));
  padding-bottom: var(--space-10);
  background: transparent;
  border: none;
}
.contact-hero-bar {
  width: 96px;
  height: 4px;
  margin: var(--space-6) auto 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #0D7377 0%, #0fb8bd 40%, #E8854A 100%);
  filter: drop-shadow(0 0 12px rgba(13,115,119,0.25));
}

/* Type cards inside hero — wider than about-hero-content */
.contact-hero-section .about-hero-content {
  max-width: 1080px;
}
.contact-hero-section .cf-types {
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.contact-section {
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  background: transparent;
}
.contact-section:has(.cf-card:not(.cf-card--collapsed)) {
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
}
.contact-container { max-width: 920px; }

/* Step indicators */
.cf-step-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}
.cf-step-label--inside {
  margin-top: 0;
  margin-bottom: var(--space-5);
}

/* Form card collapse/reveal */
.cf-card {
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.45s ease, padding 0.35s ease, margin 0.35s ease, border-color 0.25s ease;
  overflow: hidden;
}
.cf-card--collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  border-color: transparent;
  pointer-events: none;
  transform: translateY(-6px);
}
.cf-card:not(.cf-card--collapsed) {
  max-height: 4000px;
  opacity: 1;
  margin-top: var(--space-10);
}

/* Footer contact strip */
.contact-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.contact-footer-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13,115,119,0.14);
  background: rgba(255,255,255,0.55);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
a.contact-footer-item:hover {
  border-color: rgba(13,115,119,0.40);
  background: rgba(255,255,255,0.85);
  transform: translateY(-1px);
}
.contact-footer-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-footer-item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contact-footer-item small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.contact-footer-item strong {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Single form card — matching hero-card style */
.cf-card {
  background: linear-gradient(135deg, rgba(13,115,119,0.14) 0%, rgba(212,204,194,0.20) 50%, rgba(232,133,74,0.10) 100%);
  border: 1px solid rgba(13,115,119,0.22);
  border-radius: 20px;
  padding: var(--space-6);
  box-shadow: 0 4px 24px rgba(13,115,119,0.06), 0 1px 4px rgba(10,22,40,0.04);
  position: relative;
  overflow: hidden;
}

/* Section labels — simple text */
.cf-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0,128,128,0.10);
}
.cf-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.cf-divider {
  display: none;
}
.cf-field--message {
  margin-top: var(--space-6);
}

/* Field grid — 3 columns */
.cf-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.cf-field--span2 { grid-column: span 2; }
.cf-field {
  display: flex;
  flex-direction: column;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  padding: 11px 14px;
  border: 1px solid rgba(13,115,119,0.15);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: rgba(255,255,255,0.55);
  color: var(--color-text);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.cf-field input:hover,
.cf-field select:hover,
.cf-field textarea:hover {
  border-color: rgba(13,115,119,0.30);
  background: rgba(255,255,255,0.70);
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,115,119,0.10), 0 2px 12px rgba(13,115,119,0.06);
  background: rgba(255,255,255,0.85);
  outline: none;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--color-text-faint);
}
.cf-field textarea { min-height: 80px; resize: vertical; }
.cf-field select {
  cursor: pointer;
  appearance: none;
  color: var(--color-text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D7377' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Footer row — info + submit */
.cf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(13,115,119,0.15);
  gap: var(--space-4);
}
.cf-footer-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.cf-footer-info svg { color: var(--color-primary); }

/* Submit button — with shimmer */
.cf-submit {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(13,115,119,0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.cf-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: cfShimmer 3s ease-in-out infinite;
}
@keyframes cfShimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}
.cf-submit:hover {
  box-shadow: 0 6px 28px rgba(13,115,119,0.35);
  transform: translateY(-2px) scale(1.02);
}
.cf-submit:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(13,115,119,0.20);
}
.cf-submit svg {
  transition: transform 0.25s ease;
}
.cf-submit:hover svg {
  transform: translateX(4px);
}

/* Sidebar v2 */
.contact-sidebar-v2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
}
.cs-card {
  background: linear-gradient(150deg, var(--color-surface-2), var(--color-surface));
  border: 1px solid rgba(13,115,119,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: 0 2px 12px rgba(10,22,40,0.05);
}
.cs-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.cs-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.cs-card--highlight {
  background: linear-gradient(135deg, rgba(13,115,119,0.08) 0%, rgba(212,204,194,0.12) 50%, rgba(232,133,74,0.05) 100%);
  border-color: rgba(13,115,119,0.22);
}
.cs-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}
.cs-item:not(:last-child) {
  border-bottom: 1px solid rgba(13,115,119,0.06);
}
.cs-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.cs-item div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cs-item strong {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.cs-item a,
.cs-item span {
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
}
.cs-item a:hover { color: var(--color-primary); }

#form-message:empty { display: none; }

/* Form messages */
.form-success {
  background: rgba(13,115,119,0.08);
  border: 1px solid rgba(13,115,119,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.form-error {
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  color: #DC2626;
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
}

/* Success screen */
.cf-success-screen {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  animation: cfFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cfFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.cf-success-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid rgba(13,115,119,0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10,22,40,0.06), 0 1px 3px rgba(13,115,119,0.04);
}

/* Hero zone with gradient */
.cf-success-hero {
  background: linear-gradient(135deg, rgba(13,115,119,0.10) 0%, rgba(212,204,194,0.15) 50%, rgba(232,133,74,0.06) 100%);
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-bottom: 1px solid rgba(13,115,119,0.08);
}

.cf-success-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(13,115,119,0.10), 0 4px 16px rgba(13,115,119,0.20);
  margin-bottom: var(--space-5);
  animation: cfBadgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
@keyframes cfBadgePop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

.cf-success-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.cf-success-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Info items — numbered steps like form sections */
.cf-success-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  padding: var(--space-5) var(--space-6);
}
.cf-success-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  position: relative;
}
.cf-success-info-item:not(:last-child) {
  border-bottom: 1px solid var(--color-divider);
}
.cf-success-info-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-top: 1px;
}
.cf-success-info-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}
.cf-success-info-item span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cf-success-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 var(--space-6) var(--space-6);
}

/* ===== Type selector cards (Design A — minimal accent gradient) ===== */
.cf-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.cf-type-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  min-height: 88px;
  border-radius: 14px;
  border: 1px solid rgba(13,115,119,0.12);
  background: rgba(13,115,119,0.025);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.cf-type-text {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.cf-type-text strong {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}
.cf-type-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(135deg, #0D7377 0%, #0fb8bd 40%, #E8854A 100%);
  opacity: 0.30;
  transition: height 0.3s ease, opacity 0.3s ease;
}
.cf-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cf-type-card:hover {
  border-color: rgba(13,115,119,0.30);
  background: rgba(13,115,119,0.05);
  transform: translateY(-2px);
}
.cf-type-card:hover::after {
  height: 3px;
  opacity: 0.70;
}
.cf-type-card.is-selected {
  border-color: rgba(13,115,119,0.55);
  background: linear-gradient(180deg, rgba(13,115,119,0.06) 0%, rgba(232,133,74,0.04) 100%);
}
.cf-type-card.is-selected::after {
  height: 4px;
  opacity: 1;
}
.cf-type-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cf-type-card:hover .cf-type-icon {
  transform: scale(1.05);
}
.cf-type-card.is-selected .cf-type-icon {
  box-shadow: 0 4px 14px rgba(13,115,119,0.35);
}
.cf-type-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cf-type-text strong {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}
.cf-type-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}
.cf-type-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cf-type-card.is-selected .cf-type-check {
  opacity: 1;
  transform: scale(1);
}

/* ===== File input (CV upload) ===== */
.cf-file-input {
  position: relative;
  display: block;
  cursor: pointer;
}
.cf-file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.cf-file-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 11px 14px;
  border: 1px dashed rgba(13,115,119,0.35);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.55);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  width: 100%;
}
.cf-file-input:hover .cf-file-trigger {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.80);
  color: var(--color-text);
}
.cf-file-trigger svg { color: var(--color-primary); flex-shrink: 0; }
.cf-file-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Helper text under fields */
.cf-help {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ===== Custom dropdown selects ===== */
.cf-select {
  position: relative;
  width: 100%;
}
.cf-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 11px 14px;
  border: 1px solid rgba(13,115,119,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.55);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.cf-select-trigger:hover {
  border-color: rgba(13,115,119,0.30);
  background: rgba(255,255,255,0.70);
}
.cf-select.is-open .cf-select-trigger,
.cf-select-trigger:focus-visible {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13,115,119,0.12);
  outline: none;
}
.cf-select-value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-select-value--placeholder {
  color: var(--color-text-muted);
}
.cf-select-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.cf-select.is-open .cf-select-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.cf-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(13,115,119,0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(10,22,40,0.12), 0 4px 10px rgba(10,22,40,0.06);
  max-height: 280px;
  overflow-y: auto;
  animation: cfSelectPanel 0.18s ease;
}
@keyframes cfSelectPanel {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.cf-select-option {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cf-select-option:hover {
  background: rgba(13,115,119,0.08);
}
.cf-select-option.is-selected {
  background: var(--color-primary);
  color: #fff;
}

/* Multi variant — checkbox style */
.cf-select-option--multi {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cf-select-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(13,115,119,0.30);
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cf-select-option--multi.is-selected {
  background: rgba(13,115,119,0.08);
  color: var(--color-text);
}
.cf-select-option--multi.is-selected .cf-select-check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.cf-select-option--multi:hover {
  background: rgba(13,115,119,0.08);
  color: var(--color-text);
}

/* Inline info banner (used for réclamation Qualiopi notice) */
.cf-info-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 12px 14px;
  margin-top: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(13,115,119,0.08);
  border: 1px solid rgba(13,115,119,0.18);
  color: var(--color-text);
  font-size: var(--text-xs);
  line-height: 1.5;
}
.cf-info-banner svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Animate type-section transitions */
[data-type-section] { animation: cfFadeIn 0.25s ease; }
@keyframes cfFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .contact-footer { grid-template-columns: 1fr; }
  .cf-types { grid-template-columns: 1fr 1fr; }
  .cf-grid--3 { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .cf-field--span2 { grid-column: span 2; }
  .cf-card { padding: var(--space-5) var(--space-4); }
  .cf-divider { margin: var(--space-4) 0; }
  .cf-footer { flex-direction: column; gap: var(--space-3); }
  .cf-footer-info { order: 2; }
  .cf-submit { width: 100%; justify-content: center; padding: var(--space-3) var(--space-6); }
  .cf-success-screen { padding: var(--space-4) var(--space-3); }
  .cf-success-hero { padding: var(--space-6) var(--space-4) var(--space-5); }
  .cf-success-info { padding: var(--space-4); }
  .cf-success-actions { padding: 0 var(--space-4) var(--space-5); flex-direction: column; align-items: stretch; }
  .cf-success-actions .btn { justify-content: center; }
}
@media (max-width: 480px) {
  .cf-grid--3 { grid-template-columns: 1fr; gap: var(--space-2); }
  .cf-field--span2 { grid-column: span 1; }
  .cf-types { grid-template-columns: 1fr; }
  .cf-type-card { padding: var(--space-3); }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .cf-grid--3 { grid-template-columns: 1fr 1fr; }
}

/* ===== PORTAL PAGES ===== */
.portal-login {
  max-width: 420px;
  margin: var(--space-12) auto;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.portal-login h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-6);
}
.portal-login .demo-hint {
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-4);
}
.login-error {
  background: var(--color-error-highlight);
  color: var(--color-error);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
  margin-bottom: var(--space-4);
}

/* Dashboard */
.dashboard { padding-block: var(--space-8) var(--space-16); }
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.dashboard-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.dashboard-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.dashboard-card .item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.dashboard-card .item:last-child { border-bottom: none; }
.dashboard-card .item .item-title { font-weight: 500; color: var(--color-text); }
.dashboard-card .item .item-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.status-badge {
  display: inline-flex;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.status-badge.completed { background: var(--color-success-highlight); color: var(--color-success); }
.status-badge.enrolled { background: var(--color-primary-highlight); color: var(--color-primary); }

/* ===== LEGAL PAGES ===== */
.legal-page { padding-block: calc(var(--space-16) + 20px) var(--space-12); }

/* Legal hero card */
.legal-hero-card {
  background: linear-gradient(135deg, rgba(13,115,119,0.14) 0%, rgba(212,204,194,0.2) 50%, rgba(232,133,74,0.10) 100%);
  border: 1px solid rgba(13,115,119,0.22);
  box-shadow: 0 4px 24px rgba(13,115,119,0.06), 0 1px 4px rgba(10,22,40,0.04);
  border-radius: 20px;
  padding: clamp(var(--space-8), 5vw, var(--space-12)) clamp(var(--space-6), 4vw, var(--space-10));
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-10);
}
.legal-hero-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.legal-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  line-height: 1.15;
}
.legal-hero-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-8);
}
.legal-content {
  max-width: 720px;
}
.cgv-tarif-note {
  margin-top: var(--space-8);
  padding: var(--space-5);
  border-left: 3px solid var(--color-primary);
  background: rgba(13, 115, 119, 0.04);
  border-radius: 0 8px 8px 0;
}
.cgv-tarif-note p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.cgv-tarif-note p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.cgv-tarif-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Liste delais reclamations (article 8) */
.cgv-reclamation-list {
  margin: var(--space-3) 0 var(--space-3);
  padding-left: 0;
  list-style: none;
}
.cgv-reclamation-list li {
  position: relative;
  padding: 8px 12px 8px 32px;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.55;
  border-left: 2px solid rgba(13,115,119,0.30);
  margin-bottom: 4px;
  background: rgba(13,115,119,0.03);
  border-radius: 0 8px 8px 0;
}
.cgv-reclamation-list li::before {
  content: "";
  position: absolute;
  left: 12px; top: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}
.cgv-reclamation-list strong { color: var(--color-primary); }
.cgv-reclamation-note {
  font-size: var(--text-xs) !important;
  font-style: italic;
  color: var(--color-text-muted) !important;
  margin-top: var(--space-2) !important;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.legal-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.legal-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.legal-content li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

/* ===== LOADING STATES ===== */
.loading-spinner {
  display: flex;
  justify-content: center;
  padding: var(--space-16);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-divider);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== PAGE TRANSITIONS ===== */
#app {
  animation: page-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Financement explanation blocks */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-block: var(--space-8);
}
.funding-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.funding-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.funding-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== FRANCE TYPEWRITER EFFECT ===== */
.france-typewriter {
  position: relative;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}
.france-typewriter::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 0.1em;
  bottom: 0.1em;
  width: 3px;
  background: rgba(255,255,255,0.8);
  opacity: 0;
}
.france-typewriter.typing {
  animation: france-type 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.france-typewriter.typing::after {
  opacity: 1;
  animation: france-blink 0.55s step-end infinite;
}
@keyframes france-type {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}
@keyframes france-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
.france-typewriter.typed {
  clip-path: inset(0 0% 0 0);
}
.france-typewriter.typed::after {
  opacity: 0;
}

/* ===== CONTACT MODAL ===== */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 22, 40, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, backdrop-filter 0.35s ease;
}
.contact-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.contact-modal {
  position: relative;
  background: var(--color-surface);
  border-radius: 24px;
  padding: 0;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(10,22,40,0.18);
  transform: scale(0.9) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  overflow: hidden;
}
.contact-modal-overlay.open .contact-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}
/* Teal header zone */
.contact-modal-header {
  background: linear-gradient(135deg, #064e50 0%, var(--color-primary) 50%, #0a8a8e 100%);
  padding: var(--space-5) var(--space-6) var(--space-6);
  position: relative;
}
.contact-modal-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 16px;
  background: var(--color-surface);
  border-radius: 20px 20px 0 0;
}
.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  z-index: 2;
}
.contact-modal-close:hover {
  background: rgba(255,255,255,0.30);
  transform: rotate(90deg);
}
.contact-modal h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: #fff;
  position: relative;
  z-index: 1;
}
.contact-modal p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
/* Body */
.contact-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-6);
}
.contact-modal-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid var(--color-divider);
  background: var(--color-bg);
  color: var(--color-text);
}
.contact-modal-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  box-shadow: 0 3px 12px rgba(13,115,119,0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.contact-modal-btn:hover .contact-modal-btn-icon {
  box-shadow: 0 5px 20px rgba(13,115,119,0.35);
  transform: scale(1.06);
}
.contact-modal-btn:hover {
  border-color: rgba(13,115,119,0.25);
  background: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,115,119,0.10);
}
.contact-modal-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}
.contact-modal-btn-text strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.contact-modal-btn-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.contact-modal-btn--call:hover .contact-modal-btn-icon {
  animation: modal-ring 0.5s ease;
}
.contact-modal-btn--form:hover .contact-modal-btn-icon {
  animation: modal-bounce 0.4s ease;
}
@keyframes modal-ring {
  0%, 100% { transform: rotate(0) scale(1.06); }
  20% { transform: rotate(-15deg) scale(1.06); }
  40% { transform: rotate(15deg) scale(1.06); }
  60% { transform: rotate(-10deg) scale(1.06); }
  80% { transform: rotate(10deg) scale(1.06); }
}
@keyframes modal-bounce {
  0%, 100% { transform: scale(1.06); }
  50% { transform: scale(1.14); }
}

/* ===== LEXIQUE IA PAGE ===== */
.lexique-hero-card {
  background: linear-gradient(135deg, rgba(13,115,119,0.14) 0%, rgba(212,204,194,0.2) 50%, rgba(232,133,74,0.10) 100%);
  border: 1px solid rgba(13,115,119,0.22);
  box-shadow: 0 4px 24px rgba(13,115,119,0.06), 0 1px 4px rgba(10,22,40,0.04);
  border-radius: 20px;
  padding: clamp(var(--space-8), 5vw, var(--space-12)) clamp(var(--space-6), 4vw, var(--space-10));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lexique-hero-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.lexique-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  line-height: 1.15;
}
.lexique-hero-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
}

/* Filters */
.lexique-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-10);
}
.lexique-filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(13,115,119,0.2);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lexique-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.lexique-filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Category titles */
.lexique-category {
  margin-bottom: var(--space-8);
}
.lexique-category-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid rgba(13,115,119,0.15);
}

/* Accordion terms */
.lexique-term {
  border: 1px solid rgba(13,115,119,0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  background: var(--color-bg);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.lexique-term:hover {
  box-shadow: 0 2px 8px rgba(13,115,119,0.08);
}
.lexique-term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.lexique-term-name {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-base);
}
.lexique-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
}
.lexique-term.open .lexique-chevron {
  transform: rotate(180deg);
}
.lexique-term-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-5);
}
.lexique-term.open .lexique-term-body {
  max-height: 500px;
  padding: 0 var(--space-5) var(--space-5);
}
.lexique-term-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Internal links */
.lexique-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(13,115,119,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}
.lexique-link:hover {
  text-decoration-color: var(--color-primary);
}

/* CTA */
.lexique-cta {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  margin-top: var(--space-8);
  background: linear-gradient(135deg, rgba(13,115,119,0.08) 0%, rgba(212,204,194,0.12) 100%);
  border-radius: 20px;
}
.lexique-cta h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.lexique-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Dark mode */
[data-theme="dark"] .legal-hero-card {
  background: linear-gradient(135deg, #0D5C3E 0%, #0A4A3A 40%, #1A2A42 100%);
  border-color: rgba(20,184,166,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
[data-theme="dark"] .legal-hero-title {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
[data-theme="dark"] .legal-hero-label {
  color: #14B8A6;
}
[data-theme="dark"] .legal-hero-subtitle {
  color: rgba(255,255,255,0.7);
}
[data-theme="dark"] .lexique-hero-card {
  background: linear-gradient(135deg, #0D5C3E 0%, #0A4A3A 40%, #1A2A42 100%);
  border-color: rgba(20,184,166,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
[data-theme="dark"] .lexique-hero-title {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
[data-theme="dark"] .lexique-hero-title .whyus-glow {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
[data-theme="dark"] .lexique-hero-label {
  color: #14B8A6;
}
[data-theme="dark"] .lexique-hero-subtitle {
  color: rgba(255,255,255,0.7);
}
[data-theme="dark"] .lexique-filter-btn {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}
[data-theme="dark"] .lexique-filter-btn:hover {
  border-color: #14B8A6;
  color: #14B8A6;
}
[data-theme="dark"] .lexique-filter-btn.active {
  background: #14B8A6;
  color: #fff;
  border-color: #14B8A6;
}
[data-theme="dark"] .lexique-category-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .lexique-term {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .lexique-term-name {
  color: #14B8A6;
}
[data-theme="dark"] .lexique-term-body p {
  color: rgba(255,255,255,0.7);
}
[data-theme="dark"] .lexique-link {
  color: #14B8A6;
  text-decoration-color: rgba(20,184,166,0.4);
}
[data-theme="dark"] .lexique-cta {
  background: linear-gradient(135deg, rgba(20,184,166,0.08) 0%, rgba(26,42,66,0.3) 100%);
}
[data-theme="dark"] .lexique-cta h3 {
  color: #fff;
}

/* ===== FINANCEMENT PAGE ===== */
/* Hero card */
.financement-hero-card {
  background: linear-gradient(135deg, rgba(13,115,119,0.14) 0%, rgba(212,204,194,0.2) 50%, rgba(232,133,74,0.10) 100%);
  border: 1px solid rgba(13,115,119,0.22);
  box-shadow: 0 4px 24px rgba(13,115,119,0.06), 0 1px 4px rgba(10,22,40,0.04);
  border-radius: 20px;
  padding: clamp(var(--space-8), 5vw, var(--space-12)) clamp(var(--space-6), 4vw, var(--space-10));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.financement-hero-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.financement-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  line-height: 1.15;
}
.financement-hero-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
  margin-bottom: var(--space-5);
}
.financement-hero-cta {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-3) var(--space-8);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 4px 20px rgba(13,115,119,0.25), 0 2px 8px rgba(0,0,0,0.08);
  animation: ctaPulse 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.financement-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13,115,119,0.35), 0 4px 12px rgba(0,0,0,0.12);
  animation: none;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(13,115,119,0.25), 0 2px 8px rgba(0,0,0,0.08); }
  50% { box-shadow: 0 4px 30px rgba(13,115,119,0.45), 0 2px 12px rgba(0,0,0,0.12); }
}
.financement-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.financement-highlight-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a9a9f 50%, #E8854A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
/* Financement — pricing tiers */
.fin-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.fin-tier {
  background: var(--color-surface);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.fin-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.fin-tier--featured {
  background: linear-gradient(180deg, rgba(13,115,119,0.04) 0%, var(--color-surface) 40%);
  border-color: rgba(13,115,119,0.25);
  box-shadow: 0 4px 20px rgba(13,115,119,0.1);
}
.fin-tier-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.fin-tier-head {
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}
.fin-tier-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: 2px;
}
.fin-tier-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.fin-tier-pct {
  margin-bottom: var(--space-4);
  line-height: 1.1;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.fin-tier-pct-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.fin-tier-pct-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary);
}
.fin-tier-device {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: var(--space-5);
  align-self: flex-start;
}
.fin-tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  flex: 1;
}
.fin-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.fin-tier-features li:last-child { border-bottom: none; }
.fin-tier-features li svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}
@media (max-width: 900px) {
  .fin-tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .fin-tiers { grid-template-columns: 1fr; }
}
.financement-roadmap {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  position: relative;
}
.financement-roadmap::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), #E8854A);
  border-radius: 2px;
  z-index: 0;
}
.roadmap-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.roadmap-step .step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  margin: 0 auto var(--space-3);
  box-shadow: 0 4px 15px rgba(13,115,119,0.3);
}
.roadmap-step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.roadmap-step p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}
.financement-cta-box {
  background: linear-gradient(135deg, rgba(13,115,119,0.08) 0%, rgba(232,133,74,0.06) 100%);
  border: 1px solid rgba(13,115,119,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  text-align: center;
  margin-bottom: var(--space-12);
}
.financement-cta-box h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}
.bpi-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(13,115,119,0.1);
  border: 1px solid rgba(13,115,119,0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
}
@media (max-width: 768px) {
  .financement-roadmap {
    flex-direction: column;
    gap: var(--space-6);
  }
  .financement-roadmap::before {
    top: 0;
    bottom: 0;
    left: 32px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .roadmap-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    text-align: left;
  }
  .roadmap-step .step-circle {
    flex-shrink: 0;
    margin: 0;
  }
  .roadmap-step p { max-width: none; }
  .financement-cta-box {
    padding: var(--space-6) var(--space-4);
    margin-bottom: var(--space-8);
  }
}

/* ===== ABOUT PAGE V2 ===== */
/* About — Hero */
.about-hero-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface-2) 100%);
}
.about-hero-section .about-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 40% 50% at 70% 30%, rgba(13,115,119,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 35% 40% at 30% 70%, rgba(232,133,74,0.08) 0%, transparent 60%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* About — Tighter spacing */
.about-mission-section {
  padding-bottom: var(--space-8);
}
.about-timeline-section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-16);
}

/* About — Mission grid with photo */
.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-8);
}
.about-mission-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.about-mission-text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}
.about-mission-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* About — Stats bar */
.about-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
}
.about-stat {
  text-align: center;
}
.about-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a9a9f 50%, #E8854A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.about-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* About — Timeline */
.about-timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: var(--space-8);
}
.about-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(13,115,119,0.15));
  border-radius: 2px;
}
.about-timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}
.about-timeline-item:last-child {
  padding-bottom: 0;
}
.about-timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 4px);
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
}
.about-timeline-content h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.about-timeline-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.about-timeline-date {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  display: block;
}

/* About — BPI Section (full-width) */
.bpi-section {
  position: relative;
  padding-block: clamp(var(--space-8), 5vw, var(--space-12));
  overflow: hidden;
}
.bpi-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,115,119,0.06) 0%, rgba(212,204,194,0.18) 50%, rgba(232,133,74,0.05) 100%);
  border-top: 1px solid rgba(13,115,119,0.08);
  border-bottom: 1px solid rgba(13,115,119,0.08);
}
.bpi-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.bpi-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.bpi-subtext {
  max-width: 580px;
  margin-inline: auto;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.bpi-trust-row {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.bpi-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--color-primary), #0a9a9f);
  padding: var(--space-2) var(--space-4);
  border-radius: 99px;
}
.bpi-trust-chip svg {
  flex-shrink: 0;
}

/* About — Differentiators (clean list) */
.diff-section {
  position: relative;
  padding-bottom: var(--space-8);
}
.diff-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, 90%);
  height: 1px;
  background: var(--color-divider);
}
.diff-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  transition: background 0.3s ease;
}
.diff-item:hover {
  background: rgba(13,115,119,0.03);
}
.diff-item-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a9a9f 100%);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-top: 2px;
}
.diff-item-body h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.diff-item-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* About — Team v3 (formation-card style) */
.team-section {
  position: relative;
  padding-top: var(--space-8);
  overflow: hidden;
}
.team-grid-v3 {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: var(--space-4);
}
.team-card-v3 {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}
.team-card-v3::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(13,115,119,0.15), rgba(10,154,159,0.08), rgba(232,133,74,0.1));
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.4s ease;
}
.team-card-v3:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13,115,119,0.12), 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(13,115,119,0.2);
}
.team-card-v3:hover::after {
  opacity: 1;
}
.team-avatar-v3 {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), #0a9a9f);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar-v3 img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.1);
  transition: transform 0.5s ease;
}
.team-card-v3:hover .team-avatar-v3 img {
  transform: scale(1.15);
}
.team-card-v3:nth-child(2) .team-avatar-v3 img {
  object-position: center 35%;
  transform: scale(1.15);
}
.team-card-v3:nth-child(2):hover .team-avatar-v3 img {
  transform: scale(1.2);
}
.team-card-v3:nth-child(3) .team-avatar-v3 img {
  object-position: 55% 45%;
  transform: scale(1.2);
}
.team-card-v3:nth-child(3):hover .team-avatar-v3 img {
  transform: scale(1.05);
}
.team-avatar-fallback-v3 {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: white;
  font-weight: 700;
  font-size: var(--text-2xl);
  font-family: var(--font-display);
}
.team-info-v3 {
  padding: 20px 24px 24px;
}
.team-info-v3 h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: 2px;
}
.team-info-v3 .role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.team-info-v3 .bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* About — Team Modal */
.team-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.team-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.team-modal {
  position: relative;
  background: var(--color-surface);
  border-radius: 20px;
  max-width: 480px;
  width: 92%;
  max-height: 88vh;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
}
.team-modal-overlay.active .team-modal {
  transform: translateY(0) scale(1);
}
.team-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px; height: 36px;
  border: none;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.team-modal-close:hover {
  background: white;
  color: var(--color-text);
  transform: scale(1.05);
}
.team-modal-photo {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}
.team-modal-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-surface), transparent);
  pointer-events: none;
}
.team-modal-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.team-modal-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  overflow-y: auto;
  max-height: calc(88vh - 260px);
}
.team-modal-header {
  margin-bottom: var(--space-4);
}
.team-modal-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  margin-bottom: 4px;
}
.team-modal-header .role {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}
.team-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.team-modal-tag {
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--color-primary), #0a9a9f);
  padding: 4px 14px;
  border-radius: 99px;
}
.team-modal-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}
.team-modal-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.team-modal-email,
.team-modal-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(13,115,119,0.06);
  border: 1px solid rgba(13,115,119,0.12);
  transition: all 0.2s ease;
}
.team-modal-email:hover,
.team-modal-linkedin:hover {
  background: rgba(13,115,119,0.12);
  border-color: rgba(13,115,119,0.2);
}
.team-modal-email svg,
.team-modal-linkedin svg {
  width: 14px; height: 14px;
}
/* About — Accessibility strip */
.a11y-section {
  padding-block: 0 var(--space-8);
  margin-top: calc(-1 * var(--space-6));
}
.a11y-strip {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-divider);
}
.a11y-icon-wrap {
  flex-shrink: 0;
  color: var(--color-primary);
  display: flex;
  align-items: center;
}
.a11y-text {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.a11y-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.a11y-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.a11y-desc a {
  color: var(--color-primary);
  text-decoration: none;
}
.a11y-desc a:hover {
  text-decoration: underline;
}

/* About — Responsive */
@media (max-width: 768px) {
  .about-hero-section { min-height: auto; padding-top: calc(80px + var(--space-8)); padding-bottom: var(--space-8); }
  .about-mission-grid { grid-template-columns: 1fr; }
  .bpi-trust-row { flex-direction: column; align-items: center; }
  .diff-item { flex-direction: column; gap: var(--space-3); }
  .team-card-v3 { flex: 0 0 100%; max-width: 340px; }
  .team-avatar-v3 { height: 200px; }
  .a11y-strip { flex-direction: column; text-align: center; }
  .a11y-text { flex-direction: column; align-items: center; gap: var(--space-1); }
}

/* ===== CONTACT PAGE V2 ===== */



/* ===== ELIGIBILITY CTA SECTION (HOMEPAGE) ===== */
.elig-cta-section {
  background: var(--color-bg);
  padding-block: clamp(var(--space-2), 2vw, var(--space-6)) clamp(var(--space-12), 6vw, var(--space-16));
  margin-top: -3%;
}
.elig-cta-inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(13,115,119,0.06) 0%, rgba(212,204,194,0.25) 50%, rgba(232,133,74,0.08) 100%);
  border: 1px solid rgba(13,115,119,0.12);
  border-radius: 24px;
  padding: clamp(var(--space-12), 6vw, var(--space-20)) clamp(var(--space-8), 5vw, var(--space-16));
  position: relative;
  overflow: hidden;
}
.elig-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(13,115,119,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.elig-cta-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.15) 55%, transparent 80%);
  animation: elig-shine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes elig-shine {
  0% { left: -100%; }
  30% { left: 150%; }
  100% { left: 150%; }
}
.elig-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.elig-cta-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  line-height: 1.7;
}
.elig-cta-btn {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  background: linear-gradient(135deg, #0D7377 0%, #0A5C5F 50%, #083E42 100%) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(13,115,119,0.3), 0 2px 6px rgba(10,22,40,0.15);
}
[data-theme="dark"] .elig-cta-inner {
  background: linear-gradient(135deg, rgba(20,184,166,0.08) 0%, rgba(30,48,80,0.3) 50%, rgba(232,133,74,0.06) 100%);
  border-color: rgba(20,184,166,0.15);
}
[data-theme="dark"] .elig-cta-inner::before {
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(20,184,166,0.06) 0%, transparent 70%);
}
[data-theme="dark"] .elig-cta-title {
  color: var(--color-primary);
}

/* ===== ELIGIBILITY QUIZ ===== */
.eq-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: eq-overlay-in 0.25s ease;
}
@keyframes eq-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.eq-modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: eq-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes eq-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.eq-header {
  padding: var(--space-3) var(--space-5) 0;
  position: relative;
}
.eq-progress {
  height: 4px;
  background: var(--color-divider);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.eq-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.eq-step-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.eq-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.eq-close:hover { background: var(--color-surface-2); }
.eq-body {
  padding: var(--space-3) var(--space-5) var(--space-5);
}
.eq-fade-in {
  animation: eq-fade 0.3s ease;
}
@keyframes eq-fade {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.eq-question {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.eq-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
  line-height: 1.5;
  font-style: italic;
}
.eq-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.eq-option {
  display: block;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 2px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}
.eq-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.eq-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.eq-footer {
  padding: 0 var(--space-6) var(--space-5);
}
.eq-back {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  padding: var(--space-2) 0;
}
.eq-back svg {
  transform: rotate(180deg);
}
.eq-back:hover { color: var(--color-primary); }

/* Result — eligible animation */
.eq-eligible-anim {
  text-align: center;
  margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-5)) var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: linear-gradient(135deg, rgba(13,115,119,0.06), rgba(20,184,166,0.08));
  border-bottom: 1px solid rgba(13,115,119,0.1);
  animation: eq-eligible-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.eq-not-eligible {
  background: linear-gradient(135deg, rgba(100,116,139,0.04), rgba(100,116,139,0.06));
  border-bottom: 1px solid rgba(100,116,139,0.1);
}
@keyframes eq-eligible-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.eq-eligible-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13,115,119,0.1), rgba(20,184,166,0.15));
  margin-bottom: var(--space-2);
  animation: eq-circle-glow 2s ease-in-out infinite;
}
@keyframes eq-circle-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,115,119,0.25); }
  50% { box-shadow: 0 0 0 14px rgba(13,115,119,0); }
}
.eq-anim-circle {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: eq-draw 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}
.eq-anim-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: eq-draw 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards;
}
@keyframes eq-draw {
  to { stroke-dashoffset: 0; }
}
.eq-eligible-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #0D7377;
  margin-bottom: 2px;
  line-height: 1.2;
}
.eq-title-info {
  color: var(--color-text);
}
.eq-eligible-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 400px;
  margin-inline: auto;
}
.eq-alternative {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 400px;
  margin-inline: auto;
  margin-top: 4px;
  font-style: italic;
}
.eq-not-eligible .eq-eligible-circle {
  animation: none;
}
.eq-circle-info {
  background: rgba(100,116,139,0.1);
  box-shadow: 0 0 16px rgba(100,116,139,0.12);
}
/* Result — cards with badges */
.eq-result-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.eq-result-card {
  background: var(--color-surface);
  border: 1px solid rgba(13,115,119,0.15);
  border-left: 3px solid #0D7377;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  position: relative;
  transition: box-shadow 0.2s ease;
}
.eq-result-card:hover {
  box-shadow: 0 4px 16px rgba(13,115,119,0.1);
}
.eq-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}
.eq-highlight {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  color: #0D7377;
  line-height: 1;
}
.eq-result-card h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}
.eq-result-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}
.eq-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  background: #0D7377;
}
/* Callback header */
.eq-callback-header {
  margin-bottom: var(--space-2);
}
.eq-callback-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 2px;
}

/* Result form */
.eq-result-form {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-3);
}
.eq-result-form h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.eq-form-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.eq-form-row input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease;
}
.eq-form-row input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.eq-submit {
  width: 100%;
  margin-top: var(--space-2);
}
.eq-or {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}
.eq-or a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.eq-or a:hover { text-decoration: underline; }
.eq-success {
  text-align: center;
  padding: var(--space-6);
  color: var(--color-success);
  font-weight: 600;
  font-size: var(--text-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.eq-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: var(--text-sm);
  color: #ef4444;
  margin-bottom: var(--space-3);
}

/* Dark mode */
[data-theme="dark"] .eq-modal {
  background: var(--color-bg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
[data-theme="dark"] .eq-option {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .eq-option:hover {
  background: rgba(13,115,119,0.15);
  border-color: var(--color-primary);
}
[data-theme="dark"] .eq-result-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .eq-form-row input {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
  .eq-modal { max-width: 100%; border-radius: var(--radius-md); }
  .eq-form-row { flex-direction: column; }
  .eq-question { font-size: var(--text-md); }
}

/* ===== DARK MODE OVERRIDES ===== */

/* Header — logo white, nav links & button more visible */
[data-theme="dark"] .site-header .logo {
  filter: brightness(0) invert(1);
}
[data-theme="dark"] .nav-link {
  color: rgba(255,255,255,0.75);
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .header-actions .btn-primary {
  background: #fff;
  color: #0A1628;
}
[data-theme="dark"] .header-actions .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  color: #0A1628;
}
[data-theme="dark"] .mobile-nav-link {
  color: rgba(255,255,255,0.8);
}

/* Hero & CTA buttons — brighter in dark mode */
[data-theme="dark"] .btn-hero-gradient {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 50%, #0D7377 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(20,184,166,0.3), 0 2px 8px rgba(0,0,0,0.2);
}
[data-theme="dark"] .btn-hero-gradient:hover {
  background: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 50%, #0D9488 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 25px rgba(20,184,166,0.4), 0 3px 10px rgba(0,0,0,0.25);
}
[data-theme="dark"] .btn-secondary {
  color: #14B8A6;
  border-color: rgba(20,184,166,0.5);
}
[data-theme="dark"] .btn-secondary:hover {
  background: rgba(20,184,166,0.1);
  border-color: #14B8A6;
  color: #2DD4BF;
}
[data-theme="dark"] .elig-cta-btn {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 50%, #0D7377 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(20,184,166,0.3), 0 2px 8px rgba(0,0,0,0.2);
}
[data-theme="dark"] .elig-cta-btn:hover {
  background: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 50%, #0D9488 100%) !important;
  color: #fff !important;
}

[data-theme="dark"] .hero-mesh {
  opacity: 0.3;
}
[data-theme="dark"] .hero-gradient {
  background:
    radial-gradient(ellipse 50% 65% at 25% 50%, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.7) 40%, transparent 80%),
    linear-gradient(to right, rgba(10,22,40,0.5) 0%, transparent 50%);
}
[data-theme="dark"] .hero-mesh::before {
  background-image: radial-gradient(circle 1px, rgba(20,184,166,0.06) 1px, transparent 1px);
}
[data-theme="dark"] .hero-tech-canvas {
  opacity: 0.4;
}

/* Logo swiper glow — replace light halo with dark-friendly teal glow */
[data-theme="dark"] .logo-swiper::before {
  background: radial-gradient(ellipse at center,
    rgba(10,22,40,0.9) 0%,
    rgba(10,22,40,0.7) 25%,
    rgba(13,115,119,0.12) 40%,
    rgba(10,22,40,0.2) 55%,
    transparent 72%
  );
}

/* France map paths — white fill, teal borders */
[data-theme="dark"] .france-map-container path {
  fill: rgba(255,255,255,0.92);
  stroke: #14B8A6;
  stroke-width: 0.8;
}
[data-theme="dark"] .france-map-container path:hover {
  fill: #14B8A6;
  stroke: rgba(255,255,255,0.6);
}

/* Logo carousel faces */
[data-theme="dark"] .logo-carousel-face {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Method section */

/* Whyus section */
[data-theme="dark"] .whyus-section {
  background: var(--color-bg);
}
[data-theme="dark"] .section.section--catalogue {
  background: var(--color-bg);
}
[data-theme="dark"] .elig-cta-section {
  background: var(--color-bg);
}
[data-theme="dark"] .whyus-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
[data-theme="dark"] .whyus-feat h4 {
  color: var(--color-text);
}
[data-theme="dark"] .whyus-feat:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 10px 35px rgba(0,0,0,0.3);
}
[data-theme="dark"] .whyus-title {
  color: var(--color-text);
}
[data-theme="dark"] .whyus-label {
  color: var(--color-primary);
}

/* Orbit bubbles */
[data-theme="dark"] .orbit-bubble img {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* France section — darker background for contrast */
[data-theme="dark"] .france-section {
  background: #0A1628;
}
/* City pins — teal labels with white text */
[data-theme="dark"] .city-pin-label {
  background: #14B8A6;
  color: #fff;
}
[data-theme="dark"] .city-pin-dot {
  background: #14B8A6;
  border-color: rgba(255,255,255,0.6);
}
[data-theme="dark"] .city-pin-dot::before {
  background: rgba(20,184,166,0.3);
}
/* Paris & Bordeaux — white labels with teal text */
[data-theme="dark"] .city-pin--main .city-pin-label {
  background: #fff;
  color: #14B8A6;
}
[data-theme="dark"] .city-pin--main .city-pin-dot {
  background: #fff;
  border-color: #14B8A6;
}
[data-theme="dark"] .city-pin--main .city-pin-dot::before {
  background: rgba(255,255,255,0.2);
}

/* CTA band — subtler glow in dark mode */
[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #0A1628 0%, #111E33 100%);
}
[data-theme="dark"] .cta-band-card {
  background: linear-gradient(135deg, #0D5C3E 0%, #0A4A3A 40%, #1A2A42 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 8px 30px rgba(0,0,0,0.3);
}
[data-theme="dark"] .cta-band-card::before {
  background: radial-gradient(ellipse 50% 70% at 80% 20%, rgba(20,184,166,0.1) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 20% 80%, rgba(232,133,74,0.06) 0%, transparent 70%);
}
/* Arrow connector — white in dark mode */
[data-theme="dark"] .arrow-connector-svg {
  filter: brightness(0) invert(1);
}
/* CTA band button — dark text */
[data-theme="dark"] .cta-band .btn-primary {
  background: #fff !important;
  color: #0A1628 !important;
}
[data-theme="dark"] .cta-band .btn-primary:hover {
  background: rgba(255,255,255,0.9) !important;
  color: #0A1628 !important;
}

/* Formations hero card — dark mode with white glow */
[data-theme="dark"] .formations-hero-card {
  background: linear-gradient(135deg, #0D5C3E 0%, #0A4A3A 40%, #1A2A42 100%);
  border-color: rgba(20,184,166,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
[data-theme="dark"] .formations-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 65%);
  pointer-events: none;
  border-radius: inherit;
}
[data-theme="dark"] .formations-hero-title {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
[data-theme="dark"] .formations-hero-title .whyus-glow {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
[data-theme="dark"] .formations-hero-label {
  color: #14B8A6;
}
[data-theme="dark"] .formations-hero-subtitle {
  color: rgba(255,255,255,0.7);
}
/* Bottom CTA card — white icon, text, button text */
[data-theme="dark"] .catalog-bottom-icon {
  color: #fff;
}
[data-theme="dark"] .catalog-bottom-text h3 {
  color: #fff;
}
[data-theme="dark"] .catalog-bottom-text p {
  color: rgba(255,255,255,0.7);
}
[data-theme="dark"] .formations-bottom-cta .btn-primary {
  color: #fff !important;
}

/* Financement hero — dark mode */
[data-theme="dark"] .financement-hero-card {
  background: linear-gradient(135deg, #0D5C3E 0%, #0A4A3A 40%, #1A2A42 100%);
  border-color: rgba(20,184,166,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
[data-theme="dark"] .financement-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 65%);
  pointer-events: none;
  border-radius: inherit;
}
[data-theme="dark"] .financement-hero-title {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
[data-theme="dark"] .financement-hero-title .whyus-glow {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
[data-theme="dark"] .financement-hero-label {
  color: #14B8A6;
}
[data-theme="dark"] .financement-hero-subtitle {
  color: rgba(255,255,255,0.7);
}

/* Stats in dark mode */
[data-theme="dark"] .stat-card .stat-number {
  filter: drop-shadow(0 0 20px rgba(20,184,166,0.3));
}

/* Footer dark mode fix — keep navy background since --color-navy flips to light in dark theme */
[data-theme="dark"] .site-footer {
  background: #0A1628;
  border-top-color: rgba(255,255,255,0.06);
}

/* Mobile hero gradient */
@media (max-width: 900px) {
  [data-theme="dark"] .hero-gradient {
    background: rgba(10,22,40,0.92);
  }
}

/* ===== MOBILE PERFORMANCE: disable continuous animations ===== */
@media (max-width: 768px) {
  .whyus-center-circle { animation: none !important; }
  .btn-primary::after,
  .fd-enroll-btn::after,
  .elig-btn::after { animation: none !important; }
  .city-pin::after { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .whyus-center-circle,
  .btn-primary::after,
  .fd-enroll-btn::after,
  .elig-btn::after,
  .city-pin::after,
  .orbit-bubble,
  .fd-floating-logo { animation: none !important; }
}

/* ===== PAGE NOS RÉSULTATS DE QUALITÉ (Qualiopi indicateur 2) ===== */
.qualite-hero {
  padding: var(--space-8) 0 var(--space-6);
  background: linear-gradient(135deg, rgba(13,115,119,0.08) 0%, rgba(13,115,119,0.02) 100%);
  border-bottom: 1px solid rgba(13,115,119,0.1);
}
.qualite-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-6) 0;
}
.qualite-hero-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.qualite-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.qualite-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* Loading skeleton */
.qualite-content-loading {
  padding: var(--space-8) 0;
}
.qualite-skeleton {
  height: 400px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 100%);
  background-size: 200% 100%;
  animation: qualite-skeleton-pulse 1.6s ease-in-out infinite;
  border-radius: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@keyframes qualite-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Content container */
#qualite-content {
  padding: var(--space-8) 0 var(--space-10);
}
#qualite-content > .container {
  max-width: 1100px;
}

/* Bandeau pré-lancement (Qualiopi action 7) */
.qualite-pre-notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(232,133,74,0.08), rgba(232,133,74,0.04));
  border: 1px solid rgba(232,133,74,0.30);
  border-radius: 12px;
  margin-bottom: var(--space-6);
}
.qualite-pre-notice-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #E8854A; color: #fff;
}
.qualite-pre-notice-text {
  font-size: 14px; line-height: 1.5;
  color: #78350F;
  font-weight: 500;
}

/* Section trimestrielle (3 indicateurs publiés) */
.qualite-quarterly-section { margin-top: var(--space-6); }
.qualite-quarterly-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.qualite-quarterly-sub {
  margin: 6px 0 0;
  font-size: 14px; color: var(--color-text-muted);
  line-height: 1.5;
}
.qualite-next-pub {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13,115,119,0.08), rgba(13,115,119,0.14));
  border: 1px solid rgba(13,115,119,0.20);
  flex-shrink: 0;
}
.qualite-next-pub-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-primary);
}
.qualite-next-pub-date {
  font-size: 16px; font-weight: 700;
  color: var(--color-text);
}
.qualite-next-pub-q {
  font-size: 12px; color: var(--color-text-muted);
}

.qualite-quarterly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.qualite-quarterly-card {
  background: #fff;
  border: 1px solid rgba(13,115,119,0.14);
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.qualite-quarterly-card::before {
  content: "";
  position: absolute; top: 0; left: 22px; right: 22px;
  height: 3px;
  background: linear-gradient(90deg, #0D7377, #0fb8bd);
  border-radius: 0 0 4px 4px;
}
.qualite-quarterly-card--filled {
  box-shadow: 0 4px 18px rgba(13,115,119,0.08);
}
.qualite-quarterly-card--empty {
  background: rgba(13,115,119,0.02);
  border-style: dashed;
}
.qualite-quarterly-card-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.qualite-quarterly-card-value {
  font-family: var(--font-display, inherit);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1;
  color: var(--color-text);
}
.qualite-quarterly-card--empty .qualite-quarterly-card-value {
  color: #9CA3AF;
}
.qualite-quarterly-card-soon {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232,133,74,0.12);
  color: #9A3412;
  font-size: 11px; font-weight: 600;
}
.qualite-quarterly-card-desc {
  margin-top: 12px;
  font-size: 13px; color: var(--color-text-muted);
  line-height: 1.5;
}
.qualite-quarterly-card-value .qualite-kpi-unit {
  font-size: 0.5em;
  font-weight: 500; color: var(--color-text-muted);
  margin-left: 4px;
}

/* Historique trimestriel */
.qualite-quarterly-history {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: rgba(13,115,119,0.03);
  border-radius: 12px;
}
.qualite-quarterly-history-title {
  margin: 0 0 12px;
  font-size: 14px; font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.qualite-quarterly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.qualite-quarterly-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(13,115,119,0.10);
}
.qualite-quarterly-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(13,115,119,0.06);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .qualite-quarterly-grid { grid-template-columns: 1fr; }
  .qualite-quarterly-head { flex-direction: column; align-items: flex-start; }
  .qualite-next-pub { align-items: flex-start; align-self: stretch; }
  .qualite-quarterly-table { font-size: 12px; }
  .qualite-quarterly-table th, .qualite-quarterly-table td { padding: 6px 8px; }
}

/* Bandeau status */
.qualite-status-banner {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, rgba(13,115,119,0.05), rgba(13,115,119,0.02));
  border: 1px solid rgba(13,115,119,0.15);
  border-radius: 16px;
  margin-bottom: var(--space-8);
}
.qualite-status-banner--active {
  background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(34,197,94,0.02));
  border-color: rgba(34,197,94,0.2);
}
.qualite-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qualite-status-banner--active .qualite-status-icon {
  background: #22c55e;
}
.qualite-status-text {
  flex: 1;
}
.qualite-status-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}
.qualite-status-text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.6;
}
.qualite-status-progress {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.qualite-progress-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qualite-progress-stat strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.qualite-progress-stat span {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grille KPI — 5 colonnes desktop, responsive */
.qualite-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.qualite-kpi-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: var(--space-5) var(--space-3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.qualite-kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(13,115,119,0.3));
}
.qualite-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13,115,119,0.1);
  border-color: rgba(13,115,119,0.2);
}
.qualite-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.qualite-kpi-icon svg {
  width: 20px;
  height: 20px;
}
.qualite-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}
.qualite-kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.qualite-kpi-value--active {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.qualite-kpi-value--placeholder {
  font-size: 3rem;
  color: rgba(13,115,119,0.18);
  line-height: 0.9;
  margin-bottom: 6px;
}
.qualite-kpi-soon-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.qualite-kpi-unit {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--color-text-muted);
}
.qualite-kpi-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: auto;
}

@media (max-width: 1080px) {
  .qualite-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .qualite-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .qualite-kpi-grid { grid-template-columns: 1fr; }
}

/* Sections (méthodologie, formules, conformité) */
.qualite-section {
  margin-bottom: var(--space-10);
}
.qualite-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  text-align: center;
}

/* Méthodologie cards */
.qualite-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.qualite-method-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: var(--space-5);
  position: relative;
}
.qualite-method-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.qualite-method-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}
.qualite-method-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Formules */
.qualite-formula-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 800px;
  margin: 0 auto;
}
.qualite-formula {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  padding: var(--space-4) var(--space-5);
}
.qualite-formula-label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.qualite-formula-calc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Conformité */
.qualite-conformity {
  background: linear-gradient(135deg, #0D7377 0%, #0A5C5F 50%, #083E42 100%);
  border-radius: 20px;
  padding: var(--space-8);
  color: #fff;
  margin-bottom: var(--space-10);
}
.qualite-conformity-inner {
  max-width: 760px;
  margin: 0 auto;
}
.qualite-conformity-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.qualite-conformity h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  color: #fff;
}
.qualite-conformity p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-3);
}
.qualite-conformity p strong {
  color: #fff;
  font-weight: 600;
}
.qualite-conformity-meta {
  font-size: var(--text-sm) !important;
  color: rgba(255,255,255,0.75) !important;
}

/* CTA fin */
.qualite-cta-section {
  text-align: center;
  padding: var(--space-8) 0 var(--space-4);
}
.qualite-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.qualite-cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--space-3);
}
.qualite-cta-section p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.qualite-cta-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Dark mode */
[data-theme="dark"] .qualite-hero {
  background: linear-gradient(135deg, rgba(13,115,119,0.12) 0%, rgba(13,115,119,0.04) 100%);
}
[data-theme="dark"] .qualite-kpi-card,
[data-theme="dark"] .qualite-method-card,
[data-theme="dark"] .qualite-formula {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .qualite-status-banner { flex-direction: column; }
  .qualite-conformity { padding: var(--space-5); }
}

/* === Page Règlement Intérieur — boutons + signatures === */
.legal-hero-actions {
  margin-top: var(--space-5);
  display: flex;
  justify-content: center;
}
.legal-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal-signature-block {
  margin-top: var(--space-8);
  padding: var(--space-5);
  background: rgba(13, 115, 119, 0.04);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
}
.legal-signature-block p {
  margin-bottom: var(--space-2);
}
.legal-signature-block p:last-child {
  margin-bottom: 0;
}
.legal-footer-meta {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.legal-footer-meta p {
  margin-bottom: 4px !important;
  font-size: var(--text-xs) !important;
}
.legal-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.legal-content ol[type="a"] {
  list-style: lower-alpha;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.legal-content ol[type="a"] li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* === Liste partenaires accessibilité (Qualiopi indicateur 26) === */
.legal-partners-list {
  list-style: none !important;
  padding: 0 !important;
  margin: var(--space-4) 0 !important;
}
.legal-partners-list li {
  background: rgba(13, 115, 119, 0.04);
  border-left: 3px solid var(--color-primary);
  padding: var(--space-4) var(--space-5) !important;
  margin-bottom: var(--space-3) !important;
  border-radius: 0 8px 8px 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}
.legal-partners-list li::before {
  content: none !important;
}
.legal-partners-list li a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.legal-partners-list li a:hover {
  text-decoration: underline;
}
.legal-partners-list li strong {
  color: var(--color-text);
}
.legal-partners-note {
  margin-top: var(--space-5) !important;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.025);
  border-radius: 8px;
  font-size: var(--text-sm) !important;
}
