/* ==========================================================================
   Contact page — /contact/
   ========================================================================== */

.contact-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.contact-page .legal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--legal-primary, #1b555c);
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.contact-page .legal-intro {
    font-size: 16px;
    color: var(--legal-text-secondary, #545454);
    margin: 0 0 32px 0;
    line-height: 1.55;
}

/* Banniere d'erreur globale */
.contact-error-banner {
    background: #fff1f0;
    border: 1px solid #f3c8c4;
    color: #b21f1f;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 0 20px 0;
    font-size: 14px;
}

/* Honeypot — cache visuellement mais accessible aux bots */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* Form */
.contact-form {
    background: #ffffff;
    border: 1px solid var(--legal-border, #d8e5e3);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contact-field {
    margin: 0 0 20px 0;
}

.contact-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--legal-primary, #1b555c);
    margin: 0 0 6px 0;
}

.contact-required {
    color: #dc2626;
    font-weight: 700;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field select,
.contact-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--legal-border, #d8e5e3);
    border-radius: 10px;
    background: #ffffff;
    font-size: 16px;
    font-family: inherit;
    color: var(--legal-text, #222222);
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
    box-sizing: border-box;
}

.contact-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--legal-primary-soft, #48b5a8);
    box-shadow: 0 0 0 3px rgba(72, 181, 168, 0.15);
}

.contact-field-error {
    color: #dc2626;
    font-size: 13px;
    margin: 6px 0 0 0;
}

.contact-captcha {
    min-height: 70px;
}

.contact-actions {
    margin-top: 28px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--legal-primary, #1b555c);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease-out, transform 0.15s ease-out;
}

.contact-submit-btn:hover,
.contact-submit-btn:focus-visible {
    background: #134148;
    transform: translateY(-1px);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-disclaimer {
    margin: 16px 0 0 0;
    font-size: 12px;
    color: var(--legal-text-muted, #777777);
    line-height: 1.5;
}

/* Success state (post-PRG) */
.contact-success {
    background: #ffffff;
    border: 1px solid var(--legal-border, #d8e5e3);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
}

.contact-success-icon {
    color: #16a34a;
    margin: 0 auto 16px auto;
    line-height: 0;
}

.contact-success-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--legal-primary, #1b555c);
    margin: 0 0 12px 0;
}

.contact-success-message {
    font-size: 16px;
    color: var(--legal-text-secondary, #545454);
    margin: 0 0 24px 0;
    line-height: 1.55;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.contact-success-back {
    display: inline-block;
    color: var(--legal-primary, #1b555c);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    transition: color 0.15s ease-out;
}

.contact-success-back:hover {
    color: var(--legal-primary-soft, #48b5a8);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-page {
        padding: 24px 16px 64px;
    }

    .contact-page .legal-title { font-size: 26px; }
    .contact-form { padding: 20px 18px; }
    .contact-success { padding: 36px 20px; }
    .contact-success-title { font-size: 22px; }
}

/* iOS Safari : pas de zoom auto sur input quand le focus arrive */
@supports (-webkit-touch-callout: none) {
    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-submit-btn,
    .contact-field input,
    .contact-field select,
    .contact-field textarea { transition: none; }
}
