/*==================================================
        1. VARIABLES GLOBALES & RESET SYSTEM
==================================================*/

:root {
    /* Couleurs Principales SCHOOLEAD */
    --primary: #f58220;
    --primary-navy: #0f172a;
    --brand-blue: #0A2C70;
    --blue-light: #5a7dff;
    --secondary: #FF7A00;
    
    /* Couleurs d'état & Neutres */
    --green: #16a34a;
    --success: #28a745;
    --light: #f8fafc;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --gray: #64748b;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;

    /* Interface & Animations */
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    --radius: 18px;
    --transition: 0.35s ease;

    /* Accent Promo */
    --indigo: #4f46e5;
    --indigo-hover: #4338ca;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: var(--primary-navy);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/*==================================================
                2. PRELOADER
==================================================*/

#schoolead-preloader {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.spinner-wrapper img {
    width: 45px;
    z-index: 10;
    border-radius: 5px;
}

.circle-orange, 
.circle-blue {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.circle-orange {
    width: 100%; 
    height: 100%;
    border-top-color: var(--secondary);
    border-bottom-color: var(--secondary);
    animation: spin 1.2s linear infinite;
}

.circle-blue {
    width: 70%; 
    height: 70%;
    border-left-color: var(--brand-blue);
    border-right-color: var(--brand-blue);
    animation: spin 1.8s linear infinite reverse;
}

.preloader-text {
    font-size: 20px;
    color: var(--brand-blue);
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes spin { 
    100% { transform: rotate(360deg); } 
}


/*==================================================
            3. HEADER & NAVIGATION
==================================================*/

.header {
    position: fixed;
    width: 100%;
    top: 0; 
    left: 0;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img { 
    width: 42px; 
    height: auto; 
}

.logo-text h2 {
    font-size: 18px;
    color: var(--brand-blue);
    margin-bottom: -2px;
    font-weight: 800;
}

.logo-text span {
    font-size: 10px;
    color: var(--gray);
    display: block;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: .3s;
}

.navbar a:hover, 
.navbar a.active { 
    color: var(--brand-blue); 
    font-weight: 600; 
}

.sidenav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-idemo, 
.btn-login, 
.sidenav .btn-demo {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 14px;
    transition: .3s;
    text-align: center;
    white-space: nowrap;
}

.btn-idemo {
    border: 1.5px solid var(--secondary);
    color: var(--secondary);
}

.btn-idemo:hover { 
    background: var(--secondary); 
    color: var(--white); 
}

.btn-login { 
    color: var(--brand-blue); 
    border: 1.5px solid transparent; 
}

.btn-login:hover { 
    background: var(--light-gray); 
}

.sidenav .btn-demo {
    background: var(--brand-blue);
    color: var(--white);
    border: 1.5px solid var(--brand-blue);
}

.sidenav .btn-demo:hover { 
    background: transparent; 
    color: var(--brand-blue); 
}

/* Menu Mobile Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.menu-toggle span {
    width: 25px; 
    height: 3px;
    background: var(--brand-blue);
    border-radius: 2px;
    transition: 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/*==================================================
                4. HERO TARIFS
==================================================*/

.pricing-hero {
    background: linear-gradient(rgba(10, 25, 60, .65), rgba(10, 25, 60, .65)), url("../images/pricing-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 120px 0 60px;
}

.hero-logo img {
    width: 90px;
    margin: auto;
    margin-bottom: 30px;
}

.pricing-hero h1 {
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.pricing-hero p {
    width: 700px;
    max-width: 95%;
    margin: auto;
    margin-bottom: 40px;
    font-size: 20px;
    line-height: 1.8;
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-demo:hover {
    transform: translateY(-4px);
}


/*==================================================
            5. SIMULATEUR DE TARIFS
==================================================*/

.pricing-simulator {
    background: var(--light);
    padding: 100px 0;
}

.step {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Barre de Progression */
.progress-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.progress-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #dbe3ec;
    z-index: 0;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.progress-step span {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dbe3ec;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 22px;
    font-weight: 700;
    transition: .4s;
    color: var(--primary-navy);
}

.progress-step.active span {
    background: var(--primary);
    color: #fff;
}

.progress-step p {
    margin-top: 15px;
    font-weight: 600;
    color: var(--gray);
}

/* Titres de Section */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 32px;
    margin: 18px 0;
}

.section-title p {
    width: 700px;
    max-width: 95%;
    margin: auto;
    color: var(--gray);
    line-height: 1.8;
}

/* Étape 1 : Cartes Établissements */
.school-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.school-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 40px 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.school-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.school-card.active {
    background: var(--primary);
    color: #fff;
}

.school-card i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition);
}

.school-card.active i {
    color: #fff;
}

.school-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.school-card p {
    color: var(--gray);
    line-height: 1.7;
    transition: var(--transition);
}

.school-card.active p {
    color: #fff;
}

/* Étape 2 : Nombre d'élèves */
.student-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.student-card {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-navy);
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.student-card i {
    font-size: 34px;
    color: var(--primary);
    transition: var(--transition);
}

.student-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.student-card.active {
    background: var(--primary);
    color: #fff;
}

.student-card.active i {
    color: #fff;
}

/* Étape 3 : Durée */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.duration-card {
    position: relative;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 45px 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.duration-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.duration-card.active {
    background: var(--primary);
    color: #fff;
}

.duration-card i {
    font-size: 46px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.duration-card.active i {
    color: #fff;
}

.duration-card h3 {
    font-size: 26px;
    margin-bottom: 12px;
}

.duration-card p {
    color: var(--gray);
    transition: var(--transition);
}

.duration-card.active p {
    color: #fff;
}

/* Badges */
.badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #ff9800;
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
}

.badge.green {
    background: #22c55e;
}

/* Carte Résultat */
.pricing-result {
    margin-top: 90px;
}

.pricing-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 35px;
    background: #fff;
    border-radius: 25px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .10);
    transition: all .35s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.small-title {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.pricing-left ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pricing-left li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
}

.pricing-left i {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(245, 130, 32, .12);
    color: var(--primary);
}

.pricing-center {
    text-align: center;
}

.pricing-center h2 {
    font-size: 48px;
    color: var(--primary);
    margin: 25px 0;
}

.price-period {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 25px;
}

.saving-box {
    display: inline-block;
    background: #ecfdf5;
    color: #16a34a;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 35px;
}

.btn-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-price:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(245, 130, 32, 0.3);
}

.pricing-right ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-right li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
}

.pricing-right i {
    color: #22c55e;
    font-size: 20px;
    flex-shrink: 0;
}


/*==================================================
        6. FONCTIONNALITÉS & AVANTAGES
==================================================*/

.pricing-features {
    padding: 100px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 20px;
}

.pricing-benefits {
    padding: 100px 0;
    background: var(--light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--gray);
    line-height: 1.7;
}


/*==================================================
                    7. FAQ
==================================================*/

.faq {
    padding: 100px 0;
    background: #fff;
}

.faq-container {
    max-width: 900px;
    margin: auto;
}

.faq-item {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px;
    background: #fff;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-navy);
    text-align: left;
}

.faq-question i {
    color: var(--primary);
    transition: .3s;
    margin-left: 15px;
}

.faq-answer {
    display: none;
    padding: 0 30px 25px;
    color: var(--gray);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}


/*==================================================
                    8. CTA SECTION
==================================================*/

.pricing-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    text-align: center;
    color: #fff;
}

.pricing-cta h2 {
    font-size: 46px;
    margin-bottom: 20px;
}

.pricing-cta p {
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
    margin-bottom: 45px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary-navy);
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-5px);
}


