* {
    box-sizing: border-box;
}

.background {
    position: relative;
    background: url("../img/fond_bois2.jpg");
    background-size: cover; /* Remplacé "100% auto" par "cover" pour meilleure adaptation */
    background-position: center;
    padding: 2rem;
}

.background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.background > * {
    position: relative;
    z-index: 2;
}


.contactAll{
    display: flex;
    justify-content: center;
    max-width: 1100px;
    margin: 5rem auto;
    align-items: stretch; /* Étire les éléments pour qu'ils aient la même hauteur */
    gap: 0;
}

.carte-contact {
    background-color: rgb(0, 0, 0);
    color: white;
    flex-direction: column;
    padding: 3rem 7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.carte-contact p {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacth1 {
    margin-top: 80px;
    justify-content: center;
    text-align: center;
    align-items: center;
    display: flex;
    font-weight: bold;
}

a {
    align-items: center;
    justify-content: center;
    display: flex;
}


.insta, .telephone, .email {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.insta .logo, .email .logo, .telephone .logo {
    max-width: 50px; /* Taille maximale de l'icône */
    height: auto;
    object-fit: contain;
}




.contact_photo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 100%;
}

.contact_photo img {
    width: 100%; /* L'image occupe toute la largeur du conteneur */
    height: auto; /* Conserve ses proportions */
    max-width: 100%; /* Ne dépasse pas le conteneur */
    object-fit: contain; /* Garde l'image contenue dans son conteneur */
}


@media (max-width: 1536px) {
    .carte-contact {
        padding: 3rem 4rem;
    }

    .contactAll{
        margin: 5rem 7rem;
   }
}

@media (max-width: 1280px) {
    .contactAll{
        flex-direction: column-reverse;
   }
   .carte-contact {
    flex-direction: row;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
   }

   .insta p, .email p, .telephone p {
        margin: 0;
        padding: 0;
    }   

    .insta, .telephone, .email{
        gap: 0.5rem;
    }

}

@media (max-width: 850px) {
    .contactAll{
        margin: 5rem 2rem;
   }
   .carte-contact {
    padding: 1rem;
   }
}

@media (max-width: 680px) {
   .carte-contact p {
        font-size: 0.8rem;
   }

   .footerFabi .navigation {
        display: flex;
    }

    .footerFabi .contact {
        display: none;
    }
}



/* Pour la fin au lieude faire ca peut etre remttre en flex direction colonne ? */
@media (max-width: 580px) {
    .carte-contact p {
         font-size: 0.7rem;
    }

    .insta .logo, .email .logo, .telephone .logo {
        max-width: 40px;
    }
 }

 @media (max-width: 480px) {
    .carte-contact {
        flex-direction: column;
        gap: 1.5rem;
    }

 }

