/* ============================================================
   E-FONIJ — Couche de marque globale
   Chargée APRÈS style.css/responsive.css pour harmoniser
   la palette sur toute la plateforme + styliser la modale auth.
   Palette officielle (landing) :
     teal-dark #0A7A6E · teal #0D9E8A · cyan #22D3EE
     accent #F4503A · dark #0F1F1C
   ============================================================ */

:root {
    /* Tokens FONIJ réutilisables */
    --ef-teal-dark: #0A7A6E;
    --ef-teal: #0D9E8A;
    --ef-cyan: #22D3EE;
    --ef-accent: #F4503A;
    --ef-dark: #0F1F1C;
    --ef-grad-teal: linear-gradient(135deg, #0A7A6E, #0D9E8A);
    --ef-grad-teal-strong: linear-gradient(135deg, #0a7a6e 0%, #0d9e8a 58%, #12b3a0 100%);

    /* Harmonisation plateforme : la primaire du thème (rgb(var(--primary)))
       est alignée sur le teal foncé FONIJ #0A7A6E (contraste blanc ≈ 4.5:1). */
    --primary: 10, 122, 110;
}

/* ----------------------------------------------------------------
   MODALE AUTH (Connexion / Inscription en onglets)
   ---------------------------------------------------------------- */
.ef-auth-modal .modal-dialog {
    max-width: 460px;
}
.ef-auth-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 31, 28, 0.28);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* En-tête de marque */
.ef-auth-modal .ef-auth-head {
    position: relative;
    padding: 1.5rem 1.5rem 1.25rem;
    background: var(--ef-grad-teal);
    color: #fff;
    overflow: hidden;
}
.ef-auth-modal .ef-auth-head::before {
    content: "";
    position: absolute;
    top: -42px; right: -28px;
    width: 130px; height: 130px;
    background: rgba(34, 211, 238, 0.16);
    border-radius: 50%;
}
.ef-auth-modal .ef-auth-head::after {
    content: "";
    position: absolute;
    bottom: -52px; right: 48px;
    width: 96px; height: 96px;
    background: rgba(244, 80, 58, 0.12);
    border-radius: 50%;
}
.ef-auth-modal .ef-auth-head .btn-close {
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 2;
    filter: invert(1) grayscale(1) brightness(1.6);
    opacity: 0.85;
}
.ef-auth-modal .ef-auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.ef-auth-modal .ef-auth-brand .ef-auth-logo {
    width: 46px; height: 46px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 31, 28, 0.18);
}
.ef-auth-modal .ef-auth-brand .ef-auth-logo img {
    width: 30px; height: 30px;
    object-fit: contain;
}
.ef-auth-modal .ef-auth-brand .ef-auth-titles strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.ef-auth-modal .ef-auth-brand .ef-auth-titles span {
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 1px;
}
.ef-auth-modal .ef-auth-flag {
    height: 4px;
    background: linear-gradient(to right, #22d3ee 40%, #f4503a 60%);
}

/* Onglets segmentés */
.ef-auth-modal .ef-auth-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 1rem 1.25rem 0;
    padding: 0.3rem;
    background: #eef3f4;
    border-radius: 12px;
    border: none;
}
.ef-auth-modal .ef-auth-tabs .nav-item {
    flex: 1 1 0;
}
.ef-auth-modal .ef-auth-tabs .nav-link {
    width: 100%;
    border: none;
    border-radius: 9px;
    padding: 0.55rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(15, 31, 28, 0.55);
    background: transparent;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.ef-auth-modal .ef-auth-tabs .nav-link:hover {
    color: var(--ef-teal-dark);
}
.ef-auth-modal .ef-auth-tabs .nav-link.active {
    color: var(--ef-teal-dark);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 31, 28, 0.08);
}

/* Corps */
.ef-auth-modal .modal-body {
    padding: 1.1rem 1.5rem 1.5rem;
}
.ef-auth-modal .ef-auth-body-title {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ef-dark);
}
.ef-auth-modal .ef-auth-body-sub {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(15, 31, 28, 0.6);
    margin-bottom: 1.1rem;
}

/* ----------------------------------------------------------------
   Champs & boutons auth (modale + pages standalone)
   ---------------------------------------------------------------- */
.ef-auth-modal .form-control,
.ef-auth-scope .form-control {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ef-auth-modal .form-control:focus,
.ef-auth-scope .form-control:focus {
    border-color: var(--ef-teal);
    box-shadow: 0 0 0 3px rgba(13, 158, 138, 0.18);
}
.ef-auth-modal .form-label,
.ef-auth-scope .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(15, 31, 28, 0.78);
    margin-bottom: 0.3rem;
}
.ef-auth-modal .form-check-input:checked {
    background-color: var(--ef-teal);
    border-color: var(--ef-teal);
}

/* Bouton primaire auth = dégradé teal FONIJ */
.ef-auth-modal .ef-auth-submit,
.ef-auth-scope .ef-auth-submit {
    background: var(--ef-grad-teal) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    box-shadow: 0 4px 14px rgba(13, 158, 138, 0.25);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.ef-auth-modal .ef-auth-submit:hover:not(:disabled),
.ef-auth-scope .ef-auth-submit:hover:not(:disabled) {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 158, 138, 0.3);
}
.ef-auth-modal .ef-auth-submit:disabled,
.ef-auth-scope .ef-auth-submit:disabled {
    opacity: 0.55;
    box-shadow: none;
}

