/* Ambiance et motif de fond de la page contact */
.contact-page-body {
    background-color: #f4fbf7 !important;
    background-image: radial-gradient(#e2f5ec 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

#contact-section {
    max-width: 1200px;
    margin: 60px auto 70px;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Titre principal de la section avec ligne décorative verte */
.section-form-title {
    text-align: center;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    color: #047857;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

.section-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #10b981;
    border-radius: 2px;
}

.section-form-title i {
    font-size: 1.8rem;
    margin-right: 10px;
    color: #10b981;
}

/* Sous-titre explicatif sous le titre de section */
.contact-section-sub {
    text-align: center;
    color: #1f6f99;
    font-size: 1.15rem;
    max-width: 760px;
    margin: 0 auto 48px;
    line-height: 1.5;
    font-weight: 500;
}

/* Conteneur principal en grille (Infos à gauche, Formulaire à droite) */
.contact-container {
    display: flex;
    gap: 48px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Colonne regroupant les blocs d'informations de gauche */
.contact-left-column {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

/* Boîtes d'information et coordonnées de l'agence */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #10b981;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    color: #1f6f99;
    line-height: 1.6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.info-box>i {
    font-size: 1.35rem;
    color: #10b981;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    transition: color 200ms ease, transform 200ms ease;
}

.info-box span {
    display: inline-block;
    line-height: 1.5;
}

/* Animations au survol des boîtes d'information */
.info-box:hover {
    transform: translateX(6px);
    border-color: #10b981;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.08);
}

.info-box:hover>i {
    color: #047857;
    transform: scale(1.15);
}

/* Style spécifique pour la première boîte (Téléphone principal) */
.info-box:first-child {
    font-size: 1.35rem;
    color: #047857;
    font-weight: 800;
    border-left-width: 8px;
    background: linear-gradient(90deg, #f8fafc 0%, #e8fbf2 100%);
}

.info-box:first-child>i {
    font-size: 1.5rem;
    color: #047857;
}

/* Bloc d'affichage des horaires d'été */
.summer-hours-box {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    border: 1px solid #10b981;
}

.summer-hours-box h3 {
    margin: 0 0 16px 0;
    font-size: 1.6rem;
    color: #047857;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.summer-hours-box h3 i {
    color: #10b981;
    font-size: 1.6rem;
}

.summer-hours-box p {
    margin: 0;
    font-size: 1.1rem;
    color: #1f6f99;
    line-height: 1.8;
    font-weight: 700;
}

.summer-hours-box p strong {
    font-weight: 800;
    color: #047857;
    background-color: #e8fbf2;
    padding: 3px 6px;
    border-radius: 6px;
}

/* Encart et conteneur global du formulaire de contact */
.contact-form-container {
    flex: 1 1 520px;
    background: linear-gradient(135deg, #047857 0%, #0f766e 50%, #10b981 100%);
    padding: 44px 36px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(4, 120, 87, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Structure interne du formulaire et éléments requis */
.form-required-notice {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0 0 24px 0;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

.form-required-notice span {
    color: #ef4444;
    font-weight: 700;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.required-star-inline {
    color: #f87171;
    font-weight: 800;
    font-size: 1.1rem;
    margin-left: 2px;
}

/* Case à cocher et étiquette de consentement RGPD */
form .consent-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.92rem;
    line-height: 1.6;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
}

form .consent-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #047857;
    cursor: pointer;
    flex-shrink: 0;
}

/* Champs de saisie (inputs, select, textarea) et états de focus */
input,
select,
textarea {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 1rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 250ms ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

textarea {
    resize: none;
    min-height: 150px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* Bouton de soumission avec effet d'enfoncement 3D */
.btn-submit {
    align-self: center;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #047857;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 5px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 150ms cubic-bezier(.25, .8, .25, 1);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    color: #10b981;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
    border-bottom-color: #94a3b8;
}

.btn-submit:active {
    transform: translateY(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-bottom-width: 1px;
}

/* Grand bandeau de fond accueillant la carte Google Maps */
.map-bandeau {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(135deg, #022c22 0%, #047857 50%, #0f766e 100%);
    padding: 50px 24px 65px;
    box-sizing: border-box;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.15), inset 0 -10px 20px rgba(0, 0, 0, 0.15);
}

.map-bandeau-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.map-bandeau h2 {
    color: #ffffff;
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.map-bandeau h2 i {
    color: #10b981;
    margin-right: 12px;
}

.map-bandeau-sub {
    color: #a7f3d0;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

/* Intégration de l'iframe de la carte et animation au survol */
iframe {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: clamp(380px, 50vh, 520px);
    margin: 0 auto;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transition: transform 300ms cubic-bezier(.25, .8, .25, 1), box-shadow 300ms ease;
}

iframe:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 65px -12px rgba(0, 0, 0, 0.6);
}

/* Section d'information sur la permanence téléphonique d'urgence */
.clients {
    max-width: 1200px;
    margin: 60px auto 20px;
    padding: 0 24px;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.clients h3 {
    font-size: 1.7rem;
    color: #047857;
    font-weight: 800;
    margin: 0;
}

.clients p {
    flex: 1;
    background: #ffffff;
    border-left: 5px solid #10b981;
    border-right: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 28px;
    border-radius: 4px 12px 12px 4px;
    color: #1f6f99;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

@media screen and (max-width: 992px) {
    .contact-container {
        flex-direction: column !important;
        gap: 32px !important;
    }

    .contact-left-column,
    .contact-form-container {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media screen and (max-width: 768px) {
    #contact-section {
        margin: 30px auto 40px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .contact-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-left-column,
    .contact-form-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
        margin-bottom: 25px !important;
    }

    .info-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 12px !important;
        white-space: normal !important;
    }

    .info-box span,
    .info-box span * {
        word-break: break-all !important;
        white-space: normal !important;
    }

    .form-row {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-form-container input:not([name="precision"]),
    .contact-form-container select,
    .contact-form-container textarea {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 16px !important;
    }

    .contact-form-container input[name="precision"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 16px !important;
    }

    form .consent-label {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    form .consent-label input[type="checkbox"] {
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }

    .btn-submit {
        width: 100% !important;
        display: block !important;
        padding: 16px 20px !important;
        box-sizing: border-box !important;
    }

    .clients {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important;
    }

    .clients h3 {
        margin-bottom: 10px !important;
    }

    .clients p {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}