/* ============================================================
   contact.css — Page Contact
   ============================================================ */

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */

.ct-hero {
    position: relative;
    background: linear-gradient(155deg, #0F2547 0%, #1B3A6B 55%, #1B5EA7 100%);
    text-align: center;
    padding-bottom: 0;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Orbes décoratives */
.ct-hero-bg { position: absolute; inset: 0; pointer-events: none; }

.ct-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .12;
}

.ct-hero-orb--1 {
    width: 400px; height: 400px;
    background: #F5A623;
    top: -100px; left: -80px;
    animation: orb-drift 10s ease-in-out infinite;
}

.ct-hero-orb--2 {
    width: 300px; height: 300px;
    background: #3A7FCA;
    top: 50px; right: -60px;
    animation: orb-drift 14s ease-in-out 2s infinite reverse;
}

.ct-hero-orb--3 {
    width: 200px; height: 200px;
    background: #F5A623;
    bottom: 60px; left: 40%;
    animation: orb-drift 8s ease-in-out 1s infinite;
}

@keyframes orb-drift {
    0%,100% { transform: translate(0,0); }
    33%      { transform: translate(20px,-15px); }
    66%      { transform: translate(-15px,10px); }
}

.ct-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 90px 24px 60px;
}

.ct-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,.18);
    border: 1px solid rgba(245,166,35,.4);
    color: #F5A623;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    margin-bottom: 20px;
}

.ct-hero-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.ct-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats hero */
.ct-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.ct-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ct-hero-stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #F5A623;
    line-height: 1;
}

.ct-hero-stat-lbl {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ct-hero-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.15);
}

/* Vague de transition */
.ct-hero-wave {
    position: relative;
    z-index: 2;
    margin-top: auto;
    line-height: 0;
}

.ct-hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ══════════════════════════════════════════════
   SECTION PRINCIPALE
══════════════════════════════════════════════ */

.ct-main {
    background: #ffffff;
    padding: 72px 0;
}

.ct-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

/* ── Colonne formulaire ───────────────────── */

.ct-form-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(27,58,107,.08);
    padding: 40px 40px 36px;
    box-shadow: 0 4px 40px rgba(27,58,107,.07);
}

.ct-form-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(27,58,107,.08);
}

.ct-form-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #EBF4FF;
    color: #1B5EA7;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-form-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1.4rem;
    color: #1B3A6B;
    margin-bottom: 4px;
    line-height: 1.2;
}

.ct-form-subtitle {
    font-size: 12px;
    color: #444;
    margin: 0;
}

/* Alerte */
.ct-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    line-height: 1.5;
}

.ct-alert--success {
    background: #E8F5E9;
    color: #1B6B2A;
    border-left: 4px solid #2E8B3A;
}

.ct-alert--error {
    background: #FDECEC;
    color: #C0392B;
    border-left: 4px solid #C0392B;
}

/* Champs */
.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ct-field {
    margin-bottom: 18px;
}

.ct-req {
    color: #C0392B;
    font-size: 12px;
    margin-left: 2px;
}

.ct-opt {
    color: #444;
    font-size: 11px;
    font-weight: 400;
    margin-left: 4px;
}

/* Input avec icône */
.ct-input-icon {
    position: relative;
}

.ct-input-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8AB4D9;
    font-size: 14px;
    pointer-events: none;
    transition: color 200ms ease;
}

.ct-input-icon .form-control {
    padding-left: 38px;
}

.ct-input-icon:focus-within .ct-input-ico {
    color: #1B5EA7;
}

/* Select avec icône */
.ct-input-icon .form-select {
    padding-left: 38px;
}

/* Footer champ message */
.ct-field-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.ct-counter {
    font-size: 11px;
    color: #8AB4D9;
    flex-shrink: 0;
}

.ct-counter.is-warn { color: #F5A623; }
.ct-counter.is-max  { color: #C0392B; }

/* Erreur champ */
.ct-err {
    display: block;
    font-size: 11px;
    color: #C0392B;
    min-height: 16px;
    margin-top: 4px;
}

/* Confidentialité */
.ct-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #8AB4D9;
    margin-bottom: 22px;
    line-height: 1.55;
}

.ct-privacy i { flex-shrink: 0; margin-top: 2px; }

/* Bouton submit */
.ct-submit {
    width: 100%;
    padding: 14px 28px;
    border-radius: 10px;
    background: #1B3A6B;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    transition: all 250ms ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    transform: translateX(-100%);
    transition: transform 500ms ease;
}

.ct-submit:hover {
    background: #1B5EA7;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27,58,107,.3);
}

.ct-submit:hover::before {
    transform: translateX(100%);
}

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

.ct-submit-default,
.ct-submit-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ct-submit-loading { display: none; }

.ct-submit.is-loading .ct-submit-default { display: none; }
.ct-submit.is-loading .ct-submit-loading { display: flex; }

/* Spinner */
.ct-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ct-spin 600ms linear infinite;
    flex-shrink: 0;
}

