/* Template de soutenance RNCP 39108 · Sandra Gameiro */
:root {
  --bg: #ffffff;
  --fg: #1d1b22;
  --muted: #6f6c78;
  --soft: #55525e;
  --panel: #eeeeef;
  --line: #d9d8dd;
  --accent: #7a2ff0;
  --accent-ink: #6a1fe0;
  --accent-tint: #f3edfe;
  --warn-tint: #fff6e0;
  --warn-line: #e3b341;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141317; --fg: #ecebf0; --muted: #a3a0ad; --soft: #c2bfcb;
    --panel: #1f1d24; --line: #34313b; --accent: #a274ff; --accent-ink: #b590ff; --accent-tint: #261d38;
    --warn-tint: #2b2414; --warn-line: #9c7a24;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
a { color: var(--accent-ink); }
.page { max-width: 820px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 40px 72px; }
.runhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); line-height: 1.4; }
.badge { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--soft); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
.cover { padding-block: 56px 40px; border-bottom: 1px solid var(--line); display: grid; gap: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--muted); }
h1 { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.12; font-weight: 700; }
.h1fill { font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; font-weight: 700; }
.stack { font-style: italic; color: var(--accent-ink); font-size: 18px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; margin: 0; }
.meta div { min-width: 0; display: grid; gap: 2px; }
.meta dt { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; }
section { padding-top: 48px; display: grid; gap: 16px; }
h2 { font-size: 26px; font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
h2 .n { color: var(--accent); }
h3 { font-size: 18px; font-weight: 600; margin-top: 8px; }
p { margin: 0; max-width: 68ch; }
.lead { color: var(--soft); }
.note { font-size: 13px; color: var(--muted); }
.box { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 20px 22px; display: grid; gap: 10px; }
.box .label { font-family: var(--font-display); font-weight: 600; color: var(--accent-ink); font-size: 15px; }
.table-wrap { overflow-x: auto; min-width: 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--soft); border-bottom: 2px solid var(--fg); padding: 8px 10px; white-space: nowrap; }
td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
td.q { font-weight: 600; }
td.c { white-space: nowrap; color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
td.blank { min-width: 160px; }
.bloc { display: grid; gap: 8px; }
.bloc-title { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tag { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--accent-ink); background: var(--accent-tint); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
ol.flow { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
ol.flow li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
ol.flow li::before { content: counter(s); font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); line-height: 1.2; }
ol.flow li > div { display: grid; gap: 4px; min-width: 0; }
ol.flow strong { font-family: var(--font-display); font-weight: 600; }
ol.flow .blocs { color: var(--muted); font-size: 13px; font-weight: 400; }
ol.flow .hint { color: var(--soft); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid2 > * { min-width: 0; }
.col { display: grid; gap: 8px; align-content: start; }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check li label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.check input[type=checkbox] { width: 16px; height: 16px; margin: 4px 0 0; accent-color: var(--accent); cursor: pointer; }
.check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.progress { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent-ink); }
[contenteditable] { cursor: text; outline: none; border-bottom: 1px dashed var(--accent); min-height: 1.6em; border-radius: 2px; overflow-wrap: anywhere; }
[contenteditable]:hover { background: var(--accent-tint); }
[contenteditable]:focus-visible, [contenteditable]:focus { background: var(--accent-tint); box-shadow: inset 0 -2px 0 var(--accent); }
[contenteditable]:empty::before { content: attr(data-ph); color: var(--muted); font-style: italic; font-weight: 400; }
.toolbar { display: grid; gap: 12px; background: var(--accent-tint); padding: 14px 16px; font-size: 13px; color: var(--soft); margin-top: 24px; }
.toolbar p { max-width: none; }
.toolbar .warn { background: var(--warn-tint); border-left: 3px solid var(--warn-line); padding: 6px 10px; color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { font: 600 13px var(--font-display); color: var(--accent-ink); background: transparent; border: 1.5px solid var(--accent); padding: 7px 14px; cursor: pointer; }
.btn:hover { background: var(--accent); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.danger { border-color: var(--fg); color: var(--fg); }
.btn.danger:hover { background: var(--fg); color: var(--bg); }
.confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status { font-weight: 600; color: var(--accent-ink); min-height: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
footer { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
footer .sign { color: var(--soft); font-size: 13px; }
.head-right { display: grid; justify-items: end; gap: 6px; }
.by { font-family: var(--font-display); font-weight: 600; font-size: 12px; text-decoration: none; }
.by:hover { text-decoration: underline; }
.cta { background: var(--accent-tint); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 24px; display: grid; gap: 16px; }
.cta h2 { font-size: 22px; }
.cta-text { display: grid; gap: 8px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.big { font-size: 15px; padding: 11px 18px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn.linkedin { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.btn.linkedin:hover { background: #004182; border-color: #004182; color: #fff; }
/* Page mentions légales */
.legal { display: grid; gap: 8px; }
.legal h2 { font-size: 20px; margin-top: 24px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.back { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
@media (max-width: 480px) { .cover { padding-block: 36px 28px; } h2 { font-size: 22px; } .head-right { justify-items: start; } }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  :root { --bg:#fff; --fg:#1d1b22; --muted:#6f6c78; --soft:#4a4752; --panel:#f3f3f4; --line:#d9d8dd; --accent:#7a2ff0; --accent-ink:#6a1fe0; --accent-tint:#f3edfe; color-scheme: light; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 11.5pt; }
  .page { max-width: none; padding: 0; }
  .toolbar, .no-print { display: none !important; }
  .cover { padding-block: 20px 24px; }
  section { padding-top: 28px; }
  h2, h3, .bloc-title { break-after: avoid; }
  tr, .box, ol.flow li, .check li { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  [contenteditable] { border-bottom: 1px dotted #b9b6c2; background: none !important; box-shadow: none !important; }
  [contenteditable]:empty::before { content: ""; }
  td.blank:empty, p.fill:empty, dd.fill:empty { min-height: 2.4em; display: block; }
  footer { margin-top: 32px; }
  footer a { color: inherit; text-decoration: none; }
}
