            /* Navbar */
    
.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Par défaut */
    font-size: 1.1rem;
    flex-shrink: 0;
}
.avatar-circle.instructor {
    background: linear-gradient(135deg, #cc3234 0%, #ff6b6b 100%);
}

.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}


        /* ============================================
           VARIABLES CSS UNIFIÉES
           ============================================ */
        :root {
        /* Couleurs principales */
        --primary-color: #cc3234;
        --primary-red: #cc3234; /* Alias pour compatibilité */
        --primary-dark: #a32628;
        --primary-red-dark: #a32628; /* Alias */
        --primary-light: rgba(204, 50, 52, 0.1);
        --primary-red-light: rgba(204, 50, 52, 0.1); /* Alias */
        
        /* Couleurs secondaires */
        --secondary-color: #2d3436;
        --bs-primary: #443f3f;
        --dark-gray: #343a40;
        --primary-gray: #636e72;
        --text-main: #2d3436;
        --text-muted: #636e72;
        
        /* Couleurs de fond */
        --bg-light: #f9fbfc;
        --light-gray: #f8f9fa;
        --white: #ffffff;
        
        /* Chat & Messages */
        --chat-bg: #f4f7f6;
        --bubble-me: #cc3234;
        --bubble-other: #ffffff;
        
        /* Design tokens */
        --border-radius: 12px;
        --radius-md: 15px;
        --radius-lg: 25px;
        --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
        --card-hover: 0 20px 40px rgba(0,0,0,0.12);
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .navbar-custom {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar-brand {
        font-weight: 700;
        font-size: 1.5rem;
    }    
        /* Conteneur des messages */
        .messages-container {
            position: fixed;
            top: 80px;
            right: 20px;
            z-index: 9999;
            max-width: 400px;
        }

        .text-wrap-break {
        overflow-wrap: break-word;
        word-wrap: break-word;     /* Alias pour les anciens navigateurs */
        word-break: break-word;    /* Alternative pour certains cas, assure la compatibilité */
        }
        
        /* Style de base pour tous les messages */
        .alert-custom {
            padding: 15px 20px;
            border-radius: 10px;
            margin-bottom: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.3s ease-out;
            border-left: 4px solid;
        }
        
        /* Animation d'entrée */
        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        /* Animation de sortie */
        @keyframes slideOut {
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }
        
        .alert-custom.fade-out {
            animation: slideOut 0.3s ease-out forwards;
        }
        
        /* Icône */
        .alert-custom i {
            font-size: 1.5rem;
        }
        
        /* Bouton de fermeture */
        .alert-custom .btn-close {
            margin-left: auto;
            cursor: pointer;
        }
        
        /* Variantes de couleurs */
        .alert-custom.success {
            background: linear-gradient(135deg, #48bb78, #38a169);
            color: white;
            border-left-color: #2f855a;
        }
        
        .alert-custom.error {
            background: linear-gradient(135deg, #f56565, #e53e3e);
            color: white;
            border-left-color: #c53030;
        }
        
        .alert-custom.warning {
            background: linear-gradient(135deg, #ed8936, #dd6b20);
            color: white;
            border-left-color: #c05621;
        }
        
        .alert-custom.info {
            background: linear-gradient(135deg, #4299e1, #3182ce);
            color: white;
            border-left-color: #2c5282;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .messages-container {
                left: 10px;
                right: 10px;
                max-width: none;
            }
        }
  
    .btn-gradient {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border: none;
        color: white;
        padding: 12px 30px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        color: white;
    }

       .auth-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 80px 0 40px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    }
    
    .auth-card {
        max-width: 450px;
        margin: 0 auto;
    }
    

    section {
    padding: 80px 0; /* espace haut/bas */
}


 /*
 * MÉTHODE AVANCÉE (Meilleure pratique)
 * On redéfinit les variables CSS de Bootstrap pour la classe .btn-primary
 */
.btn-primary {
    /* Couleur de fond de base */
    --bs-btn-bg: #cc3234;
    
    /* Couleur de bordure de base */
    --bs-btn-border-color: #cc3234;
    
    /* Couleur de fond au survol (hover) */
    --bs-btn-hover-bg: #2a2a2a;
    --bs-btn-hover-border-color: #2a2a2a;
    
    /* Couleur de fond au clic (active) */
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    
    /* Suppression de la lueur (focus) */
    --bs-btn-focus-box-shadow: none;
    
    /* (Optionnel) Couleur du texte, si votre fond est clair */
    /* --bs-btn-color: #000; */
}

text-primary{
    color: #cc3234 !important;
}

footer {
            background-color: var(--dark-gray);
            color: white;
            padding: 40px 0 20px 0;
            margin-top: 50px;
        }
.bg-custom-red {
    background-color: var(--primary-color) !important; /* Utilisez votre variable CSS */
}



    /* Cookie Consent Modal */
    .cookie-consent-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        backdrop-filter: blur(5px);
    }

    .cookie-consent-content {
        background: white;
        border-radius: 12px;
        max-width: 500px;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        animation: fadeIn 0.3s ease-out;
    }

    .cookie-consent-header {
        padding: 20px 25px 15px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cookie-consent-header h4 {
        margin: 0;
        color: #343a40;
    }

    .cookie-close-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #666;
        padding: 0;
        line-height: 1;
    }

    .cookie-consent-body {
        padding: 20px 25px;
    }

    .cookie-consent-body p {
        margin-bottom: 20px;
        color: #555;
        line-height: 1.6;
    }

    .cookie-options {
        margin-bottom: 20px;
    }

    .cookie-option {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .cookie-option:last-child {
        border-bottom: none;
    }

    .cookie-option h5 {
        margin: 0;
        font-size: 1rem;
        color: #343a40;
        display: flex;
        align-items: center;
    }

    .cookie-option p {
        margin: 5px 0 0;
        font-size: 0.9rem;
        color: #666;
    }

    .cookie-consent-footer {
        padding: 15px 25px 20px;
        border-top: 1px solid #eee;
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }

    .cookie-accept-btn, .cookie-reject-btn, .cookie-settings-btn {
        padding: 10px 20px;
        border-radius: 6px;
        font-weight: 500;
        min-width: 120px;
    }

    /* Cookie Settings Panel */
    .cookie-consent-settings {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10001;
        backdrop-filter: blur(5px);
    }

    .cookie-settings-content {
        background: white;
        border-radius: 12px;
        max-width: 600px;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 25px;
        position: relative;
    }

    .cookie-settings-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #666;
        padding: 0;
        line-height: 1;
    }

    .cookie-settings-body {
        margin: 20px 0;
    }

    .cookie-category {
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .cookie-category:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .cookie-category h5 {
        margin: 0 0 10px;
        color: #343a40;
        display: flex;
        align-items: center;
    }

    .cookie-category p {
        margin: 0 0 15px;
        color: #555;
        line-height: 1.6;
    }

    .cookie-details {
        margin-top: 15px;
        padding-left: 20px;
        color: #666;
    }

    .cookie-details h6 {
        margin: 0 0 8px;
        font-size: 0.9rem;
        color: #343a40;
    }

    .cookie-details ul {
        margin: 0;
        padding-left: 20px;
    }

    .cookie-details li {
        margin-bottom: 5px;
        font-size: 0.9rem;
    }

    .cookie-settings-footer {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 768px) {
        .cookie-consent-content {
            width: 95%;
            margin: 20px;
        }

        .cookie-settings-content {
            width: 95%;
            margin: 10px;
        }

        .cookie-consent-footer {
            flex-direction: column;
        }

        .cookie-accept-btn, .cookie-reject-btn, .cookie-settings-btn {
            width: 100%;
        }
    }

/* ============================================
   STYLES POUR LA PAGE D'ACCUEIL (HOME)
   ============================================ */

        /* Les variables sont déjà définies en haut du fichier */
        
        /* Body global */
        body {
            color: var(--text-main);
            background-color: var(--white);
            overflow-x: hidden;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
        }

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Animations au scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 1. HERO SECTION CARROUSEL --- */
.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #fff 0%, #fdf2f2 100%);
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.1;
}
.shape-1 { width: 300px; height: 300px; background: var(--primary-color); top: -50px; right: -50px; filter: blur(60px); }
.shape-2 { width: 200px; height: 200px; background: #0984e3; bottom: 50px; left: -50px; filter: blur(50px); opacity: 0.05; }

.hero-carousel {
    position: relative;
    z-index: 1;
}

.hero-slide {
    display: none;
    animation: fadeIn 0.8s ease-in;
}

.hero-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero-highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(204, 50, 52, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.6;
}

.hero-image {
    position: relative;
    z-index: 1;
}
.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}

/* Navigation carrousel hero */
.hero-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 10;
}

.hero-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow.prev {
    left: 20px;
}

.hero-arrow.next {
    right: 20px;
}

.btn-hero {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-hero.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(204, 50, 52, 0.3);
}
.btn-hero.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(204, 50, 52, 0.4);
}

.btn-hero.secondary {
    background-color: white;
    color: var(--secondary-color);
    border: 2px solid #eee;
    margin-left: 15px;
}
.btn-hero.secondary:hover {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: white;
}

.hero-features {
    margin-top: 3rem;
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.hero-feature { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 600; 
    color: var(--text-main);
    font-size: 1rem;
}
.hero-feature i { 
    color: var(--primary-color); 
    font-size: 1.3rem; 
}

/* --- 2. CATEGORIES SECTION --- */
.categories-section {
    padding: 80px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(204, 50, 52, 0.1) 0%, rgba(204, 50, 52, 0.05) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.category-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- 3. COURSES CAROUSEL SECTION --- */
.courses-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
    font-size: 1.05rem;
}
.view-all-link:hover { 
    gap: 10px; 
    color: var(--primary-dark); 
}

.courses-carousel {
    position: relative;
    overflow: hidden;
}

.courses-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.courses-slider::-webkit-scrollbar {
    display: none;
}

.course-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 320px;
    border: 1px solid rgba(0,0,0,0.03);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover);
}

