/* Style général */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
}

header {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    width: 100%; /* Assure que le header prend toute la largeur */
}


/* Keyframes pour l'animation slideDownFadeIn */
@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px); /* Commence 20px plus haut */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Se déplace vers sa position normale */
    }
}

/* Styles généraux pour nav ul */
nav ul {
    list-style-type: none;
    padding: 20px;
    text-align: center;
    background-color: #333;
    margin: 0;
    border-radius: 10px;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
}

li a:hover {
    background-color: rgba(255, 255, 255, 0.248);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

main {
    padding: 20px;
    min-height: 400px; /* Hauteur minimale */
    text-align: center;
}

img {
    border-radius: 20px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* Clé pour que le footer soit en bas */
}

/* Style spécifique pour les outils */
.tool-section {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.tool-section h2 {
    color: #007bff;
}

/* Ajout de Media Queries pour différents écrans */
@media (max-width: 2560px) {
    nav {
        width: 97.4%;
        margin-left: 15px;
    }
}

@media (min-width: 1441px) and (max-width: 2559px) {
    nav {
        width: 95%;
    }
}

@media (max-width: 1440px) {
    nav {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    nav {
        width: 93%;
    }
}

/* Media Query pour tablettes et téléphones mobiles */
@media (max-width: 768px) {
    /* Styles spécifiques pour les tablettes */
    nav {
        width: 96%;
    }
    
    nav ul {
        display: none; /* Commence avec le menu caché */
        animation: slideDownFadeIn 1s ease forwards; /* Applique l'animation */
    }
    
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    footer {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Styles spécifiques pour les téléphones mobiles */
    header, footer {
        padding: 15px 0;
    }

    nav {
        width: 91%;
    }

    nav ul {
        padding: 15px;
        display: none; /* Commence avec le menu caché */
        animation: slideDownFadeIn 1s ease forwards; /* Applique l'animation */
    }
}

/* Styles pour le bouton menu burger */
.burger-menu {
    display: none; /* Caché par défaut */
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 1.5em;
    padding: 0.5em;
    cursor: pointer;
}

/* Style pour le menu déroulant */
#nav-links {
    display: flex; /* Afficher par défaut */
    width: 100%;
    justify-content: center;
}

#nav-links li {
    margin: 0 10px; /* Espacement des liens */
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

/* Media Queries pour les tablettes et téléphones */
@media (max-width: 768px) {
    .burger-menu {
        display: block; /* Afficher le bouton burger */
    }

    #nav-links {
        display: none; /* Cacher les liens par défaut */
        flex-direction: column;
        align-items: center;
        background-color: #333; /* Arrière-plan pour le menu déroulant */
        padding: 10px 0; /* Padding pour le menu déroulant */
    }

    #nav-links li {
        display: block;
        margin: 10px 0;
    }

    nav ul {
        padding: 0; /* Supprimer le padding sur les petits écrans */
    }
}