/* =========================================================
   Page Contact
   ========================================================= */

.ct-page {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --blue: #2563eb;

    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 18px 48px;
    box-sizing: border-box;
    color: var(--ink);
}

.ct-page *,
.ct-page *::before,
.ct-page *::after { box-sizing: border-box; }

/* ---------- En-tête ---------- */
.ct-hero { margin-bottom: 24px; }

.ct-hero h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -.02em;
}

.ct-hero p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1rem;
    max-width: 640px;
}

/* ---------- Mise en page ---------- */
.ct-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}

/* ---------- Colonne d'informations ---------- */
.ct-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ct-info {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 18px rgba(15, 23, 42, .05);
}

.ct-ico {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.ct-info strong { font-size: .92rem; }

.ct-info p {
    margin: 3px 0 0;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}

.ct-info a { color: var(--blue); }

/* ---------- Carte du formulaire ---------- */
.ct-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ct-field {
    margin: 0 0 16px;
    border: 0;
    padding: 0;
    min-width: 0;
}

.ct-field label,
.ct-field legend {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 0;
}

.ct-field input[type="text"],
.ct-field input[type="email"],
.ct-field textarea {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.ct-field textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.55;
}

.ct-field input:focus,
.ct-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.ct-field input::placeholder,
.ct-field textarea::placeholder { color: #94a3b8; }

.ct-count {
    text-align: right;
    font-size: .72rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Sujets sous forme de pastilles */
.ct-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ct-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ct-chip span {
    display: inline-block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 13px;
    cursor: pointer;
    transition: all .15s;
}

.ct-chip span:hover { border-color: #cbd5e1; color: var(--ink); }

.ct-chip input:checked + span {
    color: var(--blue);
    border-color: var(--blue);
    background: rgba(37, 99, 235, .08);
}

.ct-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Bouton */
.ct-btn {
    display: inline-block;
    width: 100%;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(110deg, #1e40af, #2563eb);
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
    transition: transform .15s, box-shadow .15s;
}

.ct-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .3);
}

.ct-btn-light {
    width: auto;
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
    font-size: .9rem;
    padding: 10px 18px;
}

.ct-legal {
    margin: 12px 0 0;
    font-size: .72rem;
    color: var(--muted);
    text-align: center;
}

/* Messages */
.ct-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.ct-success {
    text-align: center;
    padding: 30px 10px;
}

.ct-success-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(22, 163, 74, .12);
    color: #16a34a;
    font-size: 2rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.ct-success h2 { margin: 0 0 6px; }
.ct-success p { color: var(--muted); margin: 0 0 20px; }

/* Champ piège (invisible) */
.ct-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
    .ct-grid { grid-template-columns: 1fr; }
    .ct-side { order: 2; }
    .ct-row { grid-template-columns: 1fr; gap: 0; }
    .ct-card { padding: 20px; }
    .ct-hero h1 { font-size: 1.6rem; }
}
