/* BMD look: L&D Parc My Space structure, BBP navy dégradé, palette A1 "Slate and Brass" (Ketty, 1 Nov 2026). */
:root {
  --navy: #031b32; --ink: #0b2e45; --text: #4a5b6c; --muted: #5a6b7b; --faint: #8a99a8;
  --mist: #f4f7f9; --line: #e3eaef; --line2: #eef2f5; --card: #ffffff;
  --brand: #263c63; --grad: linear-gradient(120deg, #1b2c4a 0%, #263c63 40%, #2f5d8a 75%, #3b7fa8 100%);
  --accent: #b8975a; --accent-ink: #1b2c4a; --accent-soft: #f5efe3; --leak: #2f5d8a;
  --ok: #0f7a52; --okbg: #e7f5ee; --err: #b3261e; --errbg: #fcefee;
  --l1: #98a2ae; --l2: #b9785a; --l3: #b8975a; --l4: #4e8f6c;
  --radius: 18px; --shadow: 0 1px 2px #031b3208, 0 8px 24px -18px #031b3226;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; color: var(--text); background: var(--mist); line-height: 1.55; font-size: 15.5px; }
p, li, .just { text-align: justify; hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .45em; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }

/* top bar (white, as in My Space) */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .in { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; position: relative; }
.top .in > * { min-width: 0; }
.top .in > a:first-child { flex: none; }
.top img { height: 34px; display: block; }
.top .sep { width: 1px; height: 28px; background: var(--line); flex: none; }
.top .brand { font-weight: 800; font-size: .9rem; color: var(--navy); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .brand small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .02em; }
.top .sp { flex: 1; }
.top .link { color: var(--navy); font-size: .82rem; font-weight: 700; text-decoration: none; border: 1px solid var(--line); padding: 7px 12px; border-radius: 12px; white-space: nowrap; }
.saved { position: absolute; right: 16px; top: calc(100% + 8px); font-size: .76rem; font-weight: 700; color: var(--ok); background: var(--okbg); padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .3s; white-space: nowrap; pointer-events: none; }
.saved.on { opacity: 1; } .saved.err { color: var(--err); background: var(--errbg); opacity: 1; }
@media (max-width: 560px) { .top .brand small { display: none; } .top .brand { font-size: .8rem; } .top img { height: 28px; } .top .link { padding: 6px 9px; font-size: .76rem; } }

main { max-width: 1040px; margin: 0 auto; padding: 22px 16px 64px; }
.narrow { max-width: 640px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; min-width: 0; }
.card .sub { font-size: .82rem; color: var(--muted); margin: -2px 0 14px; text-align: left; }
.lab { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 20px; font-weight: 800; font-size: .95rem; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -10px #0006; }
.btn.primary:hover { filter: brightness(.95); }
.btn.navy { background: var(--brand); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.glass { background: #ffffff1f; color: #fff; border: 1px solid #ffffff38; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* dégradé banner */
.hero { background: var(--grad); color: #fff; border-radius: 22px; padding: 28px 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -170px; bottom: -230px; width: 440px; height: 440px; border-radius: 50%; border: 60px solid #ffffff0b; pointer-events: none; z-index: 0; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 1.95rem; margin: 6px 0 10px; }
.hero h2 { color: #fff; }
.hero .eb { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.hero p { color: #e7edf5; }
.hero .small.muted { color: #d5deea; }
.hero.slim { padding: 18px 20px; border-radius: 18px; }
.hero.slim h1 { font-size: 1.35rem; margin: 4px 0 2px; }
.steps3 { display: grid; gap: 10px; margin: 18px 0 8px; }
@media (min-width: 720px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 div { display: flex; gap: 12px; align-items: flex-start; background: #ffffff14; border: 1px solid #ffffff2e; border-radius: 14px; padding: 12px; font-size: .88rem; line-height: 1.45; }
.steps3 i { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-style: normal; font-weight: 800; }
.steps3 b { display: block; color: #fff; }

/* levels */
.lv { border-radius: 14px; padding: 12px 13px; background: var(--line2); border-top: 4px solid; font-size: .84rem; color: var(--ink); text-align: left; }
.lv b { display: block; color: var(--navy); margin-bottom: 2px; }
.lv.l1 { border-color: var(--l1); } .lv.l2 { border-color: var(--l2); } .lv.l3 { border-color: var(--l3); } .lv.l4 { border-color: var(--l4); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: #fff; white-space: nowrap; }
.c1 { background: var(--l1); } .c2 { background: var(--l2); } .c3 { background: var(--l3); } .c4 { background: var(--l4); }

/* code box */
.codebox { background: var(--accent-soft); border: 1.5px dashed var(--accent); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.45rem; font-weight: 700; letter-spacing: .12em; color: var(--navy); }

/* hub */
.progress { height: 8px; background: var(--line2); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s; }
.hero .progress { background: #ffffff26; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; color: inherit; width: 100%; text-decoration: none; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile .num { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.tile.done .num { background: var(--l4); }
.tile .t { font-weight: 800; color: var(--navy); }
.tile .s { font-size: .8rem; color: var(--muted); }
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.sect h2 { margin: 0; font-size: 1.2rem; }

/* questions */
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.dots { display: flex; gap: 4px; margin-bottom: 18px; }
.dots i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.dots i.on { background: var(--accent); } .dots i.cur { background: var(--brand); }
.q { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin: 0 0 18px; text-align: left; line-height: 1.3; letter-spacing: -.01em; }
.opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; color: var(--ink); font-size: .97rem; line-height: 1.45; }
.opt:hover { border-color: #c9d3dd; }
.opt .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b8c3cf; margin-top: 1px; }
.opt.sel { border-color: var(--brand); background: #f3f6fb; box-shadow: 0 0 0 3px #263c6314; }
.opt.sel .mark { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 45%, transparent 50%); }
.qnav { display: flex; justify-content: space-between; margin-top: 14px; }
.area { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--navy); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* forms */
.field { margin-bottom: 16px; }
.field label.l, .field .l { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; color: var(--ink); }
.field input[type=text], .field input[type=number], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.field textarea { min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #263c6314; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 14px; font-size: .9rem; color: var(--ink); text-align: left; }
.pills button.sel { border-color: var(--brand); background: var(--brand); color: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink); }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--brand); }
.req { color: var(--leak); }

/* results */
.gauge { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ring { width: 140px; height: 140px; flex: none; }
.scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 18px 0 2px; }
.scale div { border-radius: 10px; padding: 8px 6px; font-size: .74rem; text-align: center; font-weight: 700; color: #fff; opacity: .4; }
.scale div.cur { opacity: 1; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 560px) { .scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line2); background: none; width: 100%; text-align: left; color: inherit; }
.bar:last-of-type { border-bottom: 0; }
.bar .name { font-weight: 700; font-size: .9rem; color: var(--ink); }
.bar .track { height: 10px; background: var(--line2); border-radius: 999px; overflow: hidden; }
.bar .track i { display: block; height: 100%; border-radius: 999px; }
.bar > span:last-child { text-align: right; }
button.bar:hover .name { color: var(--brand); text-decoration: underline; }
@media (max-width: 560px) { .bar { grid-template-columns: minmax(0, 1fr) auto; } .bar .track { grid-column: 1 / -1; grid-row: 2; } }
.leak { border-left: 4px solid var(--leak); }
.leak h2 { color: var(--leak); }
.leak li { margin-bottom: 6px; text-align: left; color: var(--ink); }
.adv { display: flex; flex-direction: column; gap: 10px; }
.adv .who { display: flex; gap: 12px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .78rem; flex: none; }
.adv .verdict { font-size: .97rem; color: var(--ink); font-style: italic; border-left: 3px solid var(--accent); padding-left: 12px; text-align: left; margin: 0; }
.adv .move { background: var(--accent-soft); border-radius: 12px; padding: 11px 13px; font-size: .92rem; color: var(--ink); }
.adv .kpi { font-size: .84rem; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; white-space: nowrap; font-weight: 800; font-size: .82rem; color: var(--muted); }
.tabs button.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.ssc { display: grid; gap: 10px; }
@media (min-width: 720px) { .ssc { grid-template-columns: repeat(3, 1fr); } }
.ssc > div { border-radius: 12px; padding: 12px; }
.ssc h4 { margin: 0 0 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.ssc .stop { background: var(--errbg); } .ssc .stop h4 { color: var(--err); }
.ssc .start { background: var(--okbg); } .ssc .start h4 { color: var(--ok); }
.ssc .close { background: #eaf0fa; } .ssc .close h4 { color: var(--brand); }
.ssc ul { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--ink); }
.ssc li, .month li { text-align: left; }
.month { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin: 12px 0; }
.month b { color: var(--navy); }
.month ol { margin: 6px 0 0; padding-left: 18px; color: var(--ink); }
.month .dw { display: block; color: var(--muted); font-size: .82rem; }
.quarter { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: #fff; }
.quarter.q1 { border-color: var(--accent); box-shadow: var(--shadow); }
.quarter summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: .88rem; margin-top: 8px; }
.qt { display: flex; gap: 10px; align-items: center; }
.qt .qn { background: var(--grad); color: #fff; border-radius: 9px; padding: 4px 9px; font-weight: 800; font-size: .82rem; }
.loading { display: flex; gap: 14px; align-items: center; }
.spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: s 1s linear infinite; flex: none; }
@keyframes s { to { transform: rotate(360deg); } }
.deep h4 { color: var(--navy); margin: 14px 0 4px; }
.deep .part { margin: 4px 0; } .deep .part b { color: var(--navy); }
.note { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.err { background: var(--errbg); color: #8a1f17; padding: 12px; border-radius: 12px; text-align: left; }
.foot { text-align: center; color: var(--muted); font-size: .78rem; padding: 24px 16px; }

@media print {
  .top, .noprint, .btn, .tabs { display: none !important; }
  body { background: #fff; } .card, .quarter { box-shadow: none; break-inside: avoid; }
  .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main { padding: 0; } .advall { display: block !important; }
}

/* landing (option L1, chosen 1 Nov 2026) */
.hero.tall { padding: 44px 26px 34px; }
.hero h1.xl { font-size: 2.5rem; line-height: 1.08; letter-spacing: -.02em; }
@media (max-width: 560px) { .hero h1.xl { font-size: 2rem; } }
.lead { font-size: 1.05rem; max-width: 520px; text-align: left; }
.split { display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr .95fr; } }
.preview { background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px -24px #0008; color: var(--text); }
.preview .pv-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.preview .small.muted { color: var(--muted); }
.preview .mini { display: grid; gap: 7px; }
.preview .mini div { display: grid; grid-template-columns: 86px 1fr; gap: 8px; align-items: center; font-size: .74rem; font-weight: 700; color: var(--ink); }
.preview .mini i { display: block; height: 8px; border-radius: 5px; background: var(--line2); overflow: hidden; }
.preview .mini i b { display: block; height: 100%; border-radius: 5px; }
.icons3 { display: grid; gap: 12px; }
@media (min-width: 720px) { .icons3 { grid-template-columns: repeat(3, 1fr); } }
.icons3 .card { display: flex; gap: 12px; align-items: center; margin: 0; }
.icons3 .ic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.icons3 b { color: var(--navy); display: block; }
.icons3 span { font-size: .86rem; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.strip div { border-radius: 10px; padding: 9px 6px; text-align: center; font-weight: 800; font-size: .76rem; color: #fff; }
@media (max-width: 560px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inline-code { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-code input { flex: 1; min-width: 150px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; text-transform: uppercase; letter-spacing: .1em; }
