/* ============================================
   MB ACADÃƒâ€°MIE Ã¢â‚¬â€ DESIGN SYSTEM 2026
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #f97316;
  --secondary-dark: #ea580c;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --accent: #06b6d4;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fb923c;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563eb, #f97316);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1e3a6e 65%, #2563eb 82%, #c2610e 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  --gradient-text: linear-gradient(135deg, #2563eb, #f97316);
  --gradient-accent: linear-gradient(135deg, #f97316, #fb923c);
  --gradient-blue-orange: linear-gradient(135deg, #2563eb, #f97316);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 30px rgba(37,99,235,0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Glass */
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --glass-bg-light: rgba(255,255,255,0.7);
  --glass-border-light: rgba(255,255,255,0.3);

  /* Z-index */
  --z-header: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
}

/* Dark mode variables */
[data-theme="dark"] {
  --white: #0f172a;
  --gray-50: #1e293b;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --glass-bg-light: rgba(30,41,59,0.8);
  --glass-border-light: rgba(255,255,255,0.1);
}

/* ---- Dark mode: keep hero & navbar text white on dark gradient backgrounds ---- */

/* Logo text stays white (not scrolled) */
[data-theme="dark"] .logo-text { color: #fff; }

/* Scrolled header: dark bg instead of white */
[data-theme="dark"] .header.scrolled {
  background: rgba(15,23,42,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
[data-theme="dark"] .header.scrolled .logo-text { color: #f8fafc; }
[data-theme="dark"] .header.scrolled .nav-link { color: #94a3b8; }
[data-theme="dark"] .header.scrolled .nav-link:hover { color: #60a5fa; background: rgba(96,165,250,0.08); }
[data-theme="dark"] .header.scrolled .nav-link.active { color: #60a5fa; background: rgba(96,165,250,0.1); }
[data-theme="dark"] .header.scrolled .nav-link.active::after { background: #60a5fa; }
[data-theme="dark"] .header.scrolled .theme-toggle { background: #334155; color: #94a3b8; }
[data-theme="dark"] .header.scrolled .theme-toggle:hover { background: #475569; color: #e2e8f0; }
[data-theme="dark"] .header.scrolled .menu-toggle { background: #334155; }
[data-theme="dark"] .header.scrolled .menu-toggle span { background: #e2e8f0; }
[data-theme="dark"] .header.scrolled .nav-actions .btn-outline.btn-header { border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .header.scrolled .nav-actions .btn-outline.btn-header:hover { border-color: #60a5fa; color: #60a5fa; }

/* Hero sections: text must always be white on gradient backgrounds */
[data-theme="dark"] .hero-content,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero .hero-stats .stat-number,
[data-theme="dark"] .hero .hero-stats .stat-label { color: #fff; }
[data-theme="dark"] .hero-subtitle { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .hero .hero-stats .stat-label { color: rgba(255,255,255,0.6); }

/* Page hero sections (all pages) */
[data-theme="dark"] .page-hero,
[data-theme="dark"] .page-hero-formations,
[data-theme="dark"] .page-hero-about,
[data-theme="dark"] .page-hero-contact,
[data-theme="dark"] .page-hero-legal { color: #fff; }
[data-theme="dark"] .page-hero h1,
[data-theme="dark"] .page-hero-formations h1,
[data-theme="dark"] .page-hero-about h1,
[data-theme="dark"] .page-hero-contact h1,
[data-theme="dark"] .page-hero-legal h1 { color: #fff; }
[data-theme="dark"] .page-hero p,
[data-theme="dark"] .page-hero-formations p,
[data-theme="dark"] .page-hero-about p,
[data-theme="dark"] .page-hero-contact p,
[data-theme="dark"] .page-hero-legal p { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .hero-formation-stats .stat-number { color: #fff; }
[data-theme="dark"] .hero-formation-stats .stat-label { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .hero-badges .hero-badge { color: #fff; }

/* Mobile menu in dark mode */
[data-theme="dark"] .mobile-menu { background: rgba(15,23,42,0.98); }
[data-theme="dark"] .mobile-nav-link { color: #e2e8f0; }
[data-theme="dark"] .mobile-nav-link:hover { color: #60a5fa; background: rgba(96,165,250,0.08); }

/* Secteur cards dark mode */
[data-theme="dark"] .secteur-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .secteur-card:hover { border-color: rgba(96,165,250,0.3); box-shadow: 0 24px 48px rgba(0,0,0,0.3); }
[data-theme="dark"] .secteur-card-title { color: #f8fafc; }
[data-theme="dark"] .secteur-card-description { color: #94a3b8; }
[data-theme="dark"] .secteur-tag { background: #334155; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .secteur-card:hover .secteur-tag { border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.08); }
[data-theme="dark"] .secteur-banner { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .secteur-banner:hover { border-color: rgba(96,165,250,0.3); box-shadow: 0 24px 48px rgba(0,0,0,0.3); }
[data-theme="dark"] .secteur-banner-title { color: #f8fafc; }
[data-theme="dark"] .secteur-banner-description { color: #94a3b8; }

/* Training / method / formation cards dark mode */
[data-theme="dark"] .training-card,
[data-theme="dark"] .formation-card,
[data-theme="dark"] .method-step-card,
[data-theme="dark"] .method-pillar-card,
[data-theme="dark"] .method-cta-card,
[data-theme="dark"] .programme-day { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .training-infobox-item { background: #334155; }
[data-theme="dark"] .formation-tag { background: #334155; color: #cbd5e1; }

/* Expertise cards dark mode */
[data-theme="dark"] .expertise-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .expertise-card:hover { border-color: rgba(96,165,250,0.3); box-shadow: 0 24px 48px rgba(0,0,0,0.3); }
[data-theme="dark"] .expertise-card:nth-child(even):hover { border-color: rgba(251,146,60,0.3); }
[data-theme="dark"] .card-title { color: #f8fafc; }
[data-theme="dark"] .card-description { color: #94a3b8; }
[data-theme="dark"] .card-link:hover { background: rgba(96,165,250,0.08); }
[data-theme="dark"] .expertise-card:nth-child(even) .card-link:hover { background: rgba(251,146,60,0.08); }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  min-width: 0;
  transition: background var(--transition-base), color var(--transition-base);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}
.section-padding { padding: var(--section-padding); }
.bg-secondary { background: var(--gray-50); }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--gray-900); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}
.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249,115,22,0.4);
}
.btn-outline {
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,99,235,0.05);
}
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-secondary:hover {
  background: var(--gray-200);
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
/* "Voir la vidéo" button: mobile only */
.btn-video-mobile { display: none; }
@media (max-width: 768px) {
  .btn-video-mobile { display: inline-flex; }
}
.btn-header { padding: 9px 18px; font-size: 13px; border-radius: 10px; font-weight: 500; }
.nav-actions .btn-outline.btn-header {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  border-width: 1.5px;
  backdrop-filter: blur(8px);
}
.nav-actions .btn-outline.btn-header:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.header.scrolled .nav-actions .btn-outline.btn-header {
  border-color: var(--gray-200);
  color: var(--gray-600);
  backdrop-filter: none;
}
.header.scrolled .nav-actions .btn-outline.btn-header:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,99,235,0.04);
}
.nav-actions .btn-primary.btn-header {
  background: var(--gradient-primary);
  box-shadow: 0 2px 12px rgba(37,99,235,0.3);
  border: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-actions .btn-primary.btn-header:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

/* ---------- Section Headers ---------- */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-title { margin-bottom: 16px; }
.section-description { color: var(--gray-500); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: 80px;
  display: flex;
  align-items: center;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: 64px;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  padding: 0;
  border: none;
  text-decoration: none;
}
.logo img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
  object-fit: contain;
  transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled .logo img {
  filter: none;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled .logo-text {
  color: var(--gray-900);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.header.scrolled .nav-link {
  color: var(--gray-500);
}
.header.scrolled .nav-link:hover {
  color: var(--primary);
  background: rgba(37,99,235,0.06);
}
.header.scrolled .nav-link.active {
  color: var(--primary);
  background: rgba(37,99,235,0.08);
  font-weight: 600;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after { width: 60%; }
.nav-link.active::after { width: 60%; }
.header.scrolled .nav-link.active::after {
  background: linear-gradient(90deg, var(--primary), var(--orange));
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  transition: all 0.25s ease;
}
.theme-toggle:hover { background: rgba(255,255,255,0.2); color: #fff; }
.header.scrolled .theme-toggle { background: var(--gray-100); color: var(--gray-500); }
.header.scrolled .theme-toggle:hover { background: var(--gray-200); color: var(--gray-700); }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: calc(var(--z-header) + 2);
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  transition: background 0.25s ease;
}
.header.scrolled .menu-toggle {
  background: var(--gray-100);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled .menu-toggle span {
  background: var(--gray-700);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
/* When menu is open, always show dark X on light bg */
.menu-toggle.active {
  background: var(--gray-100);
}
.menu-toggle.active span {
  background: var(--gray-700);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Fix iOS: ensure full viewport coverage regardless of scroll position */
  height: 100dvh;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: calc(var(--z-header) + 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 80px 20px 24px;
  padding: calc(80px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.mobile-menu-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.mobile-nav-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-700);
  font-family: var(--font-heading);
  padding: 12px 32px;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover {
  color: var(--primary);
  background: rgba(37,99,235,0.06);
}
.mobile-cta {
  margin-top: 16px;
  background: var(--gradient-primary) !important;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
  text-align: center;
  width: 100%;
  max-width: 280px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  align-content: center;
  flex: 1;
}
.hero-content {
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.4);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--orange-light);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.badge-icon { font-size: 1.1rem; }
.hero-title { color: #fff; margin-bottom: 20px; }
.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
  text-align: center;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  justify-content: center;
  width: 100%;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.stat-number::before { content: none; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.2); }

/* Hero Stacked Layout (video below stats) */
.hero-container--stacked {
  grid-template-columns: 1fr !important;
  text-align: center;
  gap: 32px;
}

/* ── Hero Video Slider ───────────────────────────────── */
.hero-video-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}
.hero-video-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-video-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}
.hero-video-slide .visual-card {
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
}
.hero-video-slide .visual-card:hover {
  transform: none;
  box-shadow: none;
}
.hero-video-slide .visual-card img {
  border-radius: 0;
}

/* Slider Navigation */
.hero-video-slider-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 15;
}
.hero-video-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.hero-video-slider-btn:hover {
  background: rgba(0,0,0,0.75);
  transform: scale(1.1);
}
.hero-video-slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-video-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  padding: 0;
}
.hero-video-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}
.hero-video-dot:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.5);
}

/* Video controls repositioned for slider */
.hero-video-slider .video-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 20;
}

/* Hero Visual (legacy, keep for other pages) */
.hero-visual { position: relative; display: flex; align-items: center; }
.visual-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
  width: 100%;
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-light);
  padding: 8px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.visual-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-xl) - 8px);
}

/* Video Hero */
.visual-card--video { position: relative; }
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background: #000;
  border-radius: inherit;
  overflow: hidden;
}
.video-wrapper iframe,
.video-poster {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-poster {
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-poster img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: relative;
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.video-play-btn:hover {
  opacity: 1;
  transform: scale(1.08);
}
.video-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 1;
  transition: background 0.3s;
}
.video-poster:hover::after {
  background: rgba(0,0,0,0.08);
}
.video-controls {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 10;
  display: flex;
  gap: 8px;
}
.video-ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.video-ctrl-btn:hover {
  background: rgba(0,0,0,0.75);
  transform: scale(1.08);
}
.video-ctrl-btn svg {
  width: 20px;
  height: 20px;
}
.floating-element {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--glass-bg-light);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  box-shadow: var(--shadow-md);
  animation: float 3s ease-in-out infinite;
}
.element-icon { font-size: 1.2rem; }
.element-1 { top: 10%; left: -15%; animation-delay: 0s; }
.element-2 { bottom: 20%; right: -10%; animation-delay: 1s; }
.element-3 { bottom: 5%; left: 10%; animation-delay: 2s; }

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

/* Scroll Indicator (shared) */
.scroll-indicator {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
}
/* Desktop: mouse icon */
.scroll-indicator--desktop { display: flex; }
.scroll-indicator--mobile  { display: none; }
.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}
.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}
/* Mobile: swipe hand icon */
.swipe-hand {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  animation: swipe-up 2s ease-in-out infinite;
}
.swipe-hand svg {
  width: 28px;
  height: 28px;
}
@keyframes swipe-up {
  0%   { opacity: 0.8; transform: translateY(0); }
  50%  { opacity: 1;   transform: translateY(-10px); }
  100% { opacity: 0.3; transform: translateY(-18px); }
}

/* ============================================
   EXPERTISE CARDS
   ============================================ */
.expertises-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.expertise-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 28px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.expertise-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.10), 0 8px 16px rgba(0,0,0,0.04);
  border-color: rgba(37,99,235,0.15);
}
.expertise-card:hover::before {
  transform: scaleX(1);
}
.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05));
  color: var(--primary);
  margin-bottom: 22px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.expertise-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(37,99,235,0.08));
}
.expertise-card:nth-child(even) .card-icon {
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.05));
  color: var(--orange);
}
.expertise-card:nth-child(even):hover .card-icon {
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(249,115,22,0.08));
}
.expertise-card:nth-child(even):hover {
  border-color: rgba(249,115,22,0.15);
}
.card-title { font-size: 1.15rem; margin-bottom: 12px; font-weight: 700; }
.card-description { color: var(--gray-500); font-size: 0.93rem; margin-bottom: 24px; line-height: 1.7; flex-grow: 1; }
.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  margin-left: -14px;
  transition: all 0.3s ease;
}
.card-link:hover {
  gap: 12px;
  background: rgba(37,99,235,0.06);
  color: var(--primary-dark);
}
.expertise-card:nth-child(even) .card-link { color: var(--orange); }
.expertise-card:nth-child(even) .card-link:hover {
  background: rgba(249,115,22,0.06);
  color: var(--orange-dark);
}
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37,99,235,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.expertise-card:hover .card-glow { opacity: 1; }
.expertise-card:nth-child(even) .card-glow {
  background: radial-gradient(circle, rgba(249,115,22,0.04) 0%, transparent 70%);
}

/* ============================================
   FEATURES / WHY US
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  display: flex;
  gap: 20px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.feature-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  border-left-color: var(--primary);
}
.feature-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-blue-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
}
.feature-title { font-size: 1.1rem; margin-bottom: 8px; }
.feature-description { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-slider { position: relative; overflow-x: clip; overflow-y: visible; padding: 20px 4px; margin: -20px 0; }
.slider-container {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.testimonial-card {
  width: calc((100% - 48px) / 3);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  flex-shrink: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  cursor: default;
}
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}
[data-theme="dark"] .testimonial-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 8px 16px rgba(37, 99, 235, 0.15);
}
.testimonial-text {
  flex: 1;
}
.testimonial-author {
  margin-top: auto;
}
@media (max-width: 1024px) {
  .testimonial-card { width: calc((100% - 24px) / 2); }
}
@media (max-width: 768px) {
  .testimonial-card { width: 100%; }
}
.stars { color: var(--warning); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}
.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: 600; font-size: 0.95rem; color: var(--gray-800); }
.author-role { font-size: 0.85rem; color: var(--gray-600); }

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}
.slider-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,99,235,0.05);
}
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all var(--transition-fast);
  cursor: pointer;
  padding: 0;
  position: relative;
}
/* Larger invisible tap zone */
.slider-dot::before {
  content: '';
  position: absolute;
  inset: -8px;
}
.slider-dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.faq-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.10), 0 8px 16px rgba(0,0,0,0.04);
  border-color: rgba(37,99,235,0.15);
}
.faq-item:hover::before {
  opacity: 1;
}
.faq-item.active {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.10), 0 8px 16px rgba(0,0,0,0.04);
  border-color: rgba(37,99,235,0.15);
}
.faq-item.active::before {
  opacity: 1;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  background: none;
}
.faq-icon { transition: transform 0.3s ease, color 0.3s ease; color: var(--gray-400); flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 20px; color: var(--gray-500); line-height: 1.7; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a6e 35%, #2563eb 65%, #f97316 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  border-radius: var(--radius-xl);
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.08);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), var(--orange-light), rgba(255,255,255,0.6));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(37,99,235,0.20), 0 12px 24px rgba(0,0,0,0.10);
  background-position: 100% 50%;
}
.cta-card:hover::before {
  opacity: 1;
}
.cta-content { position: relative; z-index: 1; }
.cta-title { color: #fff; margin-bottom: 16px; }
.cta-description { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-card .btn-primary {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-weight: 700;
  transition: all 0.3s ease;
}
.cta-card .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.cta-decoration { position: absolute; inset: 0; pointer-events: none; }
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.cta-card:hover .decoration-circle {
  transform: scale(1.15);
  opacity: 0.8;
}
.circle-1 { width: 220px; height: 220px; top: -60px; right: -60px; }
.circle-2 { width: 160px; height: 160px; bottom: -40px; left: 8%; }
.circle-3 { width: 110px; height: 110px; top: 18%; left: -25px; }

/* ============================================
   CTA V2 — Split Card
   ============================================ */
.cta-card-v2 {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.cta-card-v2::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.cta-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.10), 0 8px 16px rgba(0,0,0,0.04);
  border-color: rgba(37,99,235,0.15);
}
.cta-card-v2:hover::after {
  opacity: 1;
}
.cta-v2-visual {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.cta-v2-visual::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-v2-visual::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-v2-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cta-card-v2:hover .cta-v2-icon {
  transform: scale(1.08);
  background: rgba(255,255,255,0.14);
}
.cta-v2-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.cta-v2-stat {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-v2-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.cta-v2-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.cta-v2-content {
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-v2-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 14px;
}
.cta-v2-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cta-v2-description {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}
.cta-v2-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-v2-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--gradient-primary);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}
.cta-v2-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}
.cta-v2-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-400);
  transition: color 0.2s ease;
}
.cta-v2-link:hover {
  color: var(--orange);
}

/* CTA V2 Dark mode */
[data-theme="dark"] .cta-card-v2 { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .cta-v2-title { color: #f8fafc; }
[data-theme="dark"] .cta-v2-description { color: #94a3b8; }
[data-theme="dark"] .cta-v2-link { color: #64748b; }

/* CTA V2 Responsive */
@media (max-width: 768px) {
  .cta-card-v2 { grid-template-columns: 1fr; }
  .cta-v2-visual { padding: 36px 32px; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cta-v2-content { padding: 36px 28px; text-align: center; align-items: center; }
  .cta-v2-actions { justify-content: center; flex-direction: column; width: 100%; }
  .cta-v2-btn { width: 100%; justify-content: center; }
}
.circle-3 { width: 100px; height: 100px; top: 20%; left: -20px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 500px; }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
}
.footer-logo { flex-shrink: 0; }
.footer-logo img { width: 200px; height: 200px; filter: brightness(0) invert(1); }
.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}
.footer-description { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.65); margin-bottom: 0; }
.footer-social { display: flex; gap: 12px; justify-content: flex-start; margin-top: 18px; }
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}
.social-link:hover { background: var(--orange); color: #fff; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-title { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list a { font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-list a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}
.scroll-to-top.visible { opacity: 1; pointer-events: all; }
.scroll-to-top:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.video-modal.active { opacity: 1; pointer-events: all; }
.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
}
.video-modal-content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 900px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}
.video-modal.active .video-modal-content { transform: scale(1); }
.video-modal-content iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transition-fast);
}
.video-modal-close:hover { background: rgba(0,0,0,0.8); }

