/* ========================================
   PAGE CONTACT — Prim'So
   Design dark green hero + formulaire pro
   ======================================== */

/* ─── HERO CONTACT ─── */
.contact-hero {
    background: var(--color-dark-green);
    padding: 70px 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -110px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(43, 117, 187, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: -180px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 227, 145, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 36px;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    line-height: 1.25;
    color: white;
    margin-bottom: 14px;
}

.contact-highlight {
    color: var(--color-accent-green);
}

.contact-hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 8px;
}

.contact-green {
    color: var(--color-accent-green);
    font-weight: 800;
}

.contact-hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}


/* ─── SECTION FORMULAIRE ─── */
.contact-form-section {
    background: var(--color-dark-green);
    padding-top: 0px;
    padding-bottom: 20px;
}

.contact-form-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 30px 40px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* ─── FORM LAYOUT ─── */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.contact-form-group {
    margin-bottom: 12px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark);
    font-family: 'Nunito', sans-serif;
}

.contact-form-group label strong {
    font-weight: 800;
}

.contact-form-row .contact-form-group {
    margin-bottom: 0;
}

/* ─── INPUTS ─── */
.contact-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0e3e7;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--color-text-dark);
    background: #fafbfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input::placeholder {
    color: #a0a8b4;
    font-weight: 400;
}

.contact-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 117, 187, 0.12);
    background: white;
}

.contact-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8.825L.175 3 1.225 1.95 6 6.725l4.775-4.775L11.825 3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

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


/* ─── MESSAGE + ENGAGEMENTS SIDE BY SIDE ─── */
.contact-message-engagements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 12px;
}

.contact-message-group {
    margin-bottom: 0 !important;
}

.contact-message-group .contact-textarea {
    height: 100%;
    min-height: 120px;
}

/* Card Engagements */
.contact-engagements {
    background: var(--color-accent-green);
    border-radius: 18px;
    padding: 28px 26px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-engagements h3 {
    font-size: 22px;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    color: var(--color-dark-green);
    margin-bottom: 18px;
}

.contact-engagements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-engagements li {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark-green);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-engagements li strong {
    font-weight: 800;
}

.contact-check {
    color: var(--color-dark-green);
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}


/* ─── CONSENT ─── */
.contact-consent {
    margin-bottom: 16px;
}

.contact-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-gray);
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

.contact-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--color-primary);
}


/* ─── BOTTOM ROW: BOUTON + SOCIAL + IMAGE ─── */
.contact-bottom-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
    white-space: nowrap;
}

.contact-submit-btn:hover {
    background: #1a5a9e;
    transform: translateY(-2px);
}

.contact-submit-btn svg {
    flex-shrink: 0;
}

/* Social icons */
.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e0e3e7;
    color: var(--color-dark-green);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-social-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Illustration cochon */
.contact-bottom-illustration {
    margin-left: auto;
}

.contact-bottom-illustration img {
    max-height: 90px;
    width: auto;
    border-radius: 16px;
}


/* ─── HONEYPOT ─── */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}


/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 15px 50px;
    }

    .contact-hero h1 {
        font-size: 30px;
    }

    .contact-form-section {
        padding: 0 15px 50px;
    }

    .contact-form-wrapper {
        padding: 30px 22px 28px;
    }

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

    .contact-form-row .contact-form-group {
        margin-bottom: 18px;
    }

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

    .contact-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-bottom-illustration {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 26px;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .contact-social {
        justify-content: center;
        width: 100%;
    }
}