.course-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.course-card:hover .course-image img { 
    transform: scale(1.1); 
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.course-body { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.course-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-instructor {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.course-stars {
    color: #f1c40f;
    font-size: 0.95rem;
}

.course-rating-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.course-meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.course-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.course-meta-item { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

/* Navigation carousel */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* --- 4. HOW IT WORKS (STEPS) --- */
.how-it-works-section { 
    padding: 80px 0; 
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: repeating-linear-gradient(to right, #ddd 0, #ddd 10px, transparent 10px, transparent 20px);
    z-index: 0;
}

.step-card {
    background: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 0 0 10px white;
    transition: var(--transition);
}

.step-card:hover .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-title { 
    font-weight: 700; 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
}
.step-description { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}

/* --- 5. STATS SECTION --- */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}
.stat-label { 
    font-size: 1.1rem; 
    opacity: 0.9; 
    font-weight: 500; 
}

/* --- 6. TESTIMONIALS --- */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f4f7f6 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(204,50,52,0.1) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    border-radius: 50%;
    z-index: 0;
}

.testimonials-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.8); 
    padding: 50px 40px 40px; 
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 45px rgba(204, 50, 52, 0.15);
    background: white;
    border-color: rgba(204, 50, 52, 0.3);
}

.testimonial-stars { 
    color: #ffb400; 
    margin-bottom: 25px; 
    font-size: 1.2rem;
    display: flex;
    gap: 5px;
}
.testimonial-text { 
    font-style: italic; 
    color: #4a5568; 
    line-height: 1.8; 
    margin-bottom: 30px; 
    font-size: 1.1rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}
.testimonial-author { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.testimonial-avatar {
    width: 60px; 
    height: 60px; 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800; 
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 8px 15px rgba(204, 50, 52, 0.3);
    border: 3px solid white;
}
.testimonial-name { 
    font-weight: 800; 
    color: var(--secondary-color); 
    font-size: 1.1rem; 
    letter-spacing: -0.5px;
}
.testimonial-role { 
    font-size: 0.9rem; 
    color: var(--primary-color); 
    font-weight: 600;
}

/* --- 7. CTA SECTION --- */
.cta-section { 
    padding: 100px 0; 
    background: white;
}
.cta-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: ''; 
    position: absolute; 
    top: -50%; 
    left: -10%; 
    width: 500px; 
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 70%); 
    border-radius: 50%;
}

