* {
    box-sizing: border-box;
}

.hide {
    display: none;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #6E6E6E;
    line-height: 1.6;
    font-size: 16px; /* Taille de base */
}

header {
    background: #FFFFFF;
    border-bottom: 2px solid #A4D8E8;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%; /* Force le header à occuper uniquement la largeur de l'écran */
    max-width: 100vw; /* Limite la largeur au viewport */
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    margin-right: auto;
}

.logo-container img {
    max-width: 80px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.logo-container h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #003F5C;
    font-family: 'Lobster', cursive;
}

.menu-toggle {
    display: none; /* Caché par défaut */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #003F5C;
    margin-left: auto;
}

.menu-toggle ~ .menu {
    display: none;
}

.text-container p {
    margin: 0;
    font-size: 1rem;
    color: #6E6E6E;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    max-width: 100%;
    overflow-x: hidden;
}

.info-top, .contact-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Icônes cachées par défaut */
.contact-icons {
    display: none;

    transition: transform 0.3s ease-in-out, height 0.3s ease-in-out;
}

.contact-icons.hidden {
    transform: translateY(-100%); /* Fait remonter le bandeau sous le bloc au-dessus */
    height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

.address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.address img {
    width: 20px;
    height: 20px;
}

.address span {
    font-size: 1rem;
    color: #333;
}

.phone {
    font-size: 1rem;
    color: #003F5C;
    text-decoration: none;
    white-space: nowrap;
}

.phone:hover {
    text-decoration: underline;
}

.btn-container a, .btn, form button[type="submit"] {
    background: #A4D8E8;
    color: #003F5C;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: normal;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-container a:hover, .btn:hover, form button[type="submit"]:hover {
    background: #C8E6C9;
    transform: scale(1.02);
    text-decoration: none;
}
.btn-container:hover {
    transition: transform 0.2s ease-in-out;
    transform: scale(1.02);
}

.btn-container a:focus, .btn:focus, form button[type="submit"]:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}


.menu {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    width: 100%;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.menu a {
    color: #003F5C;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.menu a:hover {
    color: #A4D8E8;
}


main h1, main h2 {
    font-family: 'Lobster', cursive;
}



footer {
    background: #FFFFFF;
    color: #003F5C;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 2px solid #A4D8E8;
    line-height: 1.6;
}

footer p {
    margin: 0.5rem 0; /* Espacement vertical entre les paragraphes */
}

footer a {
    color: #003F5C;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

footer .ffr img {
    vertical-align: text-bottom;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Espacement horizontal entre les éléments */
    margin-top: 1rem;
}

.footer-info p {
    margin: 0;
}

.footer-social {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem; /* Espacement entre les icônes */
}

.footer-social a.picto {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.footer-social a.text {
    width: auto;
}

.footer-social a.picto:hover {
    opacity: 0.7;
    transform: scale(1.1); /* Légère mise en avant au survol */
}

.footer-social img {
    width: 100%;
    height: auto;
}

.honung {
    display: none;
}


/* Tablettes (768px et moins) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .logo-container {
        width: 100%;
        max-width: 100vw;
    }

    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* Espacement vertical */
    }

    .contact-info {
        align-items: flex-start; /* Aligne à gauche */
        width: 100%;
    }

    /* Masquer le texte et afficher les icônes */
    .info-top {
        display: none;
    }
    .contact-icons, .footer-social {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }
    .contact-icons a {
        display: inline-block;
        width: 32px;
        height: 32px;
        line-height: 0;
    }
    .contact-icons img {
        width: 100%;
        height: auto;
        max-width: 32px;
    }

    /* Masquer le checkbox */
    .menu-toggle {
        display: none;
    }

    /* Style du burger (label associé au checkbox) */
    .menu-icon {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        margin-left: auto;
        margin-right: 20px;
    }

    .menu-icon::before,
    .menu-icon::after,
    .menu-icon div {
        content: '';
        display: block;
        width: 100%;
        height: 4px;
        background-color: #000; /* Couleur des lignes du burger */
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

    .menu-icon div {
        top: 10px; /* Ligne centrale */
    }

    .menu-icon::before {
        top: 0; /* Ligne supérieure */
    }

    .menu-icon::after {
        bottom: 0; /* Ligne inférieure */
    }

    /* Effet de transformation lorsque le menu est ouvert */
    .menu-toggle:checked + .menu-icon::before {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle:checked + .menu-icon::after {
        transform: translateY(-10px) rotate(-45deg);
    }

    .menu-toggle:checked + .menu-icon div {
        opacity: 0; /* Masque la ligne centrale */
    }

    .menu-toggle {
        /* display: block; /* Affiche le bouton burger sur petit écran */
    }

    .menu-toggle:checked ~ .menu {
        display: flex;
    }

    .menu {
        display: none; /* Cache le menu par défaut */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Positionné juste sous le header */
        left: 0;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        background: #FFFFFF;
        gap: 0;
    }

    .contact-info .menu {
        display: none;
    }
    .menu.open {
        /* display: flex; /* Affiche le menu quand ouvert */
    }

    .menu a {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #A4D8E8;
    }

    .menu a:last-child {
        border-bottom: none;
    }

    .footer-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 2rem;
    }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
    header {
        padding: 0.5rem;
    }

    .logo-container h1 {
        font-size: 1.2rem; /* Réduit la taille du texte */
    }

    .logo-container img {
        max-width: 60px; /* Réduit la taille du logo */
    }

    .menu a {
        display: block; /* Aligne les liens verticalement */
        margin: 0;
        padding: 0.7rem;
    }

    .footer-social {
        gap: 0.3rem; /* Réduit davantage l'espacement */
    }
}