/*==================================================
            9. WIDGETS FLOTTANTS
==================================================*/

.widget-btn {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.widget-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(0,0,0,0.25); 
}

/* Widgets Gauche (WhatsApp & Calendrier) */
.left-widgets {
    position: fixed;
    bottom: 25px; 
    left: 25px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calendar-btn { 
    background: var(--brand-blue); 
}

.wa-trigger { 
    background: #25D366; 
}

.whatsapp-container { 
    position: relative; 
}

/* Bulle WhatsApp */
.wa-info-card {
    position: absolute;
    bottom: 0; 
    left: 65px;
    width: 240px;
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    opacity: 0; 
    visibility: hidden;
    transform: translateX(-10px);
    transition: 0.3s ease;
    border: 1px solid #eaeaea;
}

.wa-info-card.active { 
    opacity: 1; 
    visibility: visible; 
    transform: translateX(0); 
}

.wa-info-card p {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366; 
    color: var(--white);
    text-decoration: none; 
    padding: 10px 14px;
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 13px;
    transition: background 0.2s;
}

.whatsapp-btn:hover { 
    background: #20ba5a; 
}

.close-wa {
    position: absolute; 
    top: 8px; 
    right: 12px;
    background: none; 
    border: none; 
    font-size: 18px;
    color: var(--gray); 
    cursor: pointer;
}

#wa-info-card {
    display: none;
}