/* Liens secondaires */
.ef-auth-modal .ef-auth-link,
.ef-auth-scope .ef-auth-link {
    color: var(--ef-teal-dark);
    font-weight: 600;
    text-decoration: none;
}
.ef-auth-modal .ef-auth-link:hover,
.ef-auth-scope .ef-auth-link:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .ef-auth-modal .modal-dialog {
        max-width: none;
        margin: 0.75rem;
    }
}

/* ============================================================
   SYSTÈME DE DESIGN LANDING — « Clarté institutionnelle premium »
   Composants unifiés appliqués à toutes les sections.
   Chargé après style.css/responsive.css → surcharge le thème.
   ============================================================ */

:root {
    --ef-nav-h: 84px;
    --ef-ink: #0f1f1c;
    --ef-muted: rgba(15, 31, 28, 0.62);
    --ef-line: rgba(15, 31, 28, 0.08);
    --ef-surface: #ffffff;
    --ef-surface-tint: #e9f6f2;
    --ef-radius: 10px;
    --ef-radius-sm: 8px;
    --ef-shadow-sm: 0 2px 12px rgba(15, 31, 28, 0.05);
    --ef-shadow-md: 0 10px 30px rgba(13, 158, 138, 0.12);
    --ef-shadow-lg: 0 18px 44px rgba(15, 31, 28, 0.1);
}

/* ---------- Ancres précises (compense la navbar fixe) ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--ef-nav-h);
}
.ef-modern-landing section[id],
.ef-modern-landing .landing-section[id] {
    scroll-margin-top: var(--ef-nav-h);
}

/* ---------- Rythme & fonds alternés des sections ---------- */
/* Alternance : À propos (teinté) → Passeport (blanc) → Offres (teinté) → Contact (blanc) */
.ef-modern-landing #APropos { background: var(--ef-surface-tint); }
.ef-modern-landing #Passeport { background: var(--ef-surface); }
.ef-modern-landing #NosOffres { background: var(--ef-surface-tint); }
.ef-modern-landing #Contact { background: var(--ef-surface); }

/* Liseré doux délimitant les sections teintées */
.ef-modern-landing #APropos,
.ef-modern-landing #NosOffres {
    border-top: 1px solid var(--ef-line);
    border-bottom: 1px solid var(--ef-line);
}

/* Rythme vertical homogène (remplace les anciennes « jonctions » devenues obsolètes) */
.ef-modern-landing #APropos.section-lg-space-x,
.ef-modern-landing #Passeport.section-lg-space-x,
.ef-modern-landing #NosOffres.section-lg-space-x {
    padding-top: clamp(2.25rem, 4.5vw, 3rem) !important;
    padding-bottom: clamp(2.25rem, 4.5vw, 3rem) !important;
}

