body {
    font-family: Arial,Helvetica, sans-serif;
    margin: auto;
    //padding: 0;
    box-sizing: border-box;
    background-color: #ffffff;
    background : url(../img/fond.avif) center top repeat-y fixed #3a4eb1;
    max-width: 1200px;
}

header {
    background: #3A4EB1; /* Couleur de fond du header */
    color: #fff;
    padding: 5px 0;
    //position: fixed; /* Fixe le header en haut de la fenêtre */
    width: 100%; /* Largeur totale */
    top: 0; /* Position en haut de la fenêtre */
    z-index: 1000; /* Assure que le header est au-dessus du contenu */
    display: flex;
    //flex-direction: column;
    justify-content: center;
    //background : url(../img/fond-top.avif) center top no-repeat fixed #3a4eb1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    white-space: nowrap; /* Empêche les éléments de passer à la ligne */
    align-self: center;
}

.logo-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 5px auto; /* Centrer le conteneur */
}

.logo {
    max-width: 123px;
    height: auto;
    padding: 0 5px;
    object-fit: contain;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 25px; /* Ajuster en fonction de l'espacement désiré */
}

.contact-info span {
    font-weight: bold;
    //color: #C9541E; /* Orange */
    color: #F6C1AC;
    
}

.nav-toggle {
    display: none;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none;
    background-color: #418111;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    white-space: nowrap; /* Empêche le texte de se couper et de passer à la ligne */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre portée */
    font-weight: bold; /* Texte en gras */
    border: 1px solid rgba(255, 255, 255, 0.9); /* Bordure légère */
    box-sizing: border-box; /* Inclut les bordures et le padding dans la taille totale */
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap; /* Empêche le menu de se mettre sur plusieurs lignes */
}

.nav-menu li {
    margin-left: 0.3rem;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    background-color: #418111;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block; /* Permet au bouton de s'adapter à la taille de son contenu */
    white-space: nowrap; /* Empêche le texte de se couper et de passer à la ligne */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre portée */
    font-weight: bold; /* Texte en gras */
    border: 1px solid rgba(255, 255, 255, 0.9); /* Bordure légère */
    box-sizing: border-box; /* Inclut les bordures et le padding dans la taille totale */
}

.nav-menu li a:hover {
    background-color: #001100;
    transform: scale(1.05); /* Agrandit légèrement le bouton au survol */
}

.nav-menu li:last-child a {
    background-color: #C3521D; /* Orange qui passe le test de contrast */
}

.nav-menu li:last-child a:hover {
    background-color: #772406;
}

.contact-button {
    background-color: #C9541E; /* Orange */
}

.contact-button:hover {
    background-color: #772406;
}

main {
    //padding-top: 150px; /* Assure que le contenu principal commence sous le header 160 px pour mobile*/
    //padding-left: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    background: #3A4EB1; /* Bleu */
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin: 2rem 0 0; /* Ajout d'une marge pour un espacement au-dessus du pied de page */
    border-top-left-radius: 22px; /* Bord supérieur gauche arrondi */
    border-top-right-radius: 22px; /* Bord supérieur droit arrondi */
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .footer-content {
    //width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px; /* Espace entre les éléments */
}

footer .footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

footer .footer-links img {
    margin: 0 5px;
    width: 24px; /* Taille des icônes */
    height: auto;
}

footer p {
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    body {
        background : white;
    }
    
    header {
        background: #3A4EB1;  
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        display: none;
        width: 100%;
        margin-left: 5px;
    }

    .nav-menu.nav-menu_visible {
        display: flex;
        text-align: center;
    }

    .nav-menu li {
        margin: 5px 0;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .contact-info {
        width: auto;
        justify-content: flex-end;
        padding-right: 25px;
        margin-top: 0;
    }

    .nav-menu li {
        margin-left: 0.25rem;
    }

    .nav-menu li a {
        padding: 0.5rem 0.75rem;
    }
    
    footer .footer-content {
        flex-direction: column;
        align-items: center;
    }

    footer .footer-links {
        justify-content: center;
        margin-bottom: 10px;
    }    
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .contact-info {
        width: auto;
        justify-content: flex-end;
        padding-right: 25px;
        margin-top: 0;
        flex-direction: column;
        align-items: center;
    }
    .contact-info span {
        color: #F6C1AC;
    }
    .nav-menu li a {
        padding: 0.25rem 0.5rem;
    }
    
}
