/* ==========================================================================
   PAGE CONTACT — evan-nuee
   Préfixe : ct-
   Reprend les variables de thème globales (style.css). Mode clair géré via
   [data-theme="light"] sur un ancêtre.
   ========================================================================== */

.contact-page {
    background: var(--bg);
    color: var(--fg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.ct-hero {
    position: relative;
    padding: 130px 36px 100px;
    background: var(--bg);
    overflow: hidden;
}

.ct-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    max-width: 100%;
    background: radial-gradient(ellipse at center, var(--accent-soft, rgba(212,165,116,.1)) 0%, transparent 65%);
    pointer-events: none;
    animation: ctGlowPulse 6s ease-in-out infinite;
}

@keyframes ctGlowPulse {
    0%, 100% { opacity: .55; }
    50%      { opacity: 1; }
}

.ct-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ct-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
}

.ct-hero-kicker .ln {
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.ct-hero-title {
    font-family: var(--font-display);
    font-size: clamp(72px, 14vw, 200px);
    letter-spacing: 6px;
    color: var(--fg);
    margin: 0;
    line-height: .85;
    text-transform: uppercase;
}

.ct-hero-title .ital {
    display: inline-block;
    color: var(--accent);
    transform: translateY(-12px);
}

.ct-hero-sub {
    margin: 42px auto 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--fg-2);
    max-width: 580px;
    font-weight: 300;
}

.ct-hero-sub em {
    color: var(--accent);
    font-style: normal;
    font-weight: 400;
}

.ct-hero-tags {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fg-3, var(--fg-2));
}

.ct-hero-tags .dot {
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    align-self: center;
}

/* ==========================================================================
   MAIN : FORMULAIRE + SIDEBAR
   ========================================================================== */
.ct-main {
    padding: 0 36px 110px;
    background: var(--bg);
}

.ct-main-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

/* ===== Carte formulaire ===== */
.ct-form-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 48px 44px;
}

.ct-form-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
}

.ct-form-h {
    font-family: var(--font-display);
    font-size: 42px;
    letter-spacing: 2px;
    margin: 0;
    color: var(--fg);
    text-transform: uppercase;
}

.ct-form-h .acc { color: var(--accent); }

.ct-form-step-count {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fg-3, var(--fg-2));
}

.ct-form-step-count .cur { color: var(--accent); font-weight: 500; }

/* Progress */
.ct-progress {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin-bottom: 40px;
}

.ct-progress-bar {
    height: 2px;
    background: var(--line-2);
    position: relative;
    overflow: hidden;
}

.ct-progress-bar.done::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    animation: ctFillBar .6s ease-out;
}

.ct-progress-bar.active::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    background: var(--accent);
    animation: ctFillBar 1s ease-out;
}

@keyframes ctFillBar {
    0%   { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

/* Step labels */
.ct-step-labels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin-bottom: 36px;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ct-step-label {
    color: var(--fg-3, var(--fg-2));
    transition: color .3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-step-label .num {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid var(--line-2);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    flex-shrink: 0;
}

.ct-step-label.done { color: var(--fg-2); }

.ct-step-label.done .num {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.ct-step-label.active { color: var(--fg); }

.ct-step-label.active .num {
    border-color: var(--accent);
    color: var(--accent);
}

/* Step panes */
.ct-step-pane {
    display: none;
    animation: ctSlideIn .45s ease-out;
}

.ct-step-pane.active { display: block; }

@keyframes ctSlideIn {
    0%   { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.ct-pane-h {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-2);
    margin: 0 0 28px;
    font-weight: 300;
}

.ct-pane-h strong { color: var(--fg); font-weight: 400; }

/* Champs */
.ct-field {
    margin-bottom: 22px;
    position: relative;
}

.ct-field label {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fg-3, var(--fg-2));
    margin-bottom: 8px;
    font-weight: 400;
}

.ct-field label .req { color: var(--accent); }

.ct-field input,
.ct-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-2);
    padding: 10px 0 12px;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color .25s;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
    color: var(--fg-3, var(--fg-2));
    font-weight: 300;
}

.ct-field input:focus,
.ct-field textarea:focus { border-color: var(--accent); }

.ct-field input.ct-invalid,
.ct-field textarea.ct-invalid { border-color: #c0392b; }

.ct-field textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 14px;
}

/* Chips (étape 1) */
.ct-chips {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.ct-chip {
    padding: 18px 14px;
    border: 1px solid var(--line-2);
    background: transparent;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fg-2);
    cursor: pointer;
    transition: all .25s;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.ct-chip .ic {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--accent);
}

.ct-chip:hover {
    border-color: var(--accent);
    color: var(--fg);
}

.ct-chip.selected {
    border-color: var(--accent);
    background: var(--accent-soft, rgba(212,165,116,.1));
    color: var(--fg);
}

.ct-chip.selected::before {
    content: "●";
    position: absolute;
    top: 8px;
    right: 10px;
    color: var(--accent);
    font-size: 8px;
}

/* Deux colonnes */
.ct-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Honeypot — toujours caché */
.ct-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Actions */
.ct-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.ct-btn-back {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fg-2);
    cursor: pointer;
    padding: 8px 0;
    transition: color .25s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ct-btn-back::before { content: "←"; }
.ct-btn-back:hover { color: var(--accent); }
.ct-btn-back:disabled { opacity: .35; cursor: not-allowed; }
.ct-btn-back:disabled:hover { color: var(--fg-2); }

.ct-btn-next,
.ct-btn-submit {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 10.5px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 500;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.ct-btn-next::after { content: "→"; }
.ct-btn-submit { padding: 18px 38px; font-size: 11px; }
.ct-btn-submit::after { content: "✦"; }

.ct-btn-next:hover,
.ct-btn-submit:hover {
    background: var(--fg);
    transform: translateY(-2px);
}

.ct-btn-submit:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

/* Feedback */
.ct-form-feedback {
    margin-top: 28px;
    padding: 18px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--line-2);
}

.ct-form-feedback.is-success {
    border-color: var(--accent);
    background: var(--accent-soft, rgba(212,165,116,.1));
    color: var(--fg);
}

.ct-form-feedback.is-error {
    border-color: #c0392b;
    background: rgba(192, 57, 43, .08);
    color: var(--fg);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.ct-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ct-direct-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 36px 30px;
}

.ct-direct-h {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--fg);
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ct-direct-h .acc { color: var(--accent); }

.ct-direct-sub {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--fg-2);
    margin: 0 0 28px;
    line-height: 1.6;
    font-weight: 300;
}

.ct-contact-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: padding-left .3s;
    text-decoration: none;
    color: inherit;
}