/* Section tags inside dark hero sections: white text */
.page-hero-formations .section-tag,
.page-hero-about .section-tag,
.page-hero-contact .section-tag,
.page-hero-legal .section-tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  margin-bottom: 12px;
}

/* Glassmorphism hero titles */
.page-hero-formations h1,
.page-hero-about h1,
.page-hero-contact h1,
.page-hero-legal h1,
.hero-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 28px 40px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ============================================
   SHARED PAGE HERO BASE
   ============================================ */
.page-hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}
.page-hero .section-tag {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   FORMATIONS PAGE
   ============================================ */
.page-hero-formations {
  background: var(--gradient-hero);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero-formations h1 { color: #fff; margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
.page-hero-formations p { color: rgba(255,255,255,0.7); font-size: 1.15rem; max-width: 700px; margin: 0 auto 32px; }
.hero-formation-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}
.hero-formation-stats .stat-item { text-align: center; }
.hero-formation-stats .stat-number { color: #fff; font-size: 2.2rem; font-family: var(--font-heading); font-weight: 700; }
.hero-formation-stats .stat-label { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}

/* Qualiopi Section */
.qualiopi-section { padding-top: 60px; padding-bottom: 60px; }
.qualiopi-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.qualiopi-icon {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: transparent;
}
.qualiopi-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qualiopi-content { flex: 1; }
.qualiopi-content h2 { font-size: 1.5rem; margin: 8px 0 12px; }
.qualiopi-content p { color: var(--gray-500); line-height: 1.7; margin: 0; }

/* Formations secteurs section - subtle background for contrast */
.formations-secteurs {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
}
.formations-secteurs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}
[data-theme="dark"] .formations-secteurs {
  background: linear-gradient(180deg, rgba(15,23,42,0.5) 0%, transparent 100%);
}

/* Secteur Cards Grid */
.secteur-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.secteur-card {
  width: calc((100% - 56px) / 3);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.secteur-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.secteur-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.12), 0 8px 16px rgba(0,0,0,0.06);
  border-color: rgba(37,99,235,0.20);
}
.secteur-card:hover::before {
  opacity: 1;
}
/* Alternate cards get orange accent */
.secteur-card:nth-child(even)::before {
  background: linear-gradient(90deg, var(--orange), var(--primary));
}
.secteur-card:nth-child(even):hover {
  border-color: rgba(249,115,22,0.20);
  box-shadow: 0 24px 48px rgba(249,115,22,0.10), 0 8px 16px rgba(0,0,0,0.06);
}
.secteur-card-highlight {
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(249,115,22,0.04));
  border-color: rgba(37,99,235,0.2);
}
.secteur-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--orange-100);
  color: var(--orange);
}
.secteur-badge-dev {
  background: linear-gradient(135deg, var(--primary), var(--orange));
  color: #fff;
}
.secteur-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 22px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.secteur-card:hover .secteur-card-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(249,115,22,0.15));
}
.secteur-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--gray-900);
  font-weight: 700;
}
.secteur-card-description {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}
.secteur-card-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.secteur-tag {
  padding: 5px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s ease;
  align-self: flex-start;
}
.secteur-card:hover .secteur-tag {
  border-color: rgba(37,99,235,0.15);
  background: rgba(37,99,235,0.04);
}
.secteur-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  width: 100%;
  justify-content: center;
}
.btn-brochure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn-brochure:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.btn-brochure:active {
  transform: translateY(0);
}
.btn-brochure svg {
  flex-shrink: 0;
}

