/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gif-container {
    text-align: center;
    margin: 20px;
}


/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky !important;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

header nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

header nav .logo {
    font-size: 0px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    justify-content: flex-start;
}

header nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: #e74c3c;
}

/* menu navigation */

/* Style de la barre principale */
.navbar {
    background-color: #2c3e50;
    font-family: Arial, sans-serif;
    justify-content: space-between;
    align-items: center;
    display: flex;
    padding: 0 1%;                  /* Ajoute une petite marge sur les côtés */
    height: 70px;
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* Aligne les menus horizontalement */
}

.nav-links li {
    position: relative; /* Important pour positionner le sous-menu */
}

.nav-links li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
}

.nav-links li a:hover {
    background-color: #555;
}

/* Cacher le sous-menu par défaut */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
}

/* Style des liens dans le sous-menu */
.dropdown-content li a {
    color: black;
    padding: 12px 16px;
}

.dropdown-content li a:hover {
    background-color: #ddd;
}

/* AFFICHER AU SURVOL */
.dropdown:hover .dropdown-content {
    display: block;
}
#toggler, .burger-btn {
    display: none;
}


@media screen and (max-width: 768px) {
    .burger-btn {
        display: block; /* On affiche le burger sur mobile */
        cursor: pointer;
        padding: 15px;
    }

    /* Style des 3 barres du burger */
    .burger-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px;
        transition: 0.3s;
    }

    .nav-links {
        display: none; /* On cache le menu par défaut */
        flex-direction: column;
        width: 100%;
        background-color: #444;
        position: absolute;
        top: 60px;
        left: 0;
    }

    /* Quand le checkbox est coché, on affiche le menu */
    #toggler:checked ~ .nav-links {
        display: flex;
    }

    /* Sur mobile, le sous-menu s'affiche au clic/focus plutôt qu'au survol */
    .dropdown-content {
        position: static; /* On l'affiche dans le flux normal */
        width: 100%;
        background-color: #555;
    }

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

main {
    display: block; /* Assure que main est un bloc */
    padding: 20px 0; /* Espace vertical */
    min-height: 50vh; /* Hauteur minimale pour forcer l'affichage */
    background-color: #f9f9f9; /* Fond clair pour vérifier la visibilité */
}



/* Sections */
section {
    padding: 80px 0;
}


section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

section p {
    font-size: 18px;
    color: #555;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}


