.contact-new {
    font-family: "Roboto Slab", serif;
    color: #343434;
}
.contact-hero {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #302d63 0%, #201e47 100%);
    opacity: 0.3;
    background-image: url("/uploads/medias/p3120330.JPG");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    mix-blend-mode: luminosity;
}
.contact-hero-icon {
    position: absolute;
    width: 16rem;
    height: 16rem;
    opacity: 0.1;
}
.contact-hero-icon.left {
    top: 0;
    left: 0;
}
.contact-hero-icon.right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}
.contact-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-align: center;
    position: relative;
    z-index: 10;
}

.section-contact {
    padding: 5rem 0;
    background-color: #f3f4f6;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.contact-img-container {
    grid-column: span 4;
}
@media (max-width: 768px) {
    .contact-img-container {
        grid-column: span 5;
    }
}
.contact-img {
    display: block; /* supprime l'espace sous l'image du au line-height (element inline) */
    width: 100%;
    height: 600px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 40px;
}
/* Desktop : l'image suit la hauteur de la carte formulaire au lieu de rester
   figee a 600px, pour que les trois colonnes se terminent ensemble. */
@media (min-width: 1024px) {
    .contact-img {
        height: 100%;
        min-height: 600px;
    }
}

.contact-info-col {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
/* Desktop : le bloc infos demarre en haut au lieu d'etre centre verticalement.
   Le centrage le faisait redescendre des que la carte formulaire grandissait
   (ajout du bouton Maps puis des champs societe/telephone) et "Localisation"
   ne tombait plus en face de "Contactez-nous !". Le gap passe a 4rem : l'espace
   disponible est reparti entre les blocs plutot que laisse en un seul vide sous
   les reseaux sociaux, ce qui etait le motif du centrage (retours client 07/2026). */
@media (min-width: 1024px) {
    .contact-info-col {
        justify-content: flex-start;
        gap: 4rem;
        /* 90px en haut, et non les 3rem de padding de la carte : le bloc doit
           descendre de la hauteur du sous-titre "Vous avez une question ?"
           (26px, marge comprise), plus une quinzaine de pixels pour que la
           ligne de base de "Localisation" (30px) tombe sur celle de
           "Contactez-nous !" (40px), les deux titres n'ayant pas la meme
           taille. Caler sur 3rem alignait le titre avec le sous-titre, ce qui
           ne se lit pas comme un alignement. Valeur ajustee sur le rendu. */
        padding: 90px 0 3rem;
    }
}
.info-block-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1f2937;
    display: inline-block;
}
.info-text {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.25rem 0;
}
.info-text a {
    color: inherit;
    text-decoration: none;
}

/* Bouton "Voir sur Google Maps" sous l'adresse. Style contour (et non plein)
   pour ne pas concurrencer le CTA "Valider" du formulaire. */
.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
    border: 1.5px solid #4a5899;
    border-radius: 9999px;
    color: #4a5899;
    background: transparent;
    font-family: "Alata", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.btn-map:hover {
    background: #4a5899;
    color: #fff;
}

.contact-form-col {
    grid-column: span 5;
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
}
.form-subtitle {
    color: #60a5fa;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-input {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    background: white;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}
.contact-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    background: white;
    resize: none;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}
.contact-input:focus,
.contact-textarea:focus {
    border-color: #4c5ca4;
}

.btn-contact-submit {
    padding: 1rem 2.5rem;
    background: #4a5899;
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-family: "Alata", sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.3s;
    width: -moz-fit-content;
    width: fit-content;
}
.btn-contact-submit:hover {
    background: #343434;
}
.btn-contact-submit svg {
    transition: transform 0.3s;
}
.btn-contact-submit:hover svg {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .contact-form-col {
        padding: 2rem;
    }
    .form-title {
        font-size: 2.5rem;
    }
}