/* Secteur Banner (Sur Mesure) */
.secteur-banner {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.secteur-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.secteur-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.10), 0 8px 16px rgba(0,0,0,0.04);
  border-color: rgba(37,99,235,0.15);
}
.secteur-banner:hover::before {
  opacity: 1;
}
.secteur-banner-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(249,115,22,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.3s ease, background 0.3s ease;
}
.secteur-banner:hover .secteur-banner-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(249,115,22,0.15));
}
.secteur-banner-content { flex: 1; }
.secteur-banner-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.secteur-banner-description {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.secteur-banner-action {
  flex-shrink: 0;
}

/* Sur Mesure Section */
.sur-mesure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sur-mesure-content .section-title { text-align: left; }
.sur-mesure-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.sur-mesure-benefits {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.sur-mesure-benefits h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--gray-900);
}
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--gray-600);
  line-height: 1.6;
}
.benefits-list li svg {
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}

/* BÃƒÂ©nÃƒÂ©fices Grid */
.benefices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefice-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  transition: all var(--transition-base);
}
.benefice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.benefice-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin: 0 auto 20px;
}
.benefice-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.benefice-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* MÃƒÂ©thode Grid */
.methode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.methode-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-base);
}
.methode-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.methode-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #f97316) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  line-height: 1;
  margin-bottom: 16px;
}
.methode-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.methode-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* Formation Detail Modal */
.formation-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.formation-modal.active { opacity: 1; pointer-events: all; }
.formation-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}
.formation-modal-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-base);
}
.formation-modal.active .formation-modal-content { transform: scale(1); }
.formation-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}
.formation-modal-close:hover { background: var(--gray-200); }
.modal-accordion { margin-top: 24px; }
.modal-accordion-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: 8px; }
.modal-accordion-btn {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
  text-align: left;
}
.modal-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}
.modal-accordion-item.active .modal-accordion-content { max-height: 1200px; }
.modal-accordion-content-inner { padding: 0 20px 16px; color: var(--gray-500); line-height: 1.7; }

/* Programme day cards */
.programme-days {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.programme-day {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.programme-day:hover {
  border-color: rgba(37,99,235,0.25);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.programme-day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.programme-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.programme-day-badge--1 { background: rgba(37,99,235,0.1); color: var(--primary); }
.programme-day-badge--2 { background: rgba(249,115,22,0.1); color: var(--orange); }
.programme-day-badge--3 { background: rgba(16,185,129,0.1); color: #10b981; }
.programme-day-badge--opt {
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(148,163,184,0.15);
  color: var(--gray-400);
  padding: 2px 8px;
  border-radius: 100px;
}
.programme-day-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
}
.programme-day ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.programme-day li {
  position: relative;
  padding-left: 20px;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}
.programme-day li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Objectifs styled list */
.objectifs-intro {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.95rem;
  margin: 0 0 16px;
}
.objectifs-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.objectif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.objectif-item:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.objectif-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37,99,235,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.objectif-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2.5;
}
.objectif-text {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================
   QUI SOMMES NOUS PAGE
   ============================================ */
.page-hero-about {
  background: var(--gradient-hero);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero-about h1 { color: #fff; margin-bottom: 16px; }
.page-hero-about p { color: rgba(255,255,255,0.7); font-size: 1.15rem; max-width: 650px; margin: 0 auto 32px; }

/* Timeline */
.timeline-section { position: relative; }
.timeline-section-bg {
  background: linear-gradient(175deg, var(--gray-50) 0%, #eef2ff 40%, var(--gray-50) 100%);
  position: relative;
  overflow: hidden;
}
.timeline-section-bg::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.timeline-section-bg::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .timeline-section-bg {
  background: linear-gradient(175deg, var(--gray-50) 0%, #1a2744 40%, var(--gray-50) 100%);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
/* Ligne de fond (grise) */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gray-200);
  transform: translateX(-50%);
}
/* Ligne de progression animée (gradient) */
.timeline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: var(--timeline-progress, 0%);
  background: linear-gradient(180deg, var(--primary), var(--orange));
  transform: translateX(-50%);
  transition: height 0.15s ease-out;
  z-index: 1;
}
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
  opacity: 0.3;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}
.timeline-item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gray-200);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}
.timeline-dot span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  transition: color 0.4s ease;
}
.timeline-item.is-active .timeline-dot {
  background: linear-gradient(135deg, var(--primary), var(--orange));
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2), 0 4px 12px rgba(var(--primary-rgb), 0.25);
  transform: translateX(-50%) scale(1);
}
.timeline-item.is-active .timeline-dot span {
  color: #fff;
}
.timeline-content {
  width: calc(50% - 40px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: all 0.4s ease;
  position: relative;
}
.timeline-item.is-active .timeline-content {
  border-color: rgba(var(--primary-rgb), 0.2);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08);
}
.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.timeline-date {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.timeline-content h3 { font-size: 1.05rem; margin-bottom: 8px; }
.timeline-content p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }

/* Mission Cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mission-card {
  text-align: center;
  padding: 40px 32px 36px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.10), 0 8px 16px rgba(0,0,0,0.04);
  border-color: rgba(37,99,235,0.15);
}
.mission-card:hover::before { opacity: 1; }
.mission-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mission-card:hover .mission-icon {
  transform: scale(1.08);
}
.mission-icon--blue {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05));
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}
.mission-card:hover .mission-icon--blue {
  box-shadow: 0 6px 20px rgba(37,99,235,0.18);
}
.mission-icon--orange {
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.05));
  color: var(--orange);
  box-shadow: 0 4px 12px rgba(249,115,22,0.1);
}
.mission-card:hover .mission-icon--orange {
  box-shadow: 0 6px 20px rgba(249,115,22,0.18);
}
.mission-icon--green {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.05));
  color: #10b981;
  box-shadow: 0 4px 12px rgba(16,185,129,0.1);
}
.mission-card:hover .mission-icon--green {
  box-shadow: 0 6px 20px rgba(16,185,129,0.18);
}
.mission-card h3 { font-size: 1.2rem; margin-bottom: 14px; font-weight: 700; }
.mission-card p { color: var(--gray-500); line-height: 1.7; font-size: 0.93rem; }

/* Mission Cards Dark Mode */
[data-theme="dark"] .mission-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mission-card:hover { border-color: rgba(96,165,250,0.3); box-shadow: 0 24px 48px rgba(0,0,0,0.3); }
[data-theme="dark"] .mission-card h3 { color: #f8fafc; }
[data-theme="dark"] .mission-card p { color: #94a3b8; }

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.team-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition-base);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.team-info h3 { margin-bottom: 4px; }
.team-role { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.team-bio { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.team-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.team-chip {
  padding: 4px 12px;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Animated Counter Stats */
.stats-section {
  background: var(--gradient-primary);
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-card { color: #fff; }
.stat-card .stat-number { font-size: 3rem; font-family: var(--font-heading); font-weight: 700; color: #fff; }
.stat-card .stat-label { font-size: 1rem; color: rgba(255,255,255,0.8); margin-top: 8px; }

/* Certifications */
.certif-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.certif-logo {
  height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}
.certif-logo:hover { filter: grayscale(0); opacity: 1; }
.certif-logo-wide {
  height: auto;
  max-width: 100%;
  width: min(800px, 100%);
  filter: none;
  opacity: 1;
}

/* Pillar cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar-card {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.pillar-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-blue-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.pillar-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pillar-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.page-hero-contact {
  background: var(--gradient-hero);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero-contact h1 { color: #fff; margin-bottom: 16px; }
.page-hero-contact p { color: rgba(255,255,255,0.7); font-size: 1.15rem; max-width: 550px; margin: 0 auto; }

/* Contact Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

/* Info Cards */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: center;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s ease, background 0.3s ease;
}
.contact-info-item:hover .contact-info-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.22));
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 2px; font-weight: 700; }
.contact-info-item p { color: var(--gray-500); font-size: 0.9rem; }
.contact-info-item a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-info-item a:hover { color: var(--primary-dark); }

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

/* Trust Card */
.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  z-index: 1;
}
.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.10), 0 8px 16px rgba(249,115,22,0.04);
  border-color: rgba(37,99,235,0.15);
}
.trust-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.trust-card:hover .trust-icon { transform: scale(1.08); }
.trust-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}
.trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.trust-stat {
  background: linear-gradient(135deg, var(--gray-50), rgba(37,99,235,0.03));
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.trust-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.15);
}
.trust-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.trust-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 4px;
  line-height: 1.3;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(37,99,235,0.03));
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  color: var(--gray-700);
}
.trust-badge svg {
  flex-shrink: 0;
  color: var(--primary);
  stroke: var(--primary);
}

/* Trust Card Dark Mode */
[data-theme="dark"] .trust-card {
  background: var(--gray-800);
  border-color: var(--gray-700);
}
[data-theme="dark"] .trust-card:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3), 0 8px 16px rgba(37,99,235,0.08);
}
[data-theme="dark"] .trust-title { color: var(--gray-100); }
[data-theme="dark"] .trust-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(249,115,22,0.12));
}
[data-theme="dark"] .trust-stat {
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(249,115,22,0.04));
  border-color: var(--gray-700);
}
[data-theme="dark"] .trust-stat:hover { border-color: rgba(37,99,235,0.3); }
[data-theme="dark"] .trust-stat-number { color: #f1f5f9; }
[data-theme="dark"] .trust-stat-label { color: var(--gray-400); }
[data-theme="dark"] .trust-badge {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05));
  border-color: rgba(37,99,235,0.25);
  color: var(--gray-300);
}

/* Contact Page — Social Icons (large, visible in light mode) */
.contact-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}
.contact-social-link {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  color: var(--primary);
  transition: all 0.25s ease;
}
.contact-social-link:hover {
  transform: scale(1.12);
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(249,115,22,0.18));
}
.contact-social-link svg {
  width: 28px;
  height: 28px;
}
[data-theme="dark"] .contact-social-link {
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(249,115,22,0.12));
  color: #60a5fa;
}
[data-theme="dark"] .contact-social-link:hover {
  background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(249,115,22,0.2));
}

/* Contact Testimonial Card */
.contact-testimonial {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a6e 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-testimonial::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.contact-testimonial-quote {
  margin-bottom: 16px;
  opacity: 0.6;
}
.contact-testimonial-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  margin-bottom: 20px;
}
.contact-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}
.contact-testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}
.contact-testimonial-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* Contact Form */
.contact-form-modern {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form-modern h2 { font-size: 1.5rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-input.error, .form-select.error { border-color: var(--error); }
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 4px; display: none; }
.form-input.error + .form-error, .form-select.error + .form-error { display: block; }
.form-select { appearance: none; 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='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.form-select:disabled { opacity: 0.6; cursor: not-allowed; }
.form-input[type="date"] { cursor: pointer; }
.form-input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }

/* ── RDV Calendar ─────────────────────────────────── */
.rdv-calendar {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background: var(--white);
  user-select: none;
}
.rdv-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  color: #fff;
}
.rdv-cal-title {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
}
.rdv-cal-nav {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.rdv-cal-nav:hover { background: rgba(255,255,255,0.3); }
.rdv-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.rdv-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 10px 8px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
}
.rdv-weekend-label { color: var(--error, #ef4444); opacity: 0.7; }
.rdv-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 8px;
  background: var(--gray-50);
}
.rdv-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--gray-800);
  transition: all 0.15s ease;
  position: relative;
}
.rdv-cal-day:hover:not(.rdv-cal-disabled):not(.rdv-cal-weekend):not(.rdv-cal-empty) {
  background: rgba(37,99,235,0.08);
  color: var(--primary);
}
.rdv-cal-day.rdv-cal-today {
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--primary);
}
.rdv-cal-day.rdv-cal-selected {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.rdv-cal-day.rdv-cal-weekend {
  color: var(--error, #ef4444);
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(239,68,68,0.04) 3px,
    rgba(239,68,68,0.04) 6px
  );
}
.rdv-cal-day.rdv-cal-disabled {
  color: var(--gray-300, #d1d5db);
  cursor: not-allowed;
  opacity: 0.35;
}
.rdv-cal-day.rdv-cal-empty {
  cursor: default;
}
.rdv-cal-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--gray-400);
}
.rdv-cal-legend {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 2px;
}
.rdv-cal-legend-available { background: var(--primary); opacity: 0.7; }
.rdv-cal-legend-weekend {
  background: repeating-linear-gradient(
    -45deg,
    #fee2e2,
    #fee2e2 2px,
    #fecaca 2px,
    #fecaca 4px
  );
  border: 1px solid rgba(239,68,68,0.2);
}