/* ---------- En-tête de section unifié (.landing-title) ---------- */
.ef-modern-landing .landing-title .title-badge,
.ef-modern-landing .landing-title.landing-title-light .title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ef-teal-dark);
    background: rgba(13, 158, 138, 0.1);
    border: 1px solid rgba(13, 158, 138, 0.2);
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
}
.ef-modern-landing .landing-title.landing-title-light .title-badge {
    color: #d6fff8;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}
.ef-modern-landing .landing-title h2 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ef-ink);
    line-height: 1.12;
}
.ef-modern-landing .landing-title.landing-title-light h2 { color: #fff; }
.ef-modern-landing .landing-title .highlight-title {
    background: linear-gradient(118deg, #0a7a6e 0%, #0d9e8a 42%, #22d3ee 96%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ef-modern-landing .landing-title.landing-title-light .highlight-title {
    background: linear-gradient(118deg, #6ff2e1 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ef-modern-landing .landing-title p {
    color: var(--ef-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}
.ef-modern-landing .landing-title.landing-title-light p {
    color: rgba(255, 255, 255, 0.82);
}

/* ---------- Carte unifiée (.ef-card + classes thème) ---------- */
.ef-modern-landing .ef-card,
.ef-modern-landing #NosOffres .blog-card,
.ef-modern-landing #APropos .demo-card,
.ef-modern-landing #Contact .landing-accordion ~ * .card,
.ef-modern-landing #Fonctionnalites .row.g-4 .card {
    border: 1px solid var(--ef-line);
    border-radius: var(--ef-radius);
    background: var(--ef-surface);
    box-shadow: var(--ef-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}
.ef-modern-landing .ef-card:hover,
.ef-modern-landing #NosOffres .blog-card:hover,
.ef-modern-landing #APropos .demo-card:hover,
.ef-modern-landing #Fonctionnalites .row.g-4 .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ef-shadow-md);
    border-color: rgba(13, 158, 138, 0.22);
}

/* ---------- Puce d'icône (.ef-chip) ---------- */
.ef-modern-landing .ef-chip {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(15, 31, 28, 0.04);
}
.ef-modern-landing .ef-chip--teal { background: rgba(13, 158, 138, 0.12); color: var(--ef-teal-dark); }
.ef-modern-landing .ef-chip--cyan { background: rgba(34, 211, 238, 0.16); color: #0e7490; }
.ef-modern-landing .ef-chip--accent { background: rgba(244, 80, 58, 0.12); color: var(--ef-accent); }
.ef-modern-landing .ef-chip--success { background: rgba(16, 185, 129, 0.14); color: #059669; }
.ef-modern-landing .ef-chip--warning { background: rgba(245, 158, 11, 0.15); color: #b45309; }

/* ---------- Boutons utilitaires ---------- */
.ef-modern-landing .ef-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ef-grad-teal);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.45rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(13, 158, 138, 0.22);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.ef-modern-landing .ef-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 6px 18px rgba(13, 158, 138, 0.28);
}
.ef-modern-landing .ef-btn--ghost {
    background: #fff;
    color: var(--ef-teal-dark);
    border: 2px solid rgba(13, 158, 138, 0.35);
    box-shadow: 0 1px 4px rgba(15, 31, 28, 0.05);
}
.ef-modern-landing .ef-btn--ghost:hover {
    color: var(--ef-teal-dark);
    background: rgba(13, 158, 138, 0.07);
    border-color: var(--ef-teal);
}

/* ---------- Apparition au scroll (.ef-reveal) ----------
   État initial caché UNIQUEMENT si le JS est actif (classe .ef-js sur <html>).
   Sans JS, le contenu reste visible (pas de contenu masqué). */
html.ef-js .ef-modern-landing .ef-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: calc(var(--ef-reveal-i, 0) * 80ms);
    will-change: opacity, transform;
}
html.ef-js .ef-modern-landing .ef-reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .ef-modern-landing .ef-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
}

/* ============================================================
   HABILLAGE PAR SECTION
   ============================================================ */

/* ---------- Bandeau « axes » (bridge) ---------- */
.ef-modern-landing .ef-bridge-language-box .language-box-item a {
    box-shadow: 0 6px 18px rgba(15, 31, 28, 0.1);
}

/* ---------- Nos offres ---------- */
.ef-modern-landing #NosOffres .blog-card .tag-container {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}
.ef-modern-landing #NosOffres .blog-card .tag-container .badge {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ef-teal-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 31, 28, 0.08);
}
.ef-modern-landing #NosOffres .blog-card .title-text {
    color: var(--ef-ink);
    font-weight: 700;
    transition: color 0.2s ease;
}
.ef-modern-landing #NosOffres .blog-card:hover .title-text { color: var(--ef-teal-dark); }
.ef-modern-landing #NosOffres .ef-offer-cta {
    border-color: rgba(13, 158, 138, 0.4);
    color: var(--ef-teal-dark);
    font-weight: 600;
}
.ef-modern-landing #NosOffres .ef-offer-cta:hover {
    background: var(--ef-grad-teal);
    border-color: transparent;
    color: #fff;
}
.ef-modern-landing #NosOffres .ef-empty {
    border: 1px dashed rgba(13, 158, 138, 0.3);
    background: rgba(13, 158, 138, 0.04);
    border-radius: var(--ef-radius);
    color: var(--ef-muted);
}

/* ---------- À propos (fusion : atouts + acteurs) ---------- */
.ef-modern-landing #APropos .demo-card .card-body {
    padding: 1.6rem 1.4rem;
    text-align: left;
}
.ef-modern-landing #APropos .demo-card h4 {
    color: var(--ef-ink);
    font-weight: 700;
}
.ef-modern-landing #APropos .ef-about-grid { --bs-gutter-y: 1.5rem; }

/* Sous-titre interne d'une section */
.ef-modern-landing .ef-subhead {
    margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
    margin-bottom: 1.35rem;
}
.ef-modern-landing .ef-subhead h3 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ef-ink);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    margin: 0 0 0.4rem;
}
.ef-modern-landing .ef-subhead p {
    color: var(--ef-muted);
    margin: 0;
    max-width: 44rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Liste à puces « check » harmonisée */
.ef-modern-landing .ef-feature-list { list-style: none; padding: 0; margin: 0; }
.ef-modern-landing .ef-feature-list li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 0.6rem;
    color: var(--ef-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}
.ef-modern-landing .ef-feature-list li:last-child { margin-bottom: 0; }
.ef-modern-landing .ef-feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(13, 158, 138, 0.12);
    color: var(--ef-teal-dark);
    font-size: 0.68rem;
    font-weight: 700;
}

/* ---------- Passeport : cartes « étapes » ---------- */
.ef-modern-landing #Passeport .ef-passeport-grid { --bs-gutter-y: 1.5rem; }
.ef-modern-landing #Passeport .ef-step-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.ef-modern-landing #Passeport .ef-step-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22d3ee, #0d9e8a);
}
.ef-modern-landing #Passeport .ef-step-card > .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.65rem 1.5rem 1.7rem;
}
.ef-modern-landing .ef-step-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}
.ef-modern-landing .ef-step-num {
    width: 50px; height: 50px;
    border-radius: 14px;
    flex-shrink: 0;
    background: var(--ef-grad-teal);
    color: #fff;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(13, 158, 138, 0.28);
}
.ef-modern-landing .ef-step-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ef-teal-dark);
}
.ef-modern-landing .ef-step-title { margin: 0.1rem 0 0; font-weight: 700; color: var(--ef-ink); }
.ef-modern-landing #Passeport .ef-step-card p { margin-bottom: 1.1rem; }
.ef-modern-landing .ef-step-req {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ef-teal-dark);
    background: rgba(13, 158, 138, 0.08);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
}

