/* Landing Loopio — tokens de docs/11_CHARTE_GRAPHIQUE.md (marine, clair + sombre). */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --p: 1;
  --police: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --bg: #F7F8FA; --surface: #FFFFFF; --surface-muted: #F3F5F9; --border: #E6E9EF; --border-strong: #DCE0E8; --divider: #EEF0F4;
  --ink: #13233F; --text: #1F2A3C; --text-2: #3B4659; --muted: #5B6577;
  --primary: #13233F; --on-primary: #FFFFFF; --accent: #2B4A80; --accent-hover: #223C69; --accent-soft: #E8EEFB;
  --ok: #1E7A46; --warn: #B42318; --stage: #0F2244; --stage-line: #2A3D63; --stage-ink: #E8EEF8; --stage-muted: #9FB0CB;
  --a-faire: #FFF4D6; --a-faire-ink: #7A4B00; --shadow-pop: 0 24px 80px rgb(10 20 36 / 0.3);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1424; --surface: #0F1B2D; --surface-muted: #16243A; --border: #1E2C42; --border-strong: #2A3A54; --divider: #1A273B;
    --ink: #EAF0F8; --text: #D5DDE8; --text-2: #B4C0D0; --muted: #8D9AAE;
    --primary: #6EA8FE; --on-primary: #0A1A33; --accent: #6EA8FE; --accent-hover: #8DBBFF; --accent-soft: #1B3358;
    --ok: #5FD08F; --warn: #FF9B8F; --stage: #0F1B2D; --stage-line: #2A3A54; --stage-ink: #EAF0F8; --stage-muted: #8D9AAE;
    --a-faire: #3A2C0C; --a-faire-ink: #FFD88A; --shadow-pop: 0 24px 80px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--police); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 720px; }

/* Barre du haut */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 60px; }
.marque { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.marque svg { width: 22px; height: 22px; }
.nav-liens { display: flex; gap: 24px; margin-right: auto; font-size: 14px; font-weight: 500; color: var(--text-2); }
.nav-liens a:hover, .nav-connexion:hover { color: var(--ink); }
.nav-connexion { white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--text-2); margin-right: -12px; }

