/* ==========================================================================
   JOSBFIN - Design system principal
   Palette : navy profond (#0b1f3a) + teal (#0fb5a6) + neutres chauds
   Typos   : Plus Jakarta Sans (titres) / Inter (texte)
   ========================================================================== */

:root {
    --navy-900: #071426;
    --navy-800: #0b1f3a;
    --navy-700: #12305a;
    --navy-600: #1c4275;
    --teal-500: #0fb5a6;
    --teal-600: #0a8f84;
    --teal-050: #e6f8f6;
    --gold-500: #e5a53a;
    --gold-050: #fdf3e3;
    --indigo-500: #6a5cf5;
    --indigo-050: #efedfe;
    --rose-500: #f0609a;

    --ink: #0f1b2d;
    --muted: #5b6b80;
    --line: #e4e9f1;
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #f0f4fa;

    --ok: #16a34a;
    --ok-bg: #e7f6ec;
    --warn: #c47f0a;
    --warn-bg: #fbf1dd;
    --err: #d3392f;
    --err-bg: #fbe8e6;
    --info: #2563eb;
    --info-bg: #e6effe;

    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(9, 24, 48, .06), 0 1px 3px rgba(9, 24, 48, .08);
    --shadow-md: 0 8px 24px rgba(9, 24, 48, .08);
    --shadow-lg: 0 24px 60px rgba(9, 24, 48, .14);

    --container: 1180px;
    --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --t: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.015em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--teal-600); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--teal-500); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--surface); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 700;
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--teal-600); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- Boutons ---------- */
.btn {
    --btn-bg: var(--navy-800); --btn-fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-family: var(--font-head); font-weight: 600; font-size: .96rem;
    padding: 12px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
    background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
    transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
    white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--teal-500); --btn-fg: #04302c; }