#wa-info-card.active {
    display: block;
}

/* Widget Droite (Chat rapide) */
.right-widgets {
    position: fixed;
    bottom: 25px; 
    right: 25px;
    z-index: 1001;
    display: flex; 
    flex-direction: column; 
    align-items: flex-end;
}

.chat-trigger-btn {
    width: 55px; 
    height: 55px;
    border-radius: 50%;
    background: #2570ff;
    color: var(--white); 
    border: none; 
    font-size: 22px;
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(37,112,255,0.4);
    position: relative;
    transition: 0.3s;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.chat-badge {
    position: absolute;
    top: -2px; 
    right: -2px;
    background: #e63946; 
    color: var(--white);
    font-size: 11px; 
    font-weight: bold;
    width: 20px; 
    height: 20px;
    border-radius: 50%; 
    display: flex;
    align-items: center; 
    justify-content: center;
    border: 2px solid var(--white);
}

.chat-window {
    position: absolute;
    bottom: 70px; 
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    opacity: 0; 
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.3s ease;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.chat-window.active { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.chat-header {
    background: transparent;
    padding: 10px 15px 0;
    text-align: right;
}

.close-chat {
    background: none; 
    border: none;
    font-size: 22px; 
    color: var(--gray); 
    cursor: pointer;
}

.chat-body { 
    padding: 0 20px 20px; 
}

.chat-message {
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    padding: 12px 15px; 
    border-radius: 8px;
    font-size: 13px; 
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.chat-options { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.chat-opt {
    text-decoration: none;
    border: 1.5px solid #2570ff;
    color: #2570ff;
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 12px; 
    font-weight: 600;
    transition: 0.2s; 
    background: var(--white);
    text-align: center;
}

.chat-opt:hover { 
    background: #2570ff; 
    color: var(--white); 
}


/*==================================================
        10. MODALE DÉMO (MULTI-ÉTAPES)
==================================================*/

.demo-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    visibility: hidden; 
    transition: 0.3s ease;
    padding: 15px;
}

.demo-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

.demo-modal-content {
    background: var(--white);
    width: 100%; 
    max-width: 780px;
    border-radius: 16px;
    overflow: hidden;
    display: flex; 
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.demo-header {
    background: var(--blue-light); 
    color: var(--white);
    padding: 25px 35px; 
    position: relative;
}

.close-demo {
    position: absolute; 
    top: 15px; 
    right: 20px;
    background: rgba(255,255,255,0.2); 
    border: none;
    color: var(--white); 
    font-size: 20px; 
    width: 32px; 
    height: 32px;
    border-radius: 6px; 
    cursor: pointer; 
    transition: 0.2s;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.close-demo:hover { 
    background: rgba(255,255,255,0.4); 
}

.demo-tag { 
    font-size: 11px; 
    font-weight: bold; 
    letter-spacing: 1px; 
    display: block; 
    margin-bottom: 8px; 
    opacity: 0.9; 
}

.demo-header h2 { 
    font-size: 22px; 
    margin-bottom: 6px; 
}

.demo-header p { 
    font-size: 13px; 
    opacity: 0.9; 
    margin-bottom: 15px; 
    line-height: 1.4; 
}

.demo-badges { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}

.demo-badges span {
    background: rgba(255,255,255,0.2); 
    padding: 4px 10px;
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 500;
}

.demo-body { 
    padding: 25px 35px; 
    overflow-y: auto; 
    flex: 1; 
}

.demo-choices { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.choice-card {
    flex: 1; 
    border: 1.5px solid #eaeaea; 
    border-radius: 10px; 
    padding: 15px; 
    cursor: pointer; 
    transition: 0.3s;
}

.choice-card.active { 
    border-color: var(--blue-light); 
    box-shadow: 0 4px 15px rgba(90,125,255,0.12); 
}

.choice-card.secondary { 
    background: var(--blue-light); 
    color: var(--white); 
    border-color: var(--blue-light); 
}

.choice-icon { 
    font-size: 20px; 
    margin-bottom: 10px; 
    color: var(--blue-light); 
}

.choice-card.secondary .choice-icon { 
    color: var(--white); 
}

.choice-card h4 { 
    font-size: 14px; 
    margin-bottom: 6px; 
}

.choice-card p { 
    font-size: 12px; 
    color: var(--gray); 
    margin-bottom: 8px; 
    line-height: 1.3; 
}

.choice-card.secondary p { 
    color: rgba(255,255,255,0.85); 
}

.choice-card a { 
    color: var(--white); 
    font-size: 12px; 
    font-weight: bold; 
    text-decoration: none; 
}

/* Stepper Modale */
.demo-stepper { 
    display: flex; 
    justify-content: space-between; 
    border-bottom: 1px solid #eaeaea; 
    padding-bottom: 15px; 
    margin-bottom: 25px; 
}

.step-modal { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 6px; 
    opacity: 0.5; 
    transition: 0.3s; 
}

.step-modal.active { 
    opacity: 1; 
    color: var(--blue-light); 
    font-weight: 600; 
}

.step-circle { 
    width: 28px; 
    height: 28px; 
    background: #eaeaea; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 13px; 
    font-weight: bold; 
    color: var(--gray); 
}

.step-modal.active .step-circle { 
    background: var(--blue-light); 
    color: var(--white); 
}

.step-modal span { 
    font-size: 12px; 
}

/* Formulaires */
.demo-form-section h3 { 
    font-size: 17px; 
    margin-bottom: 4px; 
    color: var(--text-dark); 
}

.demo-form-section p { 
    font-size: 12px; 
    color: var(--gray); 
    margin-bottom: 18px; 
}

.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.input-group.full-width { 
    grid-column: 1 / -1; 
}

.input-group label { 
    display: block; 
    font-size: 12px; 
    font-weight: 600; 
    margin-bottom: 6px; 
    color: var(--text-dark); 
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%; 
    padding: 10px 12px; 
    border: 1px solid #dcdcdc; 
    border-radius: 8px; 
    font-size: 13px; 
    outline: none; 
    transition: 0.3s;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus { 
    border-color: var(--blue-light); 
    box-shadow: 0 0 0 3px rgba(90,125,255,0.15); 
}

.phone-group { 
    display: flex; 
    gap: 8px; 
}

.phone-group select { width: 38%; }
.phone-group input { width: 62%; }

.input-group small { 
    display: block; 
    margin-top: 4px; 
    font-size: 11px; 
    color: var(--gray); 
}

/* reCAPTCHA */
.recaptcha-mock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d3d3d3;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 10px 15px;
    max-width: 300px;
    margin-top: 5px;
}

.recaptcha-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dark);
}

.recaptcha-checkbox input[type="checkbox"] {
    width: 18px; 
    height: 18px; 
    cursor: pointer;
}

.recaptcha-mock img {
    height: 30px; 
    width: auto; 
    opacity: 0.8;
}

/* Notice Sécurité */
.security-notice {
    background: #eef3ff;
    color: var(--blue-light);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Footer de Modale */
.demo-footer {
    padding: 15px 35px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

.step-indicator { 
    font-size: 12px; 
    color: var(--gray); 
    font-weight: 500; 
}

.footer-actions-right { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.btn-back {
    background: transparent;
    border: 1px solid #dcdcdc;
    color: var(--text-dark);
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
    display: flex; 
    align-items: center; 
    gap: 6px;
}

.btn-back:hover { 
    background: #f0f0f0; 
}

.link-skip {
    color: var(--gray);
    font-size: 12px;
    text-decoration: underline;
    transition: 0.2s;
    cursor: pointer;
}

.link-skip:hover { 
    color: var(--text-dark); 
}

.btn-continue {
    background: var(--blue-light);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-continue:hover { 
    background: #4a6aef; 
}

.btn-confirm {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex; 
    align-items: center; 
    gap: 6px;
}

.btn-confirm:hover { 
    background: #218838; 
}


/*==================================================
            11. POPUP PROMOTIONNELLE
==================================================*/

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s ease;
}

.popup-overlay.active .popup-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.close-btn:hover {
    background: #f1f5f9;
    color: #ef4444;
}

.popup-left {
    flex: 1;
    background: #fef5f0;
}

.popup-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-right h2 {
    color: var(--indigo);
    font-size: 24px;
    margin-bottom: 15px;
}

.popup-right p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.popup-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.popup-features li {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
}

.popup-features li i {
    color: var(--text-dark);
    margin-right: 10px;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-actions a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    font-size: 16px;
}

.popup-actions .btn-primary {
    background: var(--indigo);
    color: #fff;
}

.popup-actions .btn-primary:hover {
    background: var(--indigo-hover);
}

.popup-actions .btn-outline {
    background: #fff;
    color: var(--indigo);
    border: 2px solid var(--indigo);
}

.popup-actions .btn-outline:hover {
    background: #f8fafc;
}


/*==================================================
                    12. FOOTER
==================================================*/

.footer {
    background: #0f172a;
    color: #fff;
    padding-top: 80px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-about img,
.footer img {
    width: 150px;
    margin-bottom: 20px;
}

.footer-about p,
.footer p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer h3 {
    margin-bottom: 25px;
    font-size: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links ul,
.footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links ul li a,
.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-links ul li a:hover,
.footer a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 25px 0 0;
    color: #94a3b8;
    font-size: 14px;
}


/*==================================================
            13. MEDIA QUERIES RESPONSIVE
==================================================*/

/* 1. ECRANS DESKTOPS INTERMÉDIAIRES (<= 1200px) */
@media (max-width: 1200px) {
    .school-grid,
    .student-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-center {
        order: -1;
    }
}

/* 2. TABLETTES PAYSAGE & PETITS ORDINATEURS (<= 992px) */
@media (max-width: 992px) {
    .header .container { 
        padding: 0 15px; 
    }

    .navbar ul { 
        gap: 15px; 
    }

    .pricing-hero h1 {
        font-size: 48px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .duration-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-cta h2 {
        font-size: 38px;
    }

    .pricing-simulator,
    .pricing-features,
    .pricing-benefits,
    .faq,
    .pricing-cta {
        padding: 70px 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* 3. TABLETTES PORTRAIT (<= 768px) */
@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .menu-toggle { 
        display: flex; 
    }

    /* Menu mobile */
    .navbar {
        position: absolute;
        top: 70px; 
        left: 0; 
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .navbar ul {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        padding: 8px 0;
        font-size: 15px;
    }

    .sidenav {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .btn-idemo, 
    .btn-login, 
    .sidenav .btn-demo {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .pricing-hero {
        min-height: 50vh;
        padding: 100px 0 50px;
    }

    .pricing-hero h1 {
        font-size: 36px;
    }

    .pricing-hero p {
        font-size: 16px;
    }

    .progress-container {
        margin-bottom: 50px;
    }

    .progress-line {
        left: 5%;
        right: 5%;
    }

    .progress-step span {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .progress-step p {
        display: none;
    }

    .school-grid,
    .student-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .duration-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-center h2 {
        font-size: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
    }

    /* Adaptations Modale */
    .demo-header { padding: 20px; }
    .demo-body { padding: 20px; }
    .demo-choices { flex-direction: column; gap: 10px; }
    .demo-footer { padding: 15px 20px; }
    .step-modal span { display: none; }

    /* Adaptations Popup */
    .popup-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .popup-left {
        height: 250px;
    }

    .popup-right {
        padding: 25px;
    }
}

/* 4. PETITS MOBILES & TABLETTES (<= 576px / 520px) */
@media (max-width: 576px) {
    .section-title h2 {
        font-size: 20px;
    }

    .school-grid,
    .student-grid,
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .school-card,
    .student-card,
    .feature-box,
    .benefit-card {
        padding: 25px 18px;
    }

    .pricing-center h2 {
        font-size: 34px;
    }

    .pricing-left li,
    .pricing-right li {
        font-size: 15px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px 20px;
        font-size: 14px;
    }

    .badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }

    .form-grid { 
        grid-template-columns: 1fr; 
    }

    .phone-group { 
        flex-direction: column; 
        gap: 6px; 
    }

    .phone-group select, 
    .phone-group input { 
        width: 100%; 
    }
    
    .demo-footer {
        flex-direction: column-reverse;
        gap: 12px;
        align-items: stretch;
    }

    .step-indicator { 
        text-align: center; 
    }

    .footer-actions-right { 
        justify-content: space-between; 
        width: 100%; 
    }

    .btn-back { 
        width: auto; 
    }

    .btn-continue, 
    .btn-confirm { 
        flex: 1; 
        text-align: center; 
        justify-content: center; 
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer {
        padding: 60px 0 20px;
    }
}

/* 5. MOBILES STANDARDS (<= 480px) */
@media (max-width: 480px) {
    .pricing-hero h1 {
        font-size: 28px;
    }

    .pricing-hero p {
        font-size: 15px;
    }

    .hero-logo img {
        width: 70px;
        margin-bottom: 20px;
    }

    .progress-step span {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .pricing-card {
        padding: 20px 15px;
        border-radius: 18px;
    }

    .saving-box {
        padding: 10px 18px;
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary,
    .pricing-hero .btn-demo,
    .btn-price {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    .pricing-cta h2 {
        font-size: 28px;
    }

    .pricing-cta p {
        font-size: 14px;
    }

    .left-widgets { 
        bottom: 15px; 
        left: 15px; 
        gap: 10px; 
    }

    .right-widgets { 
        bottom: 15px; 
        right: 15px; 
    }

    .widget-btn { 
        width: 45px; 
        height: 45px; 
        font-size: 18px; 
    }

    .chat-trigger-btn { 
        width: 50px; 
        height: 50px; 
        font-size: 20px; 
    }
    
    .wa-info-card {
        left: 0;
        bottom: 55px;
        width: calc(100vw - 30px);
    }

    .chat-window {
        right: 0;
        bottom: 60px;
        width: calc(100vw - 30px);
    }

    .demo-overlay { 
        padding: 10px; 
    }

    .demo-header h2 { 
        font-size: 18px; 
    }

    .demo-badges { 
        display: none; 
    }

    .recaptcha-mock { 
        width: 100%; 
        max-width: 100%; 
    }
}

/* 6. PETITS MOBILES (<= 360px) */
@media (max-width: 360px) {
    .container {
        width: 95%;
    }

    .section-title h2,
    .pricing-hero h1 {
        font-size: 18px;
    }

    .progress-step span {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .pricing-center h2 {
        font-size: 28px;
    }

    .school-card h3,
    .benefit-card h3 {
        font-size: 20px;
    }
}

/* Prevent CSS from overriding Font Awesome icons */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}