.cta-title { 
    font-size: 2.8rem; 
    font-weight: 900; 
    margin-bottom: 15px; 
    position: relative; 
}
.cta-description { 
    font-size: 1.2rem; 
    opacity: 0.9; 
    margin-bottom: 40px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
    position: relative; 
}

.btn-cta {
    padding: 18px 40px; 
    border-radius: 50px; 
    font-weight: 700; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    transition: var(--transition);
    font-size: 1.1rem;
}
.btn-cta.primary { 
    background: var(--primary-color); 
    color: white; 
}
.btn-cta.primary:hover { 
    background: var(--primary-dark); 
    transform: scale(1.05); 
}
.btn-cta.secondary { 
    background: rgba(255,255,255,0.1); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.3); 
    margin-left: 15px; 
}
.btn-cta.secondary:hover { 
    background: white; 
    color: var(--secondary-color); 
}

/* --- 8. COMMUNITY SECTION --- */
.community-section {
    padding: 100px 0;
    background: #fcfcfc;
    overflow: hidden;
}
.community-content { 
    padding-right: 2rem; 
}
.community-badge {
    background-color: rgba(204, 50, 52, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}
.community-title { 
    font-size: 2.5rem; 
    font-weight: 800; 
    margin-bottom: 1.5rem; 
    color: var(--secondary-color); 
}
.community-text { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    line-height: 1.7; 
    margin-bottom: 2rem; 
}

.community-features { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    margin-bottom: 2.5rem; 
}
.community-feature { 
    display: flex; 
    align-items: flex-start; 
}
.community-icon {
    flex-shrink: 0; 
    width: 50px; 
    height: 50px; 
    background: white; 
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--primary-color);
    font-size: 1.5rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    margin-right: 1.2rem;
    border: 1px solid #f0f0f0;
}
.feature-content h4 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    margin-bottom: 0.3rem; 
}
.feature-content p { 
    margin-bottom: 0; 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}