/* Boutons (charte §6, agrandis pour la landing) */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid transparent; font: 500 14px/1 var(--police); cursor: pointer; white-space: nowrap; transition: background-color 0.15s; }
.btn-grand { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-principal { background: var(--accent); color: var(--on-primary); }
.btn-principal:hover { background: var(--accent-hover); }
.btn-secondaire { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondaire:hover { background: var(--surface-muted); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Hero */
.hero { padding-top: 96px; text-align: center; }
.point { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
h1 { font-size: clamp(40px, 7.4vw, 104px); line-height: 0.96; font-weight: 700; letter-spacing: -0.05em; color: var(--ink); text-wrap: balance; }
h1 span { font-variant-numeric: tabular-nums; white-space: nowrap; }
h1 em { font-style: normal; color: var(--accent); opacity: calc(0.32 + 0.68 * var(--p)); }
.chapo { max-width: 580px; margin: 28px auto 0; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.chapo strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Sections */
.section { padding-top: 120px; }
.surtitre { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h2 { margin-top: 10px; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.section > .chapo { margin: 14px 0 0; font-size: 17px; }

.rang { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 72px; }
.rang.inverse .rang-texte { order: 2; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.rang-texte > p { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.liste { margin-top: 18px; }
.liste li { position: relative; padding: 5px 0 5px 22px; font-size: 15px; color: var(--text); }
.liste li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 2px; border-radius: 2px; background: var(--accent); }

.carte { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.fils li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); }
.fils div { flex: 1; min-width: 0; }
.fils b { font-size: 14px; font-weight: 600; color: var(--ink); }
.fils p { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fils small { font-size: 12px; color: var(--muted); }
.inter { flex: none; position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); }
.inter::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); }
.inter.on { background: var(--accent); }
.inter.on::after { left: 18px; }
.ventes { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ventes th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding-bottom: 8px; }
.ventes td { padding: 11px 0; border-top: 1px solid var(--divider); }
.ventes td:nth-child(2) { color: var(--muted); }
.ventes th:last-child, .ventes td:last-child { text-align: right; }
.ventes tfoot td { font-weight: 600; color: var(--ink); }

/* Questions */
.faq { margin-top: 32px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 20px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 32px 20px 0; color: var(--muted); }


/* Hero : garanties et aperçu de l'app */
.fenetre { margin: 0 auto; opacity: calc((var(--p) - 0.4) / 0.5); transform: translateY(calc(48px * (1 - var(--p)))) scale(calc(0.94 + 0.06 * var(--p))); transform-origin: 50% 0; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -30px rgb(15 34 68 / 0.28); }
.fenetre-barre { display: flex; align-items: center; gap: 6px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.fenetre-barre i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.fenetre-barre span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.app { display: grid; grid-template-columns: 196px minmax(0, 1fr); }
.app-menu { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-2); }
.app-menu span { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 6px; }
.app-menu span.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.app-menu b { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.app-menu small { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--border); font-size: 12px; font-weight: 400; color: var(--muted); }
.app-corps { display: grid; gap: 14px; padding: 20px; background: var(--bg); min-width: 0; }
.app-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-titre b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.app-titre span { font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.kpis small { display: block; font-size: 12px; color: var(--muted); }
.kpis b { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis span { font-size: 12px; color: var(--muted); }
.app-bas { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.bloc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.bloc-titre { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.taches li, .comptes li, .regles li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--divider); font-size: 13.5px; }
.taches li:first-child, .comptes li:first-child, .regles li:first-child, .fils li:first-child { border-top: 0; }
.taches time { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.taches span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taches b { flex: none; font-weight: 500; font-size: 13px; color: var(--accent); }
.regles li { justify-content: space-between; font-size: 14px; }
.comptes .nom { font-weight: 500; color: var(--ink); margin-right: auto; }
.etat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.note.gauche { margin-top: 20px; font-size: 14px; }


/* Blocs en trois colonnes */
h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.trois p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.etapes { counter-reset: e; gap: 32px; }
.etapes li { counter-increment: e; padding-top: 18px; border-top: 2px solid var(--ink); }
.etapes li::before { content: "0" counter(e); display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Tarifs */
.tarifs-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tarifs-tete h2 { max-width: 16em; }
.segment { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--divider); }
.segment button { height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: 500 13px/1 var(--police); cursor: pointer; }
.segment button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(15 34 68 / 0.12); }
.formules { align-items: stretch; }
.formule { display: flex; flex-direction: column; padding: 26px; }
.formule.mise { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.formule h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 20px; }
.formule h3 span { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--accent); }
.formule .pour { margin-top: 6px; min-height: 44px; }
.formule .prix { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.formule .prix b { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.formule .liste { margin: 16px 0 24px; padding-top: 16px; border-top: 1px solid var(--divider); }
.formule .liste li { font-size: 14.5px; }
.formule .btn { margin-top: auto; height: 46px; font-size: 15px; }

/* Bêta sur demande */
.beta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; margin-top: 44px; padding: 40px 44px; border: 1px solid var(--accent); border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.beta-texte { max-width: 44ch; font-size: 18px; color: var(--text); text-wrap: pretty; }
.btn-geant { height: 60px; padding: 0 36px; border-radius: 10px; font-size: 17px; font-weight: 600; }

/* Appel final */
.final { padding: 64px 32px; border-radius: 16px; background: var(--stage); border: 1px solid var(--stage-line); text-align: center; }
.final h2 { margin: 0 auto; max-width: 18em; color: #fff; }
.final p { margin-top: 12px; font-size: 17px; color: var(--stage-muted); }
.btn-clair { background: #fff; color: #0F2244; }
.btn-clair:hover { background: #DCE8FF; }
.btn-fantome { color: var(--stage-ink); border-color: var(--stage-line); }
.btn-fantome:hover { background: rgb(255 255 255 / 0.07); }

/* Pied de page */
.pied { margin-top: 120px; border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: 14px; color: var(--muted); }
.pied-grille { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.pied-grille div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.pied-grille b { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.pied-grille a:not(.marque):hover { color: var(--accent); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }

/* Fenêtre « Demander l'accès » */
.acces { width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); overflow: hidden; }
.acces::backdrop { background: rgb(10 20 36 / 0.55); backdrop-filter: blur(3px); }
.acces[open] { animation: acces-entre 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes acces-entre { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.acces-in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); max-height: calc(100dvh - 34px); }
.acces-pitch { padding: 40px 32px; background: var(--stage); color: var(--stage-ink); }
.acces-pitch .surtitre { color: var(--stage-muted); }
.acces-pitch h2 { font-size: 30px; color: #fff; }
.acces-pitch ol { display: grid; gap: 22px; margin-top: 36px; }
.acces-pitch li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; font-size: 14px; color: var(--stage-muted); }
.acces-pitch li b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--stage-line); font-size: 12px; font-weight: 600; color: var(--stage-ink); }
.acces-pitch strong { display: block; font-weight: 600; color: #fff; }
.acces-corps { position: relative; padding: 40px 36px 32px; overflow-y: auto; }
.fermer { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.fermer:hover { background: var(--surface-muted); color: var(--ink); }
.fermer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.avance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-right: 28px; }
.avance i { height: 3px; border-radius: 3px; background: var(--divider); transition: background-color 0.2s; }
.avance i.on { background: var(--accent); }
.pas-n { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pas { display: grid; gap: 18px; margin-top: 6px; min-height: 268px; align-content: start; }
.pas h3 { margin-bottom: 4px; }
label, legend { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); }
legend { margin-bottom: 8px; padding: 0; }
label span, legend span { font-weight: 400; color: var(--muted); }
fieldset { border: 0; min-width: 0; }
input { display: block; width: 100%; height: 42px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); font: 400 15px/1 var(--police); }
input::placeholder { color: var(--muted); opacity: 0.7; }
input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix button { height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); font: 500 14px/1 var(--police); cursor: pointer; }
.choix button:hover { background: var(--surface-muted); }
.choix button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-primary); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erreur { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--warn); }
.pas-actions { display: flex; gap: 10px; margin-top: 22px; }
.pas-actions #pas-suite { flex: 1; }
.mention { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
.mention a { text-decoration: underline; }
.merci { display: grid; justify-items: center; gap: 10px; padding: 48px 0 16px; text-align: center; }
.merci svg { width: 52px; height: 52px; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.merci p { color: var(--muted); margin-bottom: 14px; }
.merci p b { color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }

/* Pages légales */
.legal { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; padding-top: 64px; }
.legal aside { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.legal aside a:hover { color: var(--ink); }
.legal aside a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.legal article { max-width: 700px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.legal article h1 { margin: 0 0 6px; font-size: clamp(32px, 4.4vw, 46px); }
.legal article h2 { margin-top: 24px; font-size: 20px; letter-spacing: -0.015em; }
.legal article p, .legal article li { font-size: 15px; }
.legal article ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.maj { font-size: 12px; color: var(--muted); }
.af { background: var(--a-faire); color: var(--a-faire-ink); border-radius: 4px; padding: 0 5px; font-weight: 500; }
.encadre { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 14px 16px; font-size: 14px !important; }
.tableau { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tableau table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; }
.tableau th, .tableau td { padding: 11px 16px; text-align: left; border-top: 1px solid var(--divider); }
.tableau thead th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--muted); }


/* Scène : trois fenêtres de comptes qui fusionnent en une (--p de 0 à 1, piloté par le défilement) */
.scene { position: relative; margin-top: 72px; }
.mini { position: absolute; z-index: 2; top: 0; left: 50%; width: 280px; margin-left: -140px; padding: 0 16px 14px; text-align: left; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 20px 44px -22px rgb(15 34 68 / 0.35); pointer-events: none;
  transform: translate(calc(var(--x) * (1 - var(--p))), calc(var(--y) + (140px - var(--y)) * var(--p))) rotate(calc(var(--r) * (1 - var(--p)))) scale(calc(1 - 0.18 * var(--p)));
  opacity: calc((0.8 - var(--p)) / 0.3); will-change: transform, opacity; }
.m1 { --x: -350px; --y: 26px; --r: -7deg; }
.m2 { --x: 0px; --y: -14px; --r: 2deg; }
.m3 { --x: 350px; --y: 34px; --r: 6deg; }
.mini-onglet { display: flex; align-items: center; gap: 5px; margin: 0 -16px 12px; padding: 9px 12px; border-bottom: 1px solid var(--divider); }
.mini-onglet i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.fenetre-barre i:nth-child(1), .mini-onglet i:nth-child(1) { background: #FF5F57; }
.fenetre-barre i:nth-child(2), .mini-onglet i:nth-child(2) { background: #FEBC2E; }
.fenetre-barre i:nth-child(3), .mini-onglet i:nth-child(3) { background: #28C840; }
.mini-onglet span { margin-left: 6px; font-size: 11px; color: var(--muted); }
.mini-compte { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 14px; color: var(--ink); }
.mini p { padding: 7px 0; border-top: 1px solid var(--divider); font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini p b { margin-right: 6px; font-weight: 600; color: var(--ink); }
.mini small { display: block; padding-top: 8px; border-top: 1px solid var(--divider); font-size: 12px; font-weight: 500; color: var(--accent); }

/* Temps gagné : calculateur */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-top: 44px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.calc-reglage { padding: 36px; }
.calc-phrase { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.calc-phrase input { display: inline-block; width: 3.4ch; height: auto; margin: 0 2px; padding: 0 0 1px; border: 0; border-bottom: 2px solid var(--accent); border-radius: 0; background: transparent; color: var(--accent); font: inherit; letter-spacing: inherit; text-align: center; font-variant-numeric: tabular-nums; cursor: text; }
.calc-phrase input:focus-visible { outline: 0; background: var(--accent-soft); border-radius: 4px 4px 0 0; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 18px 0 26px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--rempli, 20%) 100% no-repeat var(--divider); }
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--divider); }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 2px 8px rgb(15 34 68 / 0.25); }
.calc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.calc-entete, .calc-taches li { display: grid; grid-template-columns: minmax(0, 1fr) 72px 100px; gap: 12px; align-items: center; }
.calc-entete { padding-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.calc-entete span:not(:first-child), .calc-taches s, .calc-taches b { text-align: right; }
.calc-taches li { padding: 10px 0; border-top: 1px solid var(--divider); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.calc-taches s { color: var(--muted); text-decoration-color: var(--warn); }
.calc-taches b { font-weight: 600; color: var(--ok); }
.calc-resultat { display: flex; flex-direction: column; padding: 36px; background: var(--stage); color: var(--stage-muted); font-size: 16px; }
.calc-resultat b { margin: 6px 0 14px; font-size: clamp(84px, 10.5vw, 148px); line-height: 0.9; font-weight: 700; letter-spacing: -0.06em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-resultat p { max-width: 28ch; }
.calc-resultat .btn { width: 100%; height: 54px; margin-top: auto; font-size: 16px; font-weight: 600; border-radius: 8px; }
.calc-resultat #heures-p { display: block; margin-bottom: 32px; }

/* Une journée : frise de 24 h */
.jour { margin-top: 44px; padding: 44px 44px 30px; border-radius: 16px; background: var(--stage); border: 1px solid var(--stage-line); color: var(--stage-ink); }
.jour-haut { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: end; min-height: 150px; }
.jour-heure b { display: block; font-size: clamp(64px, 10vw, 128px); line-height: 0.9; font-weight: 700; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }
.jour-heure span { display: block; margin-top: 12px; font-size: 13px; color: var(--stage-muted); }
.jour-evt { padding-bottom: 4px; max-width: 30em; }
.jour-evt.change > * { animation: jour-entre 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes jour-entre { from { opacity: 0; transform: translateY(8px); } }
.jour-type { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8BBAFF; }
.jour-quoi { margin-top: 8px; font-size: clamp(17px, 1.9vw, 22px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; color: #fff; text-wrap: pretty; }
.jour-compte { margin-top: 8px; font-size: 13px; color: var(--stage-muted); }
.jour-piste { position: relative; height: 56px; margin-top: 36px; cursor: ew-resize; touch-action: pan-y;
  background: repeating-linear-gradient(90deg, var(--stage-line) 0 1px, transparent 1px calc(100% / 24)) left bottom / 100% 12px no-repeat; border-bottom: 1px solid var(--stage-line); }
.jour-piste button { position: absolute; bottom: -6px; width: 28px; height: 44px; margin-left: -14px; padding: 0; border: 0; background: none; cursor: pointer; }
.jour-piste button::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--stage); border: 2px solid var(--stage-muted); transition: transform 0.2s, background-color 0.2s, border-color 0.2s; }
.jour-piste button[aria-pressed="true"]::after { background: #fff; border-color: #fff; transform: scale(1.35); }
.jour-curseur { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #fff; opacity: 0.55; transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.jour-axe { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--stage-muted); font-variant-numeric: tabular-nums; }

/* Sommaire des fonctions */
.sommaire { margin-top: 44px; border-top: 1px solid var(--border-strong); }
.sommaire li { display: grid; grid-template-columns: 56px minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--border); transition: padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.sommaire li:hover { padding-left: 14px; }
.sommaire span { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sommaire h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.03em; transition: color 0.2s; }
.sommaire li:hover h3 { color: var(--accent); }
.sommaire p { font-size: 15.5px; color: var(--muted); max-width: 46ch; }

.final { position: relative; overflow: hidden; isolation: isolate; }
.final-motif { position: absolute; z-index: -1; right: -90px; top: -110px; width: 460px; fill: none; stroke: var(--stage-line); stroke-width: 3; }

@media (max-width: 900px) {
  :root { --p: 1 !important; }
  .mini { display: none; }
  .scene { margin-top: 44px; }
  .beta { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px; }
  .btn-geant { width: 100%; }
  .calc { grid-template-columns: 1fr; }
  .calc-reglage, .calc-resultat { padding: 24px 20px; }
  .calc-entete, .calc-taches li { grid-template-columns: minmax(0, 1fr) 58px 96px; gap: 8px; }
  .jour { padding: 28px 20px 22px; }
  .jour-haut { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .jour-evt { min-height: 132px; }
  .sommaire li { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; }
  .sommaire p { grid-column: 2; }
  .final-motif { width: 300px; }
  .nav-liens { display: none; }
  .nav-connexion { margin-left: auto; }
  .nav-in { gap: 20px; }
  .hero { padding-top: 56px; }
  .chapo { font-size: 17px; }
  .section { padding-top: 88px; }
  .wrap { padding-inline: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .fenetre { margin-top: 44px; }
  .app { grid-template-columns: 1fr; }
  .app-menu { display: none; }
  .app-corps { padding: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .app-bas, .rang, .trois { grid-template-columns: 1fr; }
  .rang { gap: 24px; margin-top: 56px; }
  .trois { margin-top: 32px; }
  .etapes { gap: 28px; }
  .rang.inverse .rang-texte { order: 0; }
    .formule .pour { min-height: 0; }
  .final { padding: 44px 20px; }
  .pied { margin-top: 72px; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille div:first-child { grid-column: 1 / -1; }
  .pas input { font-size: 16px; }
  .acces-in { grid-template-columns: 1fr; }
  .acces-pitch { display: none; }
  .acces-corps { padding: 32px 20px 24px; }
  .pas { min-height: 0; }
  .legal { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .legal aside { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
}
@media (prefers-reduced-motion: reduce) { :root { --p: 1 !important; } .mini { display: none; } .acces[open], .jour-evt.change > * { animation: none; } .jour-curseur { transition: none; } }
