/* ============================================================
   CONTACT PAGE — REDESIGN MODERNE
   ============================================================ */

:root {
    --ct-violet:      #6d28d9;
    --ct-violet-dk:   #4c1d95;
    --ct-violet-lt:   #ede9fe;
    --ct-accent:      #a78bfa;
    --ct-white:       #ffffff;
    --ct-text:        #1e1b4b;
    --ct-muted:       #6b7280;
    --ct-border:      #e5e7eb;
    --ct-bg:          #f9fafb;
    --ct-card:        #ffffff;
    --ct-shadow-sm:   0 1px 3px rgba(0,0,0,.08);
    --ct-shadow-md:   0 4px 16px rgba(109,40,217,.12);
    --ct-shadow-lg:   0 12px 40px rgba(109,40,217,.18);
    --ct-radius:      1.25rem;
    --ct-radius-sm:   .75rem;
}

[data-theme="dark"] {
    --ct-text:    #f1f0ff;
    --ct-muted:   #a5a0c4;
    --ct-border:  rgba(139,92,246,.15);
    --ct-bg:      #07080f;
    --ct-card:    #0f1220;
    --ct-violet-lt: #1a1433;
}

/* ── RESET HELPER ─────────────────────────────────────────── */
.ct-hero *, .ct-stats *, .ct-main *, .ct-map * { box-sizing: border-box; }

/* ============================================================
   HERO  (même style que .cand-hero)
   ============================================================ */
.ct-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 24px 90px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.ct-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 1;
    transition: background .3s;
}

.ct-hero::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(124,58,237,.40) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ct-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
}

.ct-hero-left { flex: 1; }

.ct-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 22px;
}

.ct-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: -.02em;
}

.ct-hero-title span {
    color: #c4b5fd;
}

.ct-hero-desc {
    font-size: 1rem;
    color: #fff;
    line-height: 1.78;
    font-weight: 400;
    max-width: 520px;
    margin-bottom: 30px;
}

.ct-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ct-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: .80rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    transition: background .2s;
}

.ct-chip:hover {
    background: rgba(255,255,255,.20);
}

.ct-chip i {
    color: #c4b5fd;
    font-size: .80rem;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.ct-stats {
    background: var(--ct-card);
    border-bottom: 1px solid var(--ct-border);
    box-shadow: var(--ct-shadow-sm);
    position: relative;
    z-index: 10;
}

.ct-stats__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 1.5rem;
}

.ct-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: 1rem 2.5rem;
    text-align: center;
}

.ct-stats__num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ct-violet);
    line-height: 1;
}

.ct-stats__label {
    font-size: .78rem;
    color: var(--ct-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ct-stats__sep {
    width: 1px;
    height: 48px;
    background: var(--ct-border);
}

@media (max-width: 640px) {
    .ct-stats__sep { display: none; }
    .ct-stats__item { padding: .75rem 1.25rem; }
}

/* ============================================================
   MAIN SECTION  (panel + form)
   ============================================================ */
.ct-main {
    padding: 5rem 1.5rem;
    background: var(--ct-bg);
}

.ct-main__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .ct-main__grid {
        grid-template-columns: 420px 1fr;
        gap: 3rem;
    }
}

/* ── LEFT PANEL ───────────────────────────────────────────── */
.ct-panel {
    background: linear-gradient(160deg, #4c1d95 0%, #6d28d9 60%, #7c3aed 100%);
    border-radius: var(--ct-radius);
    padding: 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ct-shadow-lg);
}

.ct-panel__deco {
    position: absolute;
    bottom: -60px; right: -60px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}
.ct-panel__deco::before {
    content: '';
    position: absolute;
    top: 40px; left: 40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}

.ct-panel__head {
    margin-bottom: 2rem;
    position: relative;
}

.ct-panel__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}

.ct-panel__sub {
    font-size: .9rem;
    color: #ddd6fe;
    line-height: 1.65;
}

/* info list */
.ct-info {
    list-style: none;
    padding: 0; margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.ct-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ct-info__icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    background: rgba(255,255,255,.15);
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: background .25s;
}
.ct-info__item:hover .ct-info__icon {
    background: rgba(255,255,255,.28);
}

.ct-info__item strong {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #c4b5fd;
    margin-bottom: .2rem;
}
.ct-info__item span,
.ct-info__item a {
    font-size: .95rem;
    color: #fff;
    text-decoration: none;
    line-height: 1.4;
}
.ct-info__item a:hover { text-decoration: underline; }

/* services tags */
.ct-services {
    margin-bottom: 2rem;
    position: relative;
}
.ct-services__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #c4b5fd;
    margin-bottom: .65rem;
}
.ct-services__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.ct-services__tags span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 9999px;
    padding: .35rem .9rem;
    font-size: .82rem;
    font-weight: 500;
    color: #fff;
}

/* social links */
.ct-social { position: relative; }
.ct-social__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #c4b5fd;
    margin-bottom: .65rem;
}
.ct-social__links {
    display: flex;
    gap: .6rem;
}
.ct-social__links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .65rem;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: all .25s;
}
.ct-social__links a:hover {
    background: rgba(255,255,255,.28);
    transform: translateY(-3px);
}

