/* ============================================================
   GUÉPARD — Design system v2
   Vitrine premium + App (espace agence / back-office)
   ============================================================ */
:root {
  --navy: #0a1633;
  --navy-2: #12244f;
  --navy-3: #1c3a74;
  --navy-soft: #eef2fa;
  --gold: #c6a032;
  --gold-2: #e3c25f;
  --gold-soft: #f7efd8;
  --sand: #f8f6f1;
  --bg: #f4f6fa;
  --card: #ffffff;
  --ink: #141a2a;
  --muted: #5f6880;
  --faint: #98a0b3;
  --line: #e5e8f0;
  --green: #177a4c;
  --green-bg: #e0f3e9;
  --orange: #b3641a;
  --orange-bg: #fcefdd;
  --red: #bb3a2c;
  --red-bg: #fcebe8;
  --blue: #2456b3;
  --blue-bg: #e8effc;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(10,22,51,.06), 0 10px 30px rgba(10,22,51,.07);
  --shadow-lg: 0 24px 70px rgba(10,22,51,.18);
  --font-d: "Fraunces", Georgia, serif;
  --font-b: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.015em; }
.display { font-family: var(--font-d); font-weight: 600; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14.5px; padding: 12px 22px; border-radius: 10px; white-space: nowrap;
  transition: transform .12s, box-shadow .18s, background .18s, border-color .18s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 4px 14px rgba(198,160,50,.35); }