/* ============================================================
   HAUTEURS UNIFORMES — toutes les cartes d'une rangée s'alignent
   en hauteur, et le pied (CTA/auteur) se cale en bas.
   ============================================================ */
.ef-modern-landing #NosOffres .blog-card,
.ef-modern-landing #APropos .demo-card,
.ef-modern-landing #Fonctionnalites .row.g-4 .card,
.ef-modern-landing .ef-petj-grid .card-primary {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ef-modern-landing #NosOffres .blog-card > .card-body,
.ef-modern-landing #Fonctionnalites .row.g-4 .card > .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
/* Le séparateur pousse le pied (auteur + CTA) toujours en bas de la carte */
.ef-modern-landing #NosOffres .blog-card .app-divider-v.dashed { margin-top: auto; }
/* Listes des cartes Fonctionnalités : occupent l'espace, CTA alignés si présents */
.ef-modern-landing #Fonctionnalites .row.g-4 .card > .card-body > ul { flex: 1 1 auto; margin-bottom: 0; }
/* PETJ : corps de carte en colonne, contenu réparti */
.ef-modern-landing .ef-petj-grid .card-primary > .card-body { flex: 1 1 auto; }
.ef-modern-landing .ef-petj-grid .element-card { width: 100%; }

/* ---------- Fonctionnalités (panneau sombre flottant) ---------- */
.ef-modern-landing #Fonctionnalites .features-section-content {
    background: linear-gradient(160deg, #0a4a43 0%, #0a7a6e 55%, #0d9e8a 120%);
    border-radius: clamp(18px, 3vw, 28px);
    position: relative;
    overflow: hidden;
    margin-block: clamp(0.5rem, 2.5vw, 1.75rem);
}
.ef-modern-landing #Fonctionnalites .features-section-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 12% 8%, rgba(34, 211, 238, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 45% at 92% 95%, rgba(244, 80, 58, 0.1), transparent 55%);
    pointer-events: none;
}
/* Contenu (titre + grille) toujours au-dessus de l'overlay décoratif */
.ef-modern-landing #Fonctionnalites .features-section-content > .row {
    position: relative;
    z-index: 1;
}
.ef-modern-landing #Fonctionnalites .row.g-4 .card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ef-modern-landing #Fonctionnalites .row.g-4 .card > .card-body {
    padding: 1.6rem 1.4rem 1.7rem;
}
.ef-modern-landing #Fonctionnalites .row.g-4 .card h4 {
    font-weight: 700;
    margin-bottom: 1.1rem !important;
}
.ef-modern-landing #Fonctionnalites .row.g-4 .card ul li {
    color: rgba(15, 31, 28, 0.74);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0.6rem !important;
}
.ef-modern-landing #Fonctionnalites .row.g-4 .card ul li:last-child { margin-bottom: 0 !important; }
.ef-modern-landing #Fonctionnalites .ef-chip { margin-bottom: 1.05rem; }

/* ---------- PETJ : progression 3 niveaux ---------- */
.ef-modern-landing .ef-petj-grid { counter-reset: efpetj; position: relative; }
.ef-modern-landing .ef-petj-grid .card-primary {
    border-radius: var(--ef-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ef-modern-landing .ef-petj-grid .card-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--ef-shadow-lg);
}
.ef-modern-landing .ef-petj-grid .element-content .icon-btn {
    background: #fff !important;
    box-shadow: 0 6px 16px rgba(15, 31, 28, 0.18);
}

/* ---------- FAQ / Contact ---------- */
.ef-modern-landing #Contact .accordion-item {
    border: 1px solid var(--ef-line);
    border-radius: var(--ef-radius-sm) !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--ef-shadow-sm);
}
.ef-modern-landing #Contact .accordion-header { margin: 0; }
/* Padding interne cohérent (l'accordéon "flush" du thème le mettait à 0) */
.ef-modern-landing #Contact .accordion-button {
    font-weight: 600;
    color: var(--ef-ink);
    padding: 1.05rem 1.35rem !important;
}
.ef-modern-landing #Contact .accordion-button:not(.collapsed) {
    color: var(--ef-teal-dark);
    background: rgba(13, 158, 138, 0.06);
}
.ef-modern-landing #Contact .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(13, 158, 138, 0.2);
}
.ef-modern-landing #Contact .accordion-body {
    padding: 0.35rem 1.35rem 1.2rem !important;
    color: var(--ef-muted);
    line-height: 1.65;
}
.ef-modern-landing #Contact .accordion-body p { margin-bottom: 0; }

