/**
 * Vision Jeunesse Nouvelle — Contact Page
 * Scoped under .contact-page so it cannot leak site-wide.
 */

.contact-page {
    --ct-blue: #0d47a1;
    --ct-navy: #092047;
    --ct-teal: #00695c;
}

/* ------------------------------------------------------------- intro band */

.contact-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ct-navy) 0%, var(--ct-blue) 50%, var(--ct-teal) 100%);
    color: #fff;
}

.contact-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.6;
    pointer-events: none;
}

/* --------------------------------------------------------------- info rail */

.ct-info-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.ct-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.ct-info-item:last-child {
    border-bottom: 0;
}

a.ct-info-item:hover {
    background: #f8fafc;
}

.ct-info-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 1.05rem;
    background: #eff6ff;
    color: var(--ct-blue);
}

.ct-info-icon--teal   { background: #e6f4f1; color: var(--ct-teal); }
.ct-info-icon--amber  { background: #fffbeb; color: #b45309; }
.ct-info-icon--green  { background: #dcfce7; color: #16a34a; }

.ct-info-label {
    margin: 0 0 0.15rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ct-info-value {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    /* A long email/address must wrap to a second line, not get sliced by
       the card's overflow:hidden (found at 320px width in QA). */
    overflow-wrap: anywhere;
}

.ct-info-value small {
    display: block;
    font-weight: 400;
    color: #64748b;
    font-size: 0.8125rem;
    margin-top: 0.15rem;
}

/* Quick-action buttons (WhatsApp / call) */

.ct-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ct-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ct-quick-btn:hover {
    transform: translateY(-2px);
}

.ct-quick-btn--whatsapp {
    background: #25d366;
    color: #06371f;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.ct-quick-btn--call {
    background: var(--ct-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.22);
}

/* Social row */

.ct-social {
    display: flex;
    gap: 0.6rem;
}

.ct-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ct-social a:hover {
    transform: translateY(-3px);
    background: var(--ct-blue);
    border-color: var(--ct-blue);
    color: #fff;
}

/* -------------------------------------------------------------------- form */

.ct-form-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.ct-form .form-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.4rem;
}

.ct-form .form-control,
.ct-form .form-select {
    border-radius: 10px;
    border-color: #e2e8f0;
    padding: 0.7rem 0.9rem;
    font-size: 0.9375rem;
}

.ct-form .form-control:focus,
.ct-form .form-select:focus {
    border-color: var(--ct-blue);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.ct-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* Subject picker: chips instead of a plain <select>, so the choice is a
   glance rather than a dropdown click — but a real <select> still backs it,
   so the form works identically with JS disabled. */
.ct-subject {
    position: relative;
}

.ct-subject select {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

.ct-subject__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    pointer-events: none;
}

.ct-subject__chip {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ct-subject__chip.is-selected {
    background: var(--ct-blue);
    border-color: var(--ct-blue);
    color: #fff;
}

.ct-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    border: 0;
    border-radius: 10px;
    background: var(--ct-blue);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 28px rgba(13, 71, 161, 0.25);
}

.ct-submit-btn:hover {
    background: #0a3980;
    transform: translateY(-2px);
    color: #fff;
}

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

/* Honeypot — present in the DOM for bots, invisible and unreachable for
   humans (off-canvas rather than display:none, which some bots skip). */
.ct-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------------------- map */

.ct-map-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.ct-map-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    background: #e2e8f0;
}

.ct-map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767.98px) {
    .ct-map-frame {
        aspect-ratio: 4 / 5;
    }
}

/* ------------------------------------------------------------------- focus */

.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-page input:focus-visible,
.contact-page select:focus-visible,
.contact-page textarea:focus-visible {
    outline: 2px solid var(--ct-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .ct-quick-btn,
    .ct-social a,
    .ct-submit-btn {
        transition: none;
    }
    .ct-quick-btn:hover,
    .ct-social a:hover,
    .ct-submit-btn:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 575.98px) {
    .ct-info-item {
        padding: 1rem;
    }
    .ct-quick-actions {
        flex-direction: column;
    }
    .ct-quick-btn {
        justify-content: center;
    }
}
