/* ============================================================
   SYSCOHADA Finance — Landing visiteur (FINANCIA design)
   Hero split (panneau marine + preview app) + bandeau features
   ============================================================ */

:root {
    --brand-dark:      #0B1A2E;
    --brand-darker:    #07101F;
    --brand-deep:      #122842;
    --brand-line-dark: rgba(255,255,255,0.08);

    --accent:      #10D9A0;
    --accent-2:    #3FB6E4;
    --accent-grad: linear-gradient(135deg,#10D9A0 0%, #3FB6E4 100%);
    --accent-soft: rgba(16,217,160,0.12);

    --bg:        #F5F7FA;
    --surface:   #FFFFFF;
    --surface-2: #F9FAFC;
    --surface-3: #EFF2F7;

    --text:           #0F1B2D;
    --text-2:         #4A5670;
    --text-3:         #8794AB;
    --text-on-dark:   #E8EEF7;
    --text-on-dark-2: #9AA8C0;

    --border:        #E4E8EF;
    --border-strong: #D2D9E4;

    --ok:        #16C784;
    --ok-soft:   #DCF7EC;
    --warn:      #F5A524;
    --warn-soft: #FEF3DC;
    --danger:    #EF4444;
    --danger-soft: #FDE2E2;
    --info:      #3B82F6;
    --info-soft: #DCEAFE;

    --c-blue:   #3B82F6;
    --c-purple: #8B5CF6;
    --c-pink:   #EC4899;
    --c-orange: #F59E0B;
    --c-green:  #10D9A0;
    --c-cyan:   #3FB6E4;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

/* Skip link a11y — caché par défaut, visible uniquement au focus clavier */
.skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
    background: var(--accent);
    color: #04131F;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    z-index: 1000;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
}

/* ============================================================
   HERO SPLIT (panneau marine gauche + preview app droite)
   ============================================================ */
.financia-hero {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(0, 1.65fr);
    min-height: 100vh;
    background: var(--bg);
}

@media (max-width: 1024px) {
    .financia-hero { grid-template-columns: 1fr; min-height: auto; }
}

/* ---------- Panneau gauche (marine) ---------- */
.fh-left {
    position: relative;
    background: linear-gradient(180deg, #0B1A2E 0%, #050B16 100%);
    color: var(--text-on-dark);
    padding: 56px 48px 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}

/* Halo lumineux + glow vert/cyan derrière la carte */
.fh-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 55% at 78% 80%, rgba(16,217,160,0.20) 0%, transparent 65%),
        radial-gradient(45% 40% at 22% 78%, rgba(63,182,228,0.16) 0%, transparent 70%);
    z-index: -2;
}

/* Skyline urbain Dakar (pont + buildings) en bas */
.fh-skyline {
    position: absolute;
    inset: auto 0 0 0;
    height: 220px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
    overflow: hidden;
}
.fh-skyline svg { width: 100%; height: 100%; display: block; }
.fh-skyline::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,26,46,0.85) 0%, rgba(11,26,46,0.15) 35%, transparent 60%);
}

/* Carte Afrique en silhouette + point Sénégal pulsant */
.fh-africa {
    position: absolute;
    right: -40px;
    bottom: 130px;
    width: 380px;
    height: 380px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
}
.fh-africa svg { width: 100%; height: 100%; display: block; }

@keyframes fh-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}
.fh-africa .pulse {
    transform-origin: center;
    transform-box: fill-box;
    animation: fh-pulse 2.4s ease-out infinite;
}
.fh-africa .pulse-2 { animation-delay: 0.8s; }

.fh-brand {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 56px;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}
.fh-brand__logo {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10D9A0 0%, #0EA582 60%, #099973 100%);
    display: grid; place-items: center;
    color: #04131F;
    box-shadow:
        0 12px 28px rgba(16,217,160,0.32),
        inset 0 -4px 10px rgba(4,19,31,0.18),
        inset 0 1px 1px rgba(255,255,255,0.32);
    flex: 0 0 auto;
}
.fh-brand__name b {
    display: block;
    font-size: 28px; font-weight: 800;
    letter-spacing: -0.01em; color: #fff;
    line-height: 1;
}
.fh-brand__name span {
    display: block;
    font-size: 14px; letter-spacing: 0.36em;
    color: var(--accent);
    font-weight: 700;
    margin-top: 6px;
}

