{% load static %}
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Cycle Ingénieurs ESSIG - 20 formations d'excellence en ingénierie moderne">
    <title>Cycle Ingénieurs | ESSIG</title>
    <link rel="shortcut icon" type="image/jpeg" href="{% static 'img/logo-removebg-preview.png' %}">
    
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet">

    <style>
        :root {
            --color-primary: #205397;
            --color-accent: #e90707;
            --color-dark: #1E1E1E;
            --color-light-blue: #4A90E2;
            --color-white: #FFFFFF;
            --font-main: "Roboto", sans-serif;
            --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
            --shadow-md: 0 10px 35px rgba(0,0,0,0.1);
            --shadow-lg: 0 20px 45px rgba(0,0,0,0.12);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-main);
            color: var(--color-dark);
            background: var(--color-white);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* ========== DESIGN PARTICULIER ========== */
        
        .hero {
            padding: 140px 0;
            background: linear-gradient(135deg, rgba(32,83,151,0.92), rgba(30,30,30,0.88)), 
                        url('https://images.unsplash.com/photo-1581091226033-d5c48150dbaa?q=80&w=1400&auto=format&fit=crop');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: var(--color-white);
            position: relative;
            clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 0% 100%);
            margin-bottom: -2px;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 40%, rgba(74,144,226,0.15), transparent);
            pointer-events: none;
        }

        .hero-badge {
            display: inline-block;
            background: var(--color-accent);
            color: white;
            padding: 8px 24px;
            border-radius: 40px;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 1px;
            margin-bottom: 25px;
            text-transform: uppercase;
            box-shadow: 0 4px 15px rgba(233,7,7,0.3);
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 900;
            line-height: 1.2;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .hero p {
            max-width: 700px;
            margin: auto;
            font-size: 1.2rem;
            opacity: 0.95;
        }

        .btn-custom {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--color-accent);
            color: white;
            padding: 14px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 35px;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .btn-custom:hover {
            background: transparent;
            border-color: var(--color-accent);
            color: var(--color-accent);
            transform: translateY(-3px);
        }

        .btn-outline-custom {
            background: transparent;
            border: 2px solid var(--color-primary);
            color: var(--color-primary);
            padding: 10px 24px;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .btn-outline-custom:hover {
            background: var(--color-primary);
            color: white;
            transform: translateY(-2px);
        }

        .section {
            padding: 100px 0;
            position: relative;
        }

        .section-alt {
            background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
        }

        .title {
            font-size: 2.3rem;
            font-weight: 800;
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .title span {
            color: var(--color-primary);
            position: relative;
        }

        .title span::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--color-accent);
            border-radius: 3px;
        }

        .line {
            width: 70px;
            height: 4px;
            background: var(--color-accent);
            border-radius: 4px;
            margin: 20px 0 30px 0;
        }

        .line-center {
            margin-left: auto;
            margin-right: auto;
        }

        /* Formation Cards */
        .formation-card {
            background: white;
            border-radius: 20px;
            padding: 25px;
            transition: var(--transition);
            border: 1px solid rgba(32,83,151,0.1);
            height: 100%;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .formation-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
            transform: scaleX(0);
            transition: var(--transition);
        }

        .formation-card:hover::before {
            transform: scaleX(1);
        }

        .formation-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }

        .formation-icon {
            width: 55px;
            height: 55px;
            background: linear-gradient(135deg, rgba(32,83,151,0.12), rgba(74,144,226,0.08));
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .formation-icon i {
            font-size: 1.8rem;
            color: var(--color-primary);
        }

        .formation-card h4 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0;
            color: var(--color-dark);
        }

        /* Info Cards */
        .info-card {
            background: white;
            padding: 30px;
            border-radius: 24px;
            box-shadow: var(--shadow-sm);
            height: 100%;
            border-left: 4px solid var(--color-accent);
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 900;
            color: var(--color-accent);
        }

        /* Programme Tabs */
        .nav-tabs .nav-link {
            color: var(--color-dark);
            font-weight: 600;
            padding: 12px 28px;
            border-radius: 40px;
            margin: 0 5px;
        }

        .nav-tabs .nav-link.active {
            color: var(--color-accent);
            background: white;
            border-color: var(--color-accent);
            box-shadow: var(--shadow-sm);
        }

        .table-program {
            width: 100%;
            margin-bottom: 1rem;
            border-collapse: collapse;
        }

        .table-program thead {
            background-color: var(--color-primary);
            color: white;
        }

        .table-program thead th {
            padding: 12px 15px;
            font-weight: 600;
        }

        .table-program tbody td {
            padding: 10px 15px;
            border-bottom: 1px solid #e0e0e0;
        }

        .table-program tbody tr:hover {
            background: rgba(32,83,151,0.05);
        }

        .skill-tag {
            display: inline-block;
            background: rgba(32,83,151,0.1);
            color: var(--color-primary);
            padding: 8px 18px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 500;
            margin: 5px;
            transition: var(--transition);
        }

        .skill-tag:hover {
            background: var(--color-primary);
            color: white;
            transform: translateY(-2px);
        }

        .decorative-line {
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
            margin: 0;
        }

        /* Search & Filter */
        .search-box {
            position: relative;
            margin-bottom: 30px;
        }

        .search-box input {
            width: 100%;
            padding: 15px 20px 15px 50px;
            border: 2px solid #e0e0e0;
            border-radius: 50px;
            font-size: 1rem;
            transition: var(--transition);
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px rgba(32,83,151,0.1);
        }

        .search-box i {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--color-primary);
            font-size: 1.2rem;
        }

        .filter-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
            justify-content: center;
        }

        .filter-btn {
            background: #f0f2f5;
            border: none;
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 500;
            transition: var(--transition);
            color: var(--color-dark);
        }

        .filter-btn.active, .filter-btn:hover {
            background: var(--color-primary);
            color: white;
        }

        /* Animation */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-on-scroll {
            animation: fadeInUp 0.6s ease-out forwards;
        }

        /* Responsive */
        @media (max-width: 991px) {
            .hero { padding: 100px 0; clip-path: polygon(0% 0%, 100% 0%, 100% 95%, 0% 100%); }
            .hero h1 { font-size: 2.5rem; }
            .title { font-size: 1.9rem; }
            .section { padding: 70px 0; }
        }

        @media (max-width: 768px) {
            .hero { padding: 80px 0; background-attachment: scroll; }
            .hero h1 { font-size: 1.9rem; }
            .hero p { font-size: 1rem; }
            .title { font-size: 1.7rem; }
            .stat-number { font-size: 2rem; }
            .table-program thead th,
            .table-program tbody td { padding: 8px 10px; font-size: 0.85rem; }
            .formation-card h4 { font-size: 0.95rem; }
        }

        @media (max-width: 576px) {
            .hero h1 { font-size: 1.6rem; }
            .title { font-size: 1.5rem; }
            .section { padding: 50px 0; }
        }

        ::-webkit-scrollbar { width: 10px; }
        ::-webkit-scrollbar-track { background: #f1f1f1; }
        ::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }
    </style>