/* ── RDV Time Slots Grid ─────────────────────────── */
.rdv-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.rdv-slot-btn {
  padding: 10px 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rdv-slot-btn:hover {
  border-color: var(--primary);
  background: rgba(37,99,235,0.04);
  color: var(--primary);
}
.rdv-slot-btn.rdv-slot-selected {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

/* ── Blocked/Unavailable slot ─────────────────────── */
.rdv-slot-btn.rdv-slot-blocked {
  border-color: rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.06);
  color: #dc2626;
  cursor: not-allowed;
  opacity: 0.85;
  position: relative;
}
.rdv-slot-btn.rdv-slot-blocked:hover {
  border-color: rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.06);
  color: #dc2626;
}
.rdv-slot-btn.rdv-slot-blocked span:first-child {
  text-decoration: line-through;
  text-decoration-color: rgba(220,38,38,0.5);
}
.rdv-slot-blocked-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ef4444;
  line-height: 1;
}
[data-theme="dark"] .rdv-slot-btn.rdv-slot-blocked {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.1);
  color: #f87171;
}
[data-theme="dark"] .rdv-slot-btn.rdv-slot-blocked:hover {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.1);
  color: #f87171;
}
[data-theme="dark"] .rdv-slot-blocked-label {
  color: #f87171;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.form-check input[type="checkbox"] { margin-top: 4px; accent-color: var(--primary); }
.form-check label { font-size: 0.85rem; color: var(--gray-600); }
.form-submit { width: 100%; }
.form-success {
  display: none;
  text-align: center;
  padding: 30px;
}
.form-success.visible { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--gray-500); }

/* ── Sidebar Cards (Contact page) ─────────────────── */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  z-index: 1;
}
.sidebar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.10), 0 8px 16px rgba(249,115,22,0.04);
  border-color: rgba(37,99,235,0.15);
}

/* Sidebar Card Header */
.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.sidebar-card-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.sidebar-card:hover .sidebar-card-badge {
  transform: scale(1.08);
}
.sidebar-card-badge--blue {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  color: var(--primary);
  box-shadow: none;
}
.sidebar-card-badge--orange {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  color: var(--primary);
  box-shadow: none;
}
.sidebar-card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* RDV Steps */
.rdv-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rdv-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s ease;
}
.rdv-step:first-child { padding-top: 0; }
.rdv-step:last-child { border-bottom: none; padding-bottom: 0; }
.rdv-step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37,99,235,0.25);
  transition: transform 0.3s ease;
}
.rdv-step:hover .rdv-step-number {
  transform: scale(1.1);
}
.rdv-step-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}
.rdv-step-content strong {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--gray-800);
}
.rdv-step-content span {
  font-size: 0.87rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* RDV Guarantees */
.rdv-guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.rdv-guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}
.rdv-guarantee svg { flex-shrink: 0; }

/* Contact Lines */
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
  border-radius: 0;
}
.contact-line:first-child { padding-top: 0; }
.contact-line:last-child { border-bottom: none; padding-bottom: 0; }
a.contact-line {
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: var(--radius-md);
}
a.contact-line:hover {
  background: rgba(37,99,235,0.04);
}
.contact-line-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.contact-line:hover .contact-line-icon {
  transform: scale(1.08);
}
.contact-line-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-line-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}
.contact-line-value {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--gray-800);
}
a.contact-line .contact-line-value {
  color: var(--primary);
  transition: color 0.2s ease;
}
a.contact-line:hover .contact-line-value {
  color: var(--primary-dark);
}

/* Sidebar Card Dark Mode */
[data-theme="dark"] .sidebar-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .sidebar-card:hover { border-color: rgba(96,165,250,0.3); box-shadow: 0 24px 48px rgba(0,0,0,0.3); }
[data-theme="dark"] .sidebar-card-title { color: #f8fafc; }
[data-theme="dark"] .sidebar-card-badge--blue,
[data-theme="dark"] .sidebar-card-badge--orange {
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(249,115,22,0.15));
}
[data-theme="dark"] .rdv-step { border-color: #334155; }
[data-theme="dark"] .rdv-step-content strong { color: #e2e8f0; }
[data-theme="dark"] .rdv-step-content span { color: #94a3b8; }
[data-theme="dark"] .rdv-guarantees { border-color: #334155; }
[data-theme="dark"] .rdv-guarantee { color: #cbd5e1; }
[data-theme="dark"] .contact-line { border-color: #334155; }
[data-theme="dark"] .contact-line-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(249,115,22,0.15));
}
[data-theme="dark"] .contact-line-label { color: #94a3b8; }
[data-theme="dark"] .contact-line-value { color: #e2e8f0; }
[data-theme="dark"] a.contact-line .contact-line-value { color: #60a5fa; }
[data-theme="dark"] a.contact-line:hover .contact-line-value { color: #93bbfd; }
[data-theme="dark"] a.contact-line:hover { background: rgba(96,165,250,0.06); }

/* Legacy RDV Benefits (keep for other pages if used) */
.rdv-benefits { display: flex; flex-direction: column; gap: 16px; }
.rdv-benefit {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.rdv-benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.25s ease;
}
.rdv-benefit:hover .rdv-benefit-icon {
  transform: scale(1.1);
}

/* RDV Checklist (legacy) */
.rdv-checklist {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rdv-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 500;
}
.rdv-check svg { flex-shrink: 0; }

/* FAQ on Contact */
.faq-simple { max-width: 700px; margin: 0 auto; }
.faq-simple details {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-simple summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-800);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-simple summary::-webkit-details-marker { display: none; }
.faq-simple summary::after { content: '+'; font-size: 1.2rem; color: var(--gray-400); }
.faq-simple details[open] summary::after { content: '-'; }
.faq-simple details p { padding: 0 24px 18px; color: var(--gray-500); line-height: 1.7; }

/* ============================================
   TRAINING DETAIL PAGES (formation-hospitaliere, etc.)
   ============================================ */

/* Generic section utility */
.section { padding: var(--section-padding); }

/* Training hero inherits .page-hero base, these are specifics */
.training-hero { text-align: center; }

.training-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  margin-bottom: 16px;
}

.training-lead {
  color: rgba(255,255,255,0.80);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.training-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.training-tags span {
  padding: 6px 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
}

.training-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Generic .button styles for training pages */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.button.primary:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.button.secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.button.secondary:hover {
  background: rgba(255,255,255,0.2);
}
.button.dark {
  background: var(--gray-800);
  color: var(--white);
}
.button.dark:hover {
  background: var(--gray-700);
}

/* Training content grid */
.training-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Training cards */
.training-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.training-card h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--gray-800);
}

.training-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.training-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.6;
  color: var(--gray-700);
  font-size: 0.95rem;
}
.training-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Training infobox */
.training-infobox {
  position: sticky;
  top: 100px;
}
.training-infobox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.training-infobox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
}
.training-infobox-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.training-infobox-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.training-infobox-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.training-infobox-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 2px;
}

/* Programme accordion / tabs for training pages */
.programme-day {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.programme-day-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.programme-day-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05));
  color: var(--primary);
}
.programme-day-badge--2 { color: var(--orange); background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(249,115,22,0.05)); }
.programme-day-badge--3 { color: var(--success); background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05)); }

/* Formation cards grid (formation-sur-mesure) */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(249,115,22,0.08));
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.formation-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.formation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(37,99,235,0.08), 0 6px 12px rgba(0,0,0,0.04);
  border-color: rgba(37,99,235,0.15);
}
.formation-card:hover::before { opacity: 1; }
.formation-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.formation-icon svg {
  width: 24px;
  height: 24px;
}
.formation-header h3 {
  font-size: 1.15rem;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.formation-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gray-50);
  color: var(--gray-600);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}
.formation-card p {
  color: var(--gray-600);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}
.formation-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.formation-meta strong {
  color: var(--gray-700);
}
.formation-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.formation-cta .button {
  font-size: 0.85rem;
  padding: 10px 18px;
}

/* Method hero inherits .page-hero */
.method-hero { text-align: center; }

/* Method content page */
.method-content { padding-bottom: 0; }
.method-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px;
}
.method-header h2 { margin-bottom: 12px; }
.method-header p { color: var(--gray-600); font-size: 1.05rem; line-height: 1.7; }

/* Method steps (timeline cards) */
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.method-step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.method-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37,99,235,0.08);
}
.method-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.method-step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.method-step-card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.6; }

/* Method CTA inline */
.method-cta-inline { margin-bottom: 48px; }
.method-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--gray-50), rgba(37,99,235,0.04));
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.method-cta-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.method-cta-card p { color: var(--gray-600); font-size: 0.93rem; margin: 0; }

/* Method pillars */
.method-pillars { padding-bottom: 60px; }
.method-pillars-header {
  text-align: center;
  margin-bottom: 36px;
}
.method-pillars-header h2 { margin-bottom: 8px; }
.method-pillars-header p { color: var(--gray-600); font-size: 1rem; }
.method-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.method-pillar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.method-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37,99,235,0.08);
}
.method-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--primary);
}
.method-icon svg { width: 24px; height: 24px; }
.method-pillar-card h3 { font-size: 1rem; margin-bottom: 8px; }
.method-pillar-card p { color: var(--gray-600); font-size: 0.88rem; line-height: 1.6; }

