{% load static %}
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BTS - ES-ESSIG | Formation Pratique & Professionnelle</title>
    
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
    
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- Font Awesome Icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <!-- Variables CSS Globales -->
    <style>
        :root {
            --color-primary: #205397;
            --color-accent: #e90707;
            --color-dark: #1E1E1E;
            --color-light-blue: #4A90E2;
            --color-white: #FFFFFF;
            --font-main: "Roboto", sans-serif;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: var(--font-main);
            background-color: #f8f9fa;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        
        main {
            flex: 1;
        }
        
        /* Animations */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-50px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        .animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
        .animate-slideInLeft { animation: slideInLeft 0.8s ease forwards; }
        .delay-1 { animation-delay: 0.2s; opacity: 0; }
        .delay-2 { animation-delay: 0.4s; opacity: 0; }
        .delay-3 { animation-delay: 0.6s; opacity: 0; }
        
        /* Bouton personnalisé */
        .btn-custom {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--color-accent);
            color: white;
            padding: 12px 28px;
            border-radius: 40px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .btn-custom:hover {
            background: #cc0000;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(233,7,7,0.3);
        }
        
        .btn-outline {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: transparent;
            border: 2px solid var(--color-primary);
            color: var(--color-primary);
            padding: 10px 24px;
            border-radius: 40px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn-outline:hover {
            background: var(--color-primary);
            color: white;
            transform: translateY(-2px);
        }
    </style>
</head>
<body>
    
    <!-- Navigation -->
    {% include 'includes/navbar.html' %}
    
    <!-- Contenu principal -->
    <main>
        <!-- =========================
             🎯 HERO SECTION - BTS
        ========================== -->
        <section style="position: relative; background: linear-gradient(135deg, var(--color-primary) 0%, #0d2a4d 100%); padding: 80px 0; overflow: hidden; min-height: 450px;">
            
            <div style="position: absolute; top: 0; right: 0; width: 50%; height: 100%; overflow: hidden;">
                <div style="position: absolute; top: 0; right: 0; width: 100%; height: 100%; background-image: url('https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?w=1600&h=900&fit=crop'); background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover;">
                </div>
                <div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(13,42,77,0.3) 0%, rgba(13,42,77,0.1) 100%);"></div>
            </div>
            
            <div class="container" style="position: relative; z-index: 2;">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="animate-slideInLeft" style="background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); border-radius: 30px; padding: 45px 40px; box-shadow: 0 25px 50px rgba(0,0,0,0.2);">
                            
                            <div style="display: inline-block; background: var(--color-accent); color: white; padding: 6px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px;">
                                <i class="fas fa-graduation-cap" style="margin-right: 8px;"></i> Diplôme d'État
                            </div>
                            
                            <h1 style="font-size: 2.8rem; font-weight: 800; color: var(--color-dark); margin-bottom: 15px;">
                                BTS <span style="color: var(--color-primary);">(Bac +2)</span>
                            </h1>
                            
                            <div style="width: 70px; height: 4px; background: var(--color-accent); margin-bottom: 25px; border-radius: 2px;"></div>
                            
                            <p style="font-size: 1rem; color: #444; line-height: 1.7; margin-bottom: 20px;">
                                Le Brevet de Technicien Supérieur est un diplôme national qui se prépare en <strong>2 ans</strong> après le baccalauréat.
                            </p>
                            
                            <p style="font-size: 0.95rem; color: #555; line-height: 1.6; margin-bottom: 30px;">
                                Formation courte et professionnalisante, le BTS permet une insertion rapide dans le monde du travail ou une poursuite d'études en Licence.
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- =========================
             🎯 SECTION POURQUOI CHOISIR CE PARCOURS
        ========================== -->
        <section style="padding: 80px 0; background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); position: relative; overflow: hidden;">
            <div class="container" style="position: relative; z-index: 2;">
                <div class="row g-5">
                    <div class="col-lg-6">
                        <div class="animate-fadeInUp">
                            <h2 style="font-size: 2rem; font-weight: 800; color: var(--color-dark); margin-bottom: 15px;">
                                Pourquoi choisir <span style="color: var(--color-primary);">le BTS à ES-ESSIG?</span>
                            </h2>
                            <div style="width: 60px; height: 3px; background: var(--color-accent); margin-bottom: 25px;"></div>
                            <p style="color: #555; line-height: 1.7; margin-bottom: 20px;">
                                Notre programme BTS met l'accent sur la pratique professionnelle et l'acquisition de compétences directement opérationnelles en entreprise.
                            </p>
                            <p style="color: #555; line-height: 1.7; margin-bottom: 30px;">
                                Encadrés par des professionnels et des enseignants expérimentés, nos étudiants bénéficient d'un suivi personnalisé pour garantir leur réussite.
                            </p>
                        </div>
                        
                        <div class="row g-4">
                            <div class="col-md-6">
                                <div class="animate-fadeInUp delay-1" style="background: white; border-radius: 20px; padding: 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.3s ease; height: 100%; border-left: 4px solid var(--color-accent);">
                                    <div style="width: 50px; height: 50px; background: linear-gradient(135deg, rgba(32,83,151,0.1), rgba(74,144,226,0.1)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px;">
                                        <i class="fas fa-briefcase" style="font-size: 1.5rem; color: var(--color-primary);"></i>
                                    </div>
                                    <h4 style="font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--color-dark);">Insertion Professionnelle</h4>
                                    <p style="color: #666; font-size: 0.85rem; line-height: 1.5;">
                                        Le BTS est conçu pour répondre aux besoins réels des entreprises, facilitant ainsi votre premier emploi.
                                    </p>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="animate-fadeInUp delay-2" style="background: white; border-radius: 20px; padding: 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.3s ease; height: 100%; border-left: 4px solid var(--color-accent);">
                                    <div style="width: 50px; height: 50px; background: linear-gradient(135deg, rgba(32,83,151,0.1), rgba(74,144,226,0.1)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px;">
                                        <i class="fas fa-tools" style="font-size: 1.5rem; color: var(--color-primary);"></i>
                                    </div>
                                    <h4 style="font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--color-dark);">Pratique Intensive</h4>
                                    <p style="color: #666; font-size: 0.85rem; line-height: 1.5;">
                                        Travaux pratiques, stages en entreprise et projets concrets sont au cœur de notre pédagogie.
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-lg-6">
                        <div class="animate-fadeInUp delay-1" style="background: white; border-radius: 24px; padding: 35px; box-shadow: 0 15px 35px rgba(0,0,0,0.08);">
                            <h2 style="font-size: 1.8rem; font-weight: 800; color: var(--color-dark); margin-bottom: 10px;">
                                Coûts et <span style="color: var(--color-primary);">Admission</span>
                            </h2>
                            <div style="width: 60px; height: 3px; background: var(--color-accent); margin-bottom: 25px;"></div>
                            
                            <!-- Accordéon -->
                            <div style="border: 1px solid #e0e0e0; border-radius: 16px; margin-bottom: 15px; overflow: hidden;">
                                <div class="accordion-header" style="background: #f8f9fa; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;" onclick="toggleAccordion(this)">
                                    <span style="font-weight: 700; color: var(--color-dark);"><i class="fas fa-euro-sign" style="color: var(--color-accent); margin-right: 10px;"></i> Frais de scolarité</span>
                                    <span class="accordion-icon" style="font-size: 1.2rem; color: var(--color-primary);">+</span>
                                </div>
                                <div class="accordion-content" style="padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease;">
                                    <div style="padding: 20px 0;">
                                        <p style="margin-bottom: 5px; color: #555;">Droit d'inscription: <strong>35 000 F CFA / an</strong></p>
                                        <p style="color: #555;">Frais de scolarité: <strong>450 000 F CFA / an</strong></p>
                                    </div>
                                </div>
                            </div>
                            
                            <div style="border: 1px solid #e0e0e0; border-radius: 16px; overflow: hidden;">
                                <div class="accordion-header" style="background: #f8f9fa; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;" onclick="toggleAccordion(this)">
                                    <span style="font-weight: 700; color: var(--color-dark);"><i class="fas fa-file-alt" style="color: var(--color-accent); margin-right: 10px;"></i> Pièces à fournir</span>
                                    <span class="accordion-icon" style="font-size: 1.2rem; color: var(--color-primary);">+</span>
                                </div>
                                <div class="accordion-content" style="padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease;">
                                    <div style="padding: 20px 0;">
                                        <ul style="list-style: none; padding: 0; font-size: 0.9rem; color: #555;">
                                            <li style="margin-bottom: 8px;"><i class="fas fa-check" style="color: var(--color-accent); margin-right: 8px;"></i> Copie légalisée du BAC (ou équivalent)</li>
                                            <li style="margin-bottom: 8px;"><i class="fas fa-check" style="color: var(--color-accent); margin-right: 8px;"></i> Copie de l'acte de naissance</li>
                                            <li style="margin-bottom: 8px;"><i class="fas fa-check" style="color: var(--color-accent); margin-right: 8px;"></i> Photos d'identité</li>
                                            <li style="margin-bottom: 8px;"><i class="fas fa-check" style="color: var(--color-accent); margin-right: 8px;"></i> Certificat médical</li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- =========================
             🎯 SECTION FILIÈRES BTS (5 FORMATIONS)
        ========================== -->
        <section id="formations" style="padding: 80px 0; background: white; position: relative;">
            <div class="container">
                <div style="text-align: center; margin-bottom: 60px;">
                    <span style="display: inline-block; background: linear-gradient(135deg, var(--color-primary), var(--color-light-blue)); color: white; padding: 6px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 15px;">
                        <i class="fas fa-list" style="margin-right: 8px;"></i> Nos BTS
                    </span>
                    <h2 style="font-size: 2.5rem; font-weight: 800; color: var(--color-dark); margin-bottom: 15px;">
                        Les filières <span style="color: var(--color-primary);">BTS disponibles</span>
                    </h2>
                    <div style="width: 80px; height: 4px; background: linear-gradient(90deg, var(--color-accent), var(--color-primary)); margin: 20px auto 0; border-radius: 2px;"></div>
                </div>

                <div class="row g-4 justify-content-center">
                    <!-- Filière 1: Systèmes et Réseaux Informatiques -->
                    <div class="col-lg-4 col-md-6">
                        <div class="filiere-card" style="background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%;">
                            <div style="height: 180px; overflow: hidden; position: relative;">
                                <img src="https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=600&h=400&fit=crop" alt="Réseaux" style="width: 100%; height: 100%; object-fit: cover;">
                                <div style="position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, var(--color-primary), transparent); padding: 20px 15px 10px;">
                                    <h3 style="color: white; margin: 0; font-size: 1.1rem; font-weight: 700;">Systèmes et Réseaux</h3>
                                </div>
                            </div>
                            <div style="padding: 20px;">
                                <p style="color: #555; font-size: 0.85rem; line-height: 1.5; margin-bottom: 15px;">
                                    Apprenez à installer, configurer et maintenir les infrastructures réseaux des entreprises.
                                </p>
                                <a href="#" class="btn-outline" style="padding: 8px 20px; font-size: 0.8rem;">En savoir plus <i class="fas fa-arrow-right"></i></a>
                            </div>
                        </div>
                    </div>

                    <!-- Filière 2: Génie Logiciel -->
                    <div class="col-lg-4 col-md-6">
                        <div class="filiere-card" style="background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%;">
                            <div style="height: 180px; overflow: hidden; position: relative;">
                                <img src="https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=600&h=400&fit=crop" alt="Génie Logiciel" style="width: 100%; height: 100%; object-fit: cover;">
                                <div style="position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, var(--color-primary), transparent); padding: 20px 15px 10px;">
                                    <h3 style="color: white; margin: 0; font-size: 1.1rem; font-weight: 700;">Génie Logiciel</h3>
                                </div>
                            </div>
                            <div style="padding: 20px;">
                                <p style="color: #555; font-size: 0.85rem; line-height: 1.5; margin-bottom: 15px;">
                                    Maîtrisez les langages de programmation et les méthodes de développement d'applications.
                                </p>
                                <a href="#" class="btn-outline" style="padding: 8px 20px; font-size: 0.8rem;">En savoir plus <i class="fas fa-arrow-right"></i></a>
                            </div>
                        </div>
                    </div>

                    <!-- Filière 3: Comptabilité et Gestion -->
                    <div class="col-lg-4 col-md-6">
                        <div class="filiere-card" style="background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%;">
                            <div style="height: 180px; overflow: hidden; position: relative;">
                                <img src="https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?w=600&h=400&fit=crop" alt="Comptabilité" style="width: 100%; height: 100%; object-fit: cover;">
                                <div style="position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, var(--color-primary), transparent); padding: 20px 15px 10px;">
                                    <h3 style="color: white; margin: 0; font-size: 1.1rem; font-weight: 700;">Comptabilité et Gestion</h3>
                                </div>
                            </div>
                            <div style="padding: 20px;">
                                <p style="color: #555; font-size: 0.85rem; line-height: 1.5; margin-bottom: 15px;">
                                    Formez-vous aux techniques comptables, fiscales et à la gestion financière des organisations.
                                </p>
                                <a href="#" class="btn-outline" style="padding: 8px 20px; font-size: 0.8rem;">En savoir plus <i class="fas fa-arrow-right"></i></a>
                            </div>
                        </div>
                    </div>

                    <!-- Filière 4: Transport et Logistique -->
                    <div class="col-lg-4 col-md-6">
                        <div class="filiere-card" style="background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%;">
                            <div style="height: 180px; overflow: hidden; position: relative;">
                                <img src="https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=600&h=400&fit=crop" alt="Logistique" style="width: 100%; height: 100%; object-fit: cover;">
                                <div style="position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, var(--color-primary), transparent); padding: 20px 15px 10px;">
                                    <h3 style="color: white; margin: 0; font-size: 1.1rem; font-weight: 700;">Transport et Logistique</h3>
                                </div>
                            </div>
                            <div style="padding: 20px;">
                                <p style="color: #555; font-size: 0.85rem; line-height: 1.5; margin-bottom: 15px;">
                                    Gérez les flux de marchandises et la chaîne d'approvisionnement au niveau national et international.
                                </p>
                                <a href="#" class="btn-outline" style="padding: 8px 20px; font-size: 0.8rem;">En savoir plus <i class="fas fa-arrow-right"></i></a>
                            </div>
                        </div>
                    </div>

                    <!-- Filière 5: Communication des Organisations -->
                    <div class="col-lg-4 col-md-6">
                        <div class="filiere-card" style="background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%;">
                            <div style="height: 180px; overflow: hidden; position: relative;">
                                <img src="https://images.unsplash.com/photo-1557804506-669a67965ba0?w=600&h=400&fit=crop" alt="Communication" style="width: 100%; height: 100%; object-fit: cover;">
                                <div style="position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, var(--color-primary), transparent); padding: 20px 15px 10px;">
                                    <h3 style="color: white; margin: 0; font-size: 1.1rem; font-weight: 700;">Communication</h3>
                                </div>
                            </div>
                            <div style="padding: 20px;">
                                <p style="color: #555; font-size: 0.85rem; line-height: 1.5; margin-bottom: 15px;">
                                    Apprenez à concevoir et mettre en œuvre des stratégies de communication interne et externe.
                                </p>
                                <a href="#" class="btn-outline" style="padding: 8px 20px; font-size: 0.8rem;">En savoir plus <i class="fas fa-arrow-right"></i></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <style>
                .filiere-card:hover {
                    transform: translateY(-8px);
                    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
                }
                .filiere-card {
                    animation: fadeInUp 0.5s ease forwards;
                    opacity: 0;
                }
            </style>
        </section>

        <!-- =========================
             🎯 SECTION CTA FINAL
        ========================== -->
        <section id="inscriptions" 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.5rem; font-weight: 800; margin-bottom: 20px; color: white;">Lancez votre carrière professionnelle !</h2>
                <p style="font-size: 1.1rem; max-width: 700px; margin: 0 auto 35px; opacity: 0.9;">Inscrivez-vous dès aujourd'hui en BTS à ES-ESSIG et devenez un technicien supérieur qualifié.</p>
                <div style="display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;">
                    <a href="#" class="btn-custom" style="background: var(--color-accent); font-size: 1.1rem; padding: 15px 40px;">
                        <i class="fas fa-file-signature"></i> S'inscrire maintenant
                    </a>
                </div>
            </div>
        </section>
    </main>
    
    <!-- Footer -->
    {% include 'includes/footer.html' %}
    
    <script>
        function toggleAccordion(element) {
            const content = element.nextElementSibling;
            const icon = element.querySelector('.accordion-icon');
            const isOpen = content.style.maxHeight && content.style.maxHeight !== '0px';
            
            // Fermer tous les autres accordéons
            const allContents = document.querySelectorAll('.accordion-content');
            const allIcons = document.querySelectorAll('.accordion-icon');
            
            allContents.forEach(item => {
                if (item !== content) {
                    item.style.maxHeight = '0px';
                }
            });
            allIcons.forEach(item => {
                if (item !== icon) {
                    item.textContent = '+';
                }
            });
            
            // Ouvrir/fermer celui cliqué
            if (!isOpen) {
                content.style.maxHeight = content.scrollHeight + 'px';
                icon.textContent = '−';
            } else {
                content.style.maxHeight = '0px';
                icon.textContent = '+';
            }
        }
    </script>
    
    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