</head>
<body>

{% include 'includes/navbar.html' %}

<div class="decorative-line"></div>

<!-- HERO SECTION -->
<section class="hero">
    <div class="container">
        <div class="hero-badge">
            <i class="fas fa-microchip me-2"></i> Formation d'Excellence
        </div>
        <h1>Cycle Ingénieurs <br>& Technologies</h1>
        <p>
            20 formations spécialisées pour former les ingénieurs de demain.
            Programme intensif sur 2 ans alliant théorie et pratique.
        </p>
        <a href="#formations" class="btn-custom">
            Découvrir les formations <i class="fas fa-arrow-right"></i>
        </a>
    </div>
</section>

<!-- PRÉSENTATION + INFOS PRATIQUES -->
<section class="section">
    <div class="container">
        <div class="row align-items-center g-5">
            <div class="col-lg-6 order-lg-1 order-2">
                <div class="animate-on-scroll">
                    <h2 class="title">
                        Pourquoi choisir le <span>Cycle Ingénieurs ?</span>
                    </h2>
                    <div class="line"></div>
                    <p style="line-height: 1.9; color: #555; font-size: 1.05rem;">
                        Le Cycle Ingénieurs de l'ESSIG forme des professionnels capables de répondre 
                        aux défis technologiques du 21ème siècle. Une pédagogie innovante et des 
                        infrastructures modernes.
                    </p>
                    <p style="line-height: 1.9; color: #555; margin-top: 20px;">
                        Nos étudiants bénéficient d'un encadrement personnalisé, de projets concrets 
                        et de stages en entreprise pour une insertion professionnelle réussie.
                    </p>
                    <div class="mt-4 d-flex flex-wrap gap-3">
                        <div><i class="fas fa-check-circle me-2" style="color: var(--color-accent);"></i> <span class="fw-semibold">Diplôme reconnu par l'État</span></div>
                        <div><i class="fas fa-check-circle me-2" style="color: var(--color-accent);"></i> <span class="fw-semibold">Laboratoires de pointe</span></div>
                        <div><i class="fas fa-check-circle me-2" style="color: var(--color-accent);"></i> <span class="fw-semibold">Partenariats internationaux</span></div>
                    </div>
                </div>
            </div>
            <div class="col-lg-6 order-lg-2 order-1">
                <img src="https://images.unsplash.com/photo-1581092335871-4c8a1f8c2b9a?q=80&w=1200&auto=format&fit=crop"
                     class="img-fluid rounded-4 shadow-lg w-100"
                     alt="Cycle Ingénieurs ESSIG">
            </div>
        </div>
    </div>
