/* ═══════════════════════════════════════════
   EDUCAPP RDC — Premium Landing Page Styles
   Palette : Bleu & Blanc | Police : Sora
   ═══════════════════════════════════════════ */

:root {
  --blue-900: #0a1628;
  --blue-800: #0d2145;
  --blue-700: #1a3a6e;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --white: #ffffff;
  --off-white: #f8faff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-900: #0f172a;

  --font: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(37,99,235,0.08);
  --shadow-md: 0 8px 32px rgba(37,99,235,0.12);
  --shadow-lg: 0 20px 60px rgba(37,99,235,0.18);
  --shadow-xl: 0 32px 80px rgba(10,22,40,0.25);
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

/* Empêcher tout débordement horizontal sur mobile et forcer largeur 100% */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* protection supplémentaire si un élément déborde */
  touch-action: pan-y; /* évite le pan horizontal sur mobile */
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-900);
  overflow-x: hidden;
  line-height: 1.6;
  padding-top: var(--nav-height);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-label.blue {
  color: var(--blue-600);
  background: var(--blue-50);
  border-color: var(--blue-100);
}
.section-label.white-label {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.section-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.section-title.white { color: #fff; }

.section-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-white {
  background: linear-gradient(135deg, #fff 0%, var(--blue-200, #bfdbfe) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.45);
}
.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary.large { padding: 18px 36px; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue-600);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 100px;
  border: 2px solid var(--blue-100);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-ghost svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn-ghost:hover { border-color: var(--blue-400); background: var(--blue-50); }
.btn-ghost:hover svg { transform: translate(2px, -2px); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-nav:hover {
  background: var(--blue-500);
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.25s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--gray-200);
  box-shadow: none;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-fill { flex: 1 1 auto; }

/* L'espace pour la navbar est géré globalement via `body` */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.nav-logo span {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--blue-800);
}
.nav-logo strong { font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.nav-links a {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 14px;
  border-radius: 100px;
  letter-spacing: 0.01em;
  transition: all 0.2s;
}
.nav-links a:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}
.nav-links a.active {
  color: var(--blue-600);
  background: var(--blue-50);
  font-weight: 600;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-800);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-100);
  gap: 4px;
}
.mobile-menu a {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700, #374151);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--blue-50); }
.mobile-menu .btn-nav { margin-top: 8px; text-align: center; justify-content: center; }
.mobile-menu.open { display: flex; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  background: var(--blue-50);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

/* Ajouter un second accent décoratif */
.hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    var(--blue-500) 30%, 
    var(--blue-300) 70%, 
    transparent 100%
  );
  z-index: 2;
}


.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-200, #bfdbfe);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-text h1 {
  font-family: var(--font);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--blue-600); font-weight: 700; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.stat { text-align: center; }
.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-nav:hover {
  background: var(--blue-500);
  transform: translateY(-1px);
}
  height: 36px;
  background: var(--gray-200);
}

/* Hero Visual */
.hero-visual { position: relative; }

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

/* Remonter l'image de l'hero pour la rendre plus visible à l'arrivée */
.hero-img-wrapper {
  margin-top: -80px;
}

.hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(10,22,40,0.15);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  animation: float 3s ease-in-out infinite;
}
.hero-card-1 { bottom: 80px; left: -30px; animation-delay: 0s; }
.hero-card-2 { top: 60px; right: -20px; animation-delay: 1.5s; }

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

.hcard-icon { font-size: 1.5rem; flex-shrink: 0; }

/* Lucide icons global */
[data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* Icônes dans hero-card */
.hcard-icon [data-lucide] {
  width: 24px;
  height: 24px;
  color: var(--blue-500);
}

/* Icônes dans problem-card */
.problem-icon [data-lucide] {
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.85);
}

/* Icônes dans feature-list */
.feature-list li [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--blue-500);
  margin-top: 2px;
}

/* Icônes dans parent-happy-list */
.phlist-icon [data-lucide] {
  width: 22px;
  height: 22px;
  color: var(--gray-900);
}
.hcard-text strong {
  display: block;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-900);
}
.hcard-text span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  z-index: 1;
}
.hero-scroll-hint span {
  font-family: var(--font);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400);
  transform: rotate(45deg);
  animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* ─── CONTEXT / PROBLÈME ─── */
.context-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.context-bg {
  position: absolute;
  inset: 0;
}
.context-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.context-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(29,78,216,0.80) 100%);
}
.context-section .container { position: relative; z-index: 1; }
.context-section .section-label {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 48px;
  align-items: start;
}
.problem-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}
.problem-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.problem-icon { font-size: 2rem; margin-bottom: 16px; }
.problem-card h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.problem-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* Spécificités de placement pour la grille */
.problem-card:nth-child(1) { grid-column: span 5; }
.problem-card:nth-child(2) { grid-column: span 7; }
.problem-card:nth-child(3) { grid-column: span 4; }
.problem-card:nth-child(4) { grid-column: span 4; }
.problem-card:nth-child(5) { grid-column: span 4; }

