/* MonEnseignant — Mise en relation formateurs ↔ écoles de commerce & d'ingénieurs */
/* Thème « Aurora » : gradient clair turquoise → indigo, expérience animée */

/* ============================================================================
   Reset & Variables
   ============================================================================ */

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

:root {
  /* Aurora accents */
  --accent: #14b8a6;            /* turquoise */
  --accent-2: #6366f1;          /* indigo */
  --accent-3: #22d3ee;          /* cyan lumineux */
  --accent-light: #5eead4;
  --accent-gradient: linear-gradient(120deg, #2dd4bf 0%, #6366f1 100%);
  --accent-gradient-soft: linear-gradient(120deg, #5eead4 0%, #a5b4fc 100%);
  --bg-aurora: linear-gradient(135deg, #f0fdfa 0%, #eef2ff 100%);

  /* Primary / texte */
  --primary: #0f172a;
  --primary-light: #1e293b;

  /* Neutrals */
  --white: #ffffff;
  --light: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Ombres teintées indigo */
  --shadow-sm: 0 1px 2px 0 rgb(99 102 241 / 0.06);
  --shadow: 0 4px 12px -2px rgb(99 102 241 / 0.10);
  --shadow-md: 0 12px 28px -6px rgb(99 102 241 / 0.16);
  --shadow-lg: 0 24px 48px -12px rgb(79 70 229 / 0.22);
  --shadow-xl: 0 32px 64px -16px rgb(79 70 229 / 0.28);
  --shadow-glow: 0 10px 40px -8px rgb(45 212 191 / 0.45);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 30px;

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================================
   Base
   ============================================================================ */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ============================================================================
   Utilities
   ============================================================================ */

.text-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reveal au scroll (piloté par app.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ============================================================================
   Boutons
   ============================================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn svg { flex-shrink: 0; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary,
.btn-accent {
  background: var(--accent-gradient);
  background-size: 160% 160%;
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  background-position: 100% 50%;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--gray-200);
  color: var(--primary);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-3px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ============================================================================
   Navbar (glassmorphism clair)
   ============================================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: var(--shadow-glow);
}

.logo-mon { color: var(--primary); }
.logo-ens {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--accent-gradient);
  transition: width 0.28s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================================
   Hero — fond Aurora animé + blobs flottants
   ============================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
  background: var(--bg-aurora);
}

/* Blobs flottants (SVG-less, pur CSS) */
.hero-blobs { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle at 30% 30%, #5eead4, transparent 70%);
  top: -120px; left: -80px;
  animation: blobMove 18s ease-in-out infinite;
}
.blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 60% 40%, #a5b4fc, transparent 70%);
  top: 40px; right: -140px;
  animation: blobMove 22s ease-in-out infinite reverse;
}
.blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle at 50% 50%, #67e8f9, transparent 70%);
  bottom: -140px; left: 35%;
  animation: blobMove 26s ease-in-out infinite;
}

@keyframes blobMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 25px) scale(0.95); }
}

/* Grille pointillée en surimpression */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(99, 102, 241, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 22px;
  line-height: 1.05;
}
/* Texte gradient animé */
.hero h1 .text-accent {
  background: linear-gradient(120deg, #2dd4bf, #6366f1, #22d3ee, #2dd4bf);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-description {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 540px;
}

.hero-buttons { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-tertiary {
  display: inline-block;
  margin: -30px 0 30px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-tertiary:hover { text-decoration: underline; }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Pourquoi nous — dual audience */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.why-col {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}
.why-col:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.why-ic {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--bg-aurora); display: grid; place-items: center; font-size: 1.6rem;
}
.why-head h3 { font-size: 1.35rem; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.why-list li {
  position: relative; padding-left: 30px; color: var(--text-muted); line-height: 1.55; font-size: 0.95rem;
}
.why-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-gradient); color: #fff;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 800;
}
.why-list strong { color: var(--gray-900); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* Hero visual : mini-démo de matching */
.hero-visual { position: relative; }
.match-preview {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-2xl);
  padding: 26px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(12px);
}
.match-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.match-preview-head span { font-weight: 700; color: var(--gray-900); }
.match-preview-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  background: rgba(20,184,166,0.1); padding: 4px 10px; border-radius: 50px;
}
.mini-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: var(--transition);
}
.mini-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.mini-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; flex-shrink: 0;
  background: var(--accent-gradient);
}
.mini-info { flex: 1; }
.mini-info strong { display: block; font-size: 0.95rem; color: var(--gray-900); }
.mini-info span { font-size: 0.8rem; color: var(--gray-500); }

