/* ========================================
   VARIABLES CSS
========================================= */
:root {
    --primary-color: #11066C;
    --secondary-color: #004AAD;
    --accent-color: #B7881A;
    --accent-light: #dfb720;
    --dark: #000000;
    --white: #FFFFFF;
    --transition-smooth: 0.3s ease;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ========================================
   RESET ET STYLES GÉNÉRAUX
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--white);
}

/* ========================================
   ANIMATIONS KEYFRAMES
========================================= */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   LOADER
========================================= */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================
   HEADER ET NAVIGATION
========================================= */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

/* Navigation de base */
nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Style actif spécifique pour Accueil */
nav ul li a.home-active {
    color: hsla(51, 94%, 35%, 0.843);
    padding-bottom: 0.3rem;
    text-decoration: none;
}

/* Bouton hamburger */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;

}

.dropdown-trigger::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;

}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--accent-light);
    color: var(--white);
    padding-left: 1.5rem;
}

.dropdown-trigger.active {
    color: var(--accent-color);
}
.dropdown.active .dropdown-trigger::after {
            transform: rotate(180deg);
        }

/* Bouton de connexion */
.login-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: var(--secondary-color);
}

/* Menu déroulant du profil */
.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 150px;
    z-index: 1000;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.profile-dropdown a:hover {
    background-color: #f5f5f5;
}

/* ========================================
   SLIDER
========================================= */
.slider {
    margin-top: 80px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.slides {
    width: 300%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 33.33%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========================================
   ABOUT SECTION
========================================= */
.about {
    padding: 5rem 5%;
    background-color: var(--white);
}

.about h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* ========================================
   PERFORMANCE SECTION
========================================= */
/* Performance Section */
.performance {
    background-color: var(--primary-color);
    padding: 5rem 5%;
    color: var(--white);
}

.performance .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


.stat-box {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    text-align: center;
}

.stat-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-box i {
    font-size: 3rem;
    background: linear-gradient(45deg, var(--accent-light), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.stat-box h3 {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    background: linear-gradient(45deg, var(--accent-light), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.stat-box p {
    font-size: 1.1rem;
    color: var(--white);
    position: relative;
    z-index: 2;
}

/* ========================================
   PARTNERS SECTION
========================================= */
.partners {
    padding: 5rem 5%;
    background-color: var(--white);
}

.partners h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logos img {
    height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%);
}

/* ========================================
   CONTACT SECTION
========================================= */
.contact {
    padding: 5rem 5%;
    background-color: var(--secondary-color);
    color: var(--white);
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* ========================================
   FOOTER
========================================= */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   DRAPEAUX
========================================= */
.flag {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ========================================
   SUPPORT EN LIGNE
========================================= */
.support-online {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 999;
}

.support-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.support-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.support-button:hover {
    transform: scale(1.1);
}

.support-button i {
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
}

.support-popup {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    display: none;
    border: 1px solid rgba(0,0,0,0.1);
}

.support-popup.active {
    display: block;
    animation: popupFadeIn 0.3s ease;
}

.support-popup h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-popup h3 i {
    color: var(--accent-color);
}

.support-contacts {
    background: rgba(0,0,0,0.02);
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
}

.support-contacts p {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--dark);
}

.support-contacts i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.social-support {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
========================================= */

/* === ÉCRANS MOYENS (950px et moins) === */
@media (max-width: 950px) {
    /* Navigation mobile */
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: white;
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

     nav ul.active {
                display: flex;
            }

            /* Styles spécifiques pour mobile */
            nav ul li {
                border-bottom: 1px solid rgba(0,0,0,0.1);
            }

            nav ul li:last-child {
                border-bottom: none;
            }

    /* Structure du dropdown mobile */
            .dropdown-mobile-container {
                display: flex;
                align-items: center;
                width: 100%;
            }

            .dropdown-trigger {
                flex: 1;
                padding: 0.8rem 1.5rem;
                justify-content: flex-start;
                gap: 0.5rem;
            }

            /* Bouton flèche séparé pour mobile */
            .dropdown-arrow-btn {
                display: block;
                padding: 0.8rem;
                background: none;
                border: none;
                cursor: pointer;
                color: var(--primary-color);
                font-size: 1rem;
                min-width: 40px;
                border-left: 1px solid rgba(0,0,0,0.1);
                transition: all 0.3s ease;
            }

            .dropdown-arrow-btn:hover {
                background-color: rgba(0,0,0,0.05);
            }

            .dropdown-arrow-btn::after {
                content: '▼';
                transition: transform 0.3s ease;
            }

            .dropdown.active .dropdown-arrow-btn::after {
                transform: rotate(180deg);
            }

            /* Masquer la flèche du trigger sur mobile */
            .dropdown-trigger::after {
                display: none;
            }

            /* Dropdown content mobile */
            .dropdown-content {
                position: static;
                width: 100%;
                box-shadow: none;
                border-radius: 0;
                background-color: rgba(0,0,0,0.02);
                padding: 0;
                margin: 0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
            }

            .dropdown.active .dropdown-content {
                display: block;
                max-height: 500px;
            }

            .dropdown-content a {
                padding: 0.8rem 2rem;
                border-bottom: 1px solid rgba(0,0,0,0.05);
                font-size: 0.9rem;
            }

            .dropdown-content a:last-child {
                border-bottom: none;
            }

            .dropdown-content a:hover {
                background-color: var(--accent-light);
                color: var(--white);
                padding-left: 2.5rem;
            }

    /* Performance section */
    .performance .container {
        grid-template-columns: repeat(2, 1fr);
    }


    .performance .container,
    .contact-info,
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Slider */
    .slide-content h2 {
        font-size: 2rem;
    }

    /* Stats */
    .stat-box h3 {
        font-size: 2.2rem;
    }

    /* Padding réduit */
    .about,
    .performance,
    .partners,
    .contact,
    footer {
        padding: 3rem 3%;
    }

}

/* === TÉLÉPHONES (480px et moins) === */
@media (max-width: 480px) {
    /* Header */
    header {
        padding: 1rem 3%;
    }

    .logo img {
        height: 40px;
    }

    /* Navigation */
    nav ul {
        top: 3rem;
        padding: 1rem;
    }

    /* Slider */
    .slide-content h2 {
        font-size: 1.5rem;
    }

    /* Support popup */
    .support-popup {
        width: 90vw;
        right: 5vw;
    }

    /* Stats */
    .stat-box h3 {
        font-size: 2rem;
    }

    /* Partners */
    .partner-logos {
        gap: 1.5rem;
    }
}
