/* =========================
   HERO
========================= */

.about-hero {
    margin-top: 150px;
    width: 100%;
    min-height: 430px;
    background: url("/img/index/contact.webp") center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-overlay {
    width: 100%;
    min-height: 430px;
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.about-hero-content {
    max-width: 1100px;
    margin: 0 auto;
}

.about-hero-content h1 {
    font-size: 60px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 auto 20px;
    color: white;
}

.about-hero-content p {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mcs-link {
    color: #5a8fcb;
    text-decoration: none;
}

.mcs-link:hover {
    text-decoration: underline;
}

/* =========================
   ZONE D'INTERVENTION
========================= */

.zone-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 60px;
    font-family: Arial, sans-serif;
}

.zone-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 18px;
}

.zone-inner p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

/* =========================
   SECTION FORMULAIRE
========================= */

.contact-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 100px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.contact-intro-text {
    max-width: 640px;
    margin: 0 auto 50px;
    font-size: 17px;
    line-height: 1.7;
    color: #444;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: start;
    text-align: left;
}

/* ----- Formulaire ----- */
.contact-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    color: #2b2b2b;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5a8fcb;
    box-shadow: 0 0 0 3px rgba(90, 143, 203, 0.15);
}

/* Consentement */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #5a8fcb;
    flex-shrink: 0;
}

.form-consent label {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.form-consent a {
    color: #5a8fcb;
}

/* Bouton submit */
.contact-form .mcs-btn {
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
    align-self: flex-start;
}

.contact-form .mcs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notice RGPD sous le formulaire */
.form-rgpd {
    font-size: 12px;
    line-height: 1.6;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-top: 4px;
}

.form-rgpd a {
    color: #5a8fcb;
}

/* Messages résultat */
.form-success {
    background: #eaf7ea;
    color: #2e7d32;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
}

.form-error {
    background: #fdecea;
    color: #c62828;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
}

/* ----- Carte coordonnées ----- */
.contact-info {
    background: #5a8fcb;
    color: #fff;
    border-radius: 18px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    font-size: 26px;
    line-height: 1;
    width: 32px;
    flex-shrink: 0;
}

.info-block h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.info-block p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.info-block a {
    color: #fff;
    text-decoration: underline;
}

.info-hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-line {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.hours-line span:last-child {
    text-align: right;
}

/* =========================
   CARTE (page contact uniquement)
========================= */

.map-section--contact {
    padding: 80px 20px 100px;
}

.map-section--contact .map-address {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.map-section--contact .map-frame {
    max-width: 700px;
    height: 380px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid #ececec;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    position: relative;
}

.map-section--contact .map-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 2;
}

.map-section--contact .map-consent-box {
    padding-top: 36px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    .about-hero {
        margin-top: 100px;
        min-height: 320px;
    }

    .about-hero-overlay {
        min-height: 320px;
    }

    .about-hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .about-hero-content h1 {
        font-size: 28px;
    }

    .zone-section,
    .contact-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-section {
        padding-bottom: 70px;
    }

    .contact-form,
    .contact-info {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form .mcs-btn {
        width: 100%;
        align-self: stretch;
        min-width: unset;
    }

    .map-section--contact .map-frame {
        height: 300px;
        border-radius: 16px;
    }
}