/* ==========================================================================
   JULESLEARN - MASTER STYLESHEET (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
    --primary-blue: #12820a;
    --primary-blue-hover: #085707;
    --secondary-blue: #00b503;
    --accent-orange: #ff8c00;
    --accent-orange-hover: #e0d500;
    --dark-bg: #0d233a;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #9e743d;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.288);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --container-width: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   2. PRELOADER (2-3 SECONDES)
   -------------------------------------------------------------------------- */
#juleslearn-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-orange, .circle-blue {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.circle-orange {
    width: 90px;
    height: 90px;
    border-top-color: var(--accent-orange);
    animation: spin 1.2s linear infinite;
}

.circle-blue {
    width: 75px;
    height: 75px;
    border-bottom-color: var(--primary-blue);
    animation: spin-reverse 1s linear infinite;
}

.spinner-wrapper img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.preloader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: -5px;
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-blue);
}

.navbar a.active::after,
.navbar a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.sidenav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-idemo, .btn-login, .btn-demo {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.btn-idemo {
    background-color: #e2e8f0;
    color: var(--text-dark);
}

.btn-login {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-login:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-demo {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-demo:hover {
    background-color: var(--accent-orange-hover);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   4. WIDGETS (LEFT & RIGHT)
   -------------------------------------------------------------------------- */
.left-widgets {
    position: fixed;
    bottom: 25px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-widgets {
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 1000;
}

.widget-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.widget-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.calendar-btn {
    background-color: var(--primary-blue);
}

.wa-trigger {
    background-color: #25d366;
}

.whatsapp-container {
    position: relative;
}

.info-card.whatsapp {
    position: absolute;
    bottom: 65px;
    left: 0;
    width: 220px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    border: 1px solid var(--border-color);
}

.info-card.whatsapp.active {
    display: block;
}

.close-wa {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25d366;
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.chat-trigger-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--white);
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: none;
    overflow: hidden;
}

.chat-window.active {
    display: block;
}

.chat-header {
    background-color: var(--primary-blue);
    padding: 12px;
    display: flex;
    justify-content: flex-end;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
}

.chat-message p {
    font-size: 0.88rem;
    color: var(--text-dark);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-opt {
    background: var(--light-bg);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--primary-blue);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.chat-opt:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   5. DEMO MODAL (MULTI-STEP)
   -------------------------------------------------------------------------- */
.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 35, 58, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.demo-overlay.active {
    display: flex;
}

.demo-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.demo-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-blue));
    color: var(--white);
    padding: 30px 25px 20px;
    position: relative;
}

.close-demo {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.demo-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.demo-header h2 {
    font-size: 1.5rem;
    margin: 10px 0 5px;
}

.demo-header p {
    font-size: 0.88rem;
    opacity: 0.9;
}

.demo-badges {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.8rem;
}

.demo-body {
    padding: 25px;
}

.demo-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.choice-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.choice-card.active {
    border-color: var(--primary-blue);
    background-color: rgba(11, 76, 140, 0.03);
}

.choice-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.choice-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.choice-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.demo-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.step.active .step-circle {
    background: var(--primary-blue);
    color: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.phone-group {
    display: flex;
    gap: 8px;
}

.phone-group select {
    width: 100px;
}

.phone-group input {
    flex: 1;
}

.input-group small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.demo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.btn-continue, .btn-confirm {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}

.recaptcha-mock {
    border: 1px solid #d3d3d3;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
}

.recaptcha-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.recaptcha-mock img {
    height: 32px;
}

.security-notice {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION (NUMÉRO 1 : IMAGES ANIMÉES + OVERLAY NOIR TRANSPARENT)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 80px 0;
    background-color: var(--dark-bg);
    overflow: hidden;
    color: var(--white);
}

.hero-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlideFade 12s infinite ease-in-out;
}

.hero-bg-slide.slide-1 {
    animation-delay: 0s;
}

.hero-bg-slide.slide-2 {
    animation-delay: 6s;
}

@keyframes heroSlideFade {
    0% { opacity: 0; transform: scale(1); }
    8% { opacity: 1; transform: scale(1.03); }
    45% { opacity: 1; transform: scale(1.08); }
    55% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1); }
}

/* Overlay noir transparent */
.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 35, 58, 0.88) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-text h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.45;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
}

/* Ad Slider dans le Hero */
.juleslearn-ad-slider {
    width: 100%;
}

.juleslearn-slider {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    color: var(--text-dark);
}

