/* =====================================================================
   INOVATECH — Page Contact (chargé uniquement sur contact.php)
   ===================================================================== */

/* ---------- Cartes de contact ---------- */
.contact-card { position: relative; }
.contact-card .contact-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.contact-card .contact-actions .btn { font-size: .78rem; padding: .25rem .65rem; border-radius: 999px; }
.contact-card a { font-weight: 600; }

/* Badge « Ouvert / Fermé » calculé à l'heure d'Haïti */
.open-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .55rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: #f1f3f6;
    color: var(--muted);
}
.open-status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { background: #dcfce7; color: #166534; }
.open-status.is-open .dot { background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: contact-ping 1.8s infinite; }
.open-status.is-closed { background: #fdecec; color: #a61b1b; }
@keyframes contact-ping { 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* ---------- Canaux rapides ---------- */
.contact-channels .btn { min-width: 200px; }

/* ---------- Formulaire ---------- */
.contact-form-card { border-top: 4px solid var(--brand); }
.contact-form-card .form-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.contact-form-card .form-head .icon-box { margin: 0; width: 48px; height: 48px; font-size: 1.1rem; flex: none; }
.contact-form-card .form-head p { margin: 0; color: var(--muted); font-size: .9rem; }

.subject-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.subject-chips button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    padding: .3rem .8rem;
    font-size: .82rem;
    font-weight: 600;
    transition: .15s;
}
.subject-chips button:hover { border-color: var(--brand); color: var(--brand); }
.subject-chips button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.subject-chips button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.char-counter { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.char-counter .is-low { color: #b45309; }
.char-counter .is-full { color: #dc3545; font-weight: 600; }
.draft-note { font-size: .78rem; color: var(--muted); }
.draft-note i { color: var(--brand); }

.contact-form-card .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(21, 101, 224, .15); }
.contact-form-card .btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Message de confirmation après envoi */
.contact-success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}
.contact-success .check {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    animation: contact-pop .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes contact-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.contact-form-card.is-sent form { display: none; }
.contact-form-card.is-sent .contact-success { display: block; }

/* ---------- Carte ---------- */
.map-wrap { position: relative; height: 100%; min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-wrap .map-frame { height: 100%; min-height: 380px; border-radius: 0; }
.map-wrap .map-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: #fff;
    border-radius: 14px;
    padding: .7rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: .7rem;
    align-items: center;
    font-size: .88rem;
    max-width: calc(100% - 2rem);
}
.map-wrap .map-badge i { color: var(--brand); font-size: 1.2rem; }
.map-wrap .map-badge a { font-weight: 600; }

@media (max-width: 575.98px) {
    .contact-channels .btn { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .open-status.is-open .dot, .contact-success .check { animation: none; }
}

/* Les animations d'apparition latérales ne créent jamais de défilement horizontal */
html { overflow-x: clip; }
