/* ==========================================================================
   1. VARIABLES ET CONFIGURATION
   ========================================================================== */
:root {
    --bg: #f5f5ef;
    --primary: #00147a;
    --secondary: #ff7a00;
    --text: #111;
    --glass: rgba(255, 255, 255, 0.2);
    --glass-dark: rgba(255, 255, 255, 0.1);
    --transition: 0.4s ease;
}

body.dark {
    --bg: #0e1621;
    --primary: #004e2a;
    --secondary: #ff7a00;
    --text: #fff;
    --glass: rgba(0, 0, 0, 0.4);
    --glass-dark: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.premium-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--secondary);
}

.logo img { height: 40px; border-radius: 5px; }

nav a {
    margin: 0 15px;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover { color: var(--secondary); }

.nav-cta {
    padding: 8px 20px;
    background: var(--secondary);
    color: #fff !important;
    border-radius: 25px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46,107,62,0.6), rgba(255,122,0,0.4)),
                url('../images/hero.jpg') center/cover no-repeat;
    filter: blur(8px) brightness(0.4);
    transform: scale(1.1);
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    padding: 20px;
}

.hero-text { flex: 1; min-width: 300px; color: #fff; }

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    animation: fadeUp 1.2s ease forwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

video {
    width: 500px;
    border-radius: 20px;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */
section { padding: 80px 20px; max-width: 1200px; margin: auto; }

.timeline-linear {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.step {
    padding: 25px;
    border-radius: 15px;
    background: var(--primary);
    color: #fff;
    transition: var(--transition);
    cursor: pointer;
    border-left: 5px solid var(--secondary);
}

.step:hover {
    transform: translateX(10px);
    background: var(--secondary);
}

/* ==========================================================================
   FORMATEUR
   ========================================================================== */
.section-dark {
    max-width: 100%;
    background: linear-gradient(135deg, var(--primary), #1a3d27);
    color: #fff;
}

.formateur-card {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
    padding: 40px;
    border-radius: 30px;
    background: var(--glass-dark);
}

.formateur-card img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.section-alt {
    max-width: 100%;
    background: #016435;
    padding: 60px 20px;
}

.contact-card {
    max-width: 550px;
    margin: auto;
    padding: 50px;
    border-radius: 40px;
    background: #00452f;
    text-align: center;
}

.field input {
    width: 100%;
    padding: 18px;
    background: #232d28;
    border-radius: 15px;
    color: #fff;
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn-cta {
    background: var(--secondary);
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 40px;
}

.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--secondary);
    padding: 15px;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE FINAL (FUSION)
   ========================================================================== */
@media (max-width: 768px) {

    section {
        padding: 40px 15px !important;
    }

    .premium-header {
        padding: 10px 15px;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 80px 15px 40px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
    }

    video {
        width: 100% !important;
    }

    .step {
        transform: none !important;
    }

    .formateur-card {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .formateur-card img {
        width: 100%;
        height: 250px;
    }

    .contact-card {
        padding: 30px 20px;
        border-radius: 25px;
    }

    .sticky-cta {
        display: block;
    }
}

@media (max-width: 400px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
}