/* ==================== GALERIE EN GRILLE ==================== */

#galerie {
    margin-top: 100px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 4rem auto;
}

.vertical-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 4rem auto;
}

.vertical-gallery-img {
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,102,255,0.12);
    transition: transform 0.3s;
}
.vertical-gallery-img:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 40px rgba(0,102,255,0.18);
}

/* ==================== FORMULAIRE MODERNE ==================== */
#form-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    padding: 8rem 2rem 4rem 2rem;
}

.form-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.12);
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-container h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-input, .form-select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--light);
    color: var(--dark);
    outline: none;
    transition: border-color 0.3s;
}
.form-input:focus, .form-select:focus {
    border-color: var(--primary);
}

.form-button {
    width: 100%;
    padding: 1rem 0;
    background: #1790fa;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
    box-shadow: none;
    letter-spacing: 0.5px;
}
.form-button:hover {
    background: #0a6ed1;
}

/* ==================== RÉINITIALISATION ==================== */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary: #0066FF;
            --secondary: #00D9FF;
            --dark: #0A0E27;
            --light: #F8FAFC;
            --gray: #64748B;
            --white: #FFFFFF;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            line-height: 1.7;
            color: var(--dark);
            background: var(--white);
            overflow-x: hidden;
        }
        
        /* ==================== NAVIGATION MODERNE ==================== */
        
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            z-index: 1000;
            border-bottom: 1px solid rgba(0, 102, 255, 0.1);
        }

        nav .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1.5rem 3rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        nav .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        nav .logo span {
            color: var(--primary);
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 3rem;
        }
        
        nav ul li a {
            color: var(--gray);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.3s;
            position: relative;
        }
        
        nav ul li a:hover {
            color: var(--primary);
        }
        
        nav ul li a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s;
        }
        
        nav ul li a:hover::after {
            width: 100%;
        }
        
        .burger-menu {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            z-index: 1001;
        }
        
        .burger-menu span {
            width: 28px;
            height: 3px;
            background: var(--dark);
            border-radius: 3px;
            transition: all 0.3s;
        }

        .burger-menu.active span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        .burger-menu.active span:nth-child(2) {
            opacity: 0;
        }
        
        .burger-menu.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }
        
        /* ==================== HERO SECTION ULTRA-MODERNE ==================== */
        
        #accueil {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 100%);
            position: relative;
            overflow: hidden;
            padding-top: 80px;
        }
        
        #accueil::before {
            content: '';
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
            top: -200px;
            right: -200px;
            border-radius: 50%;
        }
        
        #accueil::after {
            content: '';
            position: absolute;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
            bottom: -100px;
            left: -100px;
            border-radius: 50%;
        }

        .hero-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 3rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }
        
        .hero-text h1 {
            font-size: 4.5rem;
            font-weight: 800;
            color: var(--white);
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -0.02em;
        }
        
        .hero-text h1 .highlight {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-text p {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 2.5rem;
            line-height: 1.8;
        }
        
        .hero-buttons {
            display: flex;
            gap: 1rem;
        }

        .btn-primary {
            padding: 1rem 2.5rem;
            background: var(--primary);
            color: var(--white);
            border: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s;
            box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
        }
        
        .btn-secondary {
            padding: 1rem 2.5rem;
            background: transparent;
            color: var(--white);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s;
        }

        .btn-secondary:hover {
            border-color: var(--primary);
            background: rgba(0, 102, 255, 0.1);
        }

        .hero-image {
            position: relative;
        }

        .hero-image img {
            width: 100%;
            height: auto;
            border-radius: 24px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
        }

        /* ==================== FORMATIONS MODERNE ==================== */
        
        #formations {
            padding: 8rem 3rem;
            background: var(--light);
        }

        .section-header {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 5rem;
        }

        .section-header .tag {
            display: inline-block;
            padding: 0.5rem 1.5rem;
            background: rgba(0, 102, 255, 0.1);
            color: var(--primary);
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
        }

        .section-header h2 {
            font-size: 3rem;
            font-weight: 800;
            color: var(--dark);
            margin-bottom: 1rem;
            letter-spacing: -0.02em;
        }
        
        .section-header p {
            font-size: 1.1rem;
            color: var(--gray);
        }
        
        .formations-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .formation-card {
            background: var(--white);
            border-radius: 24px;
            overflow: hidden;
            transition: all 0.4s;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        .formation-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
        }
        
        .formation-card .image {
            width: 100%;
            height: 240px;
            overflow: hidden;
            position: relative;
        }

        .formation-card .image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s;
        }

        .formation-card:hover .image img {
            transform: scale(1.1);
        }

        .formation-card .content {
            padding: 2rem;
        }
        
        .formation-card .badge {
            display: inline-block;
            padding: 0.4rem 1rem;
            background: rgba(0, 102, 255, 0.1);
            color: var(--primary);
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .formation-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 1rem;
        }

        .formation-card p {
            color: var(--gray);
            line-height: 1.7;
            margin-bottom: 1.5rem;
        }
        
        .formation-card .learn-more {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: gap 0.3s;
        }

        .formation-card .learn-more:hover {
            gap: 1rem;
        }

        /* ==================== ÉVÉNEMENTS TIMELINE ==================== */
        #evenements {
            padding: 8rem 3rem;
            background: var(--white);
        }
        
        .events-container {
            max-width: 1000px;
            margin: 0 auto;
            position: relative;
        }
        
        .events-container::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
            transform: translateX(-50%);
        }

        .event-item {
            display: flex;
            align-items: center;
            margin-bottom: 4rem;
            position: relative;
        }
        
        .event-item:nth-child(odd) {
            flex-direction: row-reverse;
        }

        .event-date {
            flex: 0 0 45%;
            text-align: right;
            padding-right: 3rem;
        }
        
        .event-item:nth-child(odd) .event-date {
            text-align: left;
            padding-left: 3rem;
            padding-right: 0;
        }

        .event-date .date-badge {
            display: inline-block;
            padding: 1rem 2rem;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--white);
            border-radius: 16px;
            font-weight: 700;
            font-size: 1.5rem;
            box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
        }

        .event-dot-top {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: var(--primary);
            border: 4px solid var(--white);
            border-radius: 50%;
            box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.2);
            margin-left: 25px;
        }
        
        .event-dot-toe {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: var(--primary);
            border: 4px solid var(--white);
            border-radius: 50%;
            box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.2);
            margin-right: 25px;
        }

        .event-content {
            flex: 0 0 45%;
            background: var(--light);
            padding: 2.5rem;
            border-radius: 20px;
            border-left: 4px solid var(--primary);
            margin-left: 32px;
        }

        .event-content h3 {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 1rem;
        }
        
        .event-content p {
            color: var(--gray);
            line-height: 1.8;
        }
        
        /* ==================== CONTACT MODERNE ==================== */
        
        #contact {
            padding: 8rem 3rem;
            background: linear-gradient(135deg, var(--dark) 0%, #1a1f3a 100%);
            position: relative;
            overflow: hidden;
        }

        #contact::before {
            content: '';
            position: absolute;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
            top: -100px;
            right: -100px;
            border-radius: 50%;
        }

        .contact-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            position: relative;
            z-index: 1;
        }
        
        .contact-info-section h2 {
            font-size: 3rem;
            font-weight: 800;
            color: var(--white);
            margin-bottom: 1.5rem;
            letter-spacing: -0.02em;
        }
        
        .contact-info-section p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.1rem;
            margin-bottom: 3rem;
            line-height: 1.8;
        }
        
        .info-cards {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .info-card {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .info-card .icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0;
        }
        
        .info-card .text h3 {
            color: var(--white);
            font-weight: 600;
            margin-bottom: 0.3rem;
        }

        .info-card .text p {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.95rem;
            margin: 0;
        }

        .contact-form-section {
            background: var(--white);
            padding: 3rem;
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s;
            background: var(--light);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            background: var(--white);
            box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }
        
        .submit-btn {
            width: 100%;
            padding: 1.2rem;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--white);
            border: none;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
        }

        /* ==================== FOOTER MINIMALISTE ==================== */
        
        footer {
            background: var(--dark);
            color: rgba(255, 255, 255, 0.6);
            text-align: center;
            padding: 3rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        footer p {
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }

        /* ==================== RESPONSIVE ==================== */
        @media (max-width: 1024px) {
            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-text h1 {
                font-size: 3rem;
            }

            .hero-buttons {
                justify-content: center;
            }

            .formations-grid {
                grid-template-columns: 1fr;
            }

            .contact-wrapper {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            nav .container {
                padding: 1rem 1.5rem;
            }

            .burger-menu {
                display: flex;
            }

            nav ul {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                height: 100vh;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 2rem;
                transition: right 0.4s ease;
                box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
            }

            nav ul.active {
                right: 0;
            }

            nav ul li a {
                font-size: 1.5rem;
            }

            nav ul li a::after {
                display: none;
            }

            .hero-text h1 {
                font-size: 2.5rem;
            }

            .section-header h2 {
                font-size: 2rem;
            }

            #formations, #evenements, #contact {
                padding: 4rem 1.5rem;
            }

            .events-container::before {
                display: none;
            }

            .event-item,
            .event-item:nth-child(odd) {
                flex-direction: column;
            }

            .event-date,
            .event-item:nth-child(odd) .event-date {
                text-align: center;
                padding: 0;
                margin-bottom: 1.5rem;
            }

            .event-content {
                width: 100%;
            }

            .event-dot {
                display: none;
            }
        }