{% 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 Éco-Gestion ESSIG - 7 domaines d'excellence en management, finance et commerce">
    <title>Cycle Éco-Gestion | 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-1554224155-8d04cb21cd6c?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;
        }

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

        .domain-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);
        }

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

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

        .domain-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, rgba(32,83,151,0.12), rgba(74,144,226,0.08));
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            transition: var(--transition);
        }

        .domain-card:hover .domain-icon {
            background: linear-gradient(135deg, var(--color-primary), var(--color-light-blue));
        }

        .domain-card:hover .domain-icon i {
            color: white !important;
        }

        .domain-icon i {
            font-size: 2rem;
            color: var(--color-primary);
            transition: var(--transition);
        }

        .domain-card h4 {
            font-size: 1.2rem;
            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 */
        .program-card {
            background: white;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: var(--shadow-md);
            height: 100%;
            transition: var(--transition);
        }

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

        .program-header {
            background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
            padding: 25px;
            text-align: center;
            color: white;
        }

        .program-header h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0;
            color: white;
        }

        .program-body {
            padding: 25px;
        }

        .program-body ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .program-body li {
            padding: 10px 0;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .program-body li:last-child {
            border-bottom: none;
        }

        .program-body li i {
            color: var(--color-accent);
            font-size: 0.9rem;
        }

        .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;
        }

        /* Swiper Styles */
        .swiper {
            padding: 20px 0 50px 0;
        }

        .swiper-slide {
            height: auto;
        }

        .swiper-button-next, .swiper-button-prev {
            background: var(--color-white);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            box-shadow: var(--shadow-sm);
        }

        .swiper-button-next:after, .swiper-button-prev:after {
            font-size: 1.2rem;
            color: var(--color-primary);
            font-weight: bold;
        }

        .swiper-pagination-bullet-active {
            background: var(--color-accent);
        }

        /* 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; }
            .domain-card h4 { font-size: 1rem; }
            .program-header h3 { font-size: 1.2rem; }
        }

        @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-chart-line me-2"></i> Formation d'Excellence
        </div>
        <h1>Cycle Éco-Gestion <br>& Management</h1>
        <p>
            7 domaines d'excellence pour former les managers et experts financiers de demain.
            Programme intensif sur 2 ans alliant théorie et pratique.
        </p>
        <a href="#domaines" class="btn-custom">
            Découvrir les domaines <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 Éco-Gestion ?</span>
                    </h2>
                    <div class="line"></div>
                    <p style="line-height: 1.9; color: #555; font-size: 1.05rem;">
                        Le Cycle Éco-Gestion de l'ESSIG forme des professionnels capables de répondre 
                        aux défis économiques et managériaux 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">Partenariats avec les entreprises</span></div>
                        <div><i class="fas fa-check-circle me-2" style="color: var(--color-accent);"></i> <span class="fw-semibold">Formation professionnalisante</span></div>
                    </div>
                </div>
            </div>
            <div class="col-lg-6 order-lg-2 order-1">
                <img src="https://images.unsplash.com/photo-1554224155-6726b3ff858f?q=80&w=1200&auto=format&fit=crop"
                     class="img-fluid rounded-4 shadow-lg w-100"
                     alt="Cycle Éco-Gestion ESSIG">
            </div>
        </div>
    </div>
</section>


<!-- NOS 7 DOMAINES D'EXCELLENCE -->
<section id="domaines" class="section">
    <div class="container">
        <div class="text-center mb-5">
            <h2 class="title">Nos <span>7 Domaines</span> d'Excellence</h2>
            <div class="line line-center"></div>
            <p class="text-secondary">Découvrez l'ensemble de nos spécialités proposées en Éco-Gestion</p>
        </div>

        <div class="row g-4">
            <!-- Domaine 1 - BUSINESS ET MANAGEMENT -->
            <div class="col-lg-4 col-md-6">
                <div class="domain-card">
                    <div class="domain-icon">
                        <i class="fas fa-building"></i>
                    </div>
                    <h4>BUSINESS ET MANAGEMENT</h4>
                </div>
            </div>

            <!-- Domaine 2 - TOURISME -->
            <div class="col-lg-4 col-md-6">
                <div class="domain-card">
                    <div class="domain-icon">
                        <i class="fas fa-plane"></i>
                    </div>
                    <h4>TOURISME</h4>
                </div>
            </div>

            <!-- Domaine 3 - COMMUNICATION -->
            <div class="col-lg-4 col-md-6">
                <div class="domain-card">
                    <div class="domain-icon">
                        <i class="fas fa-bullhorn"></i>
                    </div>
                    <h4>COMMUNICATION</h4>
                </div>
            </div>

            <!-- Domaine 4 - IMMOBILIER -->
            <div class="col-lg-4 col-md-6">
                <div class="domain-card">
                    <div class="domain-icon">
                        <i class="fas fa-house-chimney"></i>
                    </div>
                    <h4>IMMOBILIER</h4>
                </div>
            </div>

            <!-- Domaine 5 - SANTÉ & BIEN-ÊTRE -->
            <div class="col-lg-4 col-md-6">
                <div class="domain-card">
                    <div class="domain-icon">
                        <i class="fas fa-heartbeat"></i>
                    </div>
                    <h4>SANTÉ & BIEN-ÊTRE</h4>
                </div>
            </div>

            <!-- Domaine 6 - LANGUES & CULTURES -->
            <div class="col-lg-4 col-md-6">
                <div class="domain-card">
                    <div class="domain-icon">
                        <i class="fas fa-language"></i>
                    </div>
                    <h4>LANGUES & CULTURES</h4>
                </div>
            </div>

            <!-- Domaine 7 - BANQUE & ASSURANCES -->
            <div class="col-lg-4 col-md-6">
                <div class="domain-card">
                    <div class="domain-icon">
                        <i class="fas fa-university"></i>
                    </div>
                    <h4>BANQUE & ASSURANCES</h4>
                </div>
            </div>
        </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>

        <div class="row g-4">
            <!-- 1ère Année -->
            <div class="col-lg-6">
                <div class="program-card">
                    <div class="program-header">
                        <h3>1ère année - Semestres 1 & 2</h3>
                    </div>
                    <div class="program-body">
                        <ul>
                            <li><i class="fas fa-check-circle"></i> Économie générale (S1)</li>
                            <li><i class="fas fa-check-circle"></i> Introduction au droit (S1)</li>
                            <li><i class="fas fa-check-circle"></i> Mathématiques (S1)</li>
                            <li><i class="fas fa-check-circle"></i> Gestion (S1)</li>
                            <li><i class="fas fa-check-circle"></i> Histoire économique (S1)</li>
                            <li><i class="fas fa-check-circle"></i> Comptabilité financière (S1)</li>
                            <li><i class="fas fa-check-circle"></i> Méthodologie universitaire (S2)</li>
                            <li><i class="fas fa-check-circle"></i> Langue 1 & 2 (S2)</li>
                            <li><i class="fas fa-check-circle"></i> Sociologie (S2)</li>
                            <li><i class="fas fa-check-circle"></i> Démographie (S2)</li>
                            <li><i class="fas fa-check-circle"></i> Outils quantitatifs (S2)</li>
                            <li><i class="fas fa-check-circle"></i> Algèbre, Dérivés, Intégration (S2)</li>
                        </ul>
                    </div>
                </div>
            </div>

            <!-- 2ème Année -->
            <div class="col-lg-6">
                <div class="program-card">
                    <div class="program-header">
                        <h3>2ème année - Semestres 3 & 4</h3>
                    </div>
                    <div class="program-body">
                        <ul>
                            <li><i class="fas fa-check-circle"></i> Analyse microéconomique (S3)</li>
                            <li><i class="fas fa-check-circle"></i> Informatique (S3)</li>
                            <li><i class="fas fa-check-circle"></i> Théorie des organisations (S3)</li>
                            <li><i class="fas fa-check-circle"></i> Économie internationale (S3)</li>
                            <li><i class="fas fa-check-circle"></i> Fiscalité (S3)</li>
                            <li><i class="fas fa-check-circle"></i> Techniques financières (S3)</li>
                            <li><i class="fas fa-check-circle"></i> Analyse financière (S4)</li>
                            <li><i class="fas fa-check-circle"></i> Économie du travail (S4)</li>
                            <li><i class="fas fa-check-circle"></i> Outils de gestion (S4)</li>
                            <li><i class="fas fa-check-circle"></i> Langue 3 (S4)</li>
                            <li><i class="fas fa-check-circle"></i> Ateliers projets personnels (S4)</li>
                            <li><i class="fas fa-check-circle"></i> Systèmes dynamiques (S4)</li>
                        </ul>
                    </div>
                </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 diplômés excellent</p>
        </div>
        <div class="text-center">
            <div class="skill-tag"><i class="fas fa-chart-line me-2"></i>Banque & Finance</div>
            <div class="skill-tag"><i class="fas fa-building me-2"></i>Conseil & Audit</div>
            <div class="skill-tag"><i class="fas fa-bullhorn me-2"></i>Marketing & Communication</div>
            <div class="skill-tag"><i class="fas fa-handshake me-2"></i>Ressources Humaines</div>
            <div class="skill-tag"><i class="fas fa-plane me-2"></i>Tourisme & Hôtellerie</div>
            <div class="skill-tag"><i class="fas fa-house-chimney me-2"></i>Immobilier</div>
            <div class="skill-tag"><i class="fas fa-chart-simple me-2"></i>Commerce International</div>
            <div class="skill-tag"><i class="fas fa-university me-2"></i>Assurances</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 (toutes séries)</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 en français</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 manager ?</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 Éco-Gestion 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);
        });
    })();
</script>

</body>
</html>