.btn--primary:hover { --btn-bg: var(--teal-600); --btn-fg: #fff; }
.btn--dark { --btn-bg: var(--navy-800); --btn-fg: #fff; }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn--ghost { background: transparent; color: var(--navy-800); }
.btn--ghost:hover { background: var(--surface-2); color: var(--navy-800); box-shadow: none; }
.btn--danger { --btn-bg: var(--err); --btn-fg: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: .85rem; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Badges & pills ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head);
    font-weight: 600; font-size: .74rem; letter-spacing: .02em; padding: 4px 10px;
    border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.badge--demo { background: var(--gold-500); color: #3b2600; }
.status {
    display: inline-flex; align-items: center; gap: .45em; font-weight: 600;
    font-size: .78rem; padding: 4px 11px; border-radius: 999px; line-height: 1.3;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ok, .status--approved, .status--active, .status--signed, .status--completed, .status--paid, .status--verified { color: var(--ok); background: var(--ok-bg); }
.status--warn, .status--pending, .status--review, .status--processing, .status--submitted { color: var(--warn); background: var(--warn-bg); }
.status--err, .status--rejected, .status--cancelled, .status--overdue, .status--failed, .status--blocked { color: var(--err); background: var(--err-bg); }
.status--info, .status--draft, .status--new { color: var(--info); background: var(--info-bg); }

/* ---------- Cartes ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 26px;
}
.card--pad-lg { padding: 34px; }
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
    backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
    transition: box-shadow var(--t), background var(--t);
}
.navbar.is-scrolled { box-shadow: var(--shadow-sm); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.navbar__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--teal-500), var(--navy-700)); color: #fff;
    font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
}
.brand-name { font-size: 1.28rem; font-weight: 700; color: var(--navy-800); letter-spacing: -.02em; }
.brand-name strong { color: var(--teal-600); font-weight: 800; }
.navbar__links { display: flex; align-items: center; gap: 8px; }
.navbar__links > a:not(.btn) {
    color: var(--navy-800); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px;
}
.navbar__links > a:not(.btn):hover { background: var(--surface-2); color: var(--navy-800); }
.navbar__lang select {
    font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--navy-800);
    border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--surface); cursor: pointer;
}
.navbar__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.navbar__burger span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: var(--t); }
.navbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, rgba(15,181,166,.16), transparent 60%), var(--bg); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.hero h1 { margin-bottom: 20px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero__trust div strong { font-family: var(--font-head); font-size: 1.55rem; color: var(--navy-800); display: block; }
.hero__trust div span { font-size: .85rem; color: var(--muted); }
.hero__visual {
    position: relative; background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
    border-radius: var(--radius-lg); padding: 30px; color: #fff; box-shadow: var(--shadow-lg);
}
.hero__card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius); padding: 20px; backdrop-filter: blur(4px); margin-bottom: 16px;
}
.hero__card:last-child { margin-bottom: 0; }
.hero__card h4 { color: #fff; margin-bottom: 4px; }
.hero__card p { color: rgba(255,255,255,.72); margin: 0; font-size: .9rem; }
.hero__progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 14px; }
.hero__progress i { display: block; height: 100%; background: var(--teal-500); border-radius: 999px; }

/* ---------- Feature / step cards ---------- */
.feature { padding: 28px; }
.feature__icon {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    background: var(--teal-050); color: var(--teal-600); margin-bottom: 16px;
}
.feature__icon svg { width: 24px; height: 24px; }
.step { position: relative; padding: 28px; }
.step__num {
    font-family: var(--font-head); font-weight: 800; font-size: 1rem; width: 38px; height: 38px;
    border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: #fff; margin-bottom: 16px;
}

/* ---------- Bandeau CTA ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 60px); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 52ch; margin: 0 auto 24px; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy-800); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.field .error-text { font-size: .82rem; color: var(--err); margin-top: 6px; }
.input, .select, .textarea {
    width: 100%; font-family: var(--font-body); font-size: .97rem; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(15,181,166,.15);
}
.textarea { min-height: 120px; resize: vertical; }
.input.is-invalid, .select.is-invalid { border-color: var(--err); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--teal-600); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__aside {
    background: linear-gradient(160deg, var(--navy-800), var(--navy-600)); color: #fff;
    padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth__aside h2 { color: #fff; }
.auth__aside .brand-name { color: #fff; }
.auth__points { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.auth__points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.85); }
.auth__points svg { flex: none; color: var(--teal-500); width: 22px; height: 22px; margin-top: 2px; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth__form { width: 100%; max-width: 440px; }
.auth__switch { text-align: center; margin-top: 20px; font-size: .92rem; color: var(--muted); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-family: var(--font-head); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table td .btn { margin-right: 6px; }

/* ---------- Flash ---------- */
.flash {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200;
    display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); font-weight: 500; max-width: 92vw; animation: flashIn .3s ease;
    background: var(--surface); border-left: 4px solid var(--muted);
}
@keyframes flashIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.flash--success { border-left-color: var(--ok); }
.flash--error { border-left-color: var(--err); }
.flash--info { border-left-color: var(--info); }
.flash--warning { border-left-color: var(--warn); }
.flash__close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }

/* ---------- FAQ / accordéon ---------- */
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.accordion__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; background: none; border: 0; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--navy-800); }
.accordion__q i { transition: transform var(--t); font-style: normal; color: var(--teal-600); }
.accordion__item.is-open .accordion__q i { transform: rotate(45deg); }
.accordion__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.accordion__a > div { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 64px 0 28px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand-name { color: #fff; }
.footer__brand p { margin: 16px 0; max-width: 34ch; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer__col a { display: block; color: rgba(255,255,255,.72); padding: 5px 0; font-size: .92rem; }
.footer__col a:hover { color: #fff; }
.footer__langs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__langs a { border: 1px solid rgba(255,255,255,.16); border-radius: 6px; padding: 4px 9px; font-size: .78rem; font-weight: 600; }
.footer__langs a.is-active { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; }
.footer__disclaimer { color: rgba(255,255,255,.5); }

/* ---------- Utilitaires ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }
.pill-tabs { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; }
.pill-tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.pill-tabs a.is-active { background: var(--surface); color: var(--navy-800); box-shadow: var(--shadow-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; opacity: .7; }
.logo-strip span { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--muted); letter-spacing: -.01em; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.small { font-size: .82rem; }

/* ==========================================================================
   JOSBFIN — Refonte page publique (home + pages marketing)
   Composants manquants ajoutés + système d'animation au scroll.
   ========================================================================== */

/* ---------- Pill / eyebrow badge ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head);
    font-weight: 600; font-size: .82rem; color: var(--navy-800); background: var(--surface);
    border: 1px solid var(--line); padding: 7px 16px 7px 8px; border-radius: 999px;
    box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.pill::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500);
    box-shadow: 0 0 0 4px var(--teal-050); flex: none;
}
.pill--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.pill--dark::before { box-shadow: 0 0 0 4px rgba(15,181,166,.25); }

/* ---------- Hero (v2) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; }
.hero__bg::before, .hero__bg::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.hero__bg::before { width: 620px; height: 620px; top: -220px; right: -160px; background: radial-gradient(circle, rgba(15,181,166,.35), transparent 70%); }
.hero__bg::after { width: 520px; height: 520px; bottom: -260px; left: -140px; background: radial-gradient(circle, rgba(11,31,58,.14), transparent 70%); }
.hero__grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(rgba(11,31,58,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11,31,58,.05) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 78%);
}
.hero__text { max-width: 620px; }
.hero__note { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin: 18px 0 0; }
.hero__note svg { width: 16px; height: 16px; color: var(--teal-600); flex: none; }
.hero__trust { display: flex; gap: 30px; margin-top: 38px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__trust div strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy-800); display: block; letter-spacing: -.02em; }
.hero__trust div span { font-size: .82rem; color: var(--muted); }

/* Right column visual: gradient panel that frames a floating "quote" card */
.hero__visual { position: relative; padding: 20px; background: none; box-shadow: none; border-radius: 0; color: inherit; }
.hero__mockup {
    position: relative; background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--teal-600) 130%);
    border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero__mockup::before {
    content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 16px 16px;
}
.hero__mockup-top { display: flex; align-items: center; justify-content: space-between; position: relative; margin-bottom: 22px; }
.hero__mockup-top span { color: rgba(255,255,255,.6); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero__mockup-dots { display: flex; gap: 6px; }
.hero__mockup-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }

.quote-card {
    position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px);
}
.quote-card__row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: .92rem; color: rgba(255,255,255,.7); }
.quote-card__row strong { color: #fff; font-family: var(--font-head); font-weight: 700; }
.quote-card__row + .quote-card__row { border-top: 1px solid rgba(255,255,255,.1); }
.quote-card__total {
    display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 18px;
    padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.22);
}
.quote-card__total span { color: rgba(255,255,255,.65); font-size: .88rem; }
.quote-card__total strong { font-family: var(--font-head); font-size: 1.9rem; color: #fff; letter-spacing: -.02em; }
.quote-card__total strong small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.hero__floaty {
    position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: var(--radius);
    padding: 12px 16px; font-size: .84rem; font-weight: 600; color: var(--navy-800);
    animation: floaty 5s ease-in-out infinite;
}
.hero__floaty--1 { top: -18px; left: -22px; animation-delay: .2s; }
.hero__floaty--2 { bottom: -20px; right: -18px; animation-delay: 1.1s; }
.hero__floaty i {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: var(--teal-050); color: var(--teal-600);
}
.hero__floaty svg { width: 16px; height: 16px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .hero__floaty { display: none; } }

/* ---------- Stats band ---------- */
.stats { padding: 40px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stats__grid > div { padding: 22px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stats__grid strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy-800); letter-spacing: -.02em; margin-bottom: 4px; }
.stats__grid span { font-size: .85rem; color: var(--muted); }

/* ---------- Feature / solution cards (cards-3) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card__icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
    font-family: var(--font-head); font-weight: 800; font-size: .95rem;
    background: var(--teal-050); color: var(--teal-600);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); margin-bottom: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--teal-600); transition: gap var(--t); }
.link-arrow:hover { gap: 10px; color: var(--teal-500); }
.spec-list { list-style: none; margin: 14px 0; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list li strong { color: var(--navy-800); font-family: var(--font-head); }

/* ---------- Section variants ---------- */
.section--muted { background: var(--surface-2); }
.page-head { padding: 64px 0 12px; text-align: center; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: var(--muted); max-width: 620px; margin-inline: auto; }

/* ---------- Steps connector (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
    content: ""; position: absolute; top: 19px; left: 12.5%; right: 12.5%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); z-index: 0;
}
.step { background: transparent; z-index: 1; }

/* ---------- Trust / security section ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.trust-card__icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 16px;
    background: var(--navy-800); color: var(--teal-500);
}
.trust-card__icon svg { width: 26px; height: 26px; }
.trust-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.trust-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.testi-card__stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 14px; font-size: .95rem; }
.testi-card p.testi-card__text { color: var(--ink); font-size: .98rem; }
.testi-card__person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-card__avatar {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
    font-family: var(--font-head); font-weight: 700; color: #fff; font-size: .88rem;
    background: linear-gradient(135deg, var(--teal-500), var(--navy-700));
}
.testi-card__person strong { display: block; font-size: .92rem; color: var(--navy-800); }
.testi-card__person span { font-size: .8rem; color: var(--muted); }

/* ---------- Partners strip (marquee) ---------- */
.partners-strip {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-bottom: 18px;
}
.partner-logo {
    font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--muted);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px 26px; filter: grayscale(1); opacity: .75; transition: opacity var(--t), filter var(--t), transform var(--t);
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-2px); color: var(--navy-800); }

