/* =============================
   PAGE CONTACT
   ============================= */

/* --- Hero --- */
.contact-hero {
    background-color: #0d5091;
    padding: 48px 0;
    text-align: center;
}

.contact-hero__title {
    font-family: "Poppins", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.contact-hero__sub {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Section principale --- */
.contact-section {
    padding: 64px 0;
}

.contact-section__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}

/* --- Infos de contact --- */
.contact-info__title {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info__icon {
    width: 40px;
    height: 40px;
    background-color: #e8f0fb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d5091;
    flex-shrink: 0;
}

.contact-info__label {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0d5091;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-info__value {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    line-height: 1.6;
}

.contact-info__value:hover {
    color: #0d5091;
}

/* --- Alertes --- */
.contact-alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

.contact-alert--success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.contact-alert--error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.contact-alert--error ul {
    margin: 0;
    padding-left: 16px;
}

/* --- Formulaire --- */
.contact-form-wrapper {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 36px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__label {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.contact-form__optional {
    font-weight: 400;
    color: #888;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    background: #fafafa;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    outline: none;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: #0d5091;
    box-shadow: 0 0 0 3px rgba(13, 80, 145, 0.1);
    background: #ffffff;
}

.contact-form__textarea {
    resize: none;
    min-height: 140px;
}

.contact-form__submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

/* =============================
   RESPONSIVE MOBILE
   ============================= */

@media (max-width: 768px) {
    .contact-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .contact-hero__title {
        font-size: 28px;
    }
}

/* --- Captcha --- */
.contact-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-captcha__img {
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    display: block;
}

.contact-captcha__refresh {
    background: none;
    border: none;
    color: #0d5091;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition:
        color 0.2s,
        transform 0.3s;
}

.contact-captcha__refresh:hover {
    color: #0a3f72;
    transform: rotate(180deg);
}

.contact-form__hint-text {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.contact-form__error {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #c62828;
    margin-top: 4px;
}