.btn-gold:hover { box-shadow: 0 6px 20px rgba(198,160,50,.5); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--navy-3); }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ============ VITRINE — header ============ */
.v-header { position: sticky; top: 0; z-index: 100; background: rgba(10,22,51,.92); backdrop-filter: blur(12px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.v-header .wrap { display: flex; align-items: center; height: 70px; gap: 30px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 800; font-size: 19px; font-family: var(--font-d); }
.brand .t { font-weight: 800; font-size: 18px; letter-spacing: .06em; line-height: 1.1; }
.brand .t small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .18em; color: #9fb0d8; text-transform: uppercase; }
.v-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.v-nav > a { color: #c9d3ec; font-size: 14px; font-weight: 500; transition: color .15s; }
.v-nav > a:hover, .v-nav > a.on { color: #fff; }
.chip-proto { background: rgba(198,160,50,.18); border: 1px solid rgba(198,160,50,.55); color: var(--gold-2); font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 4px 10px; border-radius: 30px; text-transform: uppercase; }

/* ============ VITRINE — hero ============ */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #24427f 0%, transparent 55%), linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 70%, #1a316a 100%); color: #fff; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(198,160,50,.14); border: 1px solid rgba(198,160,50,.5); color: var(--gold-2); font-size: 12.5px; font-weight: 600; padding: 7px 15px; border-radius: 30px; margin-bottom: 24px; }
.hero h1 { font-family: var(--font-d); font-weight: 600; font-size: 47px; line-height: 1.08; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero .sub { margin: 22px 0 32px; font-size: 17px; color: #bcc8e6; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 34px; display: flex; gap: 26px; font-size: 12.5px; color: #8fa0c9; flex-wrap: wrap; }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust b { color: #d9e1f5; }

/* Mock produit dans le hero */
.mock { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1.2deg); border: 1px solid rgba(255,255,255,.25); }
.mock-bar { background: var(--sand); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 6px; align-items: center; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8dce6; }
.mock-bar span { margin-left: 10px; font-size: 11px; color: var(--faint); }
.mock-body { padding: 18px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 9px; font-size: 12.5px; }
.mock-row .rref { font-weight: 700; color: var(--navy-3); }
.mock-row .rroute { color: var(--muted); flex: 1; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 13px; }
.mock-kpi { background: var(--navy-soft); border-radius: 10px; padding: 10px 12px; }
.mock-kpi b { font-size: 17px; display: block; }
.mock-kpi span { font-size: 10.5px; color: var(--muted); }

/* ============ VITRINE — sections ============ */
.sec { padding: 84px 0; }
.sec-tight { padding: 56px 0; }
.sec-title { font-family: var(--font-d); font-weight: 600; font-size: 34px; text-align: center; margin-bottom: 14px; }
.sec-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 52px; font-size: 16px; }
.sec-label { display: block; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }

.logo-strip { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.logo-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.logo-strip .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.logo-strip .co { font-family: var(--font-d); font-size: 17px; color: #6b7490; font-weight: 600; font-style: italic; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px; box-shadow: var(--shadow); position: relative; }
.fcard .num { font-family: var(--font-d); font-size: 15px; font-weight: 700; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--gold-2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.fcard h3 { font-size: 17.5px; margin-bottom: 10px; }
.fcard p { color: var(--muted); font-size: 14.5px; }
.fcard .link { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: 13.5px; }

.stat-band { background: var(--navy); color: #fff; padding: 58px 0; }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-band b { font-family: var(--font-d); font-size: 38px; font-weight: 600; color: var(--gold-2); display: block; }
.stat-band span { font-size: 13.5px; color: #a9b7db; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-family: var(--font-d); font-weight: 600; font-size: 30px; margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.checklist { list-style: none; margin-top: 8px; }
.checklist li { padding: 9px 0 9px 34px; position: relative; font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.grid-typo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.typo-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.typo-card .ic { font-size: 22px; }
.typo-card b { display: block; font-size: 15px; }
.typo-card span { color: var(--muted); font-size: 13.5px; }

/* Frise horizontale (comment ça marche) */
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin-top: 10px; }
.flow-step { text-align: center; position: relative; padding: 0 6px; }
.flow-step::before { content: ""; position: absolute; top: 24px; left: 0; right: 0; height: 2px; background: var(--line); }
.flow-step:first-child::before { left: 50%; } .flow-step:last-child::before { right: 50%; }
.flow-step .b { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; position: relative; z-index: 1; }
.flow-step.hl .b { border-color: var(--gold); background: var(--gold-soft); }
.flow-step b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.flow-step span { font-size: 12px; color: var(--muted); line-height: 1.45; display: block; }

/* Accordéon FAQ */
.acc { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.acc summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 15px; display: flex; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--gold); font-weight: 400; transition: transform .2s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* Tarifs */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.hl { border: 2px solid var(--gold); position: relative; }
.price-card.hl .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 14px; border-radius: 30px; text-transform: uppercase; }
.price-card h3 { font-size: 17px; margin-bottom: 6px; }
.price-card .amount { font-family: var(--font-d); font-size: 36px; font-weight: 600; margin: 10px 0 2px; }
.price-card .amount small { font-size: 14px; font-family: var(--font-b); color: var(--muted); font-weight: 500; }
.price-card .desc { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.price-card .checklist { flex: 1; margin-bottom: 22px; }
.price-card .checklist li { font-size: 14px; padding: 7px 0 7px 32px; }

/* Actus */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.news-body { padding: 20px 22px 24px; }
.news-body .cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.news-body h3 { font-size: 16px; margin: 8px 0; }
.news-body p { color: var(--muted); font-size: 13.5px; }
.news-body .date { font-size: 12px; color: var(--faint); margin-top: 12px; display: block; }

.cta-band { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; text-align: center; padding: 76px 28px; }
.cta-band h2 { font-family: var(--font-d); font-weight: 600; font-size: 32px; margin-bottom: 12px; }
.cta-band p { color: #b3bfe0; margin-bottom: 30px; }

/* Footer */
.footer { background: #070f24; color: #7d89ab; font-size: 13.5px; padding: 56px 0 34px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #cdd6ec; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { display: block; padding: 4px 0; color: #7d89ab; }
.footer a:hover { color: #fff; }
.footer .base { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }

/* Page header (pages internes vitrine) */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 58px 0 62px; }
.page-hero h1 { font-family: var(--font-d); font-weight: 600; font-size: 36px; }
.page-hero p { color: #b3bfe0; margin-top: 12px; max-width: 640px; font-size: 16px; }

/* ============ FORMS ============ */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 14.5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; transition: border .15s, box-shadow .15s; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-3); background: #fff; box-shadow: 0 0 0 3px rgba(28,58,116,.1); }
.field .help { font-size: 12px; color: var(--faint); margin-top: 5px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.radio-card { border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; font-size: 13.5px; font-weight: 600; transition: all .15s; background: #fff; }
.radio-card:hover { border-color: var(--navy-3); }
.radio-card.sel { border-color: var(--gold); background: var(--gold-soft); }
.radio-card .ic { display: block; font-size: 22px; margin-bottom: 6px; }

/* Stepper (formulaire devis) */
.stepper { display: flex; gap: 0; margin-bottom: 36px; }
.stepper .st { flex: 1; text-align: center; position: relative; }
.stepper .st::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--line); }
.stepper .st:first-child::before { left: 50%; } .stepper .st:last-child::before { right: 50%; }
.stepper .st .dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--faint); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; position: relative; z-index: 1; }
.stepper .st.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper .st.cur .dot { border-color: var(--gold); background: var(--gold-soft); color: var(--navy); box-shadow: 0 0 0 4px rgba(198,160,50,.2); }
.stepper .st span { font-size: 12px; font-weight: 600; color: var(--faint); }
.stepper .st.cur span, .stepper .st.done span { color: var(--ink); }

/* ============ LOGIN ============ */
.login-wrap { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: radial-gradient(900px 500px at 75% 0%, #24427f 0%, transparent 55%), linear-gradient(165deg, var(--navy), var(--navy-2)); }
.login-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; padding: 42px 40px; }
.login-card h1 { font-family: var(--font-d); font-weight: 600; font-size: 24px; margin-bottom: 8px; }
.login-card .hint { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }
.login-err { display: none; background: var(--red-bg); color: var(--red); font-size: 13px; padding: 11px 14px; border-radius: 9px; margin-bottom: 16px; }
.login-foot { margin-top: 22px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ============ APP SHELL (sidebar) ============ */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--navy) 0%, #0c1b40 100%); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar.bo { background: linear-gradient(180deg, #0d1117 0%, #131a24 100%); }
.sidebar .brand { padding: 4px 10px 20px; border-bottom: 1px solid rgba(255,255,255,.09); margin-bottom: 18px; }
.snav { display: flex; flex-direction: column; gap: 3px; }
.snav .grp { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.38); padding: 16px 12px 7px; }
.snav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #b7c3e2; font-size: 14px; font-weight: 500; transition: background .13s, color .13s; }
.snav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.snav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.snav a.on { background: rgba(198,160,50,.16); color: var(--gold-2); }
.sidebar.bo .snav a.on { background: rgba(226,86,74,.16); color: #ff9d92; }
.snav .badge { margin-left: auto; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.sidebar .foot { margin-top: auto; padding: 16px 12px 4px; border-top: 1px solid rgba(255,255,255,.09); font-size: 12px; color: rgba(255,255,255,.45); }
.sidebar .foot a { color: #b7c3e2; display: flex; gap: 9px; align-items: center; padding: 8px 0; font-size: 13.5px; }
.sidebar .foot a:hover { color: #fff; }

.content { min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 0 34px; height: 66px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 40; }
.topbar h1 { font-size: 18.5px; font-weight: 700; }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.topbar .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.page { padding: 30px 34px 70px; max-width: 1180px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 22px; box-shadow: var(--shadow); }
.kpi .n { font-family: var(--font-d); font-size: 30px; font-weight: 600; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.kpi .d { font-size: 12px; margin-top: 6px; font-weight: 600; }
.kpi.warn .n { color: var(--orange); } .kpi.alert .n { color: var(--red); } .kpi.ok .n { color: var(--green); }

/* Cards & tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden; }
.card-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 15px; font-weight: 700; }
.card-head .spacer { margin-left: auto; }
.card-body { padding: 22px; }
.tbl-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fafbfe; white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.rowlink { cursor: pointer; transition: background .12s; }
.tbl tr.rowlink:hover { background: #f6f8fd; }
.tbl .ref { font-weight: 700; color: var(--navy-3); white-space: nowrap; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 30px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.grey { background: #eef0f6; color: #5f6880; }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.orange { background: var(--orange-bg); color: var(--orange); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.gold { background: var(--gold-soft); color: #8a6d10; }

/* Alerts */
.alert-line { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.alert-line.red { background: var(--red-bg); color: #7c241a; }
.alert-line.orange { background: var(--orange-bg); color: #7a4410; }
.alert-line.blue { background: var(--blue-bg); color: #1c3a74; }
.alert-line .btn { margin-left: auto; flex-shrink: 0; }

/* Timeline fiche dossier */
.timeline { display: flex; flex-wrap: wrap; padding: 8px 0 2px; }
.tstep { flex: 1 1 90px; min-width: 86px; text-align: center; position: relative; padding-top: 4px; }
.tstep::before { content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 3px; background: var(--line); }
.tstep:first-child::before { left: 50%; } .tstep:last-child::before { right: 50%; }
.tstep.done::before, .tstep.current::before { background: var(--green); }
.tstep .bub { width: 27px; height: 27px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto 8px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--faint); }
.tstep.done .bub { background: var(--green); border-color: var(--green); color: #fff; }
.tstep.current .bub { background: #fff; border-color: var(--gold); color: var(--navy); box-shadow: 0 0 0 4px rgba(198,160,50,.22); }
.tstep .tl { font-size: 10.5px; color: var(--faint); font-weight: 600; line-height: 1.3; padding: 0 3px; }
.tstep.done .tl { color: var(--green); } .tstep.current .tl { color: var(--navy); }

/* Detail layout */
.detail-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 24px; align-items: start; }
.kv { display: grid; grid-template-columns: 160px 1fr; row-gap: 10px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { font-weight: 600; }
.doc-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.doc-line:last-child { border-bottom: none; }
.doc-line a.dl { margin-left: auto; color: var(--blue); font-weight: 600; font-size: 13px; white-space: nowrap; }

/* Messagerie */
.msg { margin-bottom: 14px; max-width: 82%; }
.msg .who { font-size: 11.5px; color: var(--faint); margin-bottom: 4px; }
.msg .bubble { padding: 11px 15px; border-radius: 13px; font-size: 14px; }
.msg.them .bubble { background: #eef1f8; border-top-left-radius: 4px; }
.msg.me { margin-left: auto; }
.msg.me .bubble { background: var(--navy); color: #fff; border-top-right-radius: 4px; }
.msg-input { display: flex; gap: 10px; margin-top: 18px; }
.msg-input input { flex: 1; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.conv-list { border-right: 1px solid var(--line); }
.conv { padding: 15px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.conv:hover, .conv.on { background: #f6f8fd; }
.conv .cref { font-weight: 700; font-size: 13.5px; color: var(--navy-3); }
.conv .cprev { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.msg-layout { display: grid; grid-template-columns: 290px 1fr; min-height: 480px; }

/* Paiement */
.paybox { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--r-sm); padding: 24px; }
.paybox .amt { font-family: var(--font-d); font-size: 32px; font-weight: 600; margin: 6px 0 3px; }
.paybox .due { color: var(--gold-2); font-size: 13px; margin-bottom: 18px; }
.paybox .split { font-size: 12.5px; color: #a9b7db; margin-top: 16px; line-height: 1.75; }
.paybox .split b { color: #e6ebf7; }

/* Progression rétrocommission */
.progress { background: #e9ecf4; border-radius: 30px; height: 14px; overflow: hidden; margin: 14px 0 6px; }
.progress .fill { height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 30px; }
.palier-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* Barres HTML (back-office, une seule teinte) */
.hbar-row { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13.5px; }
.hbar-row .bar { background: #e9ecf4; height: 22px; border-radius: 4px; overflow: hidden; }
.hbar-row .bar i { display: block; height: 100%; background: var(--navy-3); border-radius: 4px 4px 4px 4px; }
.hbar-row .val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }

.bo-note { background: #fff7e6; border: 1px solid #f0dfae; color: #7a5c10; border-radius: 10px; padding: 13px 17px; font-size: 13.5px; margin-bottom: 24px; }
.marge { color: var(--green); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note-int { background: #fffbea; border: 1px dashed #e3cf7a; border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: #6b5a13; margin-bottom: 10px; }
.note-int .nwho { font-size: 11.5px; color: #a08c33; margin-bottom: 3px; font-weight: 600; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { font: inherit; font-size: 13.5px; font-weight: 600; background: none; border: none; padding: 10px 16px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--gold); }

.empty { text-align: center; color: var(--faint); padding: 36px 20px; font-size: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 64px; }
  .mock { display: none; }
  .cards3, .price-grid, .news-grid, .grid-typo { grid-template-columns: 1fr 1fr; }
  .stat-band .wrap { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px; }
  .sidebar .brand { border: none; margin: 0; padding: 0 14px 0 0; }
  .snav { flex-direction: row; flex-wrap: wrap; }
  .snav .grp { display: none; }
  .sidebar .foot { margin: 0 0 0 auto; border: none; padding: 0; display: flex; gap: 12px; align-items: center; }
  .sidebar .foot div { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .msg-layout { grid-template-columns: 1fr; }
  .conv-list { border-right: none; border-bottom: 1px solid var(--line); max-height: 220px; overflow-y: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 31px; }
  .hero .sub { font-size: 15.5px; }
  .hero-ctas .btn { flex: 1 1 auto; min-width: 140px; }
  .hero-trust { gap: 14px; font-size: 12px; }
  .sec { padding: 54px 0; }
  .sec-title { font-size: 26px; }
  .page-hero { padding: 40px 0 44px; }
  .page-hero h1 { font-size: 28px; }
  .cards3, .price-grid, .news-grid, .grid-typo, .stat-band .wrap, .frow { grid-template-columns: 1fr; }
  .kpis, .radio-cards { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 14px 16px; }
  .kpi .n { font-size: 24px; }
  .v-header .wrap { height: auto; min-height: 58px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 10px; }
  .v-nav { gap: 10px; margin-left: auto; }
  .v-nav > a.hm, .chip-proto { display: none; }
  .brand .t { font-size: 16px; }
  .v-nav .btn-sm { padding: 7px 11px; font-size: 12.5px; }
  .page { padding: 20px 16px 56px; }
  .topbar { padding: 0 16px; height: 58px; }
  .topbar h1 { font-size: 16px; }
  .topbar .who span:not(.avatar) { display: none; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .snav a { padding: 8px 9px; font-size: 12.5px; gap: 7px; }
  .snav a svg { width: 15px; height: 15px; }
  .sidebar .foot a { font-size: 0; gap: 0; padding: 8px 6px; }
  .sidebar .foot a svg { width: 17px; height: 17px; }
  .timeline { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
  .tstep { flex: 0 0 84px; }
  .stepper .st span { font-size: 10px; }
  .card-head { padding: 13px 16px; }
  .card-body { padding: 16px; }
  .alert-line { font-size: 13px; }
  .alert-line .btn { margin-left: 0; width: 100%; }
  .kv { grid-template-columns: 1fr; row-gap: 2px; }
  .kv dt { margin-top: 9px; font-size: 12.5px; }
  .login-card { padding: 32px 24px; }
  .cta-band { padding: 54px 20px; }
  .cta-band h2 { font-size: 25px; }
  .footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .footer .base { flex-direction: column; }
  .msg { max-width: 94%; }
  .paybox .amt { font-size: 26px; }
  .logo-strip .wrap { gap: 20px; }
  .logo-strip .co { font-size: 14px; }
}
@media (max-width: 880px) and (min-width: 641px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   POLISH 2026 — animations, verre, halos, micro-interactions
   ============================================================ */
::selection { background: var(--gold-soft); color: var(--navy); }

/* Scrollbar fine et discrète */
* { scrollbar-width: thin; scrollbar-color: #c3cadd transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c3cadd; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* Focus accessible */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Révélation au scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,.7,.3,1), transform .6s cubic-bezier(.22,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Hero vivant ---- */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; left: -140px; bottom: -220px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,110,201,.35), transparent 62%);
  animation: drift 13s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -160px; top: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,160,50,.26), transparent 62%);
  animation: drift 17s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(46px, -34px) scale(1.12); }
}
.hero h1 em {
  background: linear-gradient(100deg, var(--gold-2), #f6e3a3 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .wrap > div:first-child { animation: heroIn .8s cubic-bezier(.22,.7,.3,1) both; }
.mock { animation: heroIn .9s .15s cubic-bezier(.22,.7,.3,1) both, floaty 7s 1.2s ease-in-out infinite alternate; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px) rotate(1.2deg); } to { opacity: 1; } }
@keyframes floaty { from { transform: rotate(1.2deg) translateY(0); } to { transform: rotate(.6deg) translateY(-12px); } }
.kicker { animation: pulseGold 3.2s ease-in-out infinite; }
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198,160,50,.28); }
  50% { box-shadow: 0 0 22px 2px rgba(198,160,50,.18); }
}

/* ---- Boutons : reflet au survol ---- */
.btn { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transition: left .5s ease;
}
.btn-gold:hover::after { left: 130%; }
.btn-navy:hover, .btn-outline:hover { transform: translateY(-1px); }

/* ---- Cartes : élévation douce et liseré doré ---- */
.fcard, .typo-card, .news-card, .price-card, .kpi, .step {
  transition: transform .22s cubic-bezier(.22,.7,.3,1), box-shadow .25s, border-color .25s;
}
.fcard:hover, .typo-card:hover, .kpi:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(10,22,51,.13);
  border-color: #d8ceac;
}
.price-card.hl {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--gold-2), var(--gold), #9a7d1e) border-box;
  box-shadow: 0 14px 44px rgba(198,160,50,.22);
}
.card { transition: box-shadow .25s; }

/* ---- Topbar & sidebar : verre et accents ---- */
.topbar { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.snav a { position: relative; }
.snav a.on::before {
  content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: var(--gold);
  box-shadow: 0 0 10px rgba(198,160,50,.7);
}
.sidebar.bo .snav a.on::before { background: #e2564a; box-shadow: 0 0 10px rgba(226,86,74,.7); }
.snav .badge { animation: badgePop 2.6s ease-in-out infinite; }
@keyframes badgePop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* ---- Tableaux : survol lumineux ---- */
.tbl tr.rowlink:hover { background: linear-gradient(90deg, #f6f8fd, #fdf9ec); box-shadow: inset 3px 0 0 var(--gold); }

/* ---- Frise de statut : étape courante qui respire ---- */
.tstep.current .bub { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(198,160,50,.22); }
  50% { box-shadow: 0 0 0 8px rgba(198,160,50,.1); }
}

/* ---- Barre de progression scintillante (rétrocommission) ---- */
.progress .fill { position: relative; overflow: hidden; }
.progress .fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---- Login : carte en verre sur halo ---- */
.login-wrap { position: relative; overflow: hidden; }
.login-wrap::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,160,50,.2), transparent 60%);
  top: -180px; right: -140px; animation: drift 14s ease-in-out infinite alternate;
}
.login-card { position: relative; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); animation: heroIn .7s cubic-bezier(.22,.7,.3,1) both; }
.login-card img { animation: floaty 5s ease-in-out infinite alternate; }

/* ---- Accordéons fluides ---- */
.acc { transition: box-shadow .25s, border-color .25s; }
.acc[open] { box-shadow: var(--shadow); border-color: #d8ceac; }
.acc summary { transition: color .2s; }
.acc summary:hover { color: var(--navy-3); }

/* ---- Actus ---- */
.news-thumb { transition: transform .35s ease; }
.news-card:hover .news-thumb { transform: scale(1.06); }
.news-card { overflow: hidden; }

/* ---- Respecte les préférences de mouvement réduit ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