.juleslearn-slides {
    position: relative;
    min-height: 380px;
}

.juleslearn-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
}

.juleslearn-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.juleslearn-slide-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.juleslearn-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.juleslearn-slide-number {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    color: var(--white);
}

.juleslearn-slide-number.blue { background: var(--primary-blue); }
.juleslearn-slide-number.orange { background: var(--accent-orange); }

.juleslearn-slide-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.juleslearn-category {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.blue-text { color: var(--primary-blue); }
.orange-text { color: var(--accent-orange); }

.juleslearn-slide-content h2 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.juleslearn-slide-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.juleslearn-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: auto;
}

.juleslearn-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.blue-bg { background-color: var(--primary-blue); }
.orange-bg { background-color: var(--accent-orange); }

.juleslearn-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.juleslearn-slider-btn.prev { left: 10px; }
.juleslearn-slider-btn.next { right: 10px; }

.juleslearn-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 15px;
}

.juleslearn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
}

.juleslearn-dot.active {
    background: var(--primary-blue);
    width: 20px;
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   7. STATS SECTION
   -------------------------------------------------------------------------- */
.stats {
    padding: 40px 0;
    background-color: var(--primary-blue);
    color: var(--white);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   8. FEATURES / MODULES (NUMÉRO 2 : 12 MODULES)
   -------------------------------------------------------------------------- */
.features {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 30px 25px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.feature-bottom {
    text-align: center;
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   9. WHY JULESLEARN
   -------------------------------------------------------------------------- */
.why-schoollead {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.why-text h1 {
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.why-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.why-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

.why-item i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   10. KEY POINTS (NUMÉRO 3 : SOFTWARE PC, APP MOBILE & SYNCHRO) & SOLUTIONS
   -------------------------------------------------------------------------- */
.key-points, .solutions {
    padding: 80px 0;
}

.key-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.key-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.key-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.key-card i {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.key-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.key-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.solutions {
    background: #f1f5f9;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.solution-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.solution-card i {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.solution-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.solution-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. HOW IT WORKS
   -------------------------------------------------------------------------- */
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.step-card {
    flex: 1;
    background: var(--light-bg);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 800;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.step-card i {
    font-size: 2.2rem;
    color: var(--accent-orange);
    margin: 15px 0 10px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. FAQ SECTION (NUMÉRO 4 : 10 QUESTIONS EN 2 COLONNES)
   -------------------------------------------------------------------------- */
.faq {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-blue);
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    gap: 15px;
}

.faq-question i {
    color: var(--primary-blue);
    transition: var(--transition);
    font-size: 0.9rem;
}

.faq-answer {
    padding: 0 20px 16px;
    display: none;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--accent-orange);
}

/* --------------------------------------------------------------------------
   13. PRICING SECTION
   -------------------------------------------------------------------------- */
.pricing {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.pricing-card.popular {
    border: 2px solid var(--accent-orange);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.popular-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.pricing-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-card .price {
    margin-bottom: 20px;
}

.pricing-card .price strong {
    font-size: 2.2rem;
    color: var(--text-dark);
}

.pricing-card .price span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-card ul {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card li {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card li i {
    color: #10b981;
}

.btn.full {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-blue {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-orange {
    background: var(--accent-orange);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   14. CALL TO ACTION & FOOTER (NUMÉRO 5 : SÉCURISÉ SSL & CLOUD MBILLETECH)
   -------------------------------------------------------------------------- */
.cta {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-blue));
    color: var(--white);
    padding: 60px 0;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.cta p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.footer {
    background: #091929;
    color: #94a3b8;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a:hover {
    background: var(--accent-orange);
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.footer-contact i {
    color: var(--accent-orange);
    width: 18px;
    text-align: center;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   15. PROMOTIONAL POPUP MODAL (NUMÉRO 6 : AFFICHAGE REFRESH ET OUVERTURE)
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.juleslearn-modal {
    background: var(--white);
    width: 100%;
    max-width: 850px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.promo-side {
    background: linear-gradient(135deg, #12820a, #002d5a);
    color: var(--white);
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.special-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
}

.crown-box {
    font-size: 2rem;
    margin-top: 10px;
}

.promo-label {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 800;
    letter-spacing: 1px;
}

.promo-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 10px 0;
}

.promo-description {
    font-size: 0.85rem;
    opacity: 0.85;
}

.promo-side .pricing {
    background: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-item .price {
    font-size: 1.5rem;
    font-weight: 800;
}

.price-description {
    font-size: 0.72rem;
    opacity: 0.8;
}

.price-or {
    font-size: 0.8rem;
    opacity: 0.6;
}

.saving-badge {
    background: var(--accent-orange);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    width: fit-content;
}

.content-side {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.brand {
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.content-side h2 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-side .features {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    background: none;
}

.content-side .feature {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.content-side .feature-icon {
    color: #10b981;
    font-weight: 800;
}

.content-side .feature-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.content-side .feature-description {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.countdown-box {
    background: var(--light-bg);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.countdown-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 6px;
}

.countdown {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-box {
    text-align: center;
    background: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    flex: 1;
}

.time-box div {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.time-box span {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.offer-button {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
    transition: var(--transition);
}

.offer-button:hover {
    background: var(--accent-orange-hover);
}

.later-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

.later-button:hover {
    color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (ADD TO BOTTOM OF STYLE_3.CSS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESKTOP & SMALL LAPTOPS (max-width: 1080px)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .container {
        max-width: 960px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* --------------------------------------------------------------------------
   2. TABLETS & SMALL DESKTOPS (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .sidenav {
        gap: 8px;
    }

    .btn-idemo {
        display: none;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .key-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-direction: column;
        gap: 30px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: none;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    /* Modal Adjustments */
    .demo-choices,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .juleslearn-modal {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }

    .promo-side, 
    .content-side {
        padding: 25px 20px;
    }
}

/* --------------------------------------------------------------------------
   3. LARGE PHABLETS & MOBILE (max-width: 520px)
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
    .left-widgets {
        left: 12px;
        bottom: 15px;
    }

    .right-widgets {
        right: 12px;
        bottom: 15px;
    }

    .widget-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .chat-trigger-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .chat-window {
        width: calc(100vw - 30px);
        right: -5px;
    }

    .info-card.whatsapp {
        width: calc(100vw - 40px);
        left: -5px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .key-grid {
        grid-template-columns: 1fr;
    }

    .demo-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .phone-group {
        flex-direction: column;
    }

    .phone-group select {
        width: 100%;
    }

    .recaptcha-mock {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   4. STANDARD MOBILE (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .stats .container {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, 
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .logo-text span {
        display: none;
    }

    .btn-login, 
    .btn-demo {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .demo-header h2 {
        font-size: 1.25rem;
    }

    .demo-badges {
        flex-wrap: wrap;
    }
}

/* --------------------------------------------------------------------------
   5. SMALL MOBILE (max-width: 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 40px 0;
    }

    .features, 
    .why-schoollead, 
    .key-points, 
    .solutions, 
    .how-it-works, 
    .faq, 
    .pricing, 
    .cta {
        padding: 50px 0;
    }

    .hero-text h1 {
        font-size: 1.65rem;
    }

    .section-title h2, 
    .why-text h2, 
    .cta h2 {
        font-size: 1.45rem;
    }

    .stat-card h2 {
        font-size: 1.75rem;
    }

    .juleslearn-slide-image {
        height: 160px;
    }

    .juleslearn-slides {
        min-height: 340px;
    }

    .widget-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .chat-trigger-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .demo-body {
        padding: 15px;
    }

    .demo-footer {
        flex-direction: column-reverse;
        gap: 12px;
        align-items: stretch;
    }

    .btn-continue, 
    .btn-confirm, 
    .btn-back {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   NAVIGATION MOBILE RESPONSIVE (360px, 480px, 520px, 722px, <= 1080px)
   ========================================================================== */
@media screen and (max-width: 1080px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Bouton hamburger mobile */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
    }

    .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);
    }

    /* Masque le sidenav de la barre supérieure sur mobile */
    .header > .container > .sidenav {
        display: none !important;
    }

    /* Conteneur du menu mobile déroulant */
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
        padding: 20px 25px;
        display: none;
        flex-direction: column;
        gap: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-sizing: border-box;
        z-index: 1000;
    }

    .navbar.active {
        display: flex !important;
    }

    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 5px;
    }

    .navbar ul li {
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        width: 100%;
        padding: 8px 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dark);
        border-bottom: 1px solid #f1f5f9;
    }

    /* Boutons sidenav insérés dans le menu hamburger */
    .navbar .sidenav {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 5px;
        padding-top: 15px;
        border-top: 2px solid #e2e8f0;
        margin-top: 5px;
    }

    .navbar .sidenav a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.95rem;
        box-sizing: border-box;
        border-radius: var(--radius-sm);
    }
}