.ct-contact-link:last-child { border-bottom: none; }
.ct-contact-link:hover { padding-left: 8px; }
.ct-contact-link:hover .ct-cl-name { color: var(--accent); }
.ct-contact-link:hover .ct-cl-arrow { color: var(--accent); transform: translateX(6px); }

.ct-cl-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    flex-shrink: 0;
    transition: all .3s;
}

.ct-contact-link:hover .ct-cl-icon { border-color: var(--accent); }

.ct-cl-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--fg-2);
    transition: stroke .25s;
}

.ct-contact-link:hover .ct-cl-icon svg { stroke: var(--accent); }

.ct-cl-body { flex: 1; min-width: 0; }

.ct-cl-cat {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fg-3, var(--fg-2));
    margin-bottom: 4px;
}

.ct-cl-name {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--fg);
    transition: color .25s;
    word-break: break-word;
}

.ct-cl-arrow {
    font-size: 18px;
    color: var(--fg-2);
    transition: all .3s;
    flex-shrink: 0;
}

/* Carte avis */
.ct-avis-card {
    background: linear-gradient(135deg, var(--accent-soft, rgba(212,165,116,.1)) 0%, transparent 100%);
    border: 1px solid var(--accent);
    padding: 32px 30px;
    text-align: left;
}

.ct-avis-kicker {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.ct-avis-h {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--fg);
    margin: 0 0 12px;
    line-height: 1.05;
    text-transform: uppercase;
}

.ct-avis-h .acc { color: var(--accent); }

.ct-avis-p {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--fg-2);
    margin: 0 0 20px;
    line-height: 1.6;
    font-weight: 300;
}

.ct-avis-btn {
    background: transparent;
    border: 1px solid var(--fg);
    color: var(--fg);
    padding: 13px 22px;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 500;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ct-avis-btn::after { content: "→"; }
.ct-avis-btn:hover { background: var(--fg); color: var(--bg); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.ct-faq {
    padding: 100px 36px;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.ct-faq-head {
    text-align: center;
    margin-bottom: 56px;
}

.ct-faq-kicker {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.ct-faq-h {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 64px);
    letter-spacing: 3px;
    color: var(--fg);
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.ct-faq-h .acc { color: var(--accent); }

.ct-faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.ct-faq-item {
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: padding .25s;
}

.ct-faq-item:hover { padding-left: 8px; }

.ct-faq-q {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.ct-faq-q-text {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 1.5px;
    color: var(--fg);
    line-height: 1.1;
    text-transform: uppercase;
}

.ct-faq-q-text .num {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-right: 14px;
    font-weight: 400;
}

.ct-faq-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--fg-2);
    transition: all .3s;
    flex-shrink: 0;
}

.ct-faq-item.open .ct-faq-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: rotate(45deg);
}

.ct-faq-item:hover .ct-faq-icon { border-color: var(--accent); color: var(--accent); }

.ct-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}

.ct-faq-item.open .ct-faq-a {
    max-height: 260px;
    padding: 0 0 28px;
}

.ct-faq-a-text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--fg-2);
    max-width: 680px;
    font-weight: 300;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
    .ct-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .ct-hero { padding: 90px 20px 60px; }
    .ct-hero-sub { font-size: 15px; }
    .ct-main { padding: 0 20px 80px; }
    .ct-form-card { padding: 32px 22px; }
    .ct-form-h { font-size: 34px; }
    .ct-chips { grid-template-columns: 1fr 1fr; }
    .ct-row-2 { grid-template-columns: 1fr; gap: 0; }
    .ct-step-labels { font-size: 11px; }
    .ct-step-label { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ct-faq { padding: 70px 20px; }
    .ct-faq-q-text { font-size: 20px; }
    .ct-direct-card, .ct-avis-card { padding: 28px 22px; }
}

@media (max-width: 380px) {
    .ct-chips { grid-template-columns: 1fr; }
}