.community-image-wrapper { 
    position: relative; 
}
.community-image-main {
    border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
    width: 100%;
    transform: perspective(1000px) rotateY(-5deg); 
    transition: transform 0.5s ease; 
}
.community-image-wrapper:hover .community-image-main { 
    transform: perspective(1000px) rotateY(0deg); 
}

.chat-bubble {
    position: absolute; 
    background: white; 
    padding: 15px 20px; 
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}
.chat-bubble.top-right { 
    top: 10%; 
    right: -20px; 
}
.chat-bubble.bottom-left { 
    bottom: 15%; 
    left: -30px; 
    animation-delay: 2s; 
}
@keyframes float { 
    0% { transform: translateY(0px); } 
    50% { transform: translateY(-10px); } 
    100% { transform: translateY(0px); } 
}

/* --- RESPONSIVE MOBILE --- */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    /* Hero Section */
    .hero-section {
        padding: 80px 0 60px;
    }
    .hero-title { 
        font-size: 2.5rem; 
        line-height: 1.2;
    }
    .hero-subtitle { 
        font-size: 1.1rem; 
        max-width: 100%;
    }
    .hero-image { 
        margin-top: 40px; 
    }
    .hero-arrow { 
        display: none; 
    }
    .hero-features {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    /* Courses */
    .courses-section {
        padding: 60px 0;
    }
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .course-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    /* Steps */
    .steps-container { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .steps-container::before { 
        width: 2px; 
        height: 100%; 
        top: 0; 
        left: 50%; 
        transform: translateX(-50%); 
        background: #eee; 
    }
    .step-number { 
        margin-bottom: 15px; 
    }
    
    /* Stats */
    .stats-section {
        padding: 60px 0;
    }
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px; 
    }
    
    /* Community */
    .chat-bubble { 
        display: none; 
    }
    .community-content { 
        margin-bottom: 3rem; 
        padding-right: 0; 
    }
    .community-image-main { 
        transform: none; 
    }
    .community-title {
        font-size: 2rem;
    }
    
    /* Buttons */
    .btn-hero { 
        width: 100%; 
        justify-content: center; 
        margin-left: 0 !important; 
        margin-bottom: 10px; 
    }
    .btn-cta { 
        width: 100%; 
        justify-content: center; 
        margin-left: 0 !important; 
        margin-bottom: 10px; 
    }
    
    /* Sections */
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        padding: 60px 0 40px;
    }
    .hero-title { 
        font-size: 2rem; 
        margin-bottom: 1rem;
    }
    .hero-subtitle { 
        font-size: 1rem; 
        margin-bottom: 1.5rem;
    }
    .hero-features {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .hero-feature {
        font-size: 0.9rem;
    }
    
    /* Categories */
    .categories-section {
        padding: 50px 0;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .category-card {
        padding: 20px 15px;
    }
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .category-name {
        font-size: 1rem;
    }
    
    /* Courses */
    .courses-section {
        padding: 50px 0;
    }
    .course-card {
        min-width: 100%;
        max-width: 100%;
    }
    .course-image {
        height: 180px;
    }
    .course-body {
        padding: 20px;
    }
    .course-title {
        font-size: 1.1rem;
    }
    .course-price {
        font-size: 1.1rem;
    }
    
    /* Steps */
    .how-it-works-section {
        padding: 50px 0;
    }
    .steps-container {
        gap: 30px;
    }
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .step-title {
        font-size: 1.1rem;
    }
    
    /* Stats */
    .stats-section {
        padding: 50px 0;
    }
    .stats-grid { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: 50px 0;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .testimonial-card {
        padding: 30px 20px;
    }
    
    /* Community */
    .community-section {
        padding: 50px 0;
    }
    .community-title {
        font-size: 1.8rem;
    }
    .community-text {
        font-size: 1rem;
    }
    .community-features {
        gap: 1.5rem;
    }
    .community-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 60px 0;
    }
    .cta-box {
        padding: 50px 20px;
    }
    .cta-title {
        font-size: 2rem;
    }
    .cta-description {
        font-size: 1rem;
    }
    
    /* Sections générales */
    .section-padding {
        padding: 50px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* Small Mobile (max-width: 576px) */
@media (max-width: 576px) {
    /* Hero */
    .hero-title { 
        font-size: 1.75rem; 
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sections */
    .section-title { 
        font-size: 1.6rem; 
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn-hero,
    .btn-cta {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    /* Course cards */
    .course-image {
        height: 160px;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* Community */
    .community-title {
        font-size: 1.6rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.6rem;
    }
}

/* Extra Small Mobile (max-width: 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .course-card {
        border-radius: 10px;
    }
    .category-card {
        padding: 15px 10px;
    }
}