body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.contact-wrapper {
    display: flex;
    align-items: flex-start; /* Alignement en haut */
    justify-content: space-between; /* Écarte les colonnes */
    gap: 40px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.contact-image {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.contact-overlay {
    position: absolute;
    top: 20%;
    right: -30%; /* Moins décalé pour que le noir dépasse légèrement */
    background-color: #ab8d6ffc;
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10; /* Pour s'assurer que le carré est au-dessus */
    font-family: 'Montserrat', sans-serif;
}

.contact-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.contact-overlay p {
    margin: 5px 0;
    font-size: 0.8rem;
}

.contact-overlay a {
    color: rgb(14, 14, 14);
    text-decoration: none;
}

.contact-overlay a:hover {
    text-decoration: underline;
}

.contact-details {
    flex: 1;
    padding: 20px;
    position: relative;
    right: -130px;
    font-family: 'Montserrat', sans-serif;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-details p a {
    color: #25d366;
    text-decoration: none;
}

.contact-details p a:hover {
    text-decoration: underline;
}

.contact-details .map-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 1rem;
    color: #000;
    text-decoration: underline;
}
/* Responsive Design */
@media (max-width: 1330px) {

    .contact-details p{
       width: 80%;
   }
}

@media (max-width: 1200px) {
.contact-overlay{
   padding: 30px;
}
}
@media (max-width: 977px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: start;
    } 
   }

   @media (max-width: 810px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 20px;
    }

    .contact-image {
        position: relative; /* Nécessaire pour que l'overlay se positionne par rapport à cette image */
    }

    .contact-overlay {
        position: absolute; /* Positionne l'overlay par rapport à .contact-image */
        top: 110%; /* Centre verticalement */
        left: 50%; /* Centre horizontalement */
        transform: translate(-50%, -50%); /* Ajuste pour centrer parfaitement */
        width: 90%; /* S'adapte à la taille de l'écran */
        max-width: 300px; /* Limite la taille maximale */
        text-align: center; /* Centre le texte */
    }

    .contact-details {
        text-align: center;
        position: static; /* Plus de décalage par rapport à droite */
        margin-top: 150px;
    }
    .contact-details p {
        width: 100%;
      }
}

@media (max-width: 522px) {
    .contact-overlay {
        width: 95%; /* Plus petite marge sur les écrans très étroits */
         top: 120%;
    }
}