/* ---------- Footer ---------- */
.ef-modern-landing .landing-footer .footer-quicknav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.4rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.ef-modern-landing .landing-footer .footer-quicknav a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ef-modern-landing .landing-footer .footer-quicknav a:hover { color: #fff; }
.ef-modern-landing .landing-footer .footer-legal {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
}

/* Footer animé : décor qui dérive doucement + logo flottant */
.ef-modern-landing .landing-footer { position: relative; overflow: hidden; }
.ef-modern-landing .landing-footer::before,
.ef-modern-landing .landing-footer::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.ef-modern-landing .landing-footer::before {
    width: 340px; height: 340px;
    top: -130px; left: -90px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
}
.ef-modern-landing .landing-footer::after {
    width: 380px; height: 380px;
    bottom: -170px; right: -100px;
    background: radial-gradient(circle, rgba(244, 80, 58, 0.12), transparent 70%);
}
.ef-modern-landing .landing-footer .container { position: relative; z-index: 1; }
.ef-modern-landing .landing-footer .footer-section-logo { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.ef-modern-landing .landing-footer h1 {
    background: linear-gradient(100deg, #ffffff 0%, #d6fff8 55%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
    .ef-modern-landing .landing-footer::before { animation: ef-foot-drift-a 16s ease-in-out infinite; }
    .ef-modern-landing .landing-footer::after { animation: ef-foot-drift-b 20s ease-in-out infinite; }
    .ef-modern-landing .landing-footer .footer-section-logo { animation: ef-foot-float 5.5s ease-in-out infinite; }
}
@keyframes ef-foot-drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(34px, 22px); } }
@keyframes ef-foot-drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-28px, -20px); } }
@keyframes ef-foot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Pages auth standalone harmonisées (.ef-auth-scope) ---------- */
.ef-auth-scope .login-form-container { background: transparent; }

/* ============================================================
   CARTE AUTH STANDALONE (vérification 2FA, etc.) — langage modale
   ============================================================ */
.ef-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background:
        radial-gradient(ellipse 90% 70% at 10% 8%, rgba(13, 158, 138, 0.12), transparent 55%),
        radial-gradient(ellipse 80% 60% at 92% 92%, rgba(34, 211, 238, 0.13), transparent 55%),
        linear-gradient(165deg, #f0fdfb 0%, #f8fafc 45%, #ecfeff 100%);
}
.ef-auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ef-line);
    box-shadow: 0 24px 70px rgba(15, 31, 28, 0.18);
}
.ef-auth-card .ef-auth-head {
    position: relative;
    padding: 1.5rem 1.5rem 1.25rem;
    background: var(--ef-grad-teal);
    color: #fff;
    overflow: hidden;
}
.ef-auth-card .ef-auth-head::before {
    content: "";
    position: absolute;
    top: -42px; right: -28px;
    width: 130px; height: 130px;
    background: rgba(34, 211, 238, 0.16);
    border-radius: 50%;
}
.ef-auth-card .ef-auth-head::after {
    content: "";
    position: absolute;
    bottom: -52px; right: 48px;
    width: 96px; height: 96px;
    background: rgba(244, 80, 58, 0.12);
    border-radius: 50%;
}
.ef-auth-card .ef-auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.ef-auth-card .ef-auth-logo {
    width: 46px; height: 46px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 31, 28, 0.18);
}
.ef-auth-card .ef-auth-logo img { width: 30px; height: 30px; object-fit: contain; }
.ef-auth-card .ef-auth-titles strong { display: block; font-size: 1.05rem; font-weight: 800; }
.ef-auth-card .ef-auth-titles span { display: block; font-size: 0.72rem; opacity: 0.85; margin-top: 1px; }
.ef-auth-card .ef-auth-flag { height: 4px; background: linear-gradient(to right, #22d3ee 40%, #f4503a 60%); }
.ef-auth-card .ef-auth-body { padding: 1.5rem; }
.ef-auth-card .ef-auth-body-title { margin: 0 0 0.3rem; font-size: 1.2rem; font-weight: 800; color: var(--ef-dark); }
.ef-auth-card .ef-auth-body-sub {
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(15, 31, 28, 0.6);
    margin-bottom: 1.35rem;
}
.ef-auth-card .ef-auth-body-sub strong { color: var(--ef-teal-dark); font-weight: 700; }

/* Saisie OTP */
.ef-otp {
    display: flex;
    gap: 0.55rem;
    justify-content: center;
    margin-bottom: 1.35rem;
}
.ef-otp input {
    width: 100%;
    max-width: 56px;
    aspect-ratio: 1 / 1;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ef-ink);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ef-otp input:focus {
    outline: none;
    border-color: var(--ef-teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 158, 138, 0.18);
}
.ef-otp input.is-filled { border-color: var(--ef-teal); background: #fff; }
.ef-auth-resend { font-size: 0.85rem; color: rgba(15, 31, 28, 0.6); }
.ef-auth-resend .btn-link {
    color: var(--ef-teal-dark);
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    vertical-align: baseline;
}
.ef-auth-resend .btn-link:hover { text-decoration: underline; }

/* Champ mot de passe avec bouton afficher/masquer */
.ef-pass-wrap { position: relative; }
.ef-pass-wrap .form-control { padding-right: 2.75rem; }
.ef-pass-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: rgba(15, 31, 28, 0.5);
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s, background 0.2s;
}
.ef-pass-toggle:hover { color: var(--ef-teal-dark); background: rgba(13, 158, 138, 0.08); }

/* ============================================================
   ASSISTANT E-FONIJ — logo de marque (remplace les emojis)
   ============================================================ */
#chat-toggle .ef-chat-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(15, 31, 28, 0.2);
}
.chat-header .header-avatar {
    background: #fff !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    overflow: hidden;
}
/* Photo FATI (source portrait 1086×1448) : cover + recadrage haut pour remplir
   le disque, sinon contain laisse des bords et la photo paraît ovale. */
.chat-header .header-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; padding: 0; border-radius: 50%; }
.b-avatar.bot {
    background: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(13, 158, 138, 0.18);
    overflow: hidden;
}
.b-avatar.bot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; padding: 0; display: block; border-radius: 50%; }
.b-avatar.user i { font-size: 15px; line-height: 1; }

