/* ============================================================
   Contact Modal — Geofixe Design System
   ============================================================ */

.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Card */
.contact-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(160deg, #0e0e1b 0%, #130a22 100%);
    border: 1px solid rgba(162, 56, 255, 0.28);
    border-radius: 24px;
    overflow: hidden;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(162, 56, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-modal-overlay.is-open .contact-modal {
    transform: translateY(0) scale(1);
}

/* Ligne décorative haut */
.contact-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a238ff 30%, #c44bff 70%, transparent);
}

/* Bouton fermer */
.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #8888aa;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.contact-modal-close:hover {
    background: rgba(162, 56, 255, 0.18);
    color: #eeeeff;
}

/* Header */
.contact-modal-header {
    padding: 2.25rem 2rem 1.5rem;
    text-align: center;
}

.contact-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(162,56,255,0.2), rgba(196,75,255,0.1));
    border: 1px solid rgba(162, 56, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #eeeeff;
    margin-bottom: 0.4rem;
}

.contact-modal-header p {
    font-size: 0.9rem;
    color: #8888aa;
}

/* Body */
.contact-modal-body {
    padding: 0 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Bloc email */
.contact-email-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(162, 56, 255, 0.18);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contact-email-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-email-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a238ff;
}

.contact-email-address {
    font-size: 1rem;
    font-weight: 600;
    color: #eeeeff;
    letter-spacing: 0.01em;
}

/* Bouton copier */
.contact-copy-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    background: rgba(162, 56, 255, 0.14);
    border: 1px solid rgba(162, 56, 255, 0.3);
    border-radius: 8px;
    color: #c063ff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.contact-copy-btn:hover {
    background: rgba(162, 56, 255, 0.28);
    color: #eeeeff;
    border-color: rgba(162, 56, 255, 0.55);
}

.contact-copy-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

/* Badges infos */
.contact-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8rem;
    color: #8888aa;
}

/* CTA footer */
.contact-modal-footer {
    padding: 0 2rem 2rem;
}

.contact-modal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #a238ff 0%, #c44bff 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 24px rgba(162, 56, 255, 0.35);
}

.contact-modal-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(162, 56, 255, 0.5);
}

@media (max-width: 480px) {
    .contact-modal-header {
        padding: 2rem 1.5rem 1.25rem;
    }
    .contact-modal-body {
        padding: 0 1.5rem 1.25rem;
    }
    .contact-modal-footer {
        padding: 0 1.5rem 1.75rem;
    }
    .contact-email-address {
        font-size: 0.9rem;
    }
}
