/* ═══════════════════════════════════════════════════════════════════════
   PAGE CONTACT
   ═══════════════════════════════════════════════════════════════════════ */

.contact-wrap {
    max-width: 660px;
    margin: 3rem auto 5rem;
    padding: 0 1rem;
}

/* Hero */
.contact-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}
.contact-hero__icon {
    width: 56px;
    height: 56px;
    background: #fff3f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.contact-hero h1 {
    font-family: 'Rubik One Regular', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}
.contact-hero p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Card */
.contact-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 2rem 2.5rem 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* Form rows */
.contact-form .form-row {
    margin-bottom: 1.25rem;
}
.contact-form .form-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}
.contact-form .form-row .required {
    color: #CC392B;
    margin-left: 2px;
}
.contact-form .form-row input,
.contact-form .form-row select,
.contact-form .form-row textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.97rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}
.contact-form .form-row input:focus,
.contact-form .form-row select:focus,
.contact-form .form-row textarea:focus {
    border-color: #CC392B;
    box-shadow: 0 0 0 3px rgba(204,57,43,0.08);
}
.contact-form .form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.contact-form .form-row textarea {
    resize: vertical;
    min-height: 140px;
}

/* Compteur de caractères */
.contact-char-count {
    font-size: 0.78rem;
    color: #aaa;
    text-align: right;
    margin-top: 0.25rem;
}
.contact-char-count.warn { color: #e07b00; }
.contact-char-count.over { color: #CC392B; font-weight: 600; }

/* Double colonne nom + email */
.contact-form .form-row-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Honeypot — invisible */
.contact-hp { display: none !important; visibility: hidden !important; position: absolute; left: -9999px; }

/* Messages résultat */
.contact-result {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.contact-result.contact-success {
    background: #f0faf7;
    border: 1px solid #1a8a6e;
    color: #1a5a40;
}
.contact-result.contact-error {
    background: #fff3f2;
    border: 1px solid #CC392B;
    color: #a02020;
}

/* Bouton submit */
.contact-submit {
    width: 100%;
    padding: 0.85rem;
    background: #CC392B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}
.contact-submit:hover:not(:disabled) {
    background: #aa2e22;
    transform: translateY(-1px);
}
.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* État succès global */
.contact-success-screen {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem;
}
.contact-success-screen__icon {
    width: 60px;
    height: 60px;
    background: #f0faf7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.contact-success-screen h2 {
    font-family: 'Rubik One Regular', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}
.contact-success-screen p {
    color: #666;
    font-size: 0.97rem;
    margin: 0 0 1.5rem;
}
.contact-success-screen a {
    color: #CC392B;
    font-weight: 600;
    text-decoration: none;
}
.contact-success-screen a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
    .contact-card { padding: 1.5rem 1.25rem; }
    .contact-form .form-row-duo { grid-template-columns: 1fr; }
    .contact-hero h1 { font-size: 1.4rem; }
}