/* Anneau de score (conic-gradient animé) */
.score-ring {
  --val: 0;
  position: relative;
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #2dd4bf calc(var(--val) * 1%), #e5e7eb 0);
  display: grid; place-items: center;
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.score-ring::before {
  content: '';
  position: absolute; inset: 5px;
  background: #fff; border-radius: 50%;
}
.score-ring b {
  position: relative;
  font-size: 0.72rem; font-weight: 800; color: var(--accent-2);
}

/* ============================================================================
   Sections génériques
   ============================================================================ */

section { padding: 100px 0; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-2);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-description { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================================
   Matching live
   ============================================================================ */

.matching-section { background: var(--bg-aurora); }

.matching-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: start;
}

.match-panel {
  position: sticky;
  top: 96px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.match-panel h3 { font-size: 1.25rem; margin-bottom: 6px; }
.match-panel > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; }

.match-field { margin-bottom: 20px; }
.match-field label {
  display: block;
  font-size: 0.8rem; font-weight: 700; color: var(--gray-700);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  transition: var(--transition);
  user-select: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.chip.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.match-range { width: 100%; }
.match-range input[type="range"] {
  width: 100%;
  accent-color: var(--accent-2);
}
.match-range .range-val { font-weight: 700; color: var(--accent-2); }

.match-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* carte formateur "matchable" */
.match-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s, opacity 0.4s;
}
.match-card:hover { box-shadow: var(--shadow-md); }
.match-card.dimmed { opacity: 0.45; }
.match-card .match-card-top {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.match-card .m-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  background: var(--accent-gradient); flex-shrink: 0;
}
.match-card .m-name { font-weight: 700; color: var(--gray-900); }
.match-card .m-loc { font-size: 0.85rem; color: var(--gray-500); }
.match-card .m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.match-card .m-tag {
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 10px; border-radius: 50px;
  background: rgba(99,102,241,0.08); color: var(--accent-2);
}
.match-card .m-tag.hit { background: var(--accent-gradient); color: #fff; }

.match-badge {
  position: absolute; top: 18px; right: 18px;
  display: flex; align-items: center; gap: 8px;
}
.match-badge .score-ring { width: 52px; height: 52px; }
.match-badge .score-ring b { font-size: 0.78rem; }

/* ============================================================================
   Écoles partenaires (marquee)
   ============================================================================ */

.ecoles-section { background: #fff; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ecole-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  border-radius: var(--radius);
  background: var(--bg-aurora);
  border: 1px solid var(--gray-100);
  font-weight: 700; color: var(--gray-700);
  white-space: nowrap;
}
.ecole-chip .dot {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-gradient);
  display: grid; place-items: center; color: #fff;
}

/* ============================================================================
   Process / étapes
   ============================================================================ */

.process-section { background: var(--bg-aurora); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition-slow);
}
.process-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.process-num {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--accent-gradient);
  color: #fff; font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center; margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
}
.process-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.process-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================================
   Simulateur
   ============================================================================ */

.simulateur-section { background: #fff; }
.simulateur-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  background: var(--bg-aurora);
  border-radius: var(--radius-2xl);
  padding: 44px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
}
.sim-controls .match-field { margin-bottom: 26px; }
.sim-controls h3 { font-size: 1.5rem; margin-bottom: 8px; }
.sim-controls > p { color: var(--text-muted); margin-bottom: 28px; }

.sim-output {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.sim-metric { text-align: center; }
.sim-metric .sim-value {
  font-size: 3rem; font-weight: 800; line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sim-metric .sim-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 8px; }
.sim-divider { height: 1px; background: var(--gray-100); }
.sim-budget-range {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
}
.sim-note { font-size: 0.8rem; color: var(--gray-400); text-align: center; }

/* ============================================================================
   Formateurs (live API) — classes réutilisées par app.js
   ============================================================================ */

.formateurs-section { background: var(--bg-aurora); }

.formateurs-filters {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.search-input, .filter-select {
  padding: 14px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: #fff;
  transition: var(--transition);
  font-family: inherit;
}
.search-input { width: 320px; }
.filter-select { min-width: 200px; cursor: pointer; }
.search-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.formateurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.formateur-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  border: 1px solid var(--gray-100);
}
.formateur-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.formateur-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.formateur-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-gradient);
  display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.formateur-name { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); }