/* La première card plus grande a plus de padding */
.problem-card:nth-child(1) {
  padding: 40px 36px;
}
.problem-card:nth-child(1) .problem-icon [data-lucide] {
  width: 40px;
  height: 40px;
}
.problem-card:nth-child(1) h3 {
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .problems-grid {
    grid-template-columns: 1fr;
  }
  .problem-card:nth-child(n) {
    grid-column: span 1;
  }
}

/* ─── SOLUTION ─── */
.solution-section { padding: 80px 0 40px; text-align: center; }
.solution-intro { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.solution-section .section-sub { text-align: center; }

/* ─── FEATURES ─── */
.features-section { padding: 20px 0 100px; }

.feature-row {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
  padding: 60px 0;
}
.feature-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-100);
}
.feature-row.reverse {
  grid-template-columns: 45% 55%;
}

.feature-badge {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 16px;
}
.feature-text h3 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.25;
}
.feature-text p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 24px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  font-size: 0.92rem;
  color: var(--gray-700, #374151);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

/* Screen Mockups */
.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen-mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  background: var(--gray-900);
}
.screen-mockup.desktop {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  margin-right: -48px;
  position: relative;
  z-index: 2;
}
.screen-mockup.desktop .screen-bar {
  background: var(--gray-900);
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.screen-mockup.desktop .screen-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}
.screen-mockup.desktop .screen-bar span:nth-child(1) { background: #ff5f57; }
.screen-mockup.desktop .screen-bar span:nth-child(2) { background: #febc2e; }
.screen-mockup.desktop .screen-bar span:nth-child(3) { background: #28c840; }
.screen-mockup.desktop img { width: 100%; display: block; }

.screen-mockup.mobile {
  width: 240px;
  border-radius: 32px;
  border: 8px solid var(--gray-900);
  margin-bottom: -40px;
  position: relative;
  z-index: 2;
}

.feature-row.reverse .screen-mockup.desktop {
  margin-right: 0;
  margin-left: -48px;
}
.phone-notch {
  height: 28px;
  background: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-notch::after {
  content: '';
  width: 60px;
  height: 8px;
  background: #222;
  border-radius: 4px;
}
.screen-mockup.mobile img {
  width: 100%;
  display: block;
  border-radius: 0;
}

/* ─── POUR QUI ─── */
.forqui-section {
  padding: 100px 0;
  background: var(--off-white);
}
.forqui-section .container { text-align: center; }
.forqui-section .section-sub { margin: 0 auto; text-align: center; }

/* ─── PRELOADER / SPLASH ─── */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(245,249,255,1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s;
  opacity: 1;
  visibility: visible;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.preloader-inner {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
  margin-top: -28px;
}
.preloader-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display:block;
  animation: preloader-bounce 1.4s ease-in-out infinite;
}
@keyframes preloader-bounce {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}
.preloader-text {
  font-family: var(--font);
  font-weight: 700;
  color: var(--blue-800);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* bottom progress */
.preloader-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  padding: 0 24px;
}
.preloader-progress {
  width: min(720px, 84vw);
  height: 10px;
  background: var(--gray-200);
  border-radius: 100px;
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}
.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-300));
  transition: width 420ms cubic-bezier(.2,.8,.2,1);
  border-radius: 100px;
}
.preloader-percent {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* hidden state */
.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 600px) {
  .preloader-logo { width: 72px; height:72px; }
  .preloader-percent { font-size: 0.85rem; }
  .preloader-bottom { bottom: 28px; }
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--blue-500);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.role-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200, #bfdbfe);
}

.role-img-wrapper {
  height: 200px;
  overflow: hidden;
}
.role-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s;
}
.role-card:hover .role-img-wrapper img { transform: scale(1.05); }

.role-content { padding: 0; }
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.parent-badge { background: #eff6ff; color: var(--blue-600); }
.prof-badge { background: #f0fdf4; color: #16a34a; }
.admin-badge { background: #faf5ff; color: #7c3aed; }

.role-content h4 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.role-content p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

/* Responsive: fallback to fewer columns on smaller screens */
@media (max-width: 1100px) {
  .forqui-section .roles-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .forqui-section .roles-grid { grid-template-columns: 1fr; }
}

.roles-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}
.role-pill {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--white);
  border: 2px solid var(--blue-100);
  padding: 10px 20px;
  border-radius: 100px;
  transition: all 0.2s;
}
.role-pill:hover { background: var(--blue-50); border-color: var(--blue-300); }

/* ─── TÉMOIGNAGES ─── */
.temoignages-section { padding: 100px 0; background: var(--white); }
.temoignages-section .container { text-align: center; }

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}