/* Method responsive */
@media (max-width: 768px) {
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .method-pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .method-cta-card { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .method-steps { grid-template-columns: 1fr; }
  .method-pillars-grid { grid-template-columns: 1fr; }
  .method-cta-card { padding: 24px; }
}

/* Brochure hero inherits .page-hero */
.brochure-hero { text-align: center; }

/* page-hero-actions utility */
.page-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
@media (max-width: 480px) {
  .page-hero-actions { flex-direction: column; align-items: center; }
  .page-hero-actions .button { width: 100%; }
}

/* Responsive training pages */
@media (max-width: 768px) {
  .training-grid { grid-template-columns: 1fr; }
  .training-infobox { position: static; }
  .training-infobox-grid { grid-template-columns: 1fr; }
  .training-card { padding: 24px 20px; }
  .training-hero h1 { font-size: 1.6rem; }
  .training-lead { font-size: 1rem; }
}
@media (max-width: 480px) {
  .training-tags { gap: 6px; }
  .training-tags span { font-size: 0.75rem; padding: 5px 10px; }
  .training-cta { flex-direction: column; }
  .training-cta .button { width: 100%; }
  .button { padding: 12px 20px; font-size: 0.9rem; }
  .formations-grid { grid-template-columns: 1fr; }
  .formation-card { padding: 22px 18px; }
  .formation-cta { flex-direction: column; }
  .formation-cta .button { width: 100%; }
}
@media (max-width: 768px) {
  .formations-grid { grid-template-columns: 1fr; }
}

/* ============================================
   OFFLINE PAGE
   ============================================ */
.offline-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.offline-page h1 { margin-bottom: 16px; }
.offline-page p { color: var(--gray-500); margin-bottom: 24px; }

/* ============================================
   LEGAL PAGES (mentions, CGV, confidentialité, cookies)
   ============================================ */
.page-hero-legal {
  background: var(--gradient-hero);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-legal::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-legal::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-legal h1 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 2.4rem;
}
.page-hero-legal p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}
.legal-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.legal-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.legal-breadcrumb a:hover { color: #fff; }
.legal-breadcrumb .breadcrumb-sep { color: rgba(255,255,255,0.6); }
.legal-breadcrumb .breadcrumb-current { color: rgba(255,255,255,0.9); font-weight: 500; }
.legal-icon-hero {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(249,115,22,0.3));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.legal-icon-hero svg { width: 28px; height: 28px; }

/* Legal layout: sidebar TOC + content */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 60px 0 80px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
}
.legal-toc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
}
.legal-toc-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc-list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1.4;
}
.legal-toc-list a:hover {
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(249,115,22,0.04));
  color: var(--primary);
}
.legal-toc-list a.active {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(249,115,22,0.05));
  color: var(--primary);
  font-weight: 500;
}
.legal-quick-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.legal-quick-links-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.legal-quick-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.legal-quick-links a:hover { color: var(--orange); }
.legal-quick-links a svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Legal content cards */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.legal-card:hover {
  border-color: rgba(37,99,235,0.15);
  box-shadow: 0 16px 40px rgba(37,99,235,0.08), 0 4px 12px rgba(249,115,22,0.04);
  transform: translateY(-4px);
}
.legal-card:hover::before { opacity: 1; }
.legal-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.legal-card-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--orange));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37,99,235,0.2);
  transition: transform 0.3s ease;
}
.legal-card:hover .legal-card-number { transform: scale(1.08); }
.legal-card h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}
.legal-card p {
  color: var(--gray-600);
  line-height: 1.8;
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.legal-card ul:last-child { margin-bottom: 0; }
.legal-card li {
  position: relative;
  padding-left: 24px;
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 0.95rem;
}
.legal-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--orange));
}
.legal-card strong {
  color: var(--gray-800);
  font-weight: 600;
}
.legal-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.legal-card a:hover { color: var(--orange); }

/* Legal info highlight box */
.legal-highlight {
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(249,115,22,0.03));
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--primary), var(--orange)) 1;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.legal-highlight p {
  color: var(--gray-700);
  margin: 0;
  font-size: 0.92rem;
}

/* Legal info grid (for contact info, key data) */
.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.legal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--gray-50), rgba(37,99,235,0.02));
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}
.legal-info-item:hover { border-color: rgba(37,99,235,0.15); }
.legal-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(249,115,22,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.legal-info-icon svg { width: 16px; height: 16px; }
.legal-info-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 2px;
}
.legal-info-value {
  font-size: 0.92rem;
  color: var(--gray-800);
  font-weight: 500;
}

/* Last update badge */
.legal-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(249,115,22,0.12));
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
}
.legal-update-badge svg { width: 14px; height: 14px; }