.formateur-location { color: var(--gray-500); font-size: 0.9rem; margin-top: 2px; }
.formateur-bio { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
.formateur-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.formateur-tag {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-2);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================================================
   Preuves / valeurs
   ============================================================================ */

.valeurs-section { background: #fff; }
.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.valeur-item {
  text-align: center;
  padding: 32px 22px;
  border-radius: var(--radius-xl);
  background: var(--bg-aurora);
  border: 1px solid var(--gray-100);
  transition: var(--transition-slow);
}
.valeur-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.valeur-icon {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 18px;
  background: #fff;
  display: grid; place-items: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.valeur-item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.valeur-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================================
   CTA
   ============================================================================ */

.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0f172a 0%, #1e1b4b 55%, #134e4a 100%);
  padding: 90px 0;
}
.cta-section .blob { opacity: 0.4; }
.cta-content { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-content h2 { color: #fff; font-size: 2.6rem; margin-bottom: 16px; }
.cta-content p { color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; margin-bottom: 34px; }
.cta-content .btn-accent {
  background: #fff; color: var(--accent-2);
}
.cta-content .btn-accent:hover { background: #f8fafc; }
.cta-content .btn-outline-light { color: #fff; }

/* ============================================================================
   Contact
   ============================================================================ */

.contact-section { background: var(--bg-aurora); padding: 100px 0; }
.contact-section .section-title { text-align: center; font-size: 2.4rem; margin-bottom: 10px; }
.contact-section .section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 44px; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 44px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 8px;
  font-weight: 600; color: var(--gray-700); font-size: 0.9rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { width: 100%; }

.form-status {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  text-align: center;
  display: none;
  font-weight: 500;
}
.form-status.success { display: block; background: #ccfbf1; color: #115e59; }
.form-status.error { display: block; background: #fee2e2; color: #991b1b; }

/* ============================================================================
   Footer
   ============================================================================ */

.footer { background: var(--gray-900); color: #fff; padding: 80px 0 36px; }
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .logo-mon { color: #fff; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand > p { color: var(--gray-400); font-size: 0.95rem; margin-bottom: 24px; max-width: 320px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center; color: #fff;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent-gradient); transform: translateY(-3px); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 {
  color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-col a, .footer-col p {
  display: block; color: var(--gray-400); font-size: 0.9rem; padding: 6px 0; transition: var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--gray-500); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--gray-500); font-size: 0.85rem; transition: var(--transition); }
.footer-legal a:hover { color: #fff; }

/* ============================================================================
   Loading / Empty
   ============================================================================ */

.loading { text-align: center; padding: 60px 20px; color: var(--text-muted); grid-column: 1/-1; }
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); grid-column: 1/-1; }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.6; }

/* ============================================================================
   Page hero (pages secondaires)
   ============================================================================ */

.page-hero {
  position: relative;
  padding: 150px 0 80px;
  background: var(--bg-aurora);
  overflow: hidden;
  text-align: center;
}
.page-hero h1 { font-size: 3rem; margin-bottom: 16px; }
.page-hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ============================================================================
   Modal
   ============================================================================ */

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-content {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.35s cubic-bezier(0.16,1,0.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--gray-100); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.4rem; color: var(--gray-500); cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-header { text-align: center; margin-bottom: 1.5rem; }
.modal-logo {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  background: var(--accent-gradient);
  color: #fff; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.modal-header h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal-header p { color: var(--text-muted); font-size: 0.95rem; }
.modal-footer-text { text-align: center; font-size: 0.8rem; color: var(--gray-400); margin-top: 1rem; }

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 1100px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .matching-wrap { grid-template-columns: 1fr; }
  .match-panel { position: static; }
  .simulateur-wrap { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .valeurs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .nav-links, .navbar .btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 20px 24px;
    box-shadow: var(--shadow-md); gap: 16px;
  }
  .footer-content { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero h1 { font-size: 2.3rem; }
  .hero-description { font-size: 1.02rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 22px; align-items: center; }
  section { padding: 64px 0; }
  .section-header h2 { font-size: 1.9rem; }
  .valeurs-grid { grid-template-columns: 1fr; }
  .formateurs-filters { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
  .formateurs-grid, .match-results { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form, .simulateur-wrap { padding: 26px; }
  .footer-links { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-content h2 { font-size: 1.9rem; }
  .page-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.95rem; }
}

/* ============================================================================
   Accessibilité — réduction des animations
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
}