.temo-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: all 0.3s;
}
.temo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200, #bfdbfe);
}
.temo-quote {
  font-family: var(--font);
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue-100);
  line-height: 0.8;
  margin-bottom: 16px;
}
.temo-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.temo-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.temo-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--blue-100);
}
.temo-author strong {
  display: block;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
}
.temo-author span {
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* Comment — Mise en place */


/* ─── FAQ SECTION ─── */
.faq-section {
  padding: 100px 0;
  background: var(--off-white);
}
.faq-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: var(--blue-300);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue-600); }
.faq-item.open .faq-question { color: var(--blue-600); }
.faq-chevron {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--blue-400);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-chevron {
  transform: rotate(90deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 28px;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 28px 22px;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

/* ─── CHIFFRES CLÉS ─── */
.chiffres-section {
  padding: 72px 0;
  background: var(--blue-600);
}

.directrice-section {
  padding: 100px 0;
  background: var(--white);
}
.directrice-inner {
  display: grid;
  grid-template-columns: 52% 48%;
  gap: 80px;
  align-items: center;
}
.directrice-visual img {
  margin-left: -40px;
  width: calc(100% + 40px);
  max-width: none;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.directrice-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.directrice-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.directrice-list li [data-lucide] {
  width: 22px;
  height: 22px;
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 3px;
  stroke-width: 1.8;
}
.directrice-list strong {
  display: block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.directrice-list span {
  font-size: 0.87rem;
  color: var(--gray-600);
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .directrice-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .directrice-visual img { height: 360px; }
}
.prof-section {
  padding: 100px 0;
  background: var(--off-white);
}
.prof-inner {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 80px;
  align-items: center;
}
.prof-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.prof-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.prof-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.prof-list li [data-lucide] {
  width: 22px;
  height: 22px;
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 3px;
  stroke-width: 1.8;
}
.prof-list strong {
  display: block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.prof-list span {
  font-size: 0.87rem;
  color: var(--gray-600);
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .prof-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .prof-visual img { height: 360px; }
}
.comment-ca-marche {
  padding: 100px 0;
  background: var(--white);
}

/* État initial des mockups — partent d'en bas */
.screen-mockup.desktop,
.screen-mockup.mobile {
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.15s linear, opacity 0.6s ease;
  will-change: transform, opacity;
}

/* État visible une fois entré dans le viewport */
.screen-mockup.desktop.in-view,
.screen-mockup.mobile.in-view {
  opacity: 1;
}
.ccm-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}
.step-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  flex: 1;
  max-width: 320px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200, #bfdbfe);
  background: var(--white);
}
.step-card::before {
  content: attr(data-num);
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--font);
  font-size: 8rem;
  font-weight: 800;
  color: var(--blue-100);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s;
  z-index: 0;
}
.step-card:hover::before {
  color: var(--blue-200, #bfdbfe);
}

/* Passer le contenu au-dessus */
.step-number { display: none; }
.step-content { position: relative; z-index: 1; }
.step-number {
  font-family: var(--font);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: 20px;
}
.step-card:hover .step-number {
  color: var(--blue-200, #bfdbfe);
}
.step-content h4 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.step-arrow {
  font-size: 1.8rem;
  color: var(--gray-600);
  font-weight: 300;
  padding: 0 16px;
  flex-shrink: 0;
  margin-bottom: 40px;
}
.ccm-cta {
  text-align: center;
  margin-top: 56px;
}

/* CTA dans la section "Comment ça marche" — style sombre sur fond blanc */
.ccm-cta .btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 30px rgba(37,99,235,0.15);
}
.ccm-cta .btn-primary:hover {
  background: var(--blue-500);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .steps-grid {
    flex-direction: column;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
  }
  .step-card { max-width: 100%; width: 100%; }
  .step-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
    margin-bottom: 0;
  }
}

.parent-happy-section {
  padding: 100px 0;
  background: var(--off-white);
}
.parent-happy-inner {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 80px;
  align-items: center;
}
.parent-happy-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}
.parent-happy-visual img {
  margin-left: -40px;
  width: calc(100% + 40px);
  max-width: none;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.parent-happy-bubble {
  position: absolute;
  bottom: 40px;
  right: -24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  border-left: 4px solid var(--blue-500);
}
.bubble-icon { font-size: 1.4rem; }
.parent-happy-bubble strong {
  display: block;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-900);
}
.parent-happy-bubble span {
  font-size: 0.78rem;
  color: var(--gray-400);
}
.parent-happy-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.parent-happy-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.phlist-icon {
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.parent-happy-list [data-lucide], .phlist-icon [data-lucide] {
  color: var(--blue-500);
}
.parent-happy-list strong {
  display: block;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.parent-happy-list span {
  font-size: 0.87rem;
  color: var(--gray-600);
}
@media (max-width: 1024px) {
  .parent-happy-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .parent-happy-visual img { height: 360px; }
  .parent-happy-bubble { right: 0; }
}
.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.chiffre-item { padding: 8px; }
.chiffre-num {
  display: block;
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.chiffre-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ─── CTA FINAL ─── */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(29,78,216,0.85) 100%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-content { max-width: 680px; margin: 0 auto; text-align: center; }
.cta-content h2 {
  font-family: var(--font);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--blue-900);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.9;
}
.footer-brand span {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.footer-brand strong { font-weight: 800; color: #fff; }
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-phone,
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-phone:hover,
.footer-wa:hover {
  color: #ffffff;
}
.footer-phone [data-lucide],
.footer-wa [data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 12px;
  }
}

/* ─── ANIMATIONS ON SCROLL ─── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  .hero-bg-shape { display: none; }
  .hero-text h1 { font-size: 2.8rem; }
  .hero-img { height: 320px; }
  .hero-img-wrapper { margin-top: -60px; }
  .hero-card-1 { left: 0; bottom: 40px; }
  .hero-card-2 { right: 0; top: 20px; }

  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
  .screen-mockup.desktop { margin-right: 0; }
  .feature-row.reverse .screen-mockup.desktop { 
    margin-left: 0; 
  }
  .screen-mockup.mobile { margin-bottom: 0; }
  .directrice-visual img { 
    margin-left: 0; 
    width: 100%; 
  }
  .parent-happy-visual img { 
    margin-left: 0; 
    width: 100%; 
  }

  .roles-grid { grid-template-columns: 1fr; max-width: 480px; margin: 56px auto 0; }
  .temoignages-grid { grid-template-columns: 1fr; max-width: 560px; margin: 56px auto 0; }

  .chiffres-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .burger { display: flex; }

  .hero-content { padding: 40px 24px 48px; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-stats { gap: 16px; padding: 16px 20px; }
  .stat-num { font-size: 1.3rem; }

  .hero-img { height: 260px; }
  .hero-img-wrapper { margin-top: -40px; }
  .hero-card { min-width: 180px; padding: 10px 14px; }
  .hero-card-1 { left: -8px; }
  .hero-card-2 { right: -8px; top: 16px; }

  .problems-grid { grid-template-columns: 1fr; }

  .feature-row { padding: 40px 0; margin-bottom: 40px; }
  .screen-mockup.mobile { width: 200px; }

  .chiffres-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-actions { flex-direction: column; align-items: center; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat-divider { width: 100%; height: 1px; }
  .chiffres-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── PAGE DE TÉLÉCHARGEMENT / CARTES ─── */
.download-section {
  padding: 80px 0;
  background: var(--off-white);
}
.download-intro { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.download-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin-top: 32px;
}
.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(15,23,42,0.05);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  min-width: 280px;
  max-width: 380px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s cubic-bezier(.2,.9,.2,1), box-shadow 0.22s ease, border-color 0.22s;
  box-shadow: 0 8px 30px rgba(10,22,40,0.06);
  flex: 1 1 0;
}
.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(10,22,40,0.12);
  border-color: rgba(37,99,235,0.12);
}
.download-card .card-top { display:flex; align-items:center; justify-content:center; width:100%; margin-bottom:16px; }
.download-card svg { display:block; width:88px; height:88px; }
.download-card .card-body { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.download-card h3 { font-family: var(--font); font-size: 1.15rem; margin: 0; font-weight: 800; }
.card-sub { font-size: 0.95rem; color: var(--gray-600); margin: 0; }
.card-cta { margin-top: 14px; }
.download-card.disabled { opacity: 0.5; filter: grayscale(0.25); cursor: default; pointer-events: none; }
.badge.soon { display: inline-block; background: var(--gray-100); color: var(--gray-600); padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 0.8rem; }
.download-card .btn-primary { padding: 10px 20px; font-size: 0.95rem; box-shadow: 0 8px 30px rgba(37,99,235,0.12); }
.btn-primary[disabled], .btn-primary.disabled { background: var(--gray-200); color: var(--gray-400); box-shadow: none; transform: none; pointer-events: none; }

@media (max-width: 900px) {
  .download-cards { flex-direction: column; }
}
