/* Appelio — interface. Couleurs reprises du deck : encre #1E2226, orange #F26B21. */
:root {
  --ink: #1e2226; --ink-2: #3d434a; --muted: #6f7680; --faint: #9aa1a9;
  --line: #e4e6ea; --line-2: #eef0f2; --bg: #f5f6f8; --card: #fff;
  --orange: #f26b21; --orange-d: #d4560f; --orange-soft: #fff1e8; --orange-line: #fbd3bb;
  --green: #1f8a5b; --green-soft: #e7f5ee; --red: #c0362c; --red-soft: #fdeceb;
  --amber: #a15c00; --amber-soft: #fff6dc; --blue: #2c5fb8; --blue-soft: #eaf1fd;
  --todo: #fff1a8;
  --r: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--orange-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 18px; font-weight: 700; }
.h-sm { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.h-sm .hint { text-transform: none; letter-spacing: 0; }
p { margin: 0 0 8px; }
ul, ol { margin: 6px 0 10px; padding-left: 20px; }
li { margin: 3px 0; }
code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { font-size: 13px; font-weight: 400; color: var(--faint); margin-left: 6px; }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 8px; margin-top: 12px; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Coque : menu latéral + contenu ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9cdd2; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { color: #fff; font-weight: 800; font-size: 25px; letter-spacing: -0.02em; padding: 0 10px 22px; text-decoration: none !important; }
.brand span { color: var(--orange); }
.side nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 10px; color: #c9cdd2; padding: 8px 10px; border-radius: 8px; font-size: 14px; text-decoration: none; min-width: 0; }
.side nav a:hover { background: #2a2f35; color: #fff; }
.side nav a.on { background: #31373e; color: #fff; }
.side nav a.add { color: #8d949c; }
.nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7d848c; padding: 18px 10px 6px; }
.count { margin-left: auto; background: var(--orange); color: #fff; border-radius: 99px; font-size: 12px; padding: 0 7px; font-weight: 700; }
.role-switch { display: flex; align-items: center; gap: 4px; background: #2a2f35; border-radius: 9px; padding: 4px; font-size: 13px; margin-top: 12px; }
.role-switch span { color: #7d848c; padding: 0 8px; }
.role-switch a { flex: 1; text-align: center; color: #c9cdd2; padding: 5px 0; border-radius: 6px; text-decoration: none; }
.role-switch a.on { background: #fff; color: var(--ink); font-weight: 600; }
.content { min-width: 0; }
main { max-width: 1120px; margin: 0 auto; padding: 28px 36px 120px; }
.demo { background: var(--todo); color: #5c4a00; font-size: 13px; padding: 8px 36px; text-align: center; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 8px; }
  .brand { padding: 0 8px 0 0; }
  .side nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .nav-title { display: none; }
  main { padding: 20px 16px 100px; }
}

/* ---------- En-tête de page ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.lead { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.crumbs { font-size: 13px; color: var(--faint); margin: 0 0 6px; }
.crumbs a { color: var(--muted); }
.meta-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff; border: 1px solid var(--orange); border-radius: 9px; padding: 10px 18px; font: inherit; font-weight: 650; font-size: 14.5px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn.secondary { background: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: #33393f; }
.btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line); font-weight: 550; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { padding: 6px 11px; font-size: 13.5px; border-radius: 8px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 6px; border-radius: 6px; display: inline-flex; }
.icon-btn:hover { color: var(--red); background: var(--red-soft); }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 8px 0; }
.chip-btn { background: var(--line-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.chip-btn:hover { border-color: var(--orange-line); background: var(--orange-soft); }
.confirm-note { flex-basis: 100%; color: var(--amber); font-size: 13px; margin: 6px 0 0; }

/* ---------- Formulaires ---------- */
label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; }
input, textarea, select { display: block; width: 100%; font: inherit; font-size: 14.5px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-top: 6px; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
textarea { resize: vertical; min-height: 44px; }
textarea.off { background: var(--line-2); color: var(--faint); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.check-line { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 8px 0 0; cursor: pointer; }
.check-line input { width: 16px; height: 16px; margin: 0; accent-color: var(--orange); flex: none; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { margin: 0; flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cartes, bandeaux ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin: 0 0 16px; box-shadow: var(--shadow); }
.card h2 { margin-bottom: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.banner { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 13px 16px; margin: 0 0 16px; font-size: 14.5px; border: 1px solid transparent; }
.banner > div { display: flex; flex-direction: column; gap: 2px; }
.banner ul { margin: 4px 0 0; }
.banner .ico { margin-top: 2px; }
.banner.run { background: var(--orange-soft); border-color: var(--orange-line); }
.banner.err { background: var(--red-soft); color: var(--red); border-color: #f6cfcb; }
.banner.ok { background: var(--green-soft); color: var(--green); border-color: #c5e6d5; }
.banner.warn { background: var(--amber-soft); color: #6b4300; border-color: #f3e0a8; }
.banner.info { background: var(--blue-soft); color: #1d4385; border-color: #cddcf6; }
.spin { display: inline-block; width: 16px; height: 16px; margin-top: 2px; flex: none; border: 2px solid var(--orange); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 48px 24px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.empty .ico { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 10px; }

/* ---------- Puces d'état ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 2px 10px; font-size: 12.5px; font-weight: 650; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.st-dossier { background: var(--line-2); color: var(--muted); }
.st-fiche, .st-questions { background: var(--orange-soft); color: var(--orange-d); }
.st-memoire { background: var(--amber-soft); color: var(--amber); }
.st-relecture { background: var(--blue-soft); color: var(--blue); }
.st-valide { background: var(--green-soft); color: var(--green); }
.st-depose { background: var(--ink); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; padding: 2px 9px; font-size: 12.5px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip .ico { width: 14px; height: 14px; vertical-align: -2px; }
.chip.soon { background: var(--amber-soft); border-color: #f3e0a8; color: var(--amber); }
.chip.late { background: var(--red-soft); border-color: #f6cfcb; color: var(--red); }
.tag { display: inline-block; font-size: 12px; background: var(--line-2); color: var(--muted); border-radius: 6px; padding: 1px 8px; font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; background: var(--todo); color: #6b5800; border-radius: 99px; padding: 1px 8px; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.info { background: var(--blue-soft); color: var(--blue); }
.badge .ico { width: 13px; height: 13px; }
mark.todo, mark { background: var(--todo); color: #5c4a00; font-weight: 600; padding: 1px 4px; border-radius: 4px; }

/* ---------- Tableau de bord ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stats.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 28px; font-weight: 750; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13.5px; }
.stat.hot strong { color: var(--orange); }
@media (max-width: 720px) { .stats, .stats.stats-3 { grid-template-columns: 1fr 1fr; } }
.market-list { display: grid; gap: 10px; margin-bottom: 24px; }
.market-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.market-card:hover { border-color: var(--orange-line); transform: translateY(-1px); }
.market-card.is-done { opacity: .7; }
.mc-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mc-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mc-title { font-size: 16px; font-weight: 650; }
.mc-main .muted { font-size: 13.5px; }
.mc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.mc-action { color: var(--orange-d); font-weight: 650; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.progress { display: flex; gap: 3px; }
.progress span { width: 18px; height: 5px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--orange); }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; background: var(--ink); color: #e6e8ea; border-radius: 16px; padding: 36px 40px; }
.hero h2 { color: #fff; font-size: 26px; margin: 6px 0 16px; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.how { padding-left: 18px; display: grid; gap: 10px; color: #c9cdd2; }
.how strong { color: #fff; }
.hero-form { background: #fff; color: var(--ink); border-radius: 12px; padding: 24px; align-self: center; }
.hero-form .btn { width: 100%; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding: 24px; } }

/* ---------- Onglets entreprise ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--orange); }
.tabs .num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 99px; background: var(--line-2); font-size: 12px; padding: 0 6px; }
.tabs .num.ok { background: var(--green-soft); color: var(--green); }
.tabs .num .ico { width: 13px; height: 13px; }
.sticky-actions { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: rgba(245, 246, 248, .94); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 14px 4px; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--line-2); }
.table td:last-child { text-align: right; }
.admin-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--line-2); border-radius: 10px; padding: 14px; }
.admin-form label { margin: 0; }
.admin-form input[type=file] { padding: 6px; background: #fff; }
@media (max-width: 820px) { .admin-form { grid-template-columns: 1fr; } }

/* ---------- Dépôt de fichiers ---------- */
.dropzone { position: relative; display: flex; align-items: center; gap: 16px; border: 2px dashed var(--line); border-radius: 12px; padding: 22px 24px; background: #fbfbfc; transition: border-color .15s, background .15s; flex-wrap: wrap; }
.dropzone.over { border-color: var(--orange); background: var(--orange-soft); }
.dropzone > .ico { width: 30px; height: 30px; color: var(--orange); }
.dropzone > div { display: flex; flex-direction: column; flex: 1; min-width: 180px; }
.dropzone > div span { color: var(--muted); font-size: 13.5px; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone select.kind { width: auto; margin: 0; }
.files { list-style: none; padding: 0; margin: 14px 0 0; }
.file { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.file > .ico { color: var(--faint); }
.fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmeta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.file.muted-row .fname { color: var(--faint); }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Étapes d'un marché ---------- */
.stepper { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stepper li { margin: 0; }
.stepper li > a, .stepper li > span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--faint); font-size: 13.5px; font-weight: 600; text-decoration: none; height: 100%; }
.stepper li > a { color: var(--ink-2); }
.stepper li > a:hover { border-color: var(--orange-line); }
.stepper .num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); font-size: 12px; flex: none; }
.stepper .num .ico { width: 13px; height: 13px; }
.stepper li.done .num { background: var(--green-soft); color: var(--green); }
.stepper li.current > a { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper li.current .num { background: var(--orange); color: #fff; }
@media (max-width: 900px) { .stepper { grid-template-columns: repeat(3, 1fr); } }
.step-intro { margin: 4px 0 18px; max-width: 760px; }
.step-intro h2 { font-size: 21px; margin-bottom: 6px; }
.step-intro p { color: var(--muted); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--orange-line); border-radius: var(--r); padding: 18px 22px; margin: 20px 0 8px; box-shadow: 0 6px 20px rgba(242, 107, 33, .08); position: sticky; bottom: 16px; z-index: 5; flex-wrap: wrap; }
.next > div:first-child { display: flex; flex-direction: column; gap: 2px; max-width: 620px; }
.next .muted { font-size: 13.5px; }

/* Fiche du marché */
.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fiche .wide { grid-column: 1 / -1; }
@media (max-width: 820px) { .fiche { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; font-size: 14.5px; align-items: center; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts input { margin: 0; padding: 6px 9px; font-size: 14px; }
.edit-inline { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.criteria { list-style: none; padding: 0; }
.criteria > li { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.crit { display: flex; justify-content: space-between; gap: 10px; }
.weight { font-weight: 750; color: var(--orange-d); white-space: nowrap; }
.criteria ul { color: var(--ink-2); font-size: 14px; margin: 4px 0 0; }
.plan { padding-left: 22px; }
.plan-row { margin: 0 0 10px; }
.plan-row { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; }
.plan-row input, .plan-row select { margin: 0; }
.plan-row p { grid-column: 1 / -1; margin: -2px 0 0; }
ul.check { list-style: none; padding: 0; }
ul.check li::before { content: "☐"; color: var(--faint); margin-right: 8px; }

/* Questions */
.q { padding: 18px 22px; }
.q-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.q-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 750; flex: none; }
.q-text { font-size: 16px; font-weight: 650; color: var(--ink); margin: 3px 0 4px; display: block; }
.q-why { color: var(--muted); font-size: 13.5px; margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.q-why .ico { width: 15px; height: 15px; }
.suggest { font-size: 13px; color: var(--orange-d); margin: 0 0 -2px 44px; display: flex; gap: 6px; align-items: center; }
.suggest .ico { width: 15px; height: 15px; }
.q textarea, .q .check-line { margin-left: 44px; width: calc(100% - 44px); }

/* Mémoire */
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.doc-layout.review { grid-template-columns: 1fr 300px; }
.doc-layout.review .toc { order: 2; }
@media (max-width: 980px) { .doc-layout, .doc-layout.review { grid-template-columns: 1fr; } .toc { position: static !important; } }
.toc { position: sticky; top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.toc ol { padding-left: 18px; margin: 10px 0 16px; font-size: 14px; }
.toc li { margin: 6px 0; }
.toc li a { color: var(--ink-2); }
.toc .badge { margin-left: 6px; }
.toc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.toc-stats div { background: var(--line-2); border-radius: 8px; padding: 8px 10px; }
.toc-stats strong { display: block; font-size: 20px; line-height: 1.1; }
.toc-stats span { font-size: 12px; color: var(--muted); }
.doc-title { font-size: 20px; margin: 4px 0 16px; }
.sec { padding: 22px 28px; scroll-margin-top: 16px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.sec-head h2 { font-size: 18px; }
.sec-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.prose { font-size: 15px; color: var(--ink-2); max-width: 760px; }
.prose h3 { font-size: 15.5px; margin: 16px 0 6px; color: var(--ink); }
.prose h4 { font-size: 14.5px; margin: 12px 0 4px; }
.prose p { margin: 0 0 10px; }
.prose table { border-collapse: collapse; margin: 10px 0 14px; font-size: 14px; width: 100%; }
.prose th { background: var(--ink); color: #fff; text-align: left; font-weight: 600; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 9px; vertical-align: top; }
.prose tr:nth-child(even) td { background: #fafbfc; }
.ai-box, .edit-box, .review-box { background: var(--line-2); border-radius: 10px; padding: 14px; margin: 8px 0 14px; }
.ai-box { background: var(--orange-soft); border: 1px solid var(--orange-line); }
.ai-box input { margin: 0 0 10px; }
.ai-box .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.edit-box .title-input { font-weight: 650; margin: 0 0 8px; }
.edit-box textarea { margin: 0 0 6px; }
.review-box { margin-bottom: 0; }
.review-box textarea { margin: 0 0 8px; }
.review-box .row { justify-content: space-between; }
.review-box .check-line { margin: 0; }
.comment { display: flex; gap: 10px; background: var(--blue-soft); color: #1d4385; border-radius: 10px; padding: 10px 14px; margin: 4px 0 12px; font-size: 14px; }
.comment > div { display: flex; flex-direction: column; }
.review-panel ul.checks { list-style: none; padding: 0; margin: 0 0 14px; }
.review-panel ul.checks li { margin: 0 0 6px; }
.review-panel ul.checks .check-line { align-items: flex-start; font-size: 13.5px; }
.review-panel ul.checks input { margin-top: 3px; }
.review-panel label { margin-top: 10px; }
.review-panel .btn.ghost.full { margin-top: 8px; }
.review-status { padding: 28px; }
.big-state { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.big-state > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.big-state.ok > .ico { background: var(--green-soft); color: var(--green); }
.big-state > div { display: flex; flex-direction: column; gap: 2px; }
.big-state strong { font-size: 17px; }
.timeline { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.timeline li { display: flex; gap: 14px; margin: 6px 0; }
.timeline span { color: var(--faint); min-width: 130px; font-variant-numeric: tabular-nums; }

/* Dépôt */
.depot { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .depot { grid-template-columns: 1fr; } }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 4px 0 14px; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 11px 4px; border-bottom: 1px solid var(--line-2); margin: 0; }
.checklist li > div { flex: 1; display: flex; flex-direction: column; }
.checklist .state { font-size: 13px; color: var(--muted); }
.checklist .lvl-ok .state { color: var(--green); }
.checklist .lvl-warn .state { color: var(--amber); }
.checklist li.done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.tick { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #fff; }
.tick:hover { border-color: var(--green); }
li.done .tick { background: var(--green); border-color: var(--green); }
.tick .ico { width: 15px; height: 15px; }

/* Notification */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; }

/* Dépôt d'un dossier complet */
.folder-drop .row { display: flex; align-items: center; gap: 12px; }
.files-head { margin: 16px 0 0; align-items: center; }
.files-head .link-btn { padding: 0; }

/* Pièces à fournir, jointes depuis la fiche */
.pieces .tick { cursor: default; flex: none; }
.pieces li.done strong { color: var(--ink); text-decoration: none; }
.pieces .lvl-todo .state { color: var(--amber); }
.pieces .lvl-auto .state { color: var(--blue); }
.pieces li.lvl-auto .tick { background: var(--blue); border-color: var(--blue); }
.pieces .attach { cursor: pointer; }
.pieces form { margin: 0; }

/* Questions sur les éléments manquants */
.q-missing { border-left: 3px solid var(--amber); }

/* Restitution */
.download-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 28px; border-color: var(--orange-line); }
.dl-file { display: flex; align-items: center; gap: 14px; }
.dl-file > div { display: flex; flex-direction: column; gap: 2px; }
.dl-file strong { font-size: 17px; }
.dl-ico { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); align-items: center; justify-content: center; flex: none; }
.dl-ico .ico { width: 24px; height: 24px; }
.btn.big { padding: 15px 28px; font-size: 16.5px; border-radius: 11px; }
.btn.big .ico { width: 20px; height: 20px; }
.points { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: pt; }
.points li { display: flex; gap: 14px; align-items: flex-start; padding: 11px 4px; border-bottom: 1px solid var(--line-2); margin: 0; }
.points li > div { display: flex; flex-direction: column; gap: 2px; }
.points li span:not(.pt-tag) { color: var(--ink-2); }
.pt-tag { flex: none; width: 96px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 8px; margin-top: 2px; background: var(--todo); color: #6b5800; }
.pt-comment .pt-tag, .pt-expert .pt-tag { background: var(--blue-soft); color: var(--blue); }
.pieces .attach input[type=file] { display: none; }

/* ================================================================ v3 : espace client */
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.narrow { max-width: 560px; }
.narrow .btn { margin-top: 6px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }
.st-memoire, .st-relecture { background: var(--blue-soft); color: var(--blue); }  /* « En préparation » côté client */
.st-depose { background: var(--green-soft); color: var(--green); }

/* Menu : entreprises avec leur résumé, marchés renommables */
.nav-title { display: flex; align-items: center; justify-content: space-between; }
.nav-add { display: inline-flex !important; padding: 2px !important; color: #8d949c !important; border-radius: 6px !important; }
.nav-add .ico { width: 15px; height: 15px; }
.side nav a.co-item { align-items: flex-start; }
.co-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.co-text small { color: #8d949c; font-size: 12px; }
.count.zero { background: #4a5058; }
.mk-item { display: flex; align-items: center; flex-wrap: wrap; border-radius: 8px; }
.mk-item > a { flex: 1; }
.mk-item:hover, .mk-item.on { background: #2a2f35; }
.mk-item.on > a { color: #fff; }
.mk-edit { opacity: 0; background: none; border: 0; color: #8d949c; cursor: pointer; padding: 4px 6px; }
.mk-item:hover .mk-edit { opacity: 1; }
.mk-edit .ico { width: 14px; height: 14px; }
.mk-rename { flex-basis: 100%; padding: 0 8px 8px; }
.mk-rename input { margin: 0; padding: 6px 8px; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #6b7179; }
.dot.st-fiche, .dot.st-questions { background: var(--orange); }
.dot.st-memoire, .dot.st-relecture { background: #6d9cf0; }
.dot.st-valide, .dot.st-depose { background: #3fbf86; }

/* En-tête d'un marché : renommer, choisir l'entreprise */
.title-edit { background: none; border: 0; color: var(--faint); cursor: pointer; padding: 2px 4px; vertical-align: middle; }
.title-edit:hover { color: var(--ink); }
.head-rename { margin: 10px 0 0; max-width: 620px; }
.co-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.co-pick form { margin: 0; }
.co-pick select { margin: 0; padding: 3px 8px; font-size: 13.5px; width: auto; }

/* Dossier : trois options à égalité */
.folder-drop { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px; }
.drop-title { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.drop-title span { color: var(--muted); font-size: 13.5px; }
.drop-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.drop-opt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 14px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.drop-opt:hover { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.drop-opt .ico { width: 28px; height: 28px; color: var(--orange); margin-bottom: 4px; }
.drop-opt span { color: var(--muted); font-size: 13px; }
.drop-opt:disabled { opacity: .5; cursor: wait; }
@media (max-width: 720px) { .drop-options { grid-template-columns: 1fr; } }

/* Mon espace */
.stat { position: relative; display: flex; flex-direction: column; gap: 2px; text-decoration: none !important; color: inherit; }
.stat-ico { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center; background: var(--line-2); color: var(--ink-2); margin-bottom: 8px; }
.stat-ico .ico { width: 18px; height: 18px; }
.stat-ico.big { width: 52px; height: 52px; border-radius: 14px; }
.stat-ico.big .ico { width: 28px; height: 28px; }
.stat-credit { border-color: var(--orange-line); }
.stat-credit .stat-ico, .balance .stat-ico { background: var(--orange-soft); color: var(--orange); }
.stat-credit em { font-style: normal; font-size: 13px; font-weight: 650; color: var(--orange-d); margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.stat-credit em .ico { width: 14px; height: 14px; }
.stat-credit:hover { box-shadow: 0 4px 16px rgba(242, 107, 33, .12); }
.stat-credit.empty strong { color: var(--muted); }
.stat-time .stat-ico { background: var(--green-soft); color: var(--green); }
.memo-table td { vertical-align: middle; }
.memo-table .btn { margin-left: 4px; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.co-card { color: inherit; text-decoration: none !important; margin: 0; }
.co-card:hover { border-color: var(--orange-line); }
.co-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.co-card-head .ico { color: var(--orange); }
dl.mini { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 0; font-size: 13.5px; }
dl.mini dt { color: var(--muted); }
dl.mini dd { margin: 0; }

/* Crédits */
.balance { display: flex; align-items: center; gap: 16px; }
.balance strong { display: block; font-size: 32px; line-height: 1; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 0 10px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pack.featured { border: 2px solid var(--orange); }
.pack h3 { font-size: 16px; }
.pack-price { font-size: 30px; font-weight: 800; margin: 6px 0 0; }
.pack-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.pack .btn { margin-top: auto; }
.pack-badge { position: absolute; top: -11px; right: 16px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 10px; }
td.pos { color: var(--green); font-weight: 700; }
td.neg { color: var(--ink-2); font-weight: 700; }
@media (max-width: 820px) { .packs { grid-template-columns: 1fr; } }

/* Profil en lecture */
.profile-view .grid-2 { gap: 0 16px; }
.profile-view ul { margin: 0; }

/* Préparation : le client suit son mémoire */
.prep-hero { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; padding: 28px 32px; border-color: var(--orange-line); background: linear-gradient(135deg, #fff 60%, var(--orange-soft)); }
.prep-hero h2 { font-size: 22px; margin: 6px 0 8px; }
.prep-hero.ready { background: linear-gradient(135deg, #fff 60%, var(--green-soft)); border-color: #c5e6d5; }
.prep-hero.ready .btn { margin-top: 10px; }
.prep-anim { position: relative; width: 120px; height: 140px; justify-self: center; }
.prep-anim .sheet { position: absolute; inset: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .1); padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.prep-anim .sheet span { height: 7px; border-radius: 4px; background: var(--line); transform-origin: left; animation: write 4.8s ease-in-out infinite; }
.prep-anim .sheet span:nth-child(1) { width: 70%; background: var(--ink); animation-delay: 0s; }
.prep-anim .sheet span:nth-child(2) { animation-delay: .5s; }
.prep-anim .sheet span:nth-child(3) { width: 85%; animation-delay: 1s; }
.prep-anim .sheet span:nth-child(4) { animation-delay: 1.5s; }
.prep-anim .sheet span:nth-child(5) { width: 60%; animation-delay: 2s; }
.prep-anim .sheet span:nth-child(6) { width: 78%; animation-delay: 2.5s; }
@keyframes write { 0% { transform: scaleX(0); opacity: .3; } 30%, 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: .3; } }
.prep-anim .pen { position: absolute; right: -10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(242, 107, 33, .35); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-6px, -8px) rotate(-8deg); } }
.prep-anim.done { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--green); color: #fff; animation: pop .5s ease-out; }
.prep-anim.done .ico { width: 46px; height: 46px; stroke-width: 2.4; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.facts-ticker { position: relative; height: 24px; margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--orange-d); }
.facts-ticker span { position: absolute; left: 0; display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.facts-ticker span.on { opacity: 1; transform: none; }
.prep-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 16px; }
@media (max-width: 860px) { .prep-grid, .prep-hero { grid-template-columns: 1fr; } }
.stages { list-style: none; padding: 0; margin: 0; }
.stages li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; margin: 0; }
.stages li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.stages li.done:not(:last-child)::after { background: var(--green); }
.stages li > div { display: flex; flex-direction: column; }
.stages li > div span { color: var(--muted); font-size: 13.5px; }
.st-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--muted); font-size: 13px; font-weight: 700; }
.st-dot .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.st-dot .spin { margin: 0; width: 14px; height: 14px; }
.stages li.done .st-dot { background: var(--green); color: #fff; }
.stages li.current .st-dot { background: var(--orange-soft); }
.stages li.current strong { color: var(--orange-d); }
.toc-preview { padding-left: 20px; margin: 0; }
.toc-preview li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.toc-preview li .ico { color: var(--green); width: 16px; height: 16px; }
.shimmer { flex: none; width: 70px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--line-2), var(--orange-line), var(--line-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.teaser-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.teaser-stats div { background: var(--line-2); border-radius: 8px; padding: 8px 10px; }
.teaser-stats strong { display: block; font-size: 20px; line-height: 1.1; }
.teaser-stats span { font-size: 12px; color: var(--muted); }
.sneak-body { position: relative; max-height: 220px; overflow: hidden; border-radius: 8px; }
.blurred { filter: blur(4px); user-select: none; pointer-events: none; }
.sneak-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.92)); text-align: center; }
.sneak-lock .ico { width: 26px; height: 26px; color: var(--orange); margin-bottom: 4px; }
.sneak-lock span { color: var(--muted); font-size: 13.5px; }

/* Restitution : Word et PDF, points à compléter */
.dl-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.big small { font-weight: 500; opacity: .75; font-size: 12.5px; margin-left: 2px; }
a.btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
a.btn.busy { opacity: .7; cursor: progress; }
.expert-note { display: flex; gap: 12px; background: var(--blue-soft); color: #1d3f7a; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.expert-note .ico { color: var(--blue); margin-top: 2px; }
.expert-note > div { display: flex; flex-direction: column; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 16px; }
.choice-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--ink); }
.choice-card .ico { color: var(--muted); }
.choice-card span { color: var(--muted); font-size: 13.5px; }
.choice-card.on { border-color: var(--orange); background: var(--orange-soft); }
.choice-card.on .ico { color: var(--orange); }
@media (max-width: 720px) { .choice { grid-template-columns: 1fr; } }
.answer-list .pt-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.answer-list textarea { margin: 6px 0 0; }
.right-row { justify-content: space-between; margin-top: 4px; }
[hidden] { display: none !important; }
.folder-drop > .drop-options { display: grid; flex-direction: initial; min-width: 0; }

/* Attente des questions */
.wait-card { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-color: var(--orange-line); }
.wait-card > div { display: flex; flex-direction: column; gap: 2px; }
.wait-card strong { font-size: 17px; }
.spin.big { width: 30px; height: 30px; border-width: 3px; margin: 0; }

/* Préparation v2 : chiffres et ce que le moteur prend en compte */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 16px; }
.metric { background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 18px; }
.metric strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.metric > span { color: #b9bec4; font-size: 13px; }
@media (max-width: 860px) { .metrics { grid-template-columns: 1fr 1fr; } }
.considered { list-style: none; padding: 0; margin: 0; }
.considered li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; margin: 0; color: var(--faint); border-bottom: 1px solid var(--line-2); transition: color .4s; font-size: 14.5px; }
.considered li.on { color: var(--ink); }
.considered .ck { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all .4s; margin-top: 1px; }
.considered .ck .ico { width: 12px; height: 12px; stroke-width: 3; }
.considered li.on .ck { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.05); }
.sommaire-title { margin-top: 10px; }

/* Restitution : la satisfaction, en vert */
.success-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 110px 1fr; gap: 26px; align-items: start; padding: 30px 32px; border: 1px solid #b9e2cc; background: linear-gradient(135deg, #f1fbf5 0%, #e3f5eb 100%); }
.success-hero .eyebrow { color: var(--green); }
.success-hero h2 { font-size: 26px; margin: 4px 0 6px; color: #12573a; }
.success-hero p { color: #2f5d47; }
.success-body { position: relative; display: flex; flex-direction: column; gap: 12px; }
.success-body > p { margin: 0; }
.success-badge { width: 96px; height: 96px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(31, 138, 91, .12), 0 10px 26px rgba(31, 138, 91, .35); animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); position: relative; }
.success-badge .ico { width: 50px; height: 50px; stroke-width: 2.6; }
.success-hero .dl-file { background: #fff; border: 1px solid #cfe9db; border-radius: 12px; padding: 12px 14px; }
.success-hero .dl-ico { background: var(--green-soft); color: var(--green); }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.green:hover { background: #18734b; border-color: #18734b; }
.btn.green-outline { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn.green-outline:hover { background: var(--green-soft); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: confetti 2.6s ease-out forwards; }
.confetti i:nth-child(odd) { background: var(--green); }
.confetti i:nth-child(even) { background: var(--orange); }
.confetti i:nth-child(3n) { background: #f5c542; width: 7px; height: 7px; border-radius: 50%; }
.confetti i:nth-child(1) { left: 4%; animation-delay: 0.00s; transform: rotate(0deg); }
.confetti i:nth-child(2) { left: 11%; animation-delay: 0.12s; transform: rotate(37deg); }
.confetti i:nth-child(3) { left: 18%; animation-delay: 0.24s; transform: rotate(74deg); }
.confetti i:nth-child(4) { left: 25%; animation-delay: 0.36s; transform: rotate(111deg); }
.confetti i:nth-child(5) { left: 32%; animation-delay: 0.48s; transform: rotate(148deg); }
.confetti i:nth-child(6) { left: 39%; animation-delay: 0.00s; transform: rotate(5deg); }
.confetti i:nth-child(7) { left: 46%; animation-delay: 0.12s; transform: rotate(42deg); }
.confetti i:nth-child(8) { left: 53%; animation-delay: 0.24s; transform: rotate(79deg); }
.confetti i:nth-child(9) { left: 60%; animation-delay: 0.36s; transform: rotate(116deg); }
.confetti i:nth-child(10) { left: 67%; animation-delay: 0.48s; transform: rotate(153deg); }
.confetti i:nth-child(11) { left: 74%; animation-delay: 0.00s; transform: rotate(10deg); }
.confetti i:nth-child(12) { left: 81%; animation-delay: 0.12s; transform: rotate(47deg); }
.confetti i:nth-child(13) { left: 88%; animation-delay: 0.24s; transform: rotate(84deg); }
.confetti i:nth-child(14) { left: 95%; animation-delay: 0.36s; transform: rotate(121deg); }
@keyframes confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(260px) rotate(540deg); } }
@media (max-width: 720px) { .success-hero { grid-template-columns: 1fr; } }

/* Dernière étape terminée : coche verte */
.stepper li.current.done a { background: var(--green); border-color: var(--green); color: #fff; }
.stepper li.current.done .num { background: #fff; color: var(--green); }


/* Points d'attention (relecture expert) */
.attention-mini { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.attention-mini li { margin-bottom: 6px; }
.pt-attention .pt-tag { background: var(--orange-soft); color: #9a4a00; }

/* Envoi du mémoire par e-mail (page Préparation) */
.notify-card .notify-ask, .notify-card .notify-on { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.notify-card .notify-ask > div, .notify-card .notify-on > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 220px; }
.notify-card .notify-on > .ico { color: var(--green, #1a7f4b); }
/* Compte (bas du menu) */
.account { padding: 10px 12px; font-size: 13px; color: rgba(255,255,255,.7); display: flex; flex-direction: column; gap: 2px; }
.account a { color: rgba(255,255,255,.9); }
/* Connexion / inscription */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand-dark { font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: block; margin-bottom: 6px; }
.auth-card .brand-dark span { color: var(--orange); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.auth-switch { text-align: center; margin-top: 14px; font-size: 14px; }

/* ================================================================ Page de présentation (visiteur non connecté) */
body.lp { background: #fff; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lp-narrow { max-width: 760px; }
.lp-brand { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none !important; }
.lp-brand span { color: var(--orange); }
.lp-brand.small { font-size: 18px; }

.lp-nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); }
.lp-nav-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.lp-links { display: flex; gap: 22px; margin-right: auto; }
.lp-links a { color: var(--ink-2); font-weight: 550; font-size: 14.5px; }
.lp-auth { display: flex; gap: 10px; }

.lp-hero { background: linear-gradient(180deg, var(--orange-soft) 0%, #fff 78%); padding: 72px 0 64px; }
.lp-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--orange-line); color: var(--orange-d); font-weight: 650; font-size: 13.5px; padding: 6px 12px; border-radius: 99px; }
.lp-pill .ico { width: 16px; height: 16px; }
.lp-hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; margin: 18px 0 16px; }
.lp-hero h1 em { font-style: normal; color: var(--orange); }
.lp-lead { font-size: 18px; color: var(--ink-2); max-width: 580px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.lp-reassure { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lp-reassure .ico { color: var(--green); width: 16px; height: 16px; }

.lp-doc { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(30,34,38,.12); padding: 22px; transform: rotate(1.2deg); }
.lp-doc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.lp-doc-head > div { display: flex; flex-direction: column; flex: 1; }
.lp-doc-head small { color: var(--muted); font-size: 13px; }
.lp-doc-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; }
.lp-doc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 99px; }
.lp-doc-badge .ico { width: 14px; height: 14px; }
.lp-doc-toc { list-style: none; padding: 0; margin: 14px 0; }
.lp-doc-toc li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; margin: 0; }
.lp-doc-toc b { color: var(--orange-d); font-size: 13px; }
.lp-doc-lines { display: grid; gap: 8px; margin: 16px 0; }
.lp-doc-lines i { display: block; height: 8px; border-radius: 4px; background: var(--line-2); }
.lp-doc-lines i.short { width: 60%; }
.lp-doc-attention { display: flex; align-items: center; gap: 8px; background: var(--amber-soft); color: var(--amber); font-size: 13.5px; font-weight: 600; padding: 9px 12px; border-radius: 9px; }

.lp-why { background: var(--ink); color: #fff; padding: 44px 0; }
.lp-why-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lp-why h2 { font-size: 24px; margin-bottom: 10px; }
.lp-why p { color: rgba(255,255,255,.78); font-size: 16px; }
.lp-why-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-why-facts div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.lp-why-facts strong { font-size: 24px; color: var(--orange); }
.lp-why-facts span { font-size: 13.5px; color: rgba(255,255,255,.75); }

.lp-section { padding: 76px 0; }
.lp-alt { background: var(--bg); }
.lp-eyebrow { color: var(--orange-d); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.lp-h2 { font-size: 32px; letter-spacing: -0.02em; margin: 8px 0 34px; max-width: 720px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 0; }
.lp-step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 14px; }
.lp-steps h3, .lp-feat h3 { font-size: 17px; margin-bottom: 8px; }
.lp-steps p, .lp-feat p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.lp-feat > .ico { width: 26px; height: 26px; color: var(--orange); margin-bottom: 10px; }

.lp-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.lp-faq summary { cursor: pointer; font-weight: 650; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq p { color: var(--ink-2); margin: 10px 0 0; }

.lp-final { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%); color: #fff; padding: 64px 0; text-align: center; }
.lp-final h2 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 10px; }
.lp-final p { color: rgba(255,255,255,.88); font-size: 16.5px; }
.lp-final .btn.big { background: #fff; color: var(--orange-d); border-color: #fff; margin-top: 14px; }
.lp-final .btn.big:hover { background: var(--orange-soft); }
.lp-final-login { margin-top: 14px; font-size: 14.5px; }
.lp-final-login a { color: #fff; text-decoration: underline; }

.lp-foot { padding: 26px 0; border-top: 1px solid var(--line-2); }
.lp-foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .lp-hero-in, .lp-why-in { grid-template-columns: 1fr; gap: 36px; }
  .lp-doc { transform: none; }
  .lp-steps, .lp-features { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; }
  .lp-links { display: none; }
  .lp-nav-in { justify-content: space-between; gap: 12px; }
  .lp-auth .btn.ghost { display: none; }
  .lp-hero { padding: 44px 0; }
  .lp-hero h1 { font-size: 29px; }
  .lp-lead { font-size: 16.5px; }
  .lp-why-facts { grid-template-columns: 1fr; }
  .lp-h2, .lp-final h2 { font-size: 25px; }
  .lp-section { padding: 52px 0; }
}
.lp main { max-width: none; margin: 0; padding: 0; }

/* Pied de page et pages légales */
.lp-foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-foot-links a { color: var(--ink-2); font-size: 14px; }
.legal { padding: 48px 24px 72px; }
.legal h1 { font-size: 34px; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal-todo { background: var(--todo); color: #6b5800; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14.5px; }
.legal-table th, .legal-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { color: var(--muted); font-size: 13px; font-weight: 650; }
.auth-legal { text-align: center; margin-top: 16px; }
.app-foot { max-width: 1120px; margin: -96px auto 0; padding: 0 36px 28px; font-size: 13px; color: var(--muted); }
.app-foot a { color: var(--muted); }
@media (max-width: 640px) { .legal { padding: 32px 16px 56px; } .legal h1 { font-size: 27px; } .legal-table { font-size: 13.5px; } .lp-foot-in { flex-direction: column; align-items: flex-start; } }
.admin-form > label { flex: 1 1 200px; }
.admin-form > label:first-child { flex-basis: 300px; }
.admin-form > label[hidden] { display: none; }
.folder-drop .kind-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.folder-drop .kind-line select { width: auto; margin: 0; }