/* Quick nav between legal pages */
.legal-page-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}
.legal-page-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.legal-page-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--orange));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.legal-page-nav-item:hover {
  border-color: rgba(37,99,235,0.15);
  box-shadow: 0 12px 30px rgba(37,99,235,0.08), 0 4px 10px rgba(249,115,22,0.04);
  transform: translateY(-4px);
}
.legal-page-nav-item:hover::before { opacity: 1; }
.legal-page-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(249,115,22,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.legal-page-nav-item:hover .legal-page-nav-icon { transform: scale(1.08); }
.legal-page-nav-icon svg { width: 18px; height: 18px; }
.legal-page-nav-label { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 2px; }
.legal-page-nav-title {
  font-size: 0.92rem;
  color: var(--gray-800);
  font-weight: 600;
}

/* Legal dark mode */
[data-theme="dark"] .legal-toc { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .legal-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .legal-card:hover { border-color: rgba(96,165,250,0.3); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
[data-theme="dark"] .legal-card h2 { color: #f8fafc; }
[data-theme="dark"] .legal-card p { color: #94a3b8; }
[data-theme="dark"] .legal-card li { color: #94a3b8; }
[data-theme="dark"] .legal-card strong { color: #e2e8f0; }
[data-theme="dark"] .legal-info-item { background: #1a2744; border-color: #334155; }
[data-theme="dark"] .legal-info-value { color: #e2e8f0; }
[data-theme="dark"] .legal-highlight { background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(251,146,60,0.06)); }
[data-theme="dark"] .legal-highlight p { color: #cbd5e1; }
[data-theme="dark"] .legal-page-nav-item { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .legal-page-nav-item:hover { border-color: rgba(96,165,250,0.3); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
[data-theme="dark"] .legal-page-nav-title { color: #e2e8f0; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* ── Large tablets : 1025px - 1280px ──────────────────────────── */
@media (max-width: 1280px) {
  .secteur-card { width: calc((100% - 56px) / 3); }
}

/* ── Desktop : 769px - 1024px ────────────────────────────────── */
@media (max-width: 1024px) {
  .expertises-grid { grid-template-columns: repeat(2, 1fr); }
  .secteur-card { width: calc((100% - 28px) / 2); }
  .secteur-banner { flex-direction: column; text-align: center; padding: 32px; }
  .secteur-banner-action { width: 100%; }
  .secteur-banner-action .btn { width: 100%; justify-content: center; }
  .benefices-grid { grid-template-columns: repeat(2, 1fr); }
  .methode-grid { grid-template-columns: repeat(2, 1fr); }
  .sur-mesure-grid { grid-template-columns: 1fr; gap: 40px; }
  .qualiopi-card { flex-direction: column; text-align: center; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 160px 1fr; }

  .features-grid { grid-template-columns: 1fr; }
  .hero-container { gap: 40px; }
  .page-hero,
  .page-hero-formations,
  .page-hero-about,
  .page-hero-contact,
  .page-hero-legal { padding: 120px 0 60px; }

  .legal-layout { grid-template-columns: 220px 1fr; gap: 32px; }

  .section-header { margin-bottom: 40px; }
  .footer-content { gap: 40px; }
}

/* ── Tablet : 481px - 768px ──────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-padding: 60px 0; }

  .nav-menu, .nav-actions { display: none; }
  .menu-toggle { display: flex; }
  .nav-container { padding: 0 16px; }

  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .hero { padding-top: 80px; padding-bottom: 0; }
  .video-wrapper { padding-bottom: 56.25%; }
  .hero-video-slider { max-width: 100%; border-radius: var(--radius-lg); }
  .hero-video-slider-nav { bottom: 10px; gap: 8px; }
  .hero-video-slider-btn { width: 30px; height: 30px; }
  .hero-video-slider-btn svg { width: 18px; height: 18px; }

  /* Allow buttons to wrap text on mobile */
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .hero-title .gradient-text { white-space: normal; overflow-wrap: anywhere; }

  .expertises-grid { grid-template-columns: 1fr; }
  .secteur-card { width: 100%; }
  .benefices-grid { grid-template-columns: repeat(2, 1fr); }
  .methode-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  .timeline::before,
  .timeline::after { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-dot { left: 20px; }
  .timeline-content { width: calc(100% - 60px); margin-left: 50px; }

  .cta-card { padding: 40px 24px; }
  .cta-card .btn { width: 100%; justify-content: center; }

  .page-hero,
  .page-hero-formations,
  .page-hero-about,
  .page-hero-contact,
  .page-hero-legal { padding: 100px 0 50px; }

  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-info-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .team-photo { max-width: 200px; }

  .section-header { margin-bottom: 32px; }

  .scroll-indicator--desktop { display: none; }
  .scroll-indicator--mobile  { display: flex; }
  .footer { padding: 40px 0 24px; }

  /* Glassmorphism hero titles: tablet */
  .page-hero-formations h1,
  .page-hero-about h1,
  .page-hero-contact h1,
  .page-hero-legal h1,
  .hero-title { padding: 22px 24px 18px; }

  .expertise-card { padding: 24px 20px; }
  .feature-card { padding: 24px; }
  .benefice-card { padding: 24px; }
  .methode-card { padding: 24px; }
  .pillar-card { padding: 24px 20px; }
  .mission-card { padding: 32px 20px; }

  .contact-form-modern { padding: 28px; }
  .qualiopi-card { padding: 28px; }
  .sur-mesure-benefits { padding: 28px; }

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

  .faq-question { padding: 16px 20px; font-size: 0.95rem; }
  .faq-answer p { padding: 0 20px 16px; }

  .offline-page { padding: 24px; }

  /* Decoration circles hidden on smaller screens */
  .decoration-circle { display: none; }
}

/* ── Mobile : < 480px ────────────────────────────────────────── */
@media (max-width: 480px) {
  .mobile-menu {
    padding: 72px 16px 20px;
    padding: calc(72px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-formation-stats { flex-wrap: wrap; gap: 16px; }
  .btn-lg { padding: 14px 20px; font-size: 0.95rem; }

  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; }

  .benefices-grid { grid-template-columns: 1fr; }
  .methode-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }

  .page-hero,
  .page-hero-formations,
  .page-hero-about,
  .page-hero-contact,
  .page-hero-legal { padding: 90px 0 40px; }
  .page-hero-formations h1,
  .page-hero-about h1,
  .page-hero-contact h1,
  .page-hero-legal h1 { font-size: 1.6rem; padding: 18px 20px; }
  .legal-card { padding: 24px 20px; }
  .legal-page-nav { grid-template-columns: 1fr 1fr; }
  .page-hero-formations p { font-size: 1rem; }

  .section-header { margin-bottom: 24px; }
  :root { --section-padding: 48px 0; }

  .hero-container { padding: 0 16px; }
  .hero-visual { max-width: 100%; }

  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.75rem; }

  .cta-card { padding: 28px 16px; }
  .cta-title { font-size: 1.3rem; }
  .cta-description { font-size: 0.95rem; margin-bottom: 24px; }

  .contact-form-modern { padding: 16px; }
  .contact-form-modern h2 { font-size: 1.25rem; margin-bottom: 16px; }
  .contact-info-card { padding: 16px; }
  .contact-info-item { gap: 10px; margin-bottom: 14px; }
  .contact-info-item h4 { font-size: 0.85rem; }
  .contact-info-item p { font-size: 0.8rem; }
  .contact-info-icon { width: 36px; height: 36px; }

  .form-input, .form-select, .form-textarea { padding: 12px 14px; font-size: 0.9rem; }
  .form-label { font-size: 0.85rem; }
  .form-check label { font-size: 0.8rem; }

  .rdv-benefit { font-size: 0.85rem; gap: 8px; }
  .rdv-benefit-icon { width: 24px; height: 24px; font-size: 0.75rem; }
  .rdv-checklist { grid-template-columns: 1fr; gap: 8px; }
  .rdv-check { font-size: 0.82rem; }

  .sidebar-card { padding: 20px; border-radius: 16px; }
  .sidebar-card-header { margin-bottom: 20px; }
  .sidebar-card-badge { width: 40px; height: 40px; border-radius: 12px; }
  .sidebar-card-title { font-size: 1.05rem; }
  .rdv-step { gap: 12px; padding: 14px 0; }
  .rdv-step-number { width: 28px; height: 28px; font-size: 0.78rem; }
  .rdv-step-content strong { font-size: 0.87rem; }
  .rdv-step-content span { font-size: 0.82rem; }
  .rdv-guarantees { grid-template-columns: 1fr; gap: 8px; }
  .rdv-guarantee { font-size: 0.82rem; }
  .contact-line { gap: 12px; }
  .contact-line-icon { width: 36px; height: 36px; }
  .contact-line-value { font-size: 0.87rem; }

  .rdv-calendar-weekdays { font-size: 0.65rem; padding: 8px 4px 4px; }
  .rdv-calendar-grid { gap: 2px; padding: 4px; }
  .rdv-cal-day { font-size: 0.78rem; border-radius: 8px; }
  .rdv-cal-title { font-size: 0.85rem; }
  .rdv-slots-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .rdv-slot-btn { padding: 8px 4px; font-size: 0.8rem; }
  .rdv-cal-hint { font-size: 0.7rem; gap: 8px; }

  .formation-modal-content { padding: 20px 16px; }

  .footer { padding: 32px 0 20px; }
  .footer-content { gap: 24px; }
  .footer-links { gap: 20px; }

  .diagnostic-card { padding: 20px; }

  .offline-page { padding: 20px; }

  .quick-reply { padding: 10px 16px; min-height: 36px; }

  .mobile-nav-link { font-size: 18px; padding: 10px 24px; }
  .mobile-nav-list { gap: 6px; margin-bottom: 24px; }

  .faq-question { padding: 14px 16px; font-size: 0.9rem; }
  .faq-answer p { padding: 0 16px 14px; font-size: 0.9rem; }

  /* Footer: stack brand row, shrink logo */
  .footer-brand-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-logo img { width: 100px; height: 100px; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-social { justify-content: flex-start; }

  /* Team card: stack on mobile */
  .team-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .team-photo { max-width: 140px; margin: 0 auto; }

  /* Qualiopi: stack icon + text */
  .qualiopi-card { flex-direction: column; text-align: center; gap: 16px; padding: 24px 16px; }
  .qualiopi-icon { margin: 0 auto; }

  /* Secteur cards padding */
  .secteur-card { padding: 24px 16px 20px; }

  /* Mission cards */
  .mission-card { padding: 28px 16px; }

  /* Stats section */
  .stats-section { padding: 48px 0; }
  .stat-card .stat-number { font-size: 2.2rem; }
  .stat-card .stat-label { font-size: 0.85rem; }

  /* CTA V2 visual */
  .cta-v2-visual { padding: 28px 20px; }
  .cta-v2-content { padding: 28px 20px; }

  /* Scroll to top: safe area */
  .scroll-to-top { bottom: 16px; right: 16px; }

  /* Slider dots: bigger tap area */
  .slider-dot { width: 14px; height: 14px; }
  .slider-dot.active { width: 28px; }

  /* Feature cards */
  .feature-card { flex-direction: column; gap: 12px; padding: 20px 16px; }
  .feature-number { font-size: 1.5rem; }

  /* Timeline mobile */
  .timeline-content { padding: 18px 16px; }
}

/* ── Ultra-small : < 390px ────────────────────────────────────── */
@media (max-width: 390px) {
  :root { --section-padding: 36px 0; }
  .container { padding: 0 12px; }
  .hero-container { padding: 0 12px; }
  .nav-container { padding: 0 12px; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }

  .hero-title { padding: 14px 16px 12px; }
  .page-hero-formations h1,
  .page-hero-about h1,
  .page-hero-contact h1,
  .page-hero-legal h1 { font-size: 1.35rem; padding: 14px 14px; }

  .hero-subtitle { font-size: 1rem; }
  .hero-badge { font-size: 0.78rem; padding: 6px 12px; }

  .btn { padding: 10px 18px; font-size: 0.88rem; }
  .btn-lg { padding: 12px 18px; font-size: 0.9rem; }

  .hero-stats { gap: 12px; }
  .stat-number { font-size: 1.3rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-divider { display: none; }

  .mobile-menu {
    padding: 68px 12px 16px;
    padding: calc(68px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom));
  }
  .mobile-nav-link { font-size: 16px; padding: 8px 16px; }
  .mobile-cta { max-width: 240px; }

  .expertise-card { padding: 20px 14px; }
  .card-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
  .card-title { font-size: 1rem; }
  .card-description { font-size: 0.88rem; }

  .section-tag { font-size: 0.78rem; padding: 4px 12px; }
  .section-description { font-size: 0.95rem; }

  .contact-form-modern { padding: 14px; border-radius: 12px; }
  .contact-form-modern h2 { font-size: 1.15rem; }
  .form-input, .form-select, .form-textarea { padding: 10px 12px; font-size: 0.88rem; }

  .rdv-calendar-weekdays { font-size: 0.6rem; }
  .rdv-cal-day { font-size: 0.72rem; }
  .rdv-slots-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .rdv-slot-btn { padding: 6px 2px; font-size: 0.75rem; }

  .sidebar-card { padding: 16px; border-radius: 14px; }
  .sidebar-card-title { font-size: 0.95rem; }

  .footer-logo img { width: 80px; height: 80px; }
  .footer-title { font-size: 0.85rem; }
  .footer-list a { font-size: 0.82rem; }
  .footer-bottom { font-size: 0.78rem; }
  .footer { padding: 28px 0 16px; }

  .cta-card { padding: 20px 12px; }
  .cta-title { font-size: 1.15rem; }
  .cta-description { font-size: 0.88rem; }

  .diagnostic-card { padding: 16px; }
  .diagnostic-question h3 { font-size: 1.05rem; }
  .diagnostic-options button { padding: 12px 10px; font-size: 0.85rem; }

  .faq-question { padding: 12px 14px; font-size: 0.85rem; }
  .faq-answer p { padding: 0 14px 12px; font-size: 0.85rem; }

  .contact-social-link { width: 48px; height: 48px; }
  .contact-social-link svg { width: 22px; height: 22px; }

  .testimonial-card { padding: 20px 16px; }
  .slider-btn { width: 38px; height: 38px; }

  .legal-card { padding: 20px 14px; }
  .legal-page-nav { grid-template-columns: 1fr; }

  .scroll-to-top { bottom: 12px; right: 12px; width: 40px; height: 40px; }
}

/* ============================================
   MINI DIAGNOSTIC
   ============================================ */
.diagnostic {
  background: rgba(37, 99, 235, 0.04);
}
.diagnostic-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 22px;
}
.diagnostic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.diagnostic-helper {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.diagnostic-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
}
.diagnostic-question,
.diagnostic-result {
  display: none;
}
.diagnostic-question.is-active,
.diagnostic-result.is-active {
  display: block;
}
.diagnostic-question h3,
.diagnostic-result h3 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 1.2rem;
}
.diagnostic-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.diagnostic-options button {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  padding: 16px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
}
.diagnostic-options button:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: var(--shadow-md);
}
.diagnostic-options button.is-selected {
  border-color: var(--primary);
  border-width: 2px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(139,92,246,0.06));
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  transform: translateY(-3px);
}
.diagnostic-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 14px;
}
.diagnostic-result {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), var(--white) 40%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.diagnostic-result p {
  color: var(--gray-500);
  margin: 0 0 18px;
  line-height: 1.7;
}
.diagnostic-list {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--gray-600);
}
.diagnostic-list li {
  position: relative;
  padding-left: 24px;
}
.diagnostic-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}
.diagnostic-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Diagnostic email capture step */
.diagnostic-email-step h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.diagnostic-email-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin: 0 0 24px;
  line-height: 1.6;
}
.diagnostic-email-form {
  display: grid;
  gap: 18px;
}
.diagnostic-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.diagnostic-form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
}
.diagnostic-form-group input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  color: var(--gray-900);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: var(--font-body);
}
.diagnostic-form-group input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
  background: var(--white);
}
.diagnostic-form-group input[type="email"]::placeholder {
  color: var(--gray-400);
}
.diagnostic-field-error {
  font-size: 0.82rem;
  color: var(--error);
  min-height: 1.2em;
  font-weight: 500;
}
.diagnostic-checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.diagnostic-checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.diagnostic-checkbox-group label {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
}
.diagnostic-consent-note {
  color: var(--gray-400);
}
.diagnostic-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(249,115,22,0.03));
  border-radius: var(--radius-md);
  border: 1px solid rgba(37,99,235,0.08);
}
.diagnostic-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}
.diagnostic-benefit svg {
  flex-shrink: 0;
}
.diagnostic-email-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 1.05rem;
}
.diagnostic-skip-link {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
  padding: 4px;
  text-align: center;
}
.diagnostic-skip-link:hover {
  color: var(--gray-600);
}

