:root {
    --primary-green: #118c4f;
    --dark-green: #083b22;
    --neon-green: #2ecc71;
    --bg-dark: #0a0a0a;
    --text-light: #f5f6fa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --max-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.accent-neon { color: var(--neon-green); }
.accent-primary { color: var(--primary-green); }

/* Background Gradients */
.bg-gradients {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.4;
    border-radius: 50%;
    will-change: transform;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-green) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--dark-green) 0%, transparent 70%);
    animation-delay: -5s;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.6);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--neon-green);
}

.logo span {
    color: var(--neon-green);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-green), var(--neon-green));
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover,
.btn-login:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
    outline: none;
}

.btn-hero {
    margin-top: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(17, 140, 79, 0.12);
    box-shadow: 0 6px 20px rgba(17, 140, 79, 0.25);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 5% 3rem;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--neon-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-text h1 span {
    -webkit-text-fill-color: var(--neon-green);
    color: var(--neon-green);
}

.hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(46, 204, 113, 0.3));
    will-change: transform;
    animation: levitate 6s infinite ease-in-out;
}

/* Sections génériques */
.features,
.courses-showcase {
    padding: 5rem 5%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.courses-showcase {
    padding-top: 2rem;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(46, 204, 113, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Courses */
.course-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(17, 140, 79, 0.2);
}

.course-header {
    height: 120px;
    background: linear-gradient(135deg, rgba(17, 140, 79, 0.2) 0%, transparent 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--dark-green);
    color: var(--neon-green);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--primary-green);
}

.course-badge--blue {
    color: #3498db;
    border-color: #2980b9;
}

.course-badge--orange {
    color: #e67e22;
    border-color: #d35400;
}

.course-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.course-meta span i {
    color: var(--primary-green);
    margin-right: 0.4rem;
}

.catalog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Animations */
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-text p {
        margin: 0 auto 2rem;
    }
    .hero-image {
        max-width: 420px;
        margin: 0 auto;
    }
    .features,
    .courses-showcase {
        padding: 3.5rem 5%;
    }
}

@media (max-width: 640px) {
    nav {
        padding: 1rem 5%;
    }
    .logo {
        font-size: 1.4rem;
    }
    .btn-login {
        padding: 0.65rem 1.4rem;
        font-size: 0.9rem;
    }
    .hero {
        padding-top: 6rem;
    }
    .feature-card {
        padding: 1.75rem;
    }
    .section-title {
        margin-bottom: 2.5rem;
    }
}

/* Accessibilité : respect du mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .gradient-blob,
    .hero-image img {
        animation: none;
    }
}