/* ── RIGHT FORM ───────────────────────────────────────────── */
.ct-form-wrap {
    background: var(--ct-card);
    border-radius: var(--ct-radius);
    padding: 2.5rem;
    box-shadow: var(--ct-shadow-md);
    border: 1px solid var(--ct-border);
}

.ct-form-head { margin-bottom: 2rem; }

.ct-form-head__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ct-text);
    margin-bottom: .4rem;
}

.ct-form-head__sub {
    font-size: .95rem;
    color: var(--ct-muted);
}

/* alert */
.ct-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--ct-radius-sm);
    margin-bottom: 1.5rem;
    font-size: .9rem;
}
.ct-alert--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
[data-theme="dark"] .ct-alert--success {
    background: rgba(6,95,70,.2);
    border-color: rgba(110,231,183,.2);
    color: #6ee7b7;
}
.ct-alert__icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.ct-alert strong { display: block; font-weight: 600; margin-bottom: .2rem; }

/* form */
.ct-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ct-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 600px) {
    .ct-form__row { grid-template-columns: 1fr 1fr; }
}

/* field */
.ct-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ct-field__label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ct-text);
}
.ct-field__label span { color: #ef4444; margin-left: .1rem; }

.ct-field__wrap { position: relative; }

.ct-field__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ct-muted);
    font-size: .88rem;
    pointer-events: none;
    transition: color .2s;
}
.ct-field__icon--top {
    top: 1.1rem;
    transform: none;
}
.ct-field__wrap:focus-within .ct-field__icon {
    color: var(--ct-violet);
}

.ct-field__input {
    width: 100%;
    padding: .8rem 1rem .8rem 2.75rem;
    background: var(--ct-bg);
    border: 1.5px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);
    font-size: .95rem;
    color: var(--ct-text);
    transition: all .2s ease;
    appearance: none;
}

.ct-field__input:focus {
    outline: none;
    border-color: var(--ct-violet);
    background: var(--ct-card);
    box-shadow: 0 0 0 4px rgba(109,40,217,.1);
}

.ct-field__input.is-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.ct-field__textarea {
    min-height: 140px;
    resize: vertical;
    padding-top: 1rem;
    line-height: 1.6;
}

.ct-field__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.ct-field__error {
    font-size: .8rem;
    color: #ef4444;
}

/* submit */
.ct-submit {
    width: 100%;
    padding: .9rem 2rem;
    background: linear-gradient(135deg, var(--ct-violet) 0%, var(--ct-violet-dk) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--ct-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    box-shadow: 0 4px 16px rgba(109,40,217,.35);
    transition: all .25s ease;
    margin-top: .5rem;
    letter-spacing: .02em;
}
.ct-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(109,40,217,.45);
}
.ct-submit i { transition: transform .25s; }
.ct-submit:hover i { transform: translateX(4px) rotate(-10deg); }
.ct-submit:active { transform: translateY(0); }

/* ============================================================
   MAP
   ============================================================ */
.ct-map {
    padding: 5rem 1.5rem;
    background: var(--ct-card);
    border-top: 1px solid var(--ct-border);
}

.ct-map__head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ct-map__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--ct-violet-lt);
    color: var(--ct-violet);
    border-radius: 9999px;
    padding: .35rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: .75rem;
}

.ct-map__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ct-text);
}

.ct-map__frame {
    border-radius: var(--ct-radius);
    overflow: hidden;
    box-shadow: var(--ct-shadow-lg);
    border: 2px solid var(--ct-border);
    transition: transform .3s, box-shadow .3s;
}
.ct-map__frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(109,40,217,.18);
}
.ct-map__frame iframe { display: block; }

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] .ct-stats,
[data-theme="dark"] .ct-form-wrap,
[data-theme="dark"] .ct-map {
    background: var(--ct-card);
    border-color: var(--ct-border);
}

[data-theme="dark"] .ct-field__input {
    background: rgba(255,255,255,.04);
    border-color: rgba(139,92,246,.2);
    color: var(--ct-text);
}
[data-theme="dark"] .ct-field__input:focus {
    background: rgba(255,255,255,.07);
    border-color: var(--ct-violet);
}
[data-theme="dark"] .ct-map__badge {
    background: rgba(109,40,217,.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .ct-hero   { padding: 7rem 1rem 4rem; min-height: 50vh; }
    .ct-panel,
    .ct-form-wrap { padding: 1.75rem; }
    .ct-main   { padding: 3rem 1rem; }
    .ct-map    { padding: 3rem 1rem; }
    .ct-map__frame iframe { height: 300px; }
}

@media (max-width: 480px) {
    .ct-hero__title { font-size: 1.8rem; }
    .ct-hero__sub   { font-size: .95rem; }
    .ct-stats__item { padding: .5rem .75rem; }
    .ct-stats__num  { font-size: 1.4rem; }
    .ct-panel,
    .ct-form-wrap   { padding: 1.25rem; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .ct-hero__particles span { animation: none; }
    .ct-btn, .ct-submit, .ct-social__links a, .ct-map__frame { transition: none; }
}

.ct-submit:focus-visible,
.ct-btn:focus-visible,
.ct-field__input:focus-visible {
    outline: 3px solid var(--ct-accent);
    outline-offset: 2px;
}