/* Progress bar (overrides inline styles for height/styling) */
.diagnostic-progress > div[style] {
  height: 8px !important;
  background: var(--gray-200) !important;
  border-radius: var(--radius-full) !important;
}
.diagnostic-progress [data-progress-fill] {
  background: linear-gradient(90deg, var(--primary), var(--orange)) !important;
  border-radius: var(--radius-full) !important;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Back button improved */
[data-diagnostic-back] {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
}
[data-diagnostic-back]:hover:not(:disabled) {
  background: var(--gray-200);
  color: var(--gray-800);
  transform: translateX(-2px);
}
[data-diagnostic-back]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Question entrance animation */
.diagnostic-question.is-active {
  animation: diagQuestionIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes diagQuestionIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Diagnostic Loading Animation */
.diagnostic-loading {
  display: none;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.diagnostic-loading.is-active {
  display: block;
  animation: diagFadeIn 0.5s ease;
}
.loading-content {
  position: relative;
  z-index: 2;
}
.loading-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
}
.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(37, 99, 235, 0.1);
  stroke-width: 8;
}
.ring-progress {
  fill: none;
  stroke: url(#diagGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 0.1s ease;
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-percent {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-600);
  margin: 0;
  min-height: 1.5em;
  transition: opacity 0.3s ease;
}

/* Particles */
.loading-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.loading-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 2s ease-out forwards;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: scale(0) translateY(0); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.5) translateY(-80px); }
}
@keyframes diagFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Checkmark animation for result reveal */
.diagnostic-result.is-active {
  display: block;
  animation: resultReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes resultReveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  60% { transform: translateY(-5px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.diagnostic-result .diagnostic-score {
  animation: scorePop 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes scorePop {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
.diagnostic-result .diagnostic-list li {
  opacity: 0;
  animation: listItemSlide 0.4s ease forwards;
}
.diagnostic-result .diagnostic-list li:nth-child(1) { animation-delay: 0.4s; }
.diagnostic-result .diagnostic-list li:nth-child(2) { animation-delay: 0.55s; }
.diagnostic-result .diagnostic-list li:nth-child(3) { animation-delay: 0.7s; }
.diagnostic-result .diagnostic-list li:nth-child(4) { animation-delay: 0.85s; }
.diagnostic-result .diagnostic-list li:nth-child(5) { animation-delay: 1s; }
@keyframes listItemSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.diagnostic-result .diagnostic-actions {
  opacity: 0;
  animation: diagFadeIn 0.5s 1.1s ease forwards;
}

@media (max-width: 768px) {
  .diagnostic-options { grid-template-columns: 1fr 1fr; }
  .diagnostic-meta { flex-direction: column; align-items: flex-start; }
  .loading-ring { width: 110px; height: 110px; }
  .ring-percent { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .diagnostic-options { grid-template-columns: 1fr; }
  .diagnostic-card { padding: 20px; }
  .diagnostic-options button { padding: 14px 12px; font-size: 0.9rem; }
  .loading-ring { width: 90px; height: 90px; }
  .ring-percent { font-size: 1.3rem; }
  .diagnostic-email-step h3 { font-size: 1.2rem; }
  .diagnostic-benefits { padding: 12px; }
  .diagnostic-benefit { font-size: 0.84rem; }
  .diagnostic-form-group input[type="email"] { padding: 12px 14px; font-size: 0.95rem; }
  .diagnostic-email-submit { padding: 14px 20px; font-size: 1rem; }
}

/* Fade in animation for filters */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fallback: ensure content is visible if AOS fails to load */
[data-aos] {
  transition-property: opacity, transform;
}

/* ============================================
   VISUAL ENHANCEMENTS (2025)
   ============================================ */

/* --- Button active press states --- */
.btn:active,
.btn-primary:active,
.btn-accent:active,
.btn-outline:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* --- Button loading state --- */
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
  color: transparent !important;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid currentColor;
  border-color: var(--white) var(--white) transparent transparent;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
}
.btn-outline.is-loading::after {
  border-color: var(--primary) var(--primary) transparent transparent;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* --- Focus-visible for accessibility --- */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-accent:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 0;
}

/* --- Mobile nav stagger animation --- */
.mobile-menu .mobile-nav-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease, background 0.2s ease;
}
.mobile-menu.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.active .mobile-nav-link:nth-child(6) { transition-delay: 0.38s; }
.mobile-menu .mobile-cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.active .mobile-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.42s;
}

/* --- Diagnostic options enhanced --- */
.diagnostic-options button {
  position: relative;
  overflow: hidden;
}
.diagnostic-options button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(139,92,246,0.04));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.diagnostic-options button:hover::after,
.diagnostic-options button.is-selected::after {
  opacity: 1;
}
.diagnostic-options button:active {
  transform: translateY(-1px) scale(0.98);
}

/* --- Testimonial quote decoration --- */
.testimonial-text {
  position: relative;
}
.testimonial-card::after {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--gray-200);
  pointer-events: none;
  z-index: 0;
}

/* --- Hero gradient shimmer on background --- */
.hero-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 70% 60%,
    rgba(37,99,235,0.08) 0%,
    transparent 70%
  );
  animation: heroShimmer 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroShimmer {
  0% { opacity: 0.3; transform: translateX(-5%) scale(1); }
  100% { opacity: 0.8; transform: translateX(5%) scale(1.1); }
}

/* --- Stat number gradient color --- */
.stat-number {
  transition: transform 0.3s ease;
}
.stat-item:hover .stat-number {
  transform: scale(1.08);
}

/* --- Image lazy-load fade-in --- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"][data-loaded="true"] {
  opacity: 1;
}
/* Ensure hero/above-fold images are always visible */
.hero img,
.header img,
img:not([loading="lazy"]) {
  opacity: 1;
}

/* --- Scroll-to-top button enhancement --- */
.scroll-to-top {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              box-shadow 0.3s ease;
}
.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- Section tag pill animation --- */
.section-tag {
  transition: background 0.3s ease, transform 0.3s ease;
}
.section-tag:hover {
  transform: scale(1.03);
}

/* --- Logo hover pulse --- */
.logo {
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

/* --- Prefers reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .floating-element { animation: none !important; }
  .hero-gradient::after { animation: none !important; }
  img[loading="lazy"] { opacity: 1; }
}