</section>


<!-- NOS 20 FORMATIONS -->
<section id="formations" class="section">
    <div class="container">
        <div class="text-center mb-5">
            <h2 class="title">Nos <span>20 Formations</span> d'Ingénieurs</h2>
            <div class="line line-center"></div>
            <p class="text-secondary">Découvrez l'ensemble de nos spécialités proposées</p>
        </div>

        <!-- Search & Filter -->
        <div class="search-box">
            <i class="fas fa-search"></i>
            <input type="text" id="searchInput" placeholder="Rechercher une formation...">
        </div>
        
        <div class="filter-buttons">
            <button class="filter-btn active" data-filter="all">Toutes</button>
            <button class="filter-btn" data-filter="informatique">Informatique & Data</button>
            <button class="filter-btn" data-filter="ingenierie">Ingénierie & Systèmes</button>
            <button class="filter-btn" data-filter="energie">Énergie & Environnement</button>
            <button class="filter-btn" data-filter="sante">Santé & Biomedical</button>
        </div>

        <div class="row g-4" id="formationsContainer">
            <!-- Informatique & Data -->
            <div class="col-lg-4 col-md-6" data-category="informatique">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-database"></i></div>
                    <h4>DATA INTELLIGENCE</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="informatique">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-shield-alt"></i></div>
                    <h4>CYBER SÉCURITÉ</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="informatique">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-brain"></i></div>
                    <h4>I.A ET AIDE DE LA DÉCISION</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="informatique">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-cloud"></i></div>
                    <h4>CLOUD, SYSTÈME ET SÉCURITÉ</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="informatique">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-chart-line"></i></div>
                    <h4>DATA SCIENCE, MULTIMÉDIA & TÉLÉCOM</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="informatique">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-code"></i></div>
                    <h4>LOGICIEL ET DONNÉES</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="informatique">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-network-wired"></i></div>
                    <h4>TECHNOLOGIE DE L'INFORMATION</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="informatique">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-server"></i></div>
                    <h4>RÉSEAUX INFORMATIQUE</h4>
                </div>
            </div>

            <!-- Ingénierie & Systèmes -->
            <div class="col-lg-4 col-md-6" data-category="ingenierie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-chart-simple"></i></div>
                    <h4>INGÉNIERIE D'AFFAIRES & PILOTAGE DE PROJETS</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="ingenierie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-car"></i></div>
                    <h4>TRANSPORTS ET VÉHICULE INTELLIGENTS</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="ingenierie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-microchip"></i></div>
                    <h4>ÉLECTRONIQUE ET OBJETS CONNECTÉS</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="ingenierie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-microchip"></i></div>
                    <h4>SYSTÈMES EMBARQUÉS</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="ingenierie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-industry"></i></div>
                    <h4>INDUSTRIE 4.0</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="ingenierie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-car"></i></div>
                    <h4>ÉLECTRONIQUE DES SYSTÈMES AUTOMOBILE & AÉRONAUTIQUE</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="ingenierie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-cogs"></i></div>
                    <h4>CONCEPTION ET INDUSTRIALISATION DES SYSTÈMES MÉCANIQUES</h4>
                </div>
            </div>

            <!-- Énergie & Environnement -->
            <div class="col-lg-4 col-md-6" data-category="energie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-bolt"></i></div>
                    <h4>ÉNERGIE ET ENVIRONNEMENT</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="energie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-city"></i></div>
                    <h4>SMART CITY</h4>
                </div>
            </div>

            <!-- Santé & Biomedical -->
            <div class="col-lg-4 col-md-6" data-category="sante">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-heartbeat"></i></div>
                    <h4>BIOMEDICAL</h4>
                </div>
            </div>
            <div class="col-lg-4 col-md-6" data-category="sante">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-hospital"></i></div>
                    <h4>E-SANTÉ</h4>
                </div>
            </div>

            <!-- Finances -->
            <div class="col-lg-4 col-md-6" data-category="ingenierie">
                <div class="formation-card">
                    <div class="formation-icon"><i class="fas fa-chart-line"></i></div>
                    <h4>INGÉNIERIE DES FINANCIES</h4>
                </div>
            </div>
        </div>

        <div class="text-center mt-4">
            <p class="text-muted" id="resultCount">20 formations trouvées</p>
        </div>
    </div>