/* ============================================================
   LANDING v2 — Preuve sociale, vitrine talents, fil, partenaires
   (esprit réseau social, palette FONIJ conservée)
   ============================================================ */

/* ---------- Bandeau preuve sociale ---------- */
.ef-modern-landing .ef-stats-strip {
    background: var(--ef-surface);
    border-bottom: 1px solid var(--ef-line);
    padding: clamp(1.5rem, 3.5vw, 2.25rem) 0;
}
.ef-modern-landing .ef-stats-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.ef-modern-landing .ef-stat { position: relative; padding: 0.5rem; }
.ef-modern-landing .ef-stat + .ef-stat { border-left: 1px solid var(--ef-line); }
.ef-modern-landing .ef-stat__num {
    display: block;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1;
    color: var(--ef-teal-dark);
    letter-spacing: -0.02em;
}
.ef-modern-landing .ef-stat__label {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ef-muted);
}
.ef-modern-landing .ef-stat__label::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: #16a34a;
    vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
    .ef-modern-landing .ef-stat__label::before { animation: ef-pulse 2.4s ease-in-out infinite; }
}
@keyframes ef-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}
@media (max-width: 575.98px) {
    .ef-modern-landing .ef-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.5rem; }
    .ef-modern-landing .ef-stat:nth-child(odd) { border-left: none; }
}

/* ---------- Rythme vertical des nouvelles sections ---------- */
.ef-modern-landing #Talents,
.ef-modern-landing #Partenaires {
    padding-top: clamp(2.25rem, 4.5vw, 3rem);
    padding-bottom: clamp(2.25rem, 4.5vw, 3rem);
}
/* Alternance des fonds : …NosOffres(tint) → Talents(blanc) → Partenaires(tint) → Contact(blanc) */
.ef-modern-landing #Talents { background: var(--ef-surface); }
.ef-modern-landing #Partenaires {
    background: var(--ef-surface-tint);
    border-top: 1px solid var(--ef-line);
    border-bottom: 1px solid var(--ef-line);
}

/* ---------- Vitrine talents (cartes profil façon réseau pro) ---------- */
.ef-modern-landing .ef-talents-grid { --bs-gutter-y: 1.5rem; }
.ef-modern-landing .ef-talent-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--ef-surface);
    border: 1px solid var(--ef-line);
    border-radius: var(--ef-radius);
    box-shadow: var(--ef-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ef-modern-landing .ef-talent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ef-shadow-md);
    border-color: rgba(13, 158, 138, 0.22);
}
.ef-modern-landing .ef-talent-card__head { display: flex; align-items: center; gap: 0.85rem; }
.ef-modern-landing .ef-talent-card__avatar {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--ef-grad-teal);
    color: #fff;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.15rem;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.ef-modern-landing .ef-talent-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ef-modern-landing .ef-talent-card__id h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ef-ink); }
.ef-modern-landing .ef-talent-card__badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    margin-top: 0.3rem;
    font-size: 0.72rem; font-weight: 700;
    color: var(--ef-teal-dark);
    background: rgba(13, 158, 138, 0.1);
    border-radius: 999px; padding: 0.22rem 0.6rem;
}
.ef-modern-landing .ef-talent-card__role { margin: 0; color: var(--ef-muted); font-size: 0.92rem; }
.ef-modern-landing .ef-talent-card__stats {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 0.75rem;
}
.ef-modern-landing .ef-talent-card__stats li {
    flex: 1; text-align: center;
    background: var(--ef-surface-tint);
    border-radius: var(--ef-radius-sm);
    padding: 0.6rem 0.3rem;
}
.ef-modern-landing .ef-talent-card__stats b {
    display: block; font-size: 1.15rem; font-weight: 800;
    color: var(--ef-teal-dark); font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}
.ef-modern-landing .ef-talent-card__stats span { font-size: 0.74rem; color: var(--ef-muted); }
.ef-modern-landing .ef-talent-card__cta { margin-top: auto; justify-content: center; width: 100%; }