/* ---------- Partners page grid ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.partner-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; transition: transform var(--t), box-shadow var(--t); }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.partner-card__logo {
    width: 54px; height: 54px; border-radius: 12px; margin: 0 auto 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy-700), var(--teal-600)); color: #fff; font-family: var(--font-head); font-weight: 800;
}
.partner-card h3 { font-size: 1rem; margin-bottom: 4px; }

/* ---------- CTA band inner layout ---------- */
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; text-align: left; }
.cta-band__inner h2, .cta-band__inner p { text-align: left; margin-inline: 0; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn--light:hover { --btn-bg: var(--teal-050); }

/* ---------- Contact / forms extras ---------- */
.sim { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.sim__form, .sim__result { margin: 0; }
.sim__monthly { text-align: center; padding: 20px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sim__monthly span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.sim__monthly strong { font-family: var(--font-head); font-size: 2.4rem; color: var(--navy-800); letter-spacing: -.02em; }
.sim__monthly strong small { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: 6px; }
.sim__placeholder { text-align: center; padding: 12px 0; }
.sim__placeholder h3 { margin-bottom: 8px; }
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { padding-right: 46px; }
.input-suffix span { position: absolute; right: 14px; color: var(--muted); font-weight: 600; font-size: .9rem; pointer-events: none; }
.contact-info { display: flex; flex-direction: column; gap: 16px; align-self: start; }
.contact-info .spec-list li { flex-direction: column; gap: 2px; }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } }

/* ---------- Callouts (legal / privacy) ---------- */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 30px; }
.callout strong { display: block; margin-bottom: 4px; font-family: var(--font-head); }
.callout p { margin: 0; font-size: .92rem; }
.callout--info { background: var(--info-bg); color: #1d3f91; }
.legal-text h3 { margin-top: 34px; }

/* ---------- FAQ (native <details>) ---------- */
.accordion { display: flex; flex-direction: column; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.accordion__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer;
    font-family: var(--font-head); font-weight: 600; color: var(--navy-800); list-style: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
    content: "+"; font-size: 1.3rem; color: var(--teal-600); transition: transform var(--t); flex: none; line-height: 1;
}
.accordion__item[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 20px 18px; color: var(--muted); }
.accordion__body p { margin: 0; }

/* ---------- Scroll reveal animation system ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > *, .hero__floaty { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1024px) {
    .trust-grid, .testi-grid, .partners-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .trust-grid, .testi-grid, .partners-grid { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   JOSBFIN — Composants partagés espace connecté (client + admin) et alias
   de compatibilité (le HTML des vues utilise par endroits une convention
   à tiret simple : on la fait pointer vers le même système de design).
   ========================================================================== */

/* ---------- Alias de boutons (tiret simple) ---------- */
.btn-primary { --btn-bg: var(--teal-500); --btn-fg: #04302c; }
.btn-primary:hover { --btn-bg: var(--teal-600); --btn-fg: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { --btn-bg: var(--err); --btn-fg: #fff; }
.btn-primary, .btn-outline, .btn-light, .btn-ghost-light, .btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-family: var(--font-head); font-weight: 600; font-size: .96rem;
    padding: 12px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
    background: var(--btn-bg, transparent); color: var(--btn-fg, inherit); cursor: pointer;
    transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
    white-space: nowrap; line-height: 1; text-decoration: none;
}
.btn-primary:hover, .btn-light:hover, .btn-danger:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---------- Grilles (alias tiret simple) ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Badges de statut (status_badge() du back-end) ---------- */
.badge--success { background: var(--ok-bg); color: var(--ok); }
.badge--warning { background: var(--warn-bg); color: var(--warn); }
.badge--danger  { background: var(--err-bg); color: var(--err); }
.badge--muted   { background: var(--surface-2); color: var(--muted); }
.badge--soft    { background: var(--surface-2); color: var(--navy-800); }
.badge--count   { background: var(--err); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: .72rem; }
.badge--low      { background: var(--info-bg); color: var(--info); }
.badge--medium   { background: var(--warn-bg); color: var(--warn); }
.badge--high     { background: var(--err-bg); color: var(--err); }
.badge--critical { background: var(--err); color: #fff; }

/* ---------- Callout : variantes additionnelles ---------- */
.callout { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
    padding: 18px 20px; border-radius: var(--radius); margin-bottom: 22px; background: var(--surface-2); }
.callout--warning { background: var(--warn-bg); color: #6b4a08; }
.callout--success { background: var(--ok-bg); color: #0d5c2c; }
.callout p { margin: 4px 0 0; font-size: .9rem; }

/* ---------- Typo / utilitaires génériques ---------- */
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title h1 { margin-bottom: 4px; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.text-muted { color: var(--muted); }
.ta-right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }
.mt-2 { margin-top: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.back-link:hover { color: var(--navy-800); }
.narrow-col { max-width: 560px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal-600); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: inherit; }
.link-btn:hover { color: var(--teal-500); }
.link-action { font-weight: 600; font-size: .88rem; color: var(--teal-600); }
.amount-credit { color: var(--ok); font-weight: 700; }
.amount-debit { color: var(--ink); font-weight: 600; }

/* ---------- Description list (détails clé/valeur) ---------- */
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.detail-list > div { padding: 13px 4px; border-bottom: 1px solid var(--line); }
.detail-list dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin: 0; }
.detail-list dd { margin: 4px 0 0; font-weight: 500; }
@media (max-width: 640px) { .detail-list { grid-template-columns: 1fr; } }

/* ---------- Formulaires (convention tiret simple) ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--navy-800); }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-input {
    width: 100%; font-family: var(--font-body); font-size: .97rem; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); transition: border-color var(--t), box-shadow var(--t);
}
.form-input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(15,181,166,.15); }
.form-file { padding: 10px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Empty states courts ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty p { margin-bottom: 14px; }

/* ---------- Compléments ---------- */
.form { display: flex; flex-direction: column; }
.card-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.card-success { border-left: 4px solid var(--ok); background: var(--ok-bg); }
.contract-body { line-height: 1.8; color: var(--ink); padding: 16px 0; white-space: pre-line; }
.page-head__meta { font-size: .92rem; color: var(--muted); }
.page-head__meta strong { color: var(--navy-800); }

/* ==========================================================================
   JOSBFIN — Home v2 : couleurs, animations et richesse visuelle
   ========================================================================== */

/* ---------- Icônes colorées réutilisables ---------- */
.icon-badge {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    margin-bottom: 18px; transition: transform var(--t);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--teal   { background: var(--teal-050);   color: var(--teal-600); }
.icon-badge--gold   { background: var(--gold-050);   color: #9a6a12; }
.icon-badge--indigo { background: var(--indigo-050); color: var(--indigo-500); }
.icon-badge--rose   { background: #fdeaf1;           color: var(--rose-500); }
.icon-badge--navy   { background: var(--navy-800);   color: var(--teal-500); }

/* Cartes solutions et confiance : bordure d'accent + icône colorée + lift au survol */
.feature-card, .trust-card {
    position: relative; overflow: hidden;
}
.feature-card::before, .trust-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--teal-500), var(--indigo-500));
    transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.feature-card:hover::before, .trust-card:hover::before { transform: scaleX(1); }
.feature-card:hover .icon-badge, .trust-card:hover .icon-badge, .feature-card:hover .feature-card__icon {
    transform: scale(1.08) rotate(-4deg);
}
.trust-card { transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.trust-card__icon { margin-bottom: 16px; }

/* Numéros d'étapes : couleur qui tourne (teal / gold / indigo / navy) */
.step__num { transition: transform var(--t); }
.step:nth-child(4n+1) .step__num { background: var(--navy-800); color: #fff; }
.step:nth-child(4n+2) .step__num { background: var(--teal-500); color: #04302c; }
.step:nth-child(4n+3) .step__num { background: var(--gold-500); color: #3b2600; }
.step:nth-child(4n+4) .step__num { background: var(--indigo-500); color: #fff; }
.step:hover .step__num { transform: scale(1.1); }

/* ---------- Bandeau partenaires en défilement continu ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track {
    display: flex; gap: 16px; width: max-content;
    animation: marquee-scroll var(--marquee-duration, 28s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Séparateurs de section en vague ---------- */
.wave-divider { display: block; width: 100%; height: 46px; margin-top: -1px; }
.wave-divider path { fill: var(--surface-2); }
.wave-divider--flip path { fill: var(--bg); }

/* ---------- Puce "en direct" clignotante ---------- */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,.4); } 50% { opacity: .7; box-shadow: 0 0 0 5px rgba(22,163,74,0); } }

/* ---------- Mini graphique animé dans le mockup héro ---------- */
.hero__chart { margin: 14px 0 18px; }
.hero__chart svg { width: 100%; height: auto; display: block; }
.hero__chart .chart-line {
    stroke-dasharray: 300; stroke-dashoffset: 300;
    animation: drawLine 1.8s .3s ease-out forwards;
}
.hero__chart .chart-fill { opacity: 0; animation: fadeIn 1s 1.2s ease-out forwards; }
.hero__chart .chart-dot { opacity: 0; transform-origin: center; animation: popDot .4s 1.9s ease-out forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes popDot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* ---------- Blobs d'arrière-plan : dérive lente ---------- */
.hero__bg::before { animation: driftA 16s ease-in-out infinite alternate; }
.hero__bg::after  { animation: driftB 18s ease-in-out infinite alternate; }
@keyframes driftA { from { transform: translate(0,0) scale(1); } to { transform: translate(-30px, 30px) scale(1.12); } }
@keyframes driftB { from { transform: translate(0,0) scale(1); } to { transform: translate(25px, -20px) scale(1.08); } }

/* Troisième blob discret, teinte or, pour varier la couleur du dégradé de fond */
.hero__bg { position: relative; }
.hero__bg::before { background: radial-gradient(circle, rgba(15,181,166,.35), transparent 70%); }
.hero__bg::after  { background: radial-gradient(circle, rgba(11,31,58,.14), transparent 70%); }

/* ---------- section--muted : léger dégradé au lieu d'un gris plat ---------- */
.section--muted {
    background: linear-gradient(180deg, var(--surface-2) 0%, #eef2fb 100%);
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track, .hero__bg::before, .hero__bg::after, .live-dot,
    .hero__chart .chart-line, .hero__chart .chart-fill, .hero__chart .chart-dot {
        animation: none !important;
    }
}

/* ---------- Photos des partenaires (bandeau défilant + page partenaires) ---------- */
.marquee__track { align-items: center; }
.partner-slide {
    margin: 0; flex: none; width: 220px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.partner-slide:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.partner-slide img { width: 100%; height: 130px; object-fit: contain; background: #fff; padding: 10px; display: block; }
.partner-slide figcaption {
    font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--navy-800);
    padding: 9px 12px; border-top: 1px solid var(--line); text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.partner-card__photo {
    width: 100%; height: 140px; margin: 0 0 14px; border-radius: var(--radius-sm);
    background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.partner-card__photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
@media (max-width: 640px) {
    .partner-slide { width: 160px; }
    .partner-slide img { height: 96px; }
}
.testi-card__verified { display: inline-block; margin-left: 6px; font-style: normal; font-weight: 600; color: var(--ok); font-size: .76rem; }