.fh-pill {
    display: inline-flex; align-items: center;
    padding: 8px 14px;
    background: rgba(16,217,160,0.10);
    border: 1px solid rgba(16,217,160,0.28);
    color: var(--accent);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    width: max-content;
    margin-bottom: 28px;
}

.fh-h1 {
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 24px;
}
.fh-h1 .accent {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fh-sub {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-on-dark-2);
    max-width: 460px;
    margin: 0 0 36px;
}

.fh-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: auto; }
.fh-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .08s, filter .12s, background .12s;
}
.fh-btn:active { transform: translateY(1px); }
.fh-btn--primary {
    background: var(--accent-grad);
    color: #04131F;
    box-shadow: 0 12px 28px rgba(16,217,160,0.32);
}
.fh-btn--primary:hover { filter: brightness(1.05); }
.fh-btn--ghost {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
}
.fh-btn--ghost:hover { background: rgba(255,255,255,0.12); }

.fh-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 28px;
    border-top: 1px solid var(--brand-line-dark);
    margin-top: 40px;
}
.fh-trust__cell {
    display: flex; align-items: center; gap: 10px;
}
.fh-trust__ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--brand-line-dark);
    color: var(--accent);
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.fh-trust__cell b { color: #fff; font-size: 14px; font-weight: 700; display: block; }
.fh-trust__cell span { color: var(--text-on-dark-2); font-size: 11.5px; }

/* ---------- Panneau droit (preview app) ---------- */
.fh-right {
    background: var(--surface);
    padding: 28px 28px 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .fh-right { padding: 24px; }
}

/* Mini topbar de la preview (tabs) */
.fh-app-top {
    display: flex; align-items: center; gap: 8px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.fh-app-logo {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--accent-grad);
    display: grid; place-items: center;
    color: #04131F;
    margin-right: 8px;
    flex: 0 0 auto;
}
.fh-app-tab {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    border: none; background: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}
.fh-app-tab:hover { color: var(--text); }
.fh-app-tab.is-active {
    color: var(--text);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
}
.fh-app-spacer { flex: 1; }
.fh-app-bell {
    position: relative;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    color: var(--text-2);
    background: var(--surface-3);
    border-radius: 50%;
    border: none;
}
.fh-app-bell .badge {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--accent-grad);
    color: #04131F;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 6px;
    border: 2px solid var(--surface);
}
.fh-app-user {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: var(--surface-3);
}
.fh-app-user .avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B7280, #4B5563);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 11px;
}
.fh-app-user b { font-size: 12.5px; color: var(--text); display: block; line-height: 1.1; }
.fh-app-user span { font-size: 11px; color: var(--text-3); }

/* Mini grille interne : sidebar + content */
.fh-app-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    flex: 1;
    min-height: 0;
}
@media (max-width: 1280px) { .fh-app-body { grid-template-columns: 1fr; } }

.fh-app-side {
    display: flex; flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: var(--surface-2);
    border-radius: 12px;
    height: max-content;
}
.fh-app-side a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
}
.fh-app-side a:hover { background: var(--surface); color: var(--text); }
.fh-app-side a.is-active { background: #fff; color: var(--text); font-weight: 700; box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,27,45,0.04)); }
.fh-app-side a svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--text-3); }
.fh-app-side a.is-active svg { color: var(--accent); }

.fh-side-card {
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(16,217,160,0.10), rgba(63,182,228,0.06));
    border: 1px solid rgba(16,217,160,0.24);
    color: var(--text);
}
.fh-side-card b {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700;
}
.fh-side-card .meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.fh-side-card .bar {
    height: 4px; background: rgba(16,217,160,0.15);
    border-radius: 999px; margin-top: 8px; overflow: hidden;
}
.fh-side-card .bar > div {
    height: 100%; width: 65%;
    background: var(--accent-grad);
    border-radius: 999px;
}
.fh-side-card a {
    display: block; margin-top: 8px;
    font-size: 11.5px; font-weight: 700; color: var(--accent);
    text-decoration: none;
}

