/* E-school B — feuille de style (reprend le design d'origine : bleu nuit + or, Poppins)
   Les couleurs viennent des « Réglages du site » dans l'admin (variables CSS). */
:root {
  --primary-color: #030624;
  --primary-light: #1a1f3d;
  --secondary-color: #d4a225;
  --secondary-light: #e6b845;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --dark-text: #333333;
  --muted: #5b6070;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --header-h: 80px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: 'Poppins', sans-serif; background: var(--white); color: var(--dark-text); overflow-x: hidden; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 3px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 50px; }

/* ---------- Écran de chargement ---------- */
.loading-screen { position: fixed; inset: 0; background: var(--gradient); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity .5s ease, visibility .5s ease; }
.loading-screen.fade-out { opacity: 0; visibility: hidden; }
.logo-animation { text-align: center; color: var(--white); padding: 20px; }
.logo-animation h1 { font-size: 4rem; font-weight: 700; margin-bottom: 20px; animation: popupFade .8s ease both; }
.logo-animation h1 span { color: var(--secondary-color); }
.loading-logo { max-width: 260px; margin: 0 auto 20px; animation: popupFade .8s ease both; }
.logo-animation .subtitle { font-size: 1.4rem; opacity: .9; animation: fadeIn 1.5s ease both; }
.loading-progress { width: 200px; height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; margin: 20px auto 0; overflow: hidden; }
.loading-progress-bar { height: 100%; background: var(--secondary-color); width: 0; animation: loading 1.6s ease-in-out forwards; }

#particles-js { position: fixed; inset: 0; z-index: -1; }

/* ---------- En-tête ---------- */
header { background: rgba(255,255,255,.95); box-shadow: 0 2px 20px rgba(0,0,0,.1); position: fixed; width: 100%; top: 0; z-index: 1000; backdrop-filter: blur(10px); transition: padding .3s ease; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; transition: padding .3s ease; gap: 20px; }
header.scrolled .navbar { padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 46px; width: auto; max-width: none; flex-shrink: 0; object-fit: contain; }
.logo-text { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; color: var(--primary-color); }
.logo-text b { color: var(--secondary-color); }
.logo-icon { width: 40px; height: 40px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 20px; }
.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: var(--primary-color); font-weight: 500; transition: var(--transition); position: relative; padding: 5px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary-color); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: 0; left: 0; background: var(--gradient-secondary); border-radius: 3px; transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.mobile-menu { display: none; font-size: 24px; cursor: pointer; color: var(--primary-color); background: none; border: 0; padding: 6px; }
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,.1); padding: 10px 20px 20px; }
.mobile-nav.active { display: block; animation: fadeInDown .3s ease; }
.mobile-nav ul { list-style: none; }
.mobile-nav a { text-decoration: none; color: var(--primary-color); font-weight: 500; display: block; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.mobile-nav li:last-child a { border-bottom: none; color: var(--secondary-color); }

/* ---------- Boutons ---------- */
.btn { padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 1rem; }
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 5px 15px rgba(3,6,36,.2); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(3,6,36,.3); }
.btn-secondary { background: var(--gradient-secondary); color: var(--white); box-shadow: 0 5px 15px rgba(212,162,37,.25); }
.btn-secondary:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(212,162,37,.35); }
.hero .btn-primary { border: 2px solid rgba(255,255,255,.25); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Accueil ---------- */
.hero {
  --hero-bg: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1470&q=80');
  background: linear-gradient(rgba(3,6,36,.85), rgba(3,6,36,.9)), var(--hero-bg) no-repeat center center / cover;
  color: var(--white); padding: 200px 0 140px; text-align: center; position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center;
}
.hero-content { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.hero h2 { font-size: 52px; margin-bottom: 20px; animation: fadeInUp 1s ease both; line-height: 1.2; }
.hero p { font-size: 20px; margin: 0 auto 40px; animation: fadeInUp 1.3s ease both; line-height: 1.6; opacity: .9; }
.hero-btns { display: flex; justify-content: center; gap: 20px; animation: fadeInUp 1.6s ease both; flex-wrap: wrap; }
.floating-elements { position: absolute; inset: 0; overflow: hidden; }
/* Bandeau avec la vidéo de démo qui se lit toute seule */
.hero--video .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.hero--video .hero-content { text-align: left; margin: 0; max-width: none; }
.hero--video .hero h2, .hero--video h2 { font-size: 44px; }
.hero--video p { font-size: 18px; margin-bottom: 32px; }
.hero--video .hero-btns { justify-content: flex-start; }
.hero--video .scroll-hint { display: none; }
.hero-media { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.45); border: 3px solid rgba(212,162,37,.6); background: #000; aspect-ratio: 16 / 9; animation: fadeInUp 1.2s ease both; z-index: 1; }
.hero-media iframe { width: 100%; height: 100%; display: block; border: 0; }
/* Fichier vidéo : le cadre prend la forme de la vidéo (verticale ou horizontale), sans rien couper */
.hero-media.is-file { aspect-ratio: auto; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 26px; }
.hero-media.is-file video { display: block; height: min(64vh, 560px); width: auto; max-width: 100%; object-fit: contain; }
.hero-sound { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 30px; background: rgba(3,6,36,.8); color: #fff; font: 500 14px Poppins, sans-serif; cursor: pointer; backdrop-filter: blur(4px); transition: var(--transition); }
.hero-sound:hover { background: var(--secondary-color); color: var(--primary-color); }

.floating-element { position: absolute; background: rgba(212,162,37,.1); border-radius: 50%; animation: float 15s infinite linear; }
.floating-element:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 10%; }
.floating-element:nth-child(2) { width: 120px; height: 120px; top: 20%; right: 10%; animation-delay: 2s; }
.floating-element:nth-child(3) { width: 60px; height: 60px; bottom: 20%; left: 15%; animation-delay: 4s; }
.floating-element:nth-child(4) { width: 100px; height: 100px; bottom: 10%; right: 15%; animation-delay: 6s; }
.scroll-hint { display: inline-block; margin-top: 60px; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; position: relative; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--secondary-color); border-radius: 2px; animation: scrollHint 1.8s infinite; }

/* ---------- Statistiques ---------- */
.stats { padding: 100px 0; background: var(--light-bg); position: relative; }
.stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.stat-card { background: var(--white); border-radius: 15px; padding: 40px 30px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--gradient-secondary); }
.stat-card:hover { transform: translateY(-15px); box-shadow: var(--shadow-hover); }
.stat-icon { font-size: 50px; margin-bottom: 20px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.stat-number { font-size: 42px; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-text { font-size: 18px; font-weight: 500; }

/* ---------- Titres de section ---------- */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 40px; color: var(--primary-color); margin-bottom: 25px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; width: 80px; height: 4px; background: var(--gradient-secondary); bottom: -10px; left: 50%; transform: translateX(-50%); border-radius: 2px; }
.section-title p { max-width: 600px; margin: 0 auto; font-size: 18px; }

/* ---------- Fonctionnalités ---------- */
.features, .testimonials, .steps-section, .faq-section { padding: 100px 0; }
.features-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.feature-card { background: var(--white); border-radius: 15px; padding: 40px 30px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient); opacity: 0; transition: var(--transition); }
.feature-card:hover::before { opacity: .05; }
.feature-card:hover { transform: translateY(-15px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 90px; height: 90px; margin: 0 auto 25px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 36px; position: relative; z-index: 1; transition: var(--transition); }
.feature-icon.small { width: 70px; height: 70px; font-size: 28px; margin-bottom: 20px; }
.feature-card:hover .feature-icon, .step:hover .feature-icon { transform: scale(1.1) rotate(10deg); background: var(--gradient-secondary); }
.feature-card h3 { font-size: 24px; margin-bottom: 15px; color: var(--primary-color); position: relative; }
.feature-card p { position: relative; line-height: 1.6; }

/* ---------- Expérience moderne ---------- */
.illustration-section { padding: 100px 0; background: linear-gradient(to bottom, var(--light-bg), var(--white)); }
.illustration-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.illustration-content, .illustration-image { flex: 1; }
.illustration-content h2 { font-size: 36px; color: var(--primary-color); margin-bottom: 20px; }
.illustration-content p { font-size: 18px; line-height: 1.6; margin-bottom: 20px; }
.illustration-content .btn { margin-top: 10px; }
.illustration-image { text-align: center; }
.illustration-image svg { max-width: 100%; height: auto; animation: floatY 6s ease-in-out infinite; }
.illustration-image img { border-radius: 15px; box-shadow: var(--shadow); margin: 0 auto; }

/* ---------- Comment ça marche ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; counter-reset: step; }
.step { background: var(--white); border-radius: 15px; padding: 50px 30px 35px; text-align: center; box-shadow: var(--shadow); position: relative; transition: var(--transition); }
.step:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.step-num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-secondary); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(212,162,37,.35); }
.step h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 21px; }
.step p { line-height: 1.6; }

/* ---------- Témoignages (carrousel) ---------- */
.testimonials { background: var(--light-bg); }
.testimonials-slider { position: relative; }
.testimonials-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--white); border-radius: 15px; padding: 35px 30px 30px; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
.testimonial-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.quote-mark { font-size: 34px; color: var(--secondary-color); opacity: .35; margin-bottom: 10px; }
.testimonial-content { margin-bottom: 25px; }
.testimonial-content p { font-style: italic; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-avatar { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 22px; font-weight: 600; object-fit: cover; }
.author-info h4 { color: var(--primary-color); margin-bottom: 3px; }
.author-info p { color: var(--secondary-color); font-size: 14px; }
.slider-nav { display: none; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--primary-color); box-shadow: var(--shadow); cursor: pointer; transition: var(--transition); }
.slider-btn:hover { background: var(--secondary-color); color: var(--white); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; background: #d4d6dd; cursor: pointer; transition: var(--transition); padding: 0; }
.slider-dots button.active { width: 28px; background: var(--secondary-color); }
/* Mode carrousel activé par le script quand il y a plus de 3 témoignages ou sur mobile */
.testimonials-slider.is-slider { overflow: hidden; padding: 20px 5px; margin: -20px -5px; }
.testimonials-slider.is-slider .testimonials-track { display: flex; gap: 30px; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.testimonials-slider.is-slider .testimonial-card { flex: 0 0 calc((100% - 60px) / 3); }
.testimonials-slider.is-slider .slider-nav { display: flex; }

/* ---------- Télécharger ---------- */
.download { padding: 100px 0; background: linear-gradient(rgba(3,6,36,.9), rgba(3,6,36,.95)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1471&q=80') no-repeat center center / cover; color: var(--white); text-align: center; }
.download h2 { font-size: 40px; margin-bottom: 20px; }
.download p { font-size: 18px; max-width: 700px; margin: 0 auto 50px; opacity: .9; }
.download-btns { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.download-btn { display: flex; align-items: center; gap: 15px; background: var(--white); color: var(--primary-color); padding: 20px 30px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: var(--transition); box-shadow: 0 5px 15px rgba(0,0,0,.1); }
.download-btn:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,.2); }
.download-btn i { font-size: 36px; }
.download-btn div { text-align: left; }
.download-btn div :first-child { font-size: 14px; font-weight: 500; }
.download-btn div :last-child { font-size: 18px; font-weight: 700; }
.download-btn.soon { cursor: default; opacity: .85; }
.download-btn.soon:hover { transform: none; }

/* ---------- Partenaires (défilement continu) ---------- */
.partners { padding: 70px 0 80px; background: var(--light-bg); overflow: hidden; }
.partners-title { text-align: center; color: var(--primary-color); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 35px; font-weight: 600; }
.partners-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-container { display: flex; width: max-content; animation: scroll var(--marquee-duration, 25s) linear infinite; padding: 10px 0; }
.partners-viewport:hover .partners-container { animation-play-state: paused; }
.partner-logo { flex-shrink: 0; width: 180px; height: 100px; margin: 0 30px; background: var(--white); border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: var(--transition); padding: 14px; text-decoration: none; }
.partner-logo:hover { transform: translateY(-5px); }
.partner-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.partner-logo span { font-weight: 600; color: var(--primary-color); text-align: center; line-height: 1.3; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--primary-color); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--secondary-color); transition: transform .3s ease; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 20px; line-height: 1.7; }

/* ---------- Formulaire de contact ---------- */
.contact-section { padding: 100px 0; background: linear-gradient(to bottom, var(--white), var(--light-bg)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }
.contact-intro h2 { font-size: 36px; color: var(--primary-color); margin-bottom: 15px; }
.contact-intro p { font-size: 18px; margin-bottom: 25px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.contact-list i { width: 42px; height: 42px; border-radius: 50%; background: var(--gradient); color: var(--white); display: flex; align-items: center; justify-content: center; }
.contact-list a { text-decoration: none; font-weight: 500; color: var(--primary-color); }
.contact-form { background: var(--white); padding: 35px; border-radius: 15px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; color: var(--primary-color); }
.contact-form input, .contact-form textarea, .popup-form input { padding: 14px 16px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 16px; transition: var(--transition); width: 100%; background: #fff; color: var(--dark-text); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .popup-form input:focus { border-color: var(--secondary-color); outline: none; box-shadow: 0 0 0 3px rgba(212,162,37,.2); }
.contact-form .invalid { border-color: #d93025; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: 14px; min-height: 1.2em; font-weight: 500; }
.form-msg.ok { color: #1e8e3e; }
.form-msg.err { color: #d93025; }

/* ---------- Pied de page ---------- */
footer { background: var(--primary-color); color: var(--white); padding: 80px 0 30px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h3 { font-size: 22px; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: var(--secondary-color); border-radius: 2px; }
.footer-col p { margin-bottom: 15px; line-height: 1.6; opacity: .8; }
.footer-col p i { color: var(--secondary-color); width: 20px; }
.footer-col > a { color: var(--white); text-decoration: none; opacity: .8; transition: var(--transition); display: block; margin-bottom: 10px; }
.footer-col > a:hover { opacity: 1; color: var(--secondary-color); transform: translateX(5px); }
.footer-col a.inline { text-decoration: none; }
.footer-col a.inline:hover { color: var(--secondary-color); }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(255,255,255,.1); border-radius: 50%; color: var(--white); transition: var(--transition); font-size: 18px; text-decoration: none; }
.social-links a:hover { background: var(--secondary-color); transform: translateY(-5px); }
footer .popup-form { display: flex; flex-direction: column; gap: 12px; }
footer .popup-form input { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white); }
footer .popup-form input::placeholder { color: rgba(255,255,255,.6); }
footer .form-msg.ok { color: #7ee2a0; }
footer .form-msg.err { color: #ff9b8f; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1); opacity: .9; }

/* ---------- Boutons flottants ---------- */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--gradient); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: var(--transition); opacity: 0; visibility: hidden; z-index: 999; box-shadow: 0 5px 15px rgba(3,6,36,.3); border: 0; }
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); background: var(--gradient-secondary); }
.whatsapp-float { position: fixed; bottom: 95px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; z-index: 999; box-shadow: 0 5px 15px rgba(0,0,0,.25); text-decoration: none; transition: var(--transition); animation: pulse 2.5s infinite; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ---------- Fenêtres (Mon Ecole, vidéo) ---------- */
.popup { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(5px); padding: 20px; }
.popup.active { display: flex; }
.popup-content { background: var(--white); padding: 50px 40px; border-radius: 20px; width: 100%; max-width: 500px; text-align: center; position: relative; animation: popupFade .5s ease; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.close-popup { position: absolute; top: 15px; right: 15px; font-size: 28px; cursor: pointer; color: var(--dark-text); transition: var(--transition); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: none; border: 0; }
.close-popup:hover { background: rgba(0,0,0,.05); color: var(--secondary-color); }
.popup h2 { color: var(--primary-color); margin-bottom: 10px; font-size: 28px; }
.popup-content > p { margin-bottom: 30px; }
.popup-form { display: flex; flex-direction: column; gap: 20px; }
.popup-content .popup-form input { padding: 18px 20px; }
.video-modal-content { position: relative; width: 100%; max-width: 860px; background: #000; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: popupFade .4s ease; }
.close-video-modal { position: absolute; top: 8px; right: 12px; color: #fff; font-size: 32px; cursor: pointer; z-index: 10; background: none; border: 0; transition: var(--transition); }
.close-video-modal:hover { color: var(--secondary-color); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper video, .video-wrapper iframe, .video-empty { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; background: var(--gradient); padding: 20px; }
.video-empty i { font-size: 48px; color: var(--secondary-color); }
.video-empty a { color: var(--secondary-color); }

/* ---------- Pages simples (confidentialité) ---------- */
.page { background: var(--light-bg); }
.page-main { padding: 140px 0 60px; }
.page-main h1 { font-size: 38px; color: var(--primary-color); line-height: 1.2; }
.page-sub { color: var(--muted); margin: 8px 0 30px; }
.page-article { background: var(--white); border-radius: 15px; box-shadow: var(--shadow); padding: 40px; line-height: 1.7; }
.page-article h2 { font-size: 19px; color: var(--primary-color); margin: 30px 0 10px; }
.page-article section:first-of-type h2 { margin-top: 0; }
.page-article p { margin-bottom: 12px; }
.page-article .meta { background: #f4f6fb; border-left: 4px solid var(--secondary-color); padding: 14px 18px; margin-bottom: 30px; color: var(--muted); border-radius: 0 8px 8px 0; }
.page-article a { color: var(--primary-color); font-weight: 500; }
.footer-mini { padding: 30px 0; text-align: center; font-size: 14px; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; transition-delay: calc(var(--d, 0) * 0.12s); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(180deg); } 100% { transform: translateY(0) rotate(360deg); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes popupFade { from { opacity: 0; transform: scale(.8) translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes loading { 0% { width: 0; } 100% { width: 100%; } }
@keyframes scrollHint { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(16px); } 100% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .partners-container { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .nav-links li { margin-left: 20px; } }
@media (max-width: 992px) {
  /* Sur tablette et téléphone : titre, puis la vidéo tout de suite, puis le texte */
  .hero--video .hero-grid { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
  .hero--video .hero-content { display: contents; }
  .hero--video h2 { order: 1; margin-bottom: 0; }
  .hero--video .hero-media { order: 2; }
  .hero--video .hero-content > p { order: 3; margin-bottom: 0; }
  .hero--video .hero-btns { order: 4; justify-content: center; }
  .hero h2 { font-size: 42px; }
  .hero p { font-size: 18px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .logo-animation h1 { font-size: 3rem; }
  .illustration-container { flex-direction: column; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-slider.is-slider .testimonial-card { flex-basis: calc((100% - 30px) / 2); }
}
@media (max-width: 768px) {
  .hero { padding: 150px 0 80px; min-height: auto; }
  .hero-media.is-file video { height: min(58vh, 440px); }
  .hero--video { padding-top: 115px; }
  .hero--video h2 { font-size: 30px; }
  .hero h2 { font-size: 34px; }
  .hero-btns { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .download-btns { flex-direction: column; align-items: center; }
  .stat-number { font-size: 36px; }
  .section-title h2 { font-size: 30px; }
  .features, .testimonials, .steps-section, .faq-section, .stats, .illustration-section, .download, .contact-section { padding: 70px 0; }
  .features-container { grid-template-columns: 1fr; }
  .feature-card, .stat-card { padding: 30px 20px; }
  .row2 { grid-template-columns: 1fr; }
  .contact-form { padding: 25px 20px; }
  .testimonials-slider.is-slider .testimonial-card { flex-basis: 100%; }
  .page-article { padding: 25px 20px; }
  .page-main h1 { font-size: 29px; }
  .partner-logo { width: 150px; height: 85px; margin: 0 18px; }
}
@media (max-width: 576px) {
  .hero h2 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .logo img { height: 38px; }
  .logo-text { font-size: 22px; }
  .download-btn { padding: 15px 20px; }
  .download-btn i { font-size: 28px; }
  .logo-animation h1 { font-size: 2.4rem; }
  .logo-animation .subtitle { font-size: 1rem; }
  .popup-content { padding: 40px 22px 30px; }
  .back-to-top { right: 16px; bottom: 16px; }
  .whatsapp-float { right: 16px; bottom: 78px; }
  .page .navbar .btn { padding: 10px 14px; font-size: 14px; }
}

/* Chiffres clés en 2 colonnes sur téléphone */
@media (max-width: 576px) {
  .stats-container { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-card { padding: 24px 10px; }
  .stat-icon { font-size: 32px; margin-bottom: 10px; }
  .stat-number { font-size: 26px; }
  .stat-text { font-size: 14px; }
}

/* ======================================================================
   Actualités (accueil, liste, article)
   ====================================================================== */
.news-section { padding: 100px 0; background: var(--light-bg); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.news-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: var(--transition); }
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.news-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gradient); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-cover img { transform: scale(1.06); }
.news-cover-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--secondary-color); font-size: 46px; opacity: .85; }
.news-cat { position: absolute; left: 16px; top: 16px; background: var(--gradient-secondary); color: var(--white); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; letter-spacing: .02em; }
.news-cat.static { position: static; display: inline-block; }
.news-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.news-meta i { color: var(--secondary-color); margin-right: 4px; }
.news-body h3 { font-size: 19px; line-height: 1.35; margin-bottom: 10px; color: var(--primary-color); }
.news-body h3 a { text-decoration: none; }
.news-body h3 a:hover { color: var(--secondary-color); }
.news-body > p:not(.news-meta) { color: var(--muted); font-size: 15px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: 16px; color: var(--primary-color); font-weight: 600; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.news-more i { color: var(--secondary-color); transition: transform .3s ease; }
.news-more:hover i { transform: translateX(5px); }

/* Pages intérieures */
.inner-main { padding-top: var(--header-h); min-height: 70vh; }
.page-hero { background: var(--gradient); color: var(--white); padding: 70px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(212,162,37,.25), transparent 45%), radial-gradient(circle at 85% 80%, rgba(212,162,37,.15), transparent 40%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: 44px; margin: 10px 0 14px; }
.page-hero p { max-width: 640px; margin: 0 auto 10px; opacity: .9; font-size: 17px; }
.breadcrumb { font-size: 14px; opacity: .85; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--secondary-color); }
.breadcrumb i { font-size: 10px; margin: 0 8px; opacity: .6; }
.news-list { padding: 60px 0 90px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip { padding: 9px 18px; border-radius: 30px; background: var(--light-bg); color: var(--primary-color); text-decoration: none; font-weight: 500; font-size: 15px; border: 1px solid #e6e8ef; transition: var(--transition); }
.chip span { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 12px; background: rgba(3,6,36,.08); font-size: 12px; text-align: center; }
.chip:hover { border-color: var(--secondary-color); color: var(--secondary-color); }
.chip.active { background: var(--gradient); color: var(--white); border-color: transparent; }
.chip.active span { background: var(--secondary-color); color: var(--white); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a { min-width: 44px; height: 44px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; background: var(--light-bg); color: var(--primary-color); text-decoration: none; font-weight: 600; transition: var(--transition); }
.pagination a:hover { background: var(--secondary-color); color: var(--white); }
.pagination a.active { background: var(--gradient); color: var(--white); }
.empty-state { text-align: center; padding: 50px 20px; max-width: 560px; margin: 0 auto; }
.empty-state i { font-size: 54px; color: var(--secondary-color); margin-bottom: 18px; }
.empty-state h2 { color: var(--primary-color); margin-bottom: 10px; }
.empty-state p { color: var(--muted); }

/* Article */
.draft-banner { background: #fff4dc; color: #7a5507; text-align: center; padding: 12px 20px; font-weight: 500; font-size: 15px; }
.article-head { background: var(--gradient); color: var(--white); padding: 60px 0 120px; }
.article-head h1 { font-size: 42px; line-height: 1.2; margin: 16px 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; opacity: .92; }
.article-meta i { color: var(--secondary-color); margin-right: 4px; }
.article-cover { width: 100%; border-radius: 18px; box-shadow: var(--shadow-hover); margin-top: -90px; position: relative; aspect-ratio: 16 / 9; object-fit: cover; background: var(--white); }
.article-head + .container.narrow .article-lead:first-child { margin-top: -60px; background: var(--white); position: relative; padding: 30px; border-radius: 16px; box-shadow: var(--shadow); }
.article-lead { font-size: 20px; line-height: 1.6; color: var(--primary-color); font-weight: 500; margin: 40px 0 10px; padding-left: 20px; border-left: 4px solid var(--secondary-color); }
.article-body { font-size: 17px; line-height: 1.85; color: #2c2f3d; margin: 28px 0; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: 28px; color: var(--primary-color); margin-top: 1.6em; }
.article-body h3 { font-size: 22px; color: var(--primary-color); margin-top: 1.4em; }
.article-body a { color: var(--secondary-color); font-weight: 500; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .4em; }
.article-body blockquote { border-left: 4px solid var(--secondary-color); background: var(--light-bg); padding: 18px 22px; border-radius: 0 12px 12px 0; font-style: italic; color: var(--primary-color); }
.article-body img { border-radius: 14px; margin: 1.4em auto; box-shadow: var(--shadow); height: auto; }
.article-body iframe, .article-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-video { margin: 30px 0; box-shadow: var(--shadow); border-radius: 14px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 26px 0 10px; margin-top: 30px; border-top: 1px solid #e6e8ef; }
.share span { font-weight: 600; color: var(--primary-color); margin-right: 6px; }
.share a, .share button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--white); text-decoration: none; border: 0; cursor: pointer; font-size: 17px; transition: var(--transition); }
.share a:hover, .share button:hover { transform: translateY(-4px); }
.sh-wa { background: #25d366; } .sh-fb { background: #1877f2; } .sh-in { background: #0a66c2; } .sh-x { background: #000; } .sh-copy { background: var(--secondary-color); }
.sh-copy.copied { background: #1f9d55; }
.related { background: var(--light-bg); padding: 70px 0 90px; margin-top: 60px; }
.related-title { font-size: 30px; color: var(--primary-color); margin-bottom: 30px; text-align: center; }

/* Menu : un élément de plus (« Actualités ») */
@media (max-width: 1250px) { .nav-links li { margin-left: 22px; } }
@media (max-width: 1150px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
}

@media (max-width: 768px) {
  .news-section, .news-list { padding: 60px 0; }
  .news-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding: 50px 0 40px; }
  .page-hero h1 { font-size: 32px; }
  .article-head { padding: 40px 0 90px; }
  .article-head h1 { font-size: 30px; }
  .article-cover { margin-top: -60px; border-radius: 12px; }
  .article-body { font-size: 16px; }
  .article-lead { font-size: 18px; }
  .related { padding: 50px 0 60px; }
}
.logo-text, .nav-links a, .nav-links .btn { white-space: nowrap; }
.social-links .social-off { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--white); font-size: 18px; cursor: default; }

/* ---------- Formulaire d'inscription en 4 étapes ---------- */
.wizard { gap: 18px; }
.wiz-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 12px; padding: 0; }
.wiz-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #9aa0b4; text-align: center; }
.wiz-steps li i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #eef0f6; color: #9aa0b4; font-size: 15px; transition: var(--transition); }
.wiz-steps li.active { color: var(--primary-color); }
.wiz-steps li.active i { background: var(--primary-color); color: var(--secondary-color); }
.wiz-steps li.done i { background: var(--secondary-color); color: var(--primary-color); }
.wiz-bar { height: 6px; background: #eef0f6; border-radius: 6px; overflow: hidden; }
.wiz-bar span { display: block; height: 100%; background: var(--gradient-secondary, var(--secondary-color)); border-radius: 6px; transition: width .4s ease; }
.wiz-count { font-size: 13px; color: #6b7280; margin: 8px 0 0; }
.wiz-step { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.js .wiz-step { display: none; }
.js .wiz-step.active { display: grid; animation: fadeIn .4s ease both; }
.wiz-step legend { font-size: 20px; font-weight: 700; color: var(--primary-color); padding: 0; margin-bottom: 2px; }
.wiz-help { margin: -8px 0 0; font-size: 14px; color: #6b7280; }
.contact-form select { padding: 14px 16px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 16px; width: 100%; background: #fff; color: var(--dark-text); font-family: inherit; }
.contact-form select:focus { border-color: var(--secondary-color); outline: none; box-shadow: 0 0 0 3px rgba(212,162,37,.2); }
.row-phone { display: grid; grid-template-columns: 190px 1fr; gap: 16px; }
.row-addr { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; }
.wiz-nav [data-next], .wiz-nav [data-submit] { margin-left: auto; }
.btn-ghost { background: transparent; color: var(--primary-color); border: 2px solid #e0e0e0; box-shadow: none; }
.btn-ghost:hover { border-color: var(--primary-color); transform: none; }
.wiz-summary { display: grid; gap: 12px; }
.wiz-summary section { border: 1px solid #e7e9f0; border-radius: 12px; padding: 14px 16px; position: relative; }
.wiz-summary h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--secondary-color); }
.wiz-summary p { margin: 2px 0; font-size: 15px; color: var(--dark-text); }
.wiz-summary button { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--primary-color); cursor: pointer; font-size: 13px; text-decoration: underline; }
.wiz-done { text-align: center; padding: 30px 10px; }
.wiz-done i { font-size: 54px; color: #1e8e3e; margin-bottom: 14px; }
.wiz-done h3 { color: var(--primary-color); margin-bottom: 8px; }
@media (max-width: 576px) {
  .row-phone, .row3 { grid-template-columns: 1fr; }
  .wiz-steps li span { font-size: 10px; }
  .wiz-nav .btn { padding: 12px 18px; }
}
.wiz-nav [hidden] { display: none !important; }
.contact-form.wizard { align-self: start; min-width: 0; }

/* Fenêtre d'inscription */
.signup-content { max-width: 560px; text-align: left; padding: 34px 30px 26px; max-height: 92vh; overflow-y: auto; }
.signup-content .contact-form { box-shadow: none; padding: 0; background: none; }
.signup-head h2 { margin-bottom: 4px; }
.signup-head p { margin: 0; color: #6b7280; font-size: 15px; }
.signup-content .wiz-nav [data-prev] { padding: 12px 18px; }
@media (max-width: 576px) { .signup-content { padding: 28px 18px 20px; } .signup-content .row2 { grid-template-columns: 1fr 1fr; gap: 10px; } .signup-content .row-phone { grid-template-columns: 118px 1fr; gap: 10px; } .signup-content .row3 { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.signup-head h2 { padding-right: 34px; }
.popup-signup { margin: 4px 0 0; font-size: 14px; color: #6b7280; }
.popup-signup a { color: var(--secondary-color); font-weight: 600; text-decoration: none; }
.popup-signup a:hover { text-decoration: underline; }

/* Fenêtre Mon Ecole : choix de l'espace */
.login-choices { display: grid; gap: 12px; text-align: left; margin-bottom: 18px; }
.login-choice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid #e7e9f0; border-radius: 14px; text-decoration: none; color: var(--primary-color); transition: var(--transition); }
.login-choice:hover { border-color: var(--secondary-color); box-shadow: 0 8px 20px rgba(3,6,36,.08); transform: translateY(-2px); }
.login-choice > i:first-child { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--primary-color); color: var(--secondary-color); display: grid; place-items: center; font-size: 19px; }
.login-choice span { display: grid; gap: 2px; flex: 1; }
.login-choice b { font-size: 16px; }
.login-choice small { font-size: 13px; color: #6b7280; }
.login-choice .go { color: #b0b5c6; }
.licence-access { text-align: left; border-top: 1px solid #eef0f6; padding-top: 12px; }
.licence-access summary { cursor: pointer; font-size: 14px; color: #6b7280; list-style: none; text-align: center; }
.licence-access summary::-webkit-details-marker { display: none; }
.licence-access summary::after { content: ' ▾'; }
.licence-access[open] summary { margin-bottom: 14px; }
.licence-access .popup-form { gap: 12px; }
.licence-access .popup-form input { padding: 14px 16px; }
#popup .popup-content > p { margin-bottom: 22px; }

/* Bouton « Mon Ecole » toujours visible en haut sur téléphone et tablette */
.nav-mobile-actions { display: none; align-items: center; gap: 10px; }
.mobile-ecole { padding: 9px 14px; font-size: 14px; gap: 7px; border-radius: 30px; box-shadow: 0 4px 12px rgba(212,162,37,.35); white-space: nowrap; }
.mobile-ecole i { font-size: 15px; }
@media (max-width: 992px) {
  .nav-mobile-actions { display: flex; }
}
@media (max-width: 360px) { .mobile-ecole { padding: 8px 11px; font-size: 13px; } }
