/* Ce fichier complète `styles/index.css` uniquement pour la page Contact */

.contact {
    margin-top: 88px; /* aligné avec `.info-perso` sur l’index */
    padding: 28px 16px 0;
    display: grid;
    place-items: center;
}

.contact-header {
    text-align: center;
    padding: 0 16px;
    margin-bottom: 14px;
}

.contact-header h2 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

.contact-header p {
    margin: 10px auto 0;
    max-width: 560px;
    color: #374151;
    line-height: 1.7;
}

.contact-form {
    width: 100%;
    max-width: 720px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-weight: 600;
    color: #111827;
}

.text-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.95);
    background: rgba(249, 250, 251, 0.9);
    color: #111827;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.text-input:focus {
    border-color: rgba(16, 185, 129, 0.75);
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.18),
        0 0 0 1px rgba(16, 185, 129, 0.35);
    background-color: #ffffff;
}

textarea.text-input {
    resize: vertical;
    min-height: 160px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid #10b981;
    background: linear-gradient(135deg, #6ee7b7, #22c55e);
    color: #064e3b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(16, 185, 129, 0.35),
        0 0 0 1px rgba(209, 250, 229, 0.9);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 14px 32px rgba(16, 185, 129, 0.45),
        0 0 0 1px rgba(187, 247, 208, 0.95);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(16, 185, 129, 0.4),
        0 0 0 1px rgba(187, 247, 208, 1);
}

.submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    place-items: center;
    padding: 18px;
    z-index: 2000;
}

.popup-overlay.is-open {
    display: grid;
}

.popup {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    padding: 18px 18px 16px;
}

.popup h3 {
    margin: 0;
    font-size: 18px;
    color: #111827;
    letter-spacing: 0.02em;
}

.popup p {
    margin: 10px 0 0;
    color: #374151;
    line-height: 1.7;
}

.popup-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 28px;
    border-radius: 999px;
    border: 1px solid #10b981;
    background: linear-gradient(135deg, #6ee7b7, #22c55e);
    color: #064e3b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(16, 185, 129, 0.35),
        0 0 0 1px rgba(209, 250, 229, 0.9);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}

.popup-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 14px 32px rgba(16, 185, 129, 0.45),
        0 0 0 1px rgba(187, 247, 208, 0.95);
}

.popup-btn:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(16, 185, 129, 0.4),
        0 0 0 1px rgba(187, 247, 208, 1);
}

@media (max-width: 720px) {
    .contact-form {
        padding: 16px 14px;
    }

    .actions {
        justify-content: center;
    }
}