:root { --primary: #1f4e79; --secondary: #f2a900; --bg: #f5f6f8; --text: #1d1d1f; --muted: #5f6368; --ok: #1e7b34; --err: #b3261e; --border: #d5d8dc; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "DejaVu Sans", sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--primary); }
a:focus, button:focus, input:focus, select:focus, textarea:focus, summary:focus { outline: 3px solid var(--secondary); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
header.top { background: var(--primary); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .6rem 1.2rem; gap: .5rem; }
header.top a, header.top .link { color: #fff; text-decoration: none; margin-right: .9rem; font-size: .95rem; }
header.top a:hover, header.top .link:hover { text-decoration: underline; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; }
.logo { max-height: 40px; max-width: 160px; background: #fff; border-radius: 4px; padding: 2px; }
nav { display: flex; flex-wrap: wrap; align-items: center; }
main { max-width: 1150px; margin: 1.2rem auto; padding: 0 1rem; }
footer.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1.5rem; }
h1 { font-size: 1.6rem; margin: .2rem 0 1rem; } h2 { font-size: 1.25rem; margin: 1.4rem 0 .6rem; } .h3, h3 { font-size: 1.05rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .8rem 1rem; }
.stat .v { font-size: 1.7rem; font-weight: 700; color: var(--primary); }
label { display: block; font-weight: 600; margin: .7rem 0 .25rem; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=search], input[type=tel], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: .55rem .6rem; border: 1px solid #9aa0a6; border-radius: 5px; font: inherit; background: #fff; }
textarea { min-height: 6rem; } textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; min-height: 28rem; }
input[type=color] { width: 4rem; height: 2.2rem; padding: 0; border: 1px solid #9aa0a6; }
button, .btn { display: inline-block; background: var(--primary); color: #fff; border: 0; border-radius: 5px; padding: .55rem 1rem; font: inherit; cursor: pointer; text-decoration: none; margin-top: .6rem; }
button.secondary, .btn.secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
button.danger { background: var(--err); } button.small, .btn.small { padding: .25rem .6rem; font-size: .85rem; margin-top: 0; }
button.link { background: none; padding: 0; margin: 0; text-decoration: underline; cursor: pointer; }
form.inline { display: inline; }
.row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; } .row > * { flex: 1 1 200px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; }
th, td { border-bottom: 1px solid var(--border); padding: .5rem .55rem; text-align: left; vertical-align: top; }
th { background: #eef0f3; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.flash { padding: .7rem 1rem; border-radius: 6px; margin-bottom: 1rem; border: 1px solid; }
.flash.ok { background: #e6f4ea; border-color: #a8d5b5; color: #0d4d1f; } .flash.error { background: #fce8e6; border-color: #f2b8b5; color: #8c1d18; }
.muted { color: var(--muted); font-size: .92rem; }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem; background: #e8eaed; color: #333; }
.badge.ok { background: #e6f4ea; color: var(--ok); } .badge.warn { background: #fef7e0; color: #7a5900; } .badge.err { background: #fce8e6; color: var(--err); }
.progress { background: #e8eaed; border-radius: 999px; height: .6rem; overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--secondary); }
.p0{width:0}.p10{width:10%}.p20{width:20%}.p30{width:30%}.p40{width:40%}.p50{width:50%}.p60{width:60%}.p70{width:70%}.p80{width:80%}.p90{width:90%}.p100{width:100%}
.lesson-list { list-style: none; padding: 0; } .lesson-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: .5rem; }
.done::before { content: "✓ "; color: var(--ok); font-weight: 700; }
video { width: 100%; max-height: 70vh; background: #000; border-radius: 6px; }
iframe.pdf { width: 100%; height: 75vh; border: 1px solid var(--border); border-radius: 6px; }
.text-block { white-space: pre-line; }
.question { border: 1px solid var(--border); border-radius: 6px; padding: .8rem 1rem; margin: .8rem 0; background: #fff; }
.question legend { font-weight: 600; padding: 0 .3rem; }
.choice { display: flex; gap: .5rem; align-items: flex-start; font-weight: normal; margin: .35rem 0; }
.choice input { margin-top: .3rem; }
.correct { color: var(--ok); font-weight: 600; } .wrong { color: var(--err); }
.qr svg { width: 220px; height: 220px; }
.swatch { display: inline-block; width: 1rem; height: 1rem; border-radius: 3px; vertical-align: middle; border: 1px solid #999; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
details { margin: .6rem 0; } summary { cursor: pointer; font-weight: 600; }
code { background: #eef0f3; padding: 0 .25rem; border-radius: 3px; }
.scale { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 640px) { header.top { flex-direction: column; align-items: flex-start; } h1 { font-size: 1.35rem; } .card { padding: 1rem; } }
/* --- v1.3 : ergonomie --- */
.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; }
.menu { margin: 0; }
.menu > summary { display: none; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
header.top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3rem; text-decoration-thickness: 2px; font-weight: 600; }
.module-list { list-style: none; padding: 0; margin: 0; }
.module-list > li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.module-list > li:last-child { border-bottom: 0; }
.module-title { margin: 0 0 .2rem; font-size: 1.1rem; }
.module-info { flex: 1 1 280px; } .module-info .actions { margin-top: .35rem; }
.module-cta .btn { margin-top: 0; }
.stat a.stat-link { text-decoration: none; color: inherit; display: block; }
.stat.active { outline: 2px solid var(--primary); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; }
.filters a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; text-decoration: none; font-size: .9rem; }
.filters a[aria-current="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.question.unanswered { border-color: var(--err); box-shadow: 0 0 0 2px #fce8e6; }
button, .btn { min-height: 2.5rem; }
button.small, .btn.small { min-height: 2rem; }
input[type=radio], input[type=checkbox] { width: 1.1rem; height: 1.1rem; }
@media (max-width: 640px) {
  .menu { width: 100%; }
  .menu > summary { display: inline-block; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 5px; padding: .3rem .8rem; cursor: pointer; position: absolute; right: 1rem; top: .6rem; }
  .menu[open] nav { flex-direction: column; align-items: flex-start; gap: .55rem; padding: .6rem 0 .2rem; }
  header.top { position: relative; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr:first-child:has(th) { display: none; }
  table.stack tr { border-bottom: 1px solid var(--border); padding: .4rem 0; }
  table.stack td { border: 0; padding: .25rem .5rem; }
  table.stack td[data-label]::before { content: attr(data-label) " : "; font-weight: 600; color: var(--muted); }
  .module-cta, .module-cta .btn { width: 100%; text-align: center; }
}
