/* ==================== BASE ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== VARIABLES ==================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --card-bg: #ffffff;
    --nav-bg: rgba(255,255,255,0.95);
}

[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: #374151;
    --card-bg: #1F2937;
    --nav-bg: rgba(17,24,39,0.97);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.animate-fadeInUp { animation: fadeInUp 0.8s ease-out forwards; }
.animate-slideInLeft { animation: slideInLeft 0.8s ease-out forwards; }
.animate-slideInRight { animation: slideInRight 0.8s ease-out forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* ==================== GRADIENT TEXT ==================== */
.gradient-text {
    background: linear-gradient(135deg, #5B4FE8 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #5B4FE8;
}

.btn-connexion {
    padding: 8px 20px;
    border-radius: 12px;
    border: 1px solid #5B4FE8;
    color: #5B4FE8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-connexion:hover {
    background: rgba(91,79,232,0.1);
}

.btn-inscription {
    padding: 8px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5B4FE8, #8B5CF6);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-inscription:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91,79,232,0.3);
}

.btn-theme {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-theme:hover {
    background: rgba(91,79,232,0.1);
}

.icon-moon, .icon-sun {
    width: 18px;
    height: 18px;
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-blob-1 {
    position: absolute;
    top: -100px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91,79,232,0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.hero-blob-2 {
    position: absolute;
    bottom: -100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15,196,167,0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 10s ease-in-out infinite reverse;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(91,79,232,0.1);
    color: #5B4FE8;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5B4FE8, #8B5CF6);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91,79,232,0.3);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary-cta:hover {
    border-color: #5B4FE8;
    background: rgba(91,79,232,0.05);
}

.satisfaction-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    max-width: 280px;
    margin: 0 auto;
}

.satisfaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(15,196,167,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.satisfaction-value {
    font-size: 28px;
    font-weight: 800;
    color: #0FC4A7;
}

.satisfaction-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== STATS BANNER ==================== */
.stats-banner {
    background: linear-gradient(135deg, #5B4FE8, #8B5CF6);
    padding: 60px 24px;
}

.stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: white;
}

.stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

/* ==================== FEATURES ==================== */
.features-section, .how-section {
    padding: 100px 24px;
    background: var(--bg-primary);
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #5B4FE8;
    box-shadow: 0 20px 40px rgba(91,79,232,0.1);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(91,79,232,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== STEPS ==================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 56px;
}

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B4FE8, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* ==================== REVIEWS ==================== */
.reviews-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.reviews-header {
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.track-wrapper {
    overflow: hidden;
    position: relative;
}

.track-wrapper::before,
.track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.track-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-secondary), transparent);
}

.track-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-secondary), transparent);
}

.track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-left 35s linear infinite;
}

.track-2 {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-right 42s linear infinite;
    margin-top: 20px;
}

.track:hover, .track-2:hover {
    animation-play-state: paused;
}

.review-card {
    width: 340px;
    flex-shrink: 0;
    padding: 24px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: #5B4FE8;
    box-shadow: 0 20px 40px rgba(91,79,232,0.1);
}

.review-stars {
    color: #F5A623;
    font-size: 14px;
    margin-bottom: 16px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.review-name {
    font-weight: 600;
}

.review-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== MENTORS ==================== */
.mentors-section {
    padding: 100px 24px;
    background: var(--bg-primary);
}

.mentors-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-label-tag {
    font-size: 12px;
    font-weight: 700;
    color: #0FC4A7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.section-heading {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-sub-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 48px;
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mentor-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.mentor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5B4FE8, #0FC4A7);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.mentor-card:hover {
    transform: translateY(-10px);
    border-color: #5B4FE8;
}

.mentor-card:hover::before {
    transform: scaleX(1);
}

.mentor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 0 auto 16px;
    transition: transform 0.3s;
}

.mentor-card:hover .mentor-avatar {
    transform: scale(1.1);
}

.mentor-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.mentor-subject {
    font-size: 13px;
    color: #0FC4A7;
    margin-bottom: 12px;
}

.mentor-stars {
    color: #F5A623;
    font-size: 14px;
    margin-bottom: 4px;
}

.mentor-stats {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-voir-mentors {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5B4FE8, #8B5CF6);
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-top: 48px;
    transition: all 0.2s;
}

.btn-voir-mentors:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(91,79,232,0.3);
}

/* ==================== CTA ==================== */
.cta-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, #5B4FE8, #8B5CF6);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-cta-white {
    padding: 14px 28px;
    border-radius: 14px;
    background: white;
    color: #5B4FE8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-cta-outline {
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: #0A0A0F;
    color: #9CA3AF;
    padding: 60px 24px 24px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #5B4FE8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: all 0.2s;
}

.social-btn:hover {
    background: #5B4FE8;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }
    .satisfaction-card {
        margin: 40px auto 0;
    }
    .features-grid, .steps-grid, .mentors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .features-grid, .steps-grid, .mentors-grid {
        grid-template-columns: 1fr;
    }
    .stats-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}