@keyframes ct-spin { to { transform: rotate(360deg); } }

/* ── Colonne infos ─────────────────────────── */

.ct-info-col {
    position: sticky;
    top: 130px;
}

.ct-info-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1.5rem;
    color: #1B3A6B;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 3px solid #F5A623;
    display: inline-block;
}

/* Délai de réponse */
.ct-response-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1B3A6B, #1B5EA7);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.ct-response-icon {
    width: 44px;
    height: 44px;
    background: rgba(245,166,35,.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #F5A623;
    flex-shrink: 0;
}

.ct-response-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.ct-response-val {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

/* Liste contacts */
.ct-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.ct-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(27,58,107,.08);
    background: #F8FAFC;
    transition: all 200ms ease;
    text-decoration: none;
}

.ct-contact-item--link:hover {
    border-color: #3A7FCA;
    background: #EBF4FF;
    transform: translateX(4px);
}

.ct-contact-ico {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ct-contact-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ct-contact-label {
    font-size: 11px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ct-contact-val {
    font-size: 13px;
    font-weight: 600;
    color: #1B3A6B;
    word-break: break-all;
}

.ct-contact-arrow {
    font-size: 12px;
    color: #8AB4D9;
    flex-shrink: 0;
    transition: color 200ms ease;
}

.ct-contact-item--link:hover .ct-contact-arrow {
    color: #1B5EA7;
}

/* Réseaux sociaux */
.ct-social-label {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.ct-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ct-social-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--social-color);
    border: 1.5px solid currentColor;
    background: transparent;
    text-decoration: none;
    transition: all 200ms ease;
    opacity: .8;
}

.ct-social-btn:hover {
    background: var(--social-color);
    color: #ffffff;
    opacity: 1;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════ */

.ct-faq-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: start;
}

.ct-faq-badge {
    display: inline-block;
    background: #1B3A6B;
    color: #F5A623;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.ct-faq-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1.7rem;
    color: #1B3A6B;
    margin-bottom: 14px;
    line-height: 1.25;
}

.ct-faq-sub {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 24px;
}

.ct-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1B5EA7;
    text-decoration: none;
    transition: gap 200ms ease;
}

.ct-faq-link:hover { gap: 12px; }

/* FAQ items */
.ct-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-faq-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid rgba(27,58,107,.08);
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ct-faq-item.is-open {
    border-color: #1B5EA7;
    box-shadow: 0 4px 16px rgba(27,58,107,.08);
}

.ct-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1B3A6B;
    text-align: left;
    transition: color 200ms ease;
}

.ct-faq-item.is-open .ct-faq-q {
    color: #1B5EA7;
}

.ct-faq-ico {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #F0F4F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 200ms ease;
}

.ct-faq-item.is-open .ct-faq-ico {
    background: #EBF4FF;
    color: #1B5EA7;
}

.ct-faq-plus  { display: block; }
.ct-faq-minus { display: none; }

.ct-faq-item.is-open .ct-faq-plus  { display: none; }
.ct-faq-item.is-open .ct-faq-minus { display: block; }

/* Réponse accordéon */
.ct-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 350ms cubic-bezier(.4,0,.2,1);
}

.ct-faq-item.is-open .ct-faq-a {
    max-height: 600px;
}

.ct-faq-a-inner {
    padding: 0 20px 18px;
    border-top: 1px solid rgba(27,58,107,.06);
}

.ct-faq-a-inner p {
    font-size: 13.5px;
    color: #444;
    line-height: 1.75;
    margin: 14px 0 0;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 991px) {
    .ct-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .ct-info-col { position: static; }
    .ct-faq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 575px) {
    .ct-form-card { padding: 24px 20px; }
    .ct-row       { grid-template-columns: 1fr; gap: 0; }
    .ct-hero-stats { gap: 16px; }
    .ct-hero-stat-sep { display: none; }
}