/* Contenu de la preview */
.fh-app-content { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.fh-page-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
}
.fh-page-head h2 {
    margin: 0; font-size: 20px; font-weight: 800; color: var(--text);
    letter-spacing: -0.01em;
}
.fh-page-head .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.fh-page-head .actions { display: flex; gap: 8px; }
.fh-pill-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    font-size: 12.5px; font-weight: 500;
    color: var(--text);
    text-decoration: none; cursor: pointer;
}
.fh-pill-btn:hover { background: var(--surface-3); }
.fh-pill-btn.primary {
    background: var(--accent-grad);
    border-color: transparent;
    color: #04131F; font-weight: 700;
    box-shadow: 0 6px 16px rgba(16,217,160,0.22);
}

/* KPI grid de la preview */
.fh-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 760px) { .fh-kpi-row { grid-template-columns: 1fr 1fr; } }
.fh-kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex; align-items: flex-start; gap: 10px;
}
.fh-kpi__icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.fh-kpi__icon.green  { background: var(--ok-soft); color: var(--ok); }
.fh-kpi__icon.blue   { background: var(--info-soft); color: var(--info); }
.fh-kpi__icon.purple { background: #EDE4FE; color: var(--c-purple); }
.fh-kpi__icon.orange { background: #FEEEDC; color: var(--c-orange); }
.fh-kpi__num { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.05; letter-spacing: -0.01em; }
.fh-kpi__num small { font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.fh-kpi__lbl { font-size: 11.5px; color: var(--text-2); font-weight: 500; margin-top: 1px; }
.fh-kpi__delta { font-size: 11px; color: var(--ok); font-weight: 600; margin-top: 2px; }

/* Cards principales */
.fh-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
@media (max-width: 1100px) { .fh-row { grid-template-columns: 1fr; } }

.fh-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.fh-card__head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-bottom: 12px;
}
.fh-card__head h3 { margin: 0; font-size: 13.5px; font-weight: 700; }
.fh-card__head .badge {
    padding: 4px 10px;
    background: var(--surface-3);
    border-radius: 6px;
    font-size: 11.5px; color: var(--text-2);
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
}

/* Mini stats du card synthèse */
.fh-mini-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}
.fh-mini-grid > div { padding-left: 12px; border-left: 1px solid var(--border); }
.fh-mini-grid > div:first-child { padding-left: 0; border-left: none; }
.fh-mini-grid .lbl { font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.fh-mini-grid .val { font-size: 17px; font-weight: 800; margin-top: 2px; color: var(--text); }
.fh-mini-grid .val small { font-size: 10.5px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.fh-mini-grid .delta { font-size: 11px; font-weight: 700; margin-top: 1px; }
.fh-mini-grid .delta.up { color: var(--ok); }

/* Légende chart */
.fh-chart-legend {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-size: 11px; color: var(--text-2);
    justify-content: center; margin-top: 6px;
}
.fh-chart-legend .item { display: flex; align-items: center; gap: 5px; }
.fh-chart-legend .swatch { width: 9px; height: 9px; border-radius: 2px; }

/* Donut + légende sectorielle */
.fh-donut-wrap { display: flex; align-items: center; gap: 18px; }
.fh-donut-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.fh-donut-center b { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.fh-donut-center span { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.fh-legend-list { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.fh-legend-list .item { display: flex; align-items: center; justify-content: space-between; }
.fh-legend-list .item .lhs { display: flex; align-items: center; gap: 8px; }
.fh-legend-list .item .swatch { width: 9px; height: 9px; border-radius: 50%; }
.fh-legend-list .item .rhs b { font-weight: 700; }
.fh-legend-list .item .rhs .pct { color: var(--text-3); margin-left: 4px; font-size: 11px; }

/* Twin KPIs (taux + délai) */
.fh-twin {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 760px) { .fh-twin { grid-template-columns: 1fr; } }
.fh-twin .fh-card { padding: 12px 14px; }
.fh-twin .lbl { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.fh-twin .val { font-size: 22px; font-weight: 800; margin-top: 4px; }
.fh-twin .val.green { color: var(--ok); }
.fh-twin .val.purple { color: var(--c-purple); }
.fh-twin .delta { font-size: 11px; font-weight: 700; margin-top: 2px; }
.fh-twin .delta.up { color: var(--ok); }
.fh-twin .delta.down { color: var(--c-purple); }

/* Alerts/Activities */
.fh-list { display: flex; flex-direction: column; gap: 10px; }
.fh-item {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}
.fh-item:last-child { border-bottom: none; }
.fh-item .ico {
    width: 30px; height: 30px;
    border-radius: 8px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: var(--surface-3); color: var(--text-2);
}
.fh-item .ico.danger  { background: var(--danger-soft); color: var(--danger); }
.fh-item .ico.warn    { background: var(--warn-soft); color: var(--warn); }
.fh-item .ico.info    { background: var(--info-soft); color: var(--info); }
.fh-item .ico.ok      { background: var(--ok-soft); color: var(--ok); }
.fh-item .body { flex: 1; min-width: 0; }
.fh-item .body b { font-size: 12.5px; font-weight: 700; color: var(--text); display: block; }
.fh-item .body p { font-size: 11.5px; color: var(--text-3); margin: 1px 0 0; }
.fh-tag {
    padding: 3px 8px;
    background: var(--surface-3);
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-2);
}
.fh-tag.danger { background: var(--danger-soft); color: var(--danger); }
.fh-tag.warn   { background: var(--warn-soft); color: var(--warn); }
.fh-tag.ok     { background: var(--ok-soft); color: var(--ok); }
.fh-tag.brand  { background: var(--accent-soft); color: var(--accent); }

/* Assistant marine */
.fh-assist {
    background: linear-gradient(180deg, #07101F 0%, #122842 100%);
    color: #E8EEF7;
    border: 1px solid var(--brand-line-dark);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.fh-assist h3 { margin: 0; font-size: 13px; font-weight: 700; color: #fff; }
.fh-assist__head { display: flex; justify-content: space-between; align-items: center; }
.fh-assist__head .close {
    background: none; border: none; color: var(--text-on-dark-2);
    cursor: pointer; font-size: 16px; line-height: 1;
}
.fh-assist__msg {
    display: flex; align-items: flex-start; gap: 10px;
}
.fh-assist__bot {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    display: grid; place-items: center;
    color: #fff; flex: 0 0 auto;
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.fh-assist__bubble {
    background: rgba(255,255,255,0.04);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px; line-height: 1.5;
    flex: 1;
}
.fh-assist__actions {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.fh-assist__btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--brand-line-dark);
    color: #E8EEF7;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 11.5px;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.fh-assist__btn:hover { background: rgba(255,255,255,0.10); }
.fh-assist__input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--brand-line-dark);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    outline: none;
    font-family: inherit;
}
.fh-assist__input::placeholder { color: var(--text-on-dark-2); opacity: 0.7; }

/* ============================================================
   BANDEAU FEATURES (6 cards en bas de la landing)
   ============================================================ */
.fh-features {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 28px;
}
.fh-features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (max-width: 1280px) { .fh-features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .fh-features-grid { grid-template-columns: 1fr 1fr; } }

.fh-feat {
    display: flex; flex-direction: column; gap: 8px;
}
.fh-feat__icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.fh-feat__icon.cyan   { background: rgba(63,182,228,0.14); color: var(--c-cyan); }
.fh-feat__icon.purple { background: #EDE4FE; color: var(--c-purple); }
.fh-feat__icon.green  { background: var(--ok-soft); color: var(--ok); }
.fh-feat__icon.blue   { background: var(--info-soft); color: var(--info); }
.fh-feat__icon.orange { background: #FEEEDC; color: var(--c-orange); }
.fh-feat__icon.pink   { background: #FCE2EE; color: var(--c-pink); }

.fh-feat h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}
.fh-feat p {
    margin: 0;
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.5;
}

/* ============================================================
   Layout wrapper — full bleed
   ============================================================ */

/* Mode no_chrome : body.fh-bare → main.fh-bare-main pleine page */
body.fh-bare {
    margin: 0;
    padding: 0;
    background: var(--bg);
    min-height: 100vh;
}
.fh-bare-main {
    display: block;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Mode chrome classique : on s'échappe du container.mx-auto.px-4.py-6 du main */
.financia-fullbleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -24px;
    margin-bottom: -24px;
}
/* Surcharge en mode no_chrome : pas besoin de s'échapper, on est déjà pleine largeur */
.fh-bare .financia-fullbleed {
    width: 100%;
    margin: 0;
}

/* ============================================================
   AUTH (login, inscription, recovery) — split-screen FINANCIA
   ============================================================ */
.fh-auth {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(0, 1.05fr);
    min-height: 100vh;
}
@media (max-width: 980px) {
    .fh-auth { grid-template-columns: 1fr; min-height: auto; }
    .fh-auth .fh-left { padding: 40px 28px; min-height: auto; }
}

.fh-auth .fh-left {
    /* Réutilise le même style marine que la landing */
    padding: 56px 48px;
    justify-content: space-between;
    min-height: 100%;
}

.fh-auth-card-wrap {
    background: var(--surface);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 981px) {
    .fh-auth-card-wrap { padding: 56px 64px; }
}

.fh-auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}
.fh-auth-card .eyebrow {
    display: inline-flex;
    padding: 5px 11px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.fh-auth-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.fh-auth-card .lead {
    margin: 0 0 28px;
    color: var(--text-3);
    font-size: 14.5px;
    line-height: 1.5;
}

.fh-form { display: flex; flex-direction: column; gap: 16px; }
.fh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .fh-form-row { grid-template-columns: 1fr; } }

.fh-field { display: flex; flex-direction: column; gap: 6px; }
.fh-field-head {
    display: flex; justify-content: space-between; align-items: baseline;
}
.fh-field label,
.fh-field-head label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
}
.fh-field-head a {
    font-size: 11.5px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.fh-field-head a:hover { text-decoration: underline; }

.fh-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    transition: border-color .12s, background .12s, box-shadow .12s;
}
.fh-input::placeholder { color: var(--text-3); }
.fh-input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.fh-hint {
    font-size: 11.5px;
    color: var(--text-3);
    margin: 0;
}

.fh-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}
.fh-checkbox input[type="checkbox"] {
    width: 16px; height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
    flex: 0 0 auto;
}
.fh-checkbox a { color: var(--accent); font-weight: 600; }

.fh-submit {
    width: 100%;
    padding: 14px 18px;
    background: var(--accent-grad);
    color: #04131F;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(16,217,160,0.28);
    transition: transform .08s, filter .12s;
    font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.fh-submit:hover { filter: brightness(1.05); }
.fh-submit:active { transform: translateY(1px); }
.fh-submit.dark {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 12px 28px rgba(11,26,46,0.32);
}

.fh-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
}
.fh-divider::before, .fh-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.fh-auth-card .switch {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-2);
}
.fh-auth-card .switch a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}
.fh-auth-card .switch a:hover { text-decoration: underline; }

/* Card centré (mot de passe oublié, nouveau mdp) */
.fh-auth-centered {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--bg) 0%, #EAF1F8 100%);
}
.fh-auth-centered .fh-auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 24px 56px rgba(15,27,45,0.10), 0 4px 12px rgba(15,27,45,0.05);
}
.fh-auth-centered .fh-auth-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--accent-grad);
    color: #04131F;
    display: grid; place-items: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 24px rgba(16,217,160,0.32);
}
.fh-auth-centered h1 { text-align: center; }
.fh-auth-centered .lead { text-align: center; }
.fh-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
    font-weight: 600;
    justify-content: center;
    width: 100%;
}
.fh-back-link:hover { color: var(--text); }