/* ---------- Aperçu du fil communautaire ---------- */
.ef-modern-landing .ef-post-card {
    height: 100%;
    padding: 1.35rem 1.4rem;
    background: var(--ef-surface);
    border: 1px solid var(--ef-line);
    border-radius: var(--ef-radius);
    box-shadow: var(--ef-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ef-modern-landing .ef-post-card:hover { transform: translateY(-3px); box-shadow: var(--ef-shadow-md); }
.ef-modern-landing .ef-post-card__head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.85rem; }
.ef-modern-landing .ef-post-card__avatar {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
    background: rgba(13, 158, 138, 0.12); color: var(--ef-teal-dark);
    font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}
.ef-modern-landing .ef-post-card__head b { display: block; font-size: 0.95rem; color: var(--ef-ink); }
.ef-modern-landing .ef-post-card__tag {
    font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ef-teal-dark); background: rgba(13, 158, 138, 0.12);
    border-radius: 999px; padding: 0.12rem 0.5rem; margin-left: 0.35rem; vertical-align: middle;
}
.ef-modern-landing .ef-post-card__tag--cyan { color: #0e7490; background: rgba(34, 211, 238, 0.16); }
.ef-modern-landing .ef-post-card__time { font-size: 0.74rem; color: var(--ef-muted); }
.ef-modern-landing .ef-post-card__body { color: rgba(15, 31, 28, 0.78); font-size: 0.92rem; line-height: 1.6; margin: 0 0 0.9rem; }
.ef-modern-landing .ef-post-card__foot { display: flex; gap: 1.25rem; }
.ef-modern-landing .ef-post-card__foot span {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.82rem; font-weight: 600; color: var(--ef-muted);
}
.ef-modern-landing .ef-post-card__foot i { color: var(--ef-accent); }

/* ---------- Partenaires : grille de logos (gris → couleur au hover) ---------- */
.ef-modern-landing .ef-partner-grid {
    list-style: none; margin: 2.5rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem;
    align-items: center;
}
.ef-modern-landing .ef-partner-grid li {
    display: flex; align-items: center; justify-content: center;
    padding: 1.1rem 1rem;
    background: var(--ef-surface);
    border: 1px solid var(--ef-line);
    border-radius: var(--ef-radius-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ef-modern-landing .ef-partner-grid li:hover { border-color: rgba(13, 158, 138, 0.25); box-shadow: var(--ef-shadow-sm); }
.ef-modern-landing .ef-partner-grid img {
    max-width: 100%; max-height: 48px; width: auto; height: auto;
    filter: grayscale(1); opacity: 0.65;
    transition: filter 0.25s ease, opacity 0.25s ease;
}
.ef-modern-landing .ef-partner-grid li:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 991.98px) { .ef-modern-landing .ef-partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479.98px) { .ef-modern-landing .ef-partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   KYC ONBOARDING v2 — parcours de vérification (pleine page de marque)
   ============================================================ */
.ef-kyc-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: radial-gradient(ellipse 90% 70% at 10% 8%, rgba(13,158,138,.12), transparent 55%), radial-gradient(ellipse 80% 60% at 92% 92%, rgba(34,211,238,.13), transparent 55%), linear-gradient(165deg, #f0fdfb 0%, #f8fafc 45%, #ecfeff 100%); }
.ef-kyc-wrap { width: 100%; max-width: 680px; }
.ef-kyc-card, .ef-kyc-card * { box-sizing: border-box; }
.ef-kyc-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--ef-line); box-shadow: 0 24px 70px rgba(15,31,28,.18); }
.ef-kyc-head { position: relative; padding: 1.4rem 1.75rem; background: var(--ef-grad-teal); color: #fff; overflow: hidden; }
.ef-kyc-head::before { content: ""; position: absolute; top: -42px; right: -28px; width: 130px; height: 130px; background: rgba(34,211,238,.16); border-radius: 50%; }
.ef-kyc-head .brand { position: relative; z-index: 1; display: flex; align-items: center; gap: .7rem; }
.ef-kyc-head .brand .logo { width: 44px; height: 44px; flex-shrink: 0; background: #fff; border-radius: 11px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(15,31,28,.18); }
.ef-kyc-head .brand .logo img { width: 28px; height: 28px; object-fit: contain; }
.ef-kyc-head h1 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.ef-kyc-head p { margin: 1px 0 0; font-size: .78rem; opacity: .9; }
/* Stepper */
.ef-kyc-stepper { display: flex; gap: .5rem; padding: 1.1rem 1.75rem; border-bottom: 1px solid var(--ef-line); }
.ef-kyc-step { flex: 1; display: flex; flex-direction: column; gap: .45rem; }
.ef-kyc-step__bar { height: 5px; border-radius: 3px; background: #e6edeb; }
.ef-kyc-step.is-active .ef-kyc-step__bar, .ef-kyc-step.is-done .ef-kyc-step__bar { background: var(--ef-grad-teal); }
.ef-kyc-step__label { font-size: .74rem; font-weight: 700; color: var(--ef-muted); display: flex; align-items: center; gap: .35rem; }
.ef-kyc-step.is-active .ef-kyc-step__label, .ef-kyc-step.is-done .ef-kyc-step__label { color: var(--ef-teal-dark); }
.ef-kyc-step__num { width: 18px; height: 18px; border-radius: 50%; background: #e6edeb; color: #fff; font-size: .66rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ef-kyc-step.is-active .ef-kyc-step__num, .ef-kyc-step.is-done .ef-kyc-step__num { background: var(--ef-teal); }
/* Corps */
.ef-kyc-body { padding: 1.5rem 1.75rem; }
.ef-kyc-section { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ef-teal-dark); margin: 1.3rem 0 .7rem; }
.ef-kyc-section:first-child { margin-top: 0; }
.ef-kyc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.ef-kyc-field { display: flex; flex-direction: column; min-width: 0; }
.ef-kyc-field.full { grid-column: 1 / -1; }
.ef-kyc-card .form-label { font-size: .8rem; font-weight: 600; color: rgba(15,31,28,.78); margin-bottom: .3rem; }
.ef-kyc-card .form-control { width: 100%; min-width: 0; box-sizing: border-box; border-radius: 9px; border: 1.5px solid #e2e8f0; padding: .6rem .9rem; font: inherit; font-size: .9rem; background: #f8fafb; transition: border-color .2s, box-shadow .2s, background .2s; }
.ef-kyc-card .form-control:focus { outline: none; border-color: var(--ef-teal); background: #fff; box-shadow: 0 0 0 3px rgba(13,158,138,.18); }
.ef-kyc-card .invalid { color: var(--ef-accent); font-size: .78rem; margin-top: .25rem; }
/* Zone de dépôt native */
.ef-kyc-drop { border: 1.5px dashed rgba(13,158,138,.4); border-radius: 11px; padding: 1.4rem 1rem; text-align: center; cursor: pointer; background: #f8fafb; transition: border-color .2s, background .2s; color: var(--ef-muted); }
.ef-kyc-drop:hover, .ef-kyc-drop.is-drag { border-color: var(--ef-teal); background: rgba(13,158,138,.05); }
.ef-kyc-drop svg { width: 30px; height: 30px; color: var(--ef-teal-dark); }
.ef-kyc-drop b { display: block; color: var(--ef-ink); font-size: .9rem; margin-top: .4rem; }
.ef-kyc-drop small { font-size: .76rem; }
.ef-kyc-drop__preview { max-height: 150px; max-width: 100%; border-radius: 8px; margin-top: .7rem; }
/* Récap */
.ef-kyc-recap { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; }
.ef-kyc-recap .k { font-size: .72rem; color: var(--ef-muted); text-transform: uppercase; letter-spacing: .04em; }
.ef-kyc-recap .v { font-weight: 600; color: var(--ef-ink); }
.ef-kyc-success { display: flex; align-items: center; gap: .8rem; background: rgba(13,158,138,.08); border: 1px solid rgba(13,158,138,.2); border-radius: 11px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.ef-kyc-success svg { width: 34px; height: 34px; color: var(--ef-teal-dark); flex-shrink: 0; }
/* Pied */
.ef-kyc-foot { display: flex; justify-content: space-between; gap: .6rem; padding: 1.1rem 1.75rem 1.5rem; }
.ef-kyc-foot .ef-btn { min-width: 130px; justify-content: center; }
@media (max-width: 575.98px) { .ef-kyc-grid, .ef-kyc-recap { grid-template-columns: 1fr; } .ef-kyc-step__label span { display: none; } }
/* Boutons sur la page KYC (scope .ef-kyc-page, hors .ef-modern-landing) */
.ef-kyc-page .ef-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; padding: .65rem 1.4rem; border-radius: 9px; text-decoration: none; transition: transform .15s, filter .15s, box-shadow .15s; }
.ef-kyc-page .ef-btn--primary { background: var(--ef-grad-teal); color: #fff; box-shadow: 0 4px 14px rgba(13,158,138,.25); }
.ef-kyc-page .ef-btn--primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.ef-kyc-page .ef-btn--ghost { background: #fff; color: var(--ef-teal-dark); border: 1.5px solid var(--ef-line); }
.ef-kyc-page .ef-btn--ghost:hover { border-color: var(--ef-teal); background: rgba(13,158,138,.05); }
/* KYC v2.1 — en-tête avec infos personne, hauteur stable, stepper cliquable */
.ef-kyc-avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; }
.ef-kyc-body { min-height: 420px; }   /* hauteur stable d'une étape à l'autre */
.ef-kyc-stepper a.ef-kyc-step { text-decoration: none; color: inherit; }
.ef-kyc-stepper a.ef-kyc-step.is-link { cursor: pointer; }
.ef-kyc-stepper a.ef-kyc-step:not(.is-link) { cursor: default; }
.ef-kyc-stepper a.ef-kyc-step.is-link:hover .ef-kyc-step__label { color: var(--ef-teal-dark); }
/* KYC v2.2 — hauteur figée, grille 3 colonnes, zone passeport, logo header */
.ef-kyc-head-row { position: relative; z-index: 1; display: flex; align-items: center; gap: .7rem; }
.ef-kyc-head-row .brand { flex: 1; min-width: 0; }
.ef-kyc-logo { width: 40px; height: 40px; flex-shrink: 0; background: #fff; border-radius: 11px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(15,31,28,.18); }
.ef-kyc-logo img { width: 26px; height: 26px; object-fit: contain; }
.ef-kyc-body { height: 432px; min-height: 0; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.ef-kyc-body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.ef-kyc-grid--3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .9rem; }
.ef-kyc-drop--single { max-width: 340px; margin: 0 auto; }
@media (max-width: 575.98px) { .ef-kyc-grid--3 { grid-template-columns: 1fr; } .ef-kyc-drop--single { max-width: none; } }