</section>

<!-- PROGRAMME DE FORMATION -->
<section class="section section-alt">
    <div class="container">
        <div class="text-center mb-5">
            <h2 class="title">Programme <span>de formation</span></h2>
            <div class="line line-center"></div>
            <p class="text-secondary">Formation préparatoire intensive avec encadrement rapproché et pédagogie active</p>
        </div>
        
        <ul class="nav nav-tabs mb-4 justify-content-center" id="programTab" role="tablist">
            <li class="nav-item">
                <button class="nav-link active fw-bold" data-bs-toggle="tab" data-bs-target="#scientific">Formation Scientifique</button>
            </li>
            <li class="nav-item">
                <button class="nav-link fw-bold" data-bs-toggle="tab" data-bs-target="#personal">Développement Personnel</button>
            </li>
        </ul>
        
        <div class="tab-content bg-white p-4 rounded-4 shadow-sm">
            <div class="tab-pane fade show active" id="scientific">
                <div class="table-responsive">
                    <table class="table-program">
                        <thead>
                            <tr><th>Matière</th><th>Volume horaire</th><th>Crédits</th></tr>
                        </thead>
                        <tbody>
                            <tr><td>Mathématiques</td><td>240h</td><td>20</td></tr>
                            <tr><td>Physiques</td><td>200h</td><td>18</td></tr>
                            <tr><td>Informatique</td><td>60h</td><td>6</td></tr>
                            <tr><td>Sciences et techniques de l'Ingénieur</td><td>60h</td><td>6</td></tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="personal">
                <div class="table-responsive">
                    <table class="table-program">
                        <thead><tr><th>Matière</th><th>Volume horaire</th><th>Crédits</th></tr></thead>
                        <tbody>
                            <tr><td>Communication et entreprise</td><td>60h</td><td>5</td></tr>
                            <tr><td>Institutions Européennes et Internationales</td><td>30h</td><td>3</td></tr>
                            <tr><td>Première langue</td><td>60h</td><td>5</td></tr>
                            <tr><td>Deuxième langue</td><td>30h</td><td>3</td></tr>
                            <tr><td>Contrôle continu</td><td>110h</td><td>8</td></tr>
                            <tr><td>Stage en entreprise</td><td>240h</td><td>12</td></tr>
                            <tr><td>Stage à l'étranger</td><td>4 semaines</td><td>6</td></tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- SECTEURS D'ACTIVITÉ -->
<section class="section">
    <div class="container">
        <div class="text-center mb-5">
            <h2 class="title">Secteurs <span>d'activité</span></h2>
            <div class="line line-center"></div>
            <p class="text-secondary">Les domaines où nos ingénieurs excellent</p>
        </div>
        <div class="text-center">
            <div class="skill-tag"><i class="fas fa-microchip me-2"></i>Technologies de pointe</div>
            <div class="skill-tag"><i class="fas fa-shield-alt me-2"></i>Cybersécurité</div>
            <div class="skill-tag"><i class="fas fa-brain me-2"></i>Intelligence Artificielle</div>
            <div class="skill-tag"><i class="fas fa-cloud me-2"></i>Cloud Computing</div>
            <div class="skill-tag"><i class="fas fa-car me-2"></i>Automobile & Aéronautique</div>
            <div class="skill-tag"><i class="fas fa-bolt me-2"></i>Énergies renouvelables</div>
            <div class="skill-tag"><i class="fas fa-heartbeat me-2"></i>MedTech & E-Santé</div>
            <div class="skill-tag"><i class="fas fa-chart-line me-2"></i>FinTech</div>
        </div>
    </div>
</section>