/* Flash messages dans les formulaires auth */
.fh-form .fh-flash {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid transparent;
    display: flex; align-items: flex-start; gap: 10px;
}
.fh-flash.danger  { background: var(--danger-soft); color: var(--danger); border-color: rgba(239,68,68,0.20); }
.fh-flash.warn    { background: var(--warn-soft);   color: var(--warn);   border-color: rgba(245,165,36,0.22); }
.fh-flash.ok,
.fh-flash.success { background: var(--ok-soft);     color: var(--ok);     border-color: rgba(22,199,132,0.22); }
.fh-flash.info    { background: var(--info-soft);   color: var(--info);   border-color: rgba(59,130,246,0.18); }

/* ============================================================
   PAGES INFO (À propos, Contact)
   ============================================================ */
.fh-page {
    background: var(--bg);
    padding: 64px 24px;
}
.fh-page .container {
    max-width: 1100px;
    margin: 0 auto;
}
.fh-page-hero {
    text-align: center;
    margin-bottom: 56px;
}
.fh-page-hero .eyebrow {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.fh-page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.fh-page-hero h1 .accent {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fh-page-hero .lead {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.6;
}

.fh-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
@media (max-width: 900px) { .fh-bento { grid-template-columns: 1fr; } }

.fh-bento .card {
    padding: 28px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.fh-bento .card.dark {
    background: linear-gradient(180deg, #07101F 0%, #122842 100%);
    color: var(--text-on-dark);
    border-color: var(--brand-line-dark);
}
.fh-bento .card.dark h3 { color: #fff; }
.fh-bento .card.dark p  { color: var(--text-on-dark-2); }

.fh-bento__icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    display: grid; place-items: center;
    margin-bottom: 18px;
}
.fh-bento__icon.green  { background: var(--accent-soft); color: var(--accent); }
.fh-bento__icon.blue   { background: var(--info-soft); color: var(--info); }
.fh-bento__icon.purple { background: #EDE4FE; color: var(--c-purple); }
.fh-bento__icon.cyan   { background: rgba(63,182,228,0.14); color: var(--c-cyan); }
.fh-bento__icon.orange { background: #FEEEDC; color: var(--c-orange); }
.fh-bento__icon.dark   { background: rgba(255,255,255,0.08); color: var(--accent); }

.fh-bento .card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}
.fh-bento .card p {
    margin: 0;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.55;
}

.fh-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 56px;
}
@media (max-width: 900px) { .fh-split-section { grid-template-columns: 1fr; gap: 32px; } }
.fh-split-section .eyebrow {
    display: inline-flex;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.fh-split-section h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}
.fh-split-section p { color: var(--text-2); font-size: 15.5px; line-height: 1.65; margin: 0 0 14px; }

.fh-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 32px;
    border-radius: 18px;
    background: linear-gradient(135deg, #07101F 0%, #122842 100%);
    color: var(--text-on-dark);
}
.fh-stats .stat b {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}
.fh-stats .stat span { color: var(--text-on-dark-2); font-size: 13px; margin-top: 6px; display: block; }

/* ===== Contact spécifique ===== */
.fh-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 28px;
}
@media (max-width: 900px) { .fh-contact-grid { grid-template-columns: 1fr; } }

.fh-contact-info { display: flex; flex-direction: column; gap: 16px; }
.fh-contact-info .info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
}
.fh-contact-info .info-card.dark {
    background: linear-gradient(135deg, #07101F 0%, #122842 100%);
    color: var(--text-on-dark);
    border-color: var(--brand-line-dark);
}
.fh-contact-info .info-card.dark h3 { color: #fff; }
.fh-contact-info .info-card.dark p,
.fh-contact-info .info-card.dark a { color: var(--text-on-dark-2); }
.fh-contact-info .info-card.dark a:hover { color: #fff; }

.fh-contact-info .info-card .ico {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: grid; place-items: center;
    margin-bottom: 14px;
}
.fh-contact-info .info-card .ico.dark   { background: rgba(255,255,255,0.06); color: var(--accent); }
.fh-contact-info .info-card .ico.green  { background: var(--accent-soft); color: var(--accent); }
.fh-contact-info .info-card .ico.purple { background: #EDE4FE; color: var(--c-purple); }
.fh-contact-info .info-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--text); }
.fh-contact-info .info-card .meta { font-size: 12px; color: var(--text-3); margin: 0 0 8px; }
.fh-contact-info .info-card a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}
.fh-contact-info .info-card a:hover { color: var(--accent); }

.fh-contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
}
.fh-contact-form-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.fh-contact-form-card .lead { color: var(--text-3); font-size: 13.5px; margin: 0 0 24px; }
