:root {
  --navy: #0f2a44;
  --navy-2: #1b3d5f;
  --teal: #0e8a7d;
  --teal-2: #0b6f65;
  --amber: #d98a1c;
  --red: #c2413b;
  --ink: #1d2733;
  --muted: #5f6b7a;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 68, .06), 0 4px 16px rgba(15, 42, 68, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--teal-2); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { background: var(--bg-alt); padding: 0 .3em; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--teal); font-weight: 600; }
.eyebrow a { text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand small { display: block; color: var(--muted); font-size: .75rem; line-height: 1; }
.brand strong { display: block; line-height: 1.2; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a { padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { background: var(--bg-alt); color: var(--navy); }
.main-nav a.btn { color: #fff; margin-left: 8px; }
.main-nav a.private { color: var(--muted); font-style: italic; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: var(--teal-2); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: rgba(14, 138, 125, .08); }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.btn-danger { background: var(--red); }
.btn-link { background: none; border: 0; color: var(--teal-2); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1f5a6b 100%); color: #fff; padding: 80px 0 72px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { color: #d6e2ec; }
.hero .eyebrow { color: #7fd6cb; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.page-head { background: var(--bg-alt); padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.intro { max-width: 820px; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.grid > .card { margin-bottom: 0; }
.card p:last-child { margin-bottom: 0; }
.card.link { display: block; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.card.link:hover { transform: translateY(-2px); border-color: var(--teal); }
.card.accent { border-left: 4px solid var(--teal); }
.card h3 a { text-decoration: none; color: inherit; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--teal-2); background: rgba(14, 138, 125, .1); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; }
.more { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--teal-2); text-decoration: none; }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cta { text-align: center; }
.cta p { color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 24px; position: relative; margin: 4px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps li strong { display: block; color: var(--navy); }
.steps li span { color: var(--muted); }
.steps.compact { grid-template-columns: 1fr; gap: 10px; }
.steps.compact li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; }
.steps.compact li::before { margin: 0; flex: none; }
.steps.compact li span { color: var(--ink); }

.two-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.chip.lvl-4 { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.lvl-3 { background: rgba(14, 138, 125, .12); border-color: rgba(14, 138, 125, .4); }

.skill-list { list-style: none; padding: 0; margin: 0; }
.skill-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.lvl { display: inline-flex; gap: 3px; flex: none; align-items: center; }
.lvl i { width: 14px; height: 8px; border-radius: 2px; background: var(--line); }
.lvl i.on { background: var(--teal); }
.lvl i.target { background: transparent; outline: 1.5px dashed var(--amber); outline-offset: -1.5px; }

/* Forms */
.form label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.form input, .form select, .form textarea, .tbl input, .tbl select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-weight: 400; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(14, 138, 125, .35); border-color: var(--teal); }
.form textarea { resize: vertical; }
.form .inline { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form .inline input { width: auto; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hp { position: absolute; left: -9999px; }
.errors { background: #fdecea; border: 1px solid #f3c1bd; color: #8a2a24; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.errors p { margin: 0; }
.flash { background: #e7f6f3; border: 1px solid #b5e3da; color: #0b5b53; border-radius: 8px; padding: 10px 16px; margin: 16px 0; }

/* Tools */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.results { position: sticky; top: 84px; }
.kpi { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kpi span { color: var(--muted); }
.kpi strong { font-size: 1.35rem; color: var(--navy); }
.kpi small { flex-basis: 100%; color: var(--muted); }
.explain { max-width: 820px; margin-top: 32px; }
.formula { font-family: Consolas, "Courier New", monospace; background: var(--bg-alt); border-left: 3px solid var(--teal); padding: 10px 14px; border-radius: 4px; overflow-x: auto; }
.filters { max-width: 360px; }
.table-scroll { overflow-x: auto; }
.table-scroll.short { max-height: 360px; overflow-y: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--bg-alt); color: var(--navy); font-weight: 600; position: sticky; top: 0; }
.tbl tr.hl td { background: rgba(14, 138, 125, .08); font-weight: 600; }
.tbl.small { font-size: .85rem; }
.tbl .x { background: none; border: 0; color: var(--red); font-size: 1.2rem; cursor: pointer; }
.cls { display: inline-block; width: 24px; text-align: center; border-radius: 4px; font-weight: 700; color: #fff; }
.cls-A { background: var(--navy); }
.cls-B { background: var(--teal); }
.cls-C { background: #9aa7b4; }
.mini-chart { width: 100%; height: auto; margin-top: 12px; }
.mini-chart polyline { fill: none; stroke-width: 2.5; }
.mini-chart .real, .legend .real::before { stroke: var(--navy); background: var(--navy); }
.mini-chart .fc, .legend .fc::before { stroke: var(--amber); background: var(--amber); }
.mini-chart .fc { stroke-dasharray: 6 4; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e2; padding: 36px 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #8ea3b8; }
.site-footer .cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.site-footer .right { text-align: right; }

/* ---------- Admin ---------- */
.admin { background: var(--bg-alt); }
.admin-header { background: var(--navy); border: 0; }
.admin-header .brand, .admin-header .main-nav a { color: #fff; }
.admin-header .brand small { color: #9fb3c7; }
.admin-header .mark { background: var(--teal); }
.admin-header .main-nav a:hover, .admin-header .main-nav a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.main-nav form.logout { display: inline; margin: 0; }
.main-nav form.logout button { background: none; border: 0; font: inherit; font-size: .95rem; color: inherit; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.admin-header .main-nav form.logout button { color: #fff; }
.admin-header .main-nav form.logout button:hover { background: rgba(255, 255, 255, .12); }
@media (min-width: 1121px) { .admin-header .main-nav form.logout button { padding: 8px 7px; font-size: .88rem; white-space: nowrap; } }
@media (min-width: 1121px) { .admin-header .main-nav { gap: 0; flex-wrap: nowrap; } .admin-header .main-nav a { padding: 8px 7px; font-size: .88rem; white-space: nowrap; } .admin-header .brand small { display: none; } }
@media (min-width: 1121px) and (max-width: 1279px) { .admin-header .main-nav a { padding: 8px 5px; font-size: .84rem; } }
.admin-main { padding-top: 24px; padding-bottom: 60px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat span { display: block; color: var(--muted); font-size: .85rem; }
.stat strong { font-size: 1.7rem; color: var(--navy); }
.stat.ok strong { color: var(--teal); }
.stat.gap strong { color: var(--red); }
.stat.wip strong { color: var(--amber); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: #e1f4f0; color: #0b6f65; }
.badge.gap { background: #fbe5e3; color: #9b2f2a; }
.badge.wip { background: #fcefd9; color: #8a5510; }
.badge.eval { background: #e8ecf1; color: #4a5868; }
.badge.off { background: #e8ecf1; color: #4a5868; }
.badge.on { background: #e1f4f0; color: #0b6f65; }
.radar { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.radar .grid { fill: none; stroke: var(--line); }
.radar .axis { stroke: var(--line); }
.radar .lbl { font-size: 11px; fill: var(--muted); }
.radar .serie { stroke-width: 2; }
.radar .serie.target { fill: rgba(217, 138, 28, .08); stroke: var(--amber); stroke-dasharray: 5 4; }
.radar .serie.current { fill: rgba(14, 138, 125, .22); stroke: var(--teal); }
.legend-radar { text-align: center; font-size: .85rem; color: var(--muted); }
.legend-radar b { display: inline-block; width: 14px; height: 4px; vertical-align: middle; margin: 0 4px 0 12px; }
.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress > div { height: 100%; background: var(--teal); }
.eval-table select { min-width: 120px; }
.eval-table td.name { min-width: 240px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.toolbar label { margin: 0; }
.toolbar select { width: auto; }
form.inline-form { display: inline; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.log time { color: var(--muted); font-size: .85rem; margin-right: 8px; }
.msg-body { white-space: pre-wrap; background: var(--bg-alt); padding: 12px; border-radius: 6px; }
.unread { border-left: 4px solid var(--teal); }

/* Responsive */
/* Menu replié : en dessous de cette largeur, les entrées ne tiennent plus sur une ligne */
@media (max-width: 1120px) {
  .burger { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .admin-header .main-nav { background: var(--navy); }
  .nav-open .main-nav { display: flex; }
  .main-nav a.btn { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .two-cols, .tool-grid { grid-template-columns: 1fr; }
  .results { position: static; }
}
@media (max-width: 760px) {
  .g2, .g3, .g4, .steps, .row2, .row3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-footer .right { text-align: left; }
  .section { padding: 40px 0; }
  .hero { padding: 56px 0; }
}

/* ---------- Fiches pratiques ---------- */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.search-bar input[type=search] { flex: 1 1 320px; margin: 0; }
.search-bar select { width: auto; margin: 0; }
.search-bar label { margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.toc a { font-size: .82rem; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; }
.ref-domain { margin-bottom: 28px; scroll-margin-top: 80px; }
.ref-domain > h3 { border-bottom: 2px solid var(--teal); padding-bottom: 4px; }
.ref-skill h4 { font-size: 1rem; margin-bottom: 8px; }
.ref-list { list-style: none; padding: 0; margin: 0; columns: 1; }
.ref-list li { padding: 3px 0; font-size: .93rem; }
.ref-list li a { text-decoration: none; }
.ref-list li a:hover { text-decoration: underline; }
.ref-list li.current a { font-weight: 700; color: var(--navy); }
.dl { font-size: .65rem; font-weight: 700; color: #fff; background: var(--teal); border-radius: 3px; padding: 1px 4px; vertical-align: middle; }
.fiche h2 { margin-top: 1.4em; }
.example { background: #f0f8f6; border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: 6px; }
.example p:last-child { margin: 0; }
.pitfalls li { margin: 4px 0; }
.pitfalls li::marker { content: "⚠  "; color: var(--amber); }
.prev-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.download { background: #f0f8f6; }
.mastery-table td.c { text-align: center; }
.mastery-table input[type=radio] { width: 18px; height: 18px; cursor: pointer; }
.print-brand { display: none; }

@media print {
  .site-header, .site-footer, .no-print, .cta, .burger { display: none !important; }
  .print-brand { display: block; background: #0e8a7d !important; color: #fff !important; padding: 6px 12px; font-size: 9pt; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .two-cols { grid-template-columns: 1fr; }
  .page-head { background: none; padding: 12px 0; }
  body { font-size: 11pt; }
  .example { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 1.5cm; }
}

/* ---------- Formations ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; margin: 10px 0; }
.facts div { background: var(--bg-alt); border-radius: 6px; padding: 8px 10px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: .9rem; }
.chip-gap { border-color: var(--amber); background: #fcefd9; }
a.chip { text-decoration: none; color: inherit; }
.status-select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.training h3 { margin-bottom: 2px; }
.cert .tag { background: rgba(15, 42, 68, .08); color: var(--navy); }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); margin: 6px 0; }
details .inline { margin: 2px 0 2px 12px; }

/* ---------- Mise en œuvre détaillée ---------- */
.steps.detailed li { align-items: flex-start; padding: 14px 16px; }
.steps.detailed li span strong { display: block; color: var(--navy); margin-bottom: 4px; }
.steps.detailed li span { line-height: 1.55; }
.reperes { margin: 0 0 16px; }

/* ---------- Tutoriels pas à pas ---------- */
.tuto { margin: 8px 0 32px; padding: 24px; background: #fbfcfd; border: 1px solid var(--line); border-radius: var(--radius); }
.tuto > h2 { margin-top: 0; }
.tuto h3 { margin-top: 1.6em; font-size: 1.1rem; }
.tuto h4 { margin: 0 0 6px; font-size: .98rem; }
.tuto .card.idea { margin: 0; padding: 14px 16px; box-shadow: none; }
.tuto .grid { margin: 12px 0; }
.formulas { padding-left: 20px; }
.formulas li { margin-bottom: 14px; }
.formulas .formula { margin-bottom: 6px; }
.data-row th, .data-row td { text-align: center; white-space: nowrap; }
.grid-mape td { text-align: center; }
.grid-mape td.best { background: #e1f4f0; font-weight: 700; outline: 2px solid var(--teal); outline-offset: -2px; }

/* Démonstrateur de prévision */
.fdemo { --fd-real: #2a78d6; --fd-fit: #eb6834; --fd-ink: #52514e; --fd-grid: #e6e8eb; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; position: relative; }
.fd-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; }
.fd-slider { display: block; font-size: .88rem; }
.fd-sl-head { display: flex; justify-content: space-between; font-weight: 600; color: var(--navy); }
.fd-sl-head strong { font-variant-numeric: tabular-nums; }
.fd-slider input[type=range] { width: 100%; accent-color: var(--teal); margin: 6px 0 2px; }
.fd-slider small { color: var(--muted); line-height: 1.35; display: block; }
.fd-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
.fd-data { margin: 8px 0; }
.fd-data textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 6px; margin: 6px 0; }
.fd-data .btn { margin-right: 8px; }
.fd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 18px; margin: 6px 0; }
.fd-kpis .kpi strong { font-size: 1.15rem; }
.fd-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--fd-ink); margin: 8px 0 4px; }
.fd-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle; }
.fd-key.fd-real { border-color: var(--fd-real); }
.fd-key.fd-fit { border-color: var(--fd-fit); border-top-style: dotted; }
.fd-key.fd-fut { border-color: var(--fd-fit); border-top-style: dashed; }
.fd-chart { position: relative; }
.fd-svg { width: 100%; height: auto; display: block; }
.fd-grid { stroke: var(--fd-grid); stroke-width: 1; }
.fd-tick { fill: var(--fd-ink); font-size: 11px; }
.fd-future { fill: #f4f7f9; }
.fd-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fd-real { stroke: var(--fd-real); }
.fd-fit { stroke: var(--fd-fit); stroke-dasharray: 2 4; }
.fd-fut { stroke: var(--fd-fit); stroke-dasharray: 7 5; }
.fd-dot { stroke: #fff; stroke-width: 2; }
.fd-real-dot { fill: var(--fd-real); }
.fd-fut-dot { fill: var(--fd-fit); }
.fd-dlabel { fill: #1d2733; font-size: 12px; font-weight: 600; }
.fd-cross { stroke: #9aa7b4; stroke-width: 1; }
.fd-tip { position: absolute; z-index: 2; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 8px 10px; font-size: .82rem; pointer-events: none; }
.fd-tip-h { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.fd-tip-r { display: flex; align-items: center; gap: 6px; }
.fd-tip-r strong { font-variant-numeric: tabular-nums; }
.fd-tip-s { color: var(--muted); margin-top: 2px; }
.fd-table summary { cursor: pointer; font-size: .88rem; color: var(--teal-2); margin-top: 8px; }
@media (max-width: 760px) { .tuto { padding: 16px; } }
.two-cols > *, .tool-grid > *, .grid > * { min-width: 0; }

/* Widgets pédagogiques */
.kpi.tone-good strong { color: #0b6f65; }
.kpi.tone-bad strong { color: #c2413b; }
.fd-qlabel { fill: #1d2733; font-size: 12px; font-weight: 700; }
.tw-advice { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.tw-advice .card { margin: 0; padding: 12px 14px; box-shadow: none; }
.tw-num { width: 90px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.tw-ta { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 6px; margin: 6px 0; }
.tw-score { margin-bottom: 10px; }
.tw-group { margin: 14px 0 6px; color: var(--navy); }
.tw-q { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tw-q-text { flex: 1 1 320px; }
.tw-q-opts { display: flex; gap: 4px; }
.tw-q-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tw-q-opts label { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; cursor: pointer; background: #fff; }
.tw-q-opts input:checked + label { background: var(--navy); color: #fff; border-color: var(--navy); }
.tw-q-opts input:focus-visible + label { outline: 2px solid var(--teal); }
.tw-gaps h4 { margin-top: 12px; }
.tw-note { margin-top: 6px; }
.fd-halo { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.fd-key.circle { width: 10px; height: 10px; border: 2px solid; border-radius: 50%; background: #fff; }
.tbl input.tw-num, .tw-num { width: 90px; display: inline-block; margin: 0; }

/* Cartes et plans dessinés par les calculateurs */
.tw-map { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }

/* ---------- CV ---------- */
.cv-page { background: var(--bg-alt); padding: 28px 16px 48px; }
.cv-toolbar { max-width: 920px; margin: 0 auto 14px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cv-sheet { max-width: 920px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 6px rgba(15, 42, 68, .08), 0 12px 40px rgba(15, 42, 68, .10); overflow: hidden; }
.cv-top { background: var(--navy); color: #fff; padding: 30px 40px 26px; border-bottom: 5px solid var(--teal); }
.cv-top h1 { color: #fff; font-size: 2.3rem; letter-spacing: .01em; margin: 0; }
.cv-role { color: #7fd6cc; font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 6px; }
.cv-loc { color: rgba(255, 255, 255, .75); font-size: .92rem; margin: 0; }
.cv-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.cv-side { background: #f1f5f8; padding: 26px 26px 30px; border-right: 1px solid var(--line); }
.cv-main { padding: 26px 40px 32px; }
.cv-sheet h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-2); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cv-side section + section, .cv-main section + section { margin-top: 24px; }
.cv-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.cv-kpis strong { display: block; font-size: 1.45rem; line-height: 1.1; color: var(--navy); }
.cv-kpis span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.cv-dips { list-style: none; margin: 0; padding: 0; }
.cv-dips li { display: grid; grid-template-columns: 42px 1fr; gap: 6px; font-size: .88rem; line-height: 1.4; margin-bottom: 10px; }
.cv-dips b { color: var(--navy); }
.cv-cat { font-size: .75rem; color: var(--muted); margin: 10px 0 5px; }
.cv-cat:first-of-type { margin-top: 0; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.cv-tags span { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; font-size: .8rem; color: var(--ink); }
.cv-misc { font-size: .88rem; margin: 0; }
.cv-profil { margin: 0; line-height: 1.6; }
.cv-xp { list-style: none; margin: 0; padding: 0; }
.cv-xp > li { position: relative; padding: 0 0 18px 20px; border-left: 2px solid var(--line); break-inside: avoid; }
.cv-xp > li:last-child { padding-bottom: 0; }
.cv-xp > li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.cv-xp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.cv-xp h3 { font-size: 1.02rem; margin: 0; }
.cv-date { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.cv-org { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-2); margin: 1px 0 6px; }
.cv-xp ul { margin: 0; padding-left: 16px; font-size: .92rem; line-height: 1.5; }
.cv-xp ul li { margin-bottom: 2px; }
.cv-xp ul li::marker { color: var(--teal); }
.cv-draft { opacity: .65; }
.cv-draft::before { background: var(--amber) !important; }
.cv-note { font-size: .8rem; color: var(--amber); margin: 0 0 4px; }
.cv-early { list-style: none; margin: 0; padding: 0; font-size: .86rem; line-height: 1.35; }
.cv-early li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.cv-early li:first-child { padding-top: 0; }
.cv-early li:last-child { border-bottom: 0; }
.cv-early span { display: block; font-size: .75rem; color: var(--muted); }
.cv-early b { color: var(--navy); }
.cv-skills { list-style: none; margin: 0; padding: 0; font-size: .9rem; line-height: 1.35; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 20px; }
.cv-skills li { position: relative; padding-left: 14px; }
.cv-skills li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 1px; background: var(--teal); }
@media screen and (max-width: 760px) {
  .cv-page { padding: 16px 0 32px; }
  .cv-toolbar { padding: 0 16px; justify-content: stretch; }
  .cv-toolbar .btn { flex: 1; text-align: center; }
  .cv-sheet { border-radius: 0; }
  .cv-top { padding: 22px 16px 18px; }
  .cv-top h1 { font-size: 1.8rem; }
  .cv-body { grid-template-columns: 1fr; }
  .cv-main { padding: 22px 16px; order: -1; }
  .cv-side { padding: 22px 16px; border-right: 0; border-top: 1px solid var(--line); }
}
@media print {
  .print-brand { margin: 0; }
  .cv-page { background: none; padding: 0; }
  .cv-sheet { max-width: none; border-radius: 0; box-shadow: none; }
  .cv-sheet, .cv-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cv-top { padding: 16px 28px 13px; }
  .cv-top h1 { font-size: 22pt; }
  .cv-role { font-size: 10.5pt; margin: 2px 0 3px; }
  .cv-loc { font-size: 8.5pt; }
  .cv-body { grid-template-columns: 62mm minmax(0, 1fr); }
  .cv-side { order: 0; }
  .cv-main { order: 1; }
  .cv-side { padding: 14px 16px; min-height: 256mm; }
  .cv-main { padding: 14px 24px 10px; }
  .cv-sheet h2 { font-size: 7.5pt; margin-bottom: 7px; padding-bottom: 3px; }
  .cv-side section + section, .cv-main section + section { margin-top: 13px; }
  .cv-kpis { gap: 8px; }
  .cv-kpis strong { font-size: 13pt; }
  .cv-kpis span { font-size: 7pt; }
  .cv-dips li { font-size: 8pt; margin-bottom: 5px; grid-template-columns: 30px 1fr; }
  .cv-cat { font-size: 7pt; margin: 6px 0 3px; }
  .cv-tags span { font-size: 7.5pt; padding: 0 5px; }
  .cv-misc, .cv-profil { font-size: 8.5pt; line-height: 1.45; }
  .cv-early { font-size: 8pt; }
  .cv-early li { padding: 3px 0; }
  .cv-early span { font-size: 7pt; }
  .cv-skills { font-size: 8pt; }
  .cv-skills { grid-template-columns: 1fr 1fr; gap: 1px 16px; }
  .cv-xp > li { padding-bottom: 8px; padding-left: 14px; }
  .cv-xp > li::before { top: 4px; width: 8px; height: 8px; left: -5px; }
  .cv-xp h3 { font-size: 9.5pt; }
  .cv-date { font-size: 7.5pt; }
  .cv-org { font-size: 7.5pt; margin-bottom: 2px; }
  .cv-xp ul { font-size: 8.3pt; line-height: 1.35; }
  .cv-xp ul li { margin-bottom: 0; }
  .cv-draft { display: none; }
}

/* ---------- CV version ATS (logiciels de recrutement) ---------- */
.ats-hint { max-width: 820px; margin: 0 auto 14px; font-size: .9rem; color: var(--muted); }
.ats { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 48px; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.5; color: #000; }
.ats h1 { font-size: 26px; color: #000; margin: 0; }
.ats-title { font-size: 17px; font-weight: 700; margin: 2px 0 4px; }
.ats p { margin: 0 0 6px; }
.ats h2 { font-size: 17px; color: #000; margin: 22px 0 8px; padding-bottom: 3px; border-bottom: 1px solid #000; }
.ats h3 { font-size: 15px; color: #000; margin: 0; }
.ats ul { margin: 4px 0 0; padding-left: 20px; }
.ats li { margin-bottom: 2px; }
.ats-job { margin-bottom: 12px; break-inside: avoid; }
.ats-job p { margin: 0; }
/* Cadre d'impression : thead/tfoot vides répétés sur chaque page = marges haute et basse. */
.ats-frame { width: 100%; border-collapse: collapse; }
.ats-frame td { padding: 0; }
.ats-frame thead, .ats-frame tfoot { display: none; }
@media screen and (max-width: 760px) {
  .ats { padding: 22px 16px; border-radius: 0; border-left: 0; border-right: 0; }
  .ats-hint { padding: 0 16px; }
}
@media print {
  .ats { max-width: none; border: 0; border-radius: 0; padding: 0; font-size: 10.5pt; line-height: 1.4; }
  .ats h1 { font-size: 18pt; }
  .ats-title { font-size: 12pt; }
  .ats h2 { font-size: 12pt; margin: 12pt 0 5pt; }
  .ats h3 { font-size: 10.5pt; }
  .ats-job { margin-bottom: 7pt; }
  .ats-frame thead { display: table-header-group; }
  .ats-frame tfoot { display: table-footer-group; }
  .ats-gap { height: 15mm; }
}

/* ---------- Préparation VAE (admin) ---------- */
.vae-bar { display: inline-block; width: 90px; height: 8px; background: var(--line); border-radius: 4px; vertical-align: middle; overflow: hidden; }
.vae-bar span { display: block; height: 100%; background: var(--teal); }
.nowrap { white-space: nowrap; }
.vae-tbl td:first-child { width: 34%; }
.vae-tbl .badge { margin-top: 6px; }
.vae-act { border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 6px; margin: 0 0 6px; background: #fff; }
.vae-act.is-ok { border-left-color: var(--teal); }
.vae-act summary { padding: 6px 10px; margin: 0; font-weight: 600; font-size: .92rem; }
.vae-act-body { padding: 0 12px 10px; font-size: .9rem; }
.vae-act-body ol { margin: 0 0 6px; padding-left: 20px; }
.vae-act-body p { margin: 0 0 6px; }
.vae-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-2); font-weight: 700; margin: 8px 0 2px !important; }
.vae-bloc h2 { font-size: 1.15rem; }
@media (max-width: 760px) { .vae-tbl td:first-child { width: auto; } .vae-tbl, .vae-tbl tbody, .vae-tbl tr, .vae-tbl td { display: block; } .vae-tbl th { display: none; } }