<!-- CONDITIONS D'ADMISSION + PIÈCES À FOURNIR -->
<section class="section section-alt">
    <div class="container">
        <div class="row g-5">
            <div class="col-lg-6">
                <h2 class="title">Conditions <span>d'admission</span></h2>
                <div class="line"></div>
                <div class="info-card">
                    <ul class="list-unstyled">
                        <li class="mb-3"><i class="fas fa-check-circle me-2" style="color: var(--color-accent);"></i> Être titulaire du BAC (séries C, D, E, F, ou équivalent)</li>
                        <li class="mb-3"><i class="fas fa-check-circle me-2" style="color: var(--color-accent);"></i> Avoir de bonnes bases en mathématiques et physique</li>
                        <li class="mb-3"><i class="fas fa-check-circle me-2" style="color: var(--color-accent);"></i> Admission sur dossier et entretien de motivation</li>
                        <li class="mb-3"><i class="fas fa-check-circle me-2" style="color: var(--color-accent);"></i> Âge maximum : 25 ans pour les primo-inscrits</li>
                    </ul>
                </div>
            </div>
            <div class="col-lg-6">
                <h2 class="title">Pièces à <span>fournir</span></h2>
                <div class="line"></div>
                <div class="info-card">
                    <ul class="list-unstyled">
                        <li class="mb-3"><i class="fas fa-file-alt me-2" style="color: var(--color-accent);"></i> Fiche d'inscription dûment remplie</li>
                        <li class="mb-3"><i class="fas fa-certificate me-2" style="color: var(--color-accent);"></i> Copie certifiée du BAC ou diplôme équivalent</li>
                        <li class="mb-3"><i class="fas fa-id-card me-2" style="color: var(--color-accent);"></i> Copie de la CNI ou passeport</li>
                        <li class="mb-3"><i class="fas fa-baby me-2" style="color: var(--color-accent);"></i> Copie de l'acte de naissance</li>
                        <li class="mb-3"><i class="fas fa-portrait me-2" style="color: var(--color-accent);"></i> 4 photos d'identité récentes</li>
                        <li class="mb-3"><i class="fas fa-heartbeat me-2" style="color: var(--color-accent);"></i> Certificat médical de moins de 3 mois</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- CTA FINAL -->
<section style="padding: 80px 0; background: linear-gradient(135deg, var(--color-primary) 0%, #0d2a4d 100%); color: white; text-align: center;">
    <div class="container">
        <h2 style="font-size: 2.2rem; font-weight: 800; margin-bottom: 20px;">Prêt à devenir ingénieur ?</h2>
        <p style="font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; opacity: 0.9;">Inscrivez-vous dès maintenant pour intégrer le Cycle Ingénieurs de l'ESSIG</p>
        <div class="d-flex gap-3 justify-content-center flex-wrap">
            <a href="{% url 'postuler' %}" class="btn-custom" style="background: transparent; border-color: white; margin-top: 0;">
                <i class="fas fa-calendar-alt"></i> Pré-inscription en ligne
            </a>
        </div>
    </div>
</section>

{% include 'includes/footer.html' %}

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>

<script>
    // Animation au scroll
    (function() {
        const animatedElements = document.querySelectorAll('.animate-on-scroll');
        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if(entry.isIntersecting) {
                    entry.target.style.opacity = '1';
                    entry.target.style.transform = 'translateY(0)';
                }
            });
        }, { threshold: 0.2 });
        
        animatedElements.forEach(el => {
            el.style.opacity = '0';
            el.style.transform = 'translateY(30px)';
            el.style.transition = 'all 0.6s ease-out';
            observer.observe(el);
        });
    })();

    // Filtrage des formations
    const searchInput = document.getElementById('searchInput');
    const filterBtns = document.querySelectorAll('.filter-btn');
    const formations = document.querySelectorAll('#formationsContainer .col-lg-4');
    const resultCount = document.getElementById('resultCount');

    let currentFilter = 'all';

    function filterFormations() {
        const searchTerm = searchInput.value.toLowerCase();
        let visibleCount = 0;

        formations.forEach(formation => {
            const title = formation.querySelector('h4').textContent.toLowerCase();
            const category = formation.dataset.category;
            
            const matchesFilter = currentFilter === 'all' || category === currentFilter;
            const matchesSearch = title.includes(searchTerm);
            
            if (matchesFilter && matchesSearch) {
                formation.style.display = '';
                visibleCount++;
            } else {
                formation.style.display = 'none';
            }
        });
        
        resultCount.textContent = `${visibleCount} formation${visibleCount > 1 ? 's' : ''} trouvée${visibleCount > 1 ? 's' : ''}`;
    }

    // Événements de recherche
    searchInput.addEventListener('input', filterFormations);

    // Événements des filtres
    filterBtns.forEach(btn => {
        btn.addEventListener('click', () => {
            filterBtns.forEach(b => b.classList.remove('active'));
            btn.classList.add('active');
            currentFilter = btn.dataset.filter;
            filterFormations();
        });
    });
</script>

</body>
</html>