/* Odyssée Prof FLE — V0 pilote. Univers « Pondichéry » : façades ocre, mer profonde, bougainvillier. */
:root {
  --cream: #fbf6ec; --paper: #ffffff; --sand: #f3ead8;
  --ink: #1d2a30; --ink-2: #4a5960; --line: #e3d8c3;
  --teal: #0b5563; --teal-2: #127485; --teal-soft: #e2f0f1;
  --ochre: #e8b04b; --ochre-soft: #f8e7bf;
  --bougain: #b0145a; --bougain-2: #8f0f49; --bougain-soft: #fbe5ef;
  --ok: #1f6b3a; --ok-soft: #e3f3e8; --warn: #7a4f00; --warn-soft: #fff1d1; --err: #a3141f; --err-soft: #fde7e8;
  --radius: 14px; --shadow: 0 1px 2px rgba(29, 42, 48, .06), 0 6px 20px rgba(29, 42, 48, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --fs: 100%; --lh: 1.6;
  color-scheme: light;
}
html.p-size-115 { --fs: 115%; } html.p-size-130 { --fs: 130%; }
html.p-lh-large { --lh: 1.85; } html.p-lh-xlarge { --lh: 2.1; }
html.p-dys { --font: Verdana, Tahoma, "Trebuchet MS", Arial, sans-serif; --serif: Verdana, Tahoma, Arial, sans-serif; }
html.p-dys body { letter-spacing: .035em; word-spacing: .14em; }
html.p-dys p, html.p-dys li { text-align: left; }
html.p-contrast { --ink-2: #1d2a30; --line: #7d6f57; --teal: #063943; --bougain: #8a0c44; }
html.p-contrast .card, html.p-contrast .side-card { border-width: 2px; }

* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); line-height: var(--lh); color: var(--ink); background: var(--cream); }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--bougain); }
:focus-visible { outline: 3px solid var(--bougain); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, .h3, .h4 { font-family: var(--serif); line-height: 1.25; color: var(--ink); }
h1 { font-size: 2rem; margin: .4rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; margin: 2rem 0 .8rem; }
h3, .h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.h4, h4 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
p { margin: 0 0 .9rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 .9rem; }
li { margin: .2rem 0; }
code, .code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .88em; background: var(--sand); padding: .05em .35em; border-radius: 5px; }
blockquote { margin: 0 0 1rem; padding: .6rem 1rem; border-left: 4px solid var(--ochre); background: #fffaf0; border-radius: 0 8px 8px 0; }
.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; }
.small { font-size: .875rem; color: var(--ink-2); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46rem; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--teal-2); margin: 0 0 .2rem; }
.warn, .kicker.warn { color: var(--warn); }
.empty { color: var(--ink-2); font-style: italic; background: var(--paper); border: 1px dashed var(--line); padding: 1rem; border-radius: var(--radius); }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 42rem; }
.prose h2 { font-size: 1.25rem; }

.skip { position: absolute; left: -9999px; top: .5rem; background: var(--bougain); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: .5rem; color: #fff; }

/* En-tête */
.site-header { background: var(--teal); color: #fff; position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 10px -2px, var(--teal) 11px, transparent 12px) repeat-x; background-size: 20px 10px; }
.header-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--ochre) 0 38%, transparent 39%), linear-gradient(180deg, transparent 58%, #6fc2cc 58% 66%, transparent 66% 74%, #6fc2cc 74% 82%, transparent 82%), var(--bougain); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.brand-name em { font-style: normal; color: var(--ochre); }
.pill-pilot { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.main-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { color: #fff; text-decoration: none; padding: .45rem .75rem; border-radius: 999px; display: block; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(255,255,255,.16); color: #fff; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ochre); }
.header-tools { display: flex; align-items: center; gap: .8rem; }
.who { font-weight: 600; margin-right: .4rem; }
.header-tools .btn-link { color: #fff; }
.display-panel, .role-picker { position: relative; }
.display-panel summary, .role-picker > summary { cursor: pointer; list-style: none; padding: .4rem .7rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); font-weight: 600; font-size: .9rem; }
.display-panel summary::-webkit-details-marker, .role-picker > summary::-webkit-details-marker { display: none; }
.display-body { position: absolute; right: 0; top: calc(100% + .5rem); background: var(--paper); color: var(--ink); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); width: 17rem; z-index: 50; display: grid; gap: .45rem; border: 1px solid var(--line); }
.display-body select { width: 100%; }

/* Fil d'Ariane et repère */
.crumbs { margin-top: 1.4rem; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--ink-2); }
.crumbs li + li::before { content: "›"; margin: 0 .5rem; color: var(--ink-2); }
.here { margin: .6rem 0 0; padding: .45rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; overflow-wrap: anywhere; }
.here-task { margin-inline: .4rem; }
.header-help { display: inline-grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid currentColor; border-radius: 50%; color: white; text-decoration: none; }
.header-tools { flex-wrap: wrap; }
.header-tools summary, .main-nav a, .role-picker a { min-height: 44px; }
.role-label { font-size: .875rem; }
.display-body { max-width: calc(100vw - 2rem); }
.card, .side-card { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .header-row { gap: .5rem; }
  .main-nav { order: 3; width: 100%; }
  .main-nav ul { flex-wrap: nowrap; }
  .main-nav a { padding-inline: .55rem; }
  .header-tools { gap: .4rem; width: 100%; }
  .header-tools .inline { margin-left: auto; }
  .who { display: none; }
  .here-task { display: block; margin-inline: 0; }
  .display-body { left: 0; right: auto; }
  main.with-aside { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .side { position: static; }
  .grid-2, .grid-3, .row-2, .row-3 { grid-template-columns: minmax(0, 1fr); }
}
.here-label { color: var(--teal-2); font-weight: 700; }

main { padding: 1.2rem 0 3rem; outline: none; }
main.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2rem; align-items: start; }
body.wide main.with-aside { grid-template-columns: 1fr; }
.side { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.main-col { min-width: 0; }

/* Cartes et composants */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0 0 1.2rem; box-shadow: var(--shadow); }
.card-accent { border-left: 6px solid var(--bougain); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.grid-2, .grid-3 { display: grid; gap: 1.2rem; margin: 1.5rem 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.row-2, .row-3 { display: grid; gap: 0 1rem; }
.row-2 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.row-3 { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--sand); color: var(--ink); vertical-align: middle; white-space: nowrap; }
.pill-progress { background: var(--teal-soft); color: var(--teal); }
.pill-sent { background: var(--ochre-soft); color: #6a4700; }
.pill-done { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.mission-facultative { margin: .2rem 0 .4rem; }
.pill-facultative { background: transparent; color: var(--ink); border: 1px dashed currentColor; display: inline-flex; align-items: center; gap: .3rem; }
.pill-icon { flex: none; }

.btn { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 700; padding: .62rem 1.1rem; border-radius: 10px; border: 2px solid var(--teal); background: var(--paper); color: var(--teal); text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--teal-soft); color: var(--teal); }
.btn-primary { background: var(--bougain); border-color: var(--bougain); color: #fff; }
.btn-primary:hover { background: var(--bougain-2); border-color: var(--bougain-2); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-warn { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-small { padding: .35rem .7rem; font-size: .88rem; }
.btn-big { font-size: 1.1rem; padding: .85rem 1.5rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.btn-link.danger { color: var(--err); }
.inline { display: inline; }
.actions-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
td.actions form { display: inline; margin-right: .8rem; }

/* Formulaires */
.form .field { margin: 0 0 1rem; }
label, legend { font-weight: 600; display: block; margin-bottom: .3rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.hint { font-size: .875rem; color: var(--ink-2); margin: -.1rem 0 .35rem; }
.req { color: var(--bougain); }
input[type="text"], input:not([type]), input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="datetime-local"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fffdf8; border: 1.5px solid #b9ab92; border-radius: 9px; padding: .55rem .7rem; line-height: 1.45;
}
textarea { resize: vertical; min-height: 4rem; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(18, 116, 133, .25); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--bougain); vertical-align: -.15em; margin-right: .35rem; }
.field.check { display: flex; gap: .5rem; align-items: flex-start; }
.field.check label { font-weight: 500; }
.input-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.input-row input { flex: 1 1 12rem; width: auto; }
.inline-form label { margin-top: .8rem; }
td input[type="datetime-local"] { width: auto; padding: .25rem .4rem; font-size: .88rem; }

.flash { border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 1.2rem; border: 1px solid; position: relative; }
.flash-success { background: var(--ok-soft); border-color: #9bcfac; }
.flash-info { background: var(--teal-soft); border-color: #a9d2d7; }
.flash-warn { background: var(--warn-soft); border-color: #e7c57a; }
.flash-error { background: var(--err-soft); border-color: #eda4a9; }
.flash ul { margin-bottom: 0; }

details > summary { cursor: pointer; font-weight: 700; }
.help { margin: 0 0 1rem; }
.help summary { display: inline-flex; align-items: center; gap: .45rem; color: var(--teal); font-size: .92rem; }
.help summary span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--teal); color: #fff; font-size: .85rem; }
.help-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-top: .5rem; max-width: 46rem; }

.table-wrap { position: relative; overflow-x: auto; margin: 0 0 1rem; border-radius: 10px; }
table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: .94rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sand); font-weight: 700; }
tbody tr:hover { background: #fffaf0; }

/* Accueil */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; margin: 1rem 0 2.5rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-video { margin: 0; }
.hero-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; background: #1d2a30; box-shadow: var(--shadow); }
.hero-video figcaption { margin-top: .5rem; }
.hero-art { position: relative; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #ffe2a8 0%, #ffc98a 45%, #f6a77a 70%); box-shadow: var(--shadow); }
.sun { position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #fff4cf; top: 12%; right: 14%; box-shadow: 0 0 60px 20px rgba(255, 244, 207, .7); animation: float 9s ease-in-out infinite; }
.facade { position: absolute; bottom: 24%; border-radius: 6px 6px 0 0; }
.facade::before { content: ""; position: absolute; inset: 18% 14% auto 14%; height: 26%; background: repeating-linear-gradient(90deg, rgba(11,85,99,.55) 0 18%, transparent 18% 30%); border-radius: 3px; }
.f1 { left: 6%; width: 30%; height: 42%; background: #e8b04b; }
.f2 { left: 37%; width: 26%; height: 52%; background: #f2c76e; }
.f2::after { content: ""; position: absolute; top: -12%; left: 20%; width: 60%; height: 14%; background: #b0145a; border-radius: 40% 40% 0 0; }
.f3 { left: 64%; width: 30%; height: 38%; background: #dc9a35; }
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: linear-gradient(180deg, #127485, #0b5563); }
.sea::before { content: ""; position: absolute; left: -10%; right: -10%; top: -8px; height: 16px; background: radial-gradient(circle at 12px 16px, transparent 11px, #127485 12px) repeat-x; background-size: 24px 16px; animation: waves 6s linear infinite; }
@keyframes waves { to { transform: translateX(24px); } }
@keyframes float { 50% { transform: translateY(8px); } }
.how-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.how-steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1rem 3.4rem; position: relative; box-shadow: var(--shadow); }
.how-steps li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--ochre); color: var(--ink); font-weight: 800; }

/* Tableau de bord */
.next-step { background: linear-gradient(120deg, #fff 0%, #fff 60%, var(--bougain-soft) 100%); }
.mission-list { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.mission-card { position: relative; overflow: hidden; padding-top: 1.6rem; }
.mission-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: linear-gradient(90deg, var(--ochre), var(--bougain), var(--teal-2)); }
.mission-card h2 a, .mission-card h3 a { text-decoration: none; color: var(--ink); }
.mission-card h2 a:hover, .mission-card h3 a:hover { color: var(--bougain); text-decoration: underline; }
.mission-card-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.terrain { font-size: .82rem; font-weight: 700; color: var(--teal-2); text-transform: uppercase; letter-spacing: .06em; }
progress { width: 100%; height: .7rem; border-radius: 999px; overflow: hidden; border: 0; background: var(--sand); accent-color: var(--teal-2); appearance: none; }
progress::-webkit-progress-bar { background: var(--sand); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--teal-2), var(--teal)); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--teal-2); border-radius: 999px; }
.link-list { list-style: none; padding: 0; }
.class-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.code-big { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2.3rem; font-weight: 800; letter-spacing: .25em; color: var(--bougain); margin: .2rem 0 .6rem; }
.small-code { font-size: 1.1rem; letter-spacing: .15em; }

/* Étapes */
.stepper ol { position: relative; list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1.4rem; overflow-x: auto; scrollbar-width: thin; }
.stepper li { flex: 1 0 8.5rem; margin: 0; }
.stepper a, .stepper .locked { display: flex; gap: .5rem; align-items: center; padding: .55rem .6rem; border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); height: 100%; font-size: .88rem; line-height: 1.25; }
.stepper .locked { color: var(--ink-2); background: transparent; border-style: dashed; }
.step-num { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-weight: 800; font-size: .85rem; }
.stepper li.done .step-num { background: var(--ok); color: #fff; }
.stepper li.current a { border-color: var(--bougain); background: var(--bougain-soft); font-weight: 700; }
.stepper li.current .step-num { background: var(--bougain); color: #fff; }
.step-head h1 { margin-top: 0; }
.todo li::marker { content: "○ "; color: var(--bougain); }
.ok-line { color: var(--ok); font-weight: 700; }
.step-validate { border-top: 5px solid var(--teal-2); }

.mentor summary { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; background: var(--ochre-soft); border-radius: var(--radius); }
.mentor[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
.mentor-avatar { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--ochre); font-family: var(--serif); font-weight: 800; }
.mentor-body { background: #fffaf0; border: 1px solid #efd79f; border-top: 0; padding: 1rem 1.2rem .3rem; border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 1.2rem; }
.mentor { margin-bottom: 1.2rem; }

.mail { border-top: 5px solid var(--teal); }
.mail-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; font-size: .9rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); padding-bottom: .5rem; }
.fiche-item { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 .5rem; }
.fiche-item summary { padding: .7rem 1rem; }
.fiche-body { padding: 0 1rem .4rem; }

.quiz-q { border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; margin: 0 0 .8rem; background: #fffdf8; }
.quiz-q legend { font-weight: 700; padding: 0 .3rem; }
.choice { font-weight: 500; display: block; padding: .3rem .2rem; border-radius: 6px; }
.choice:hover { background: var(--teal-soft); }
.quiz-list { padding-left: 1.2rem; }
.quiz-list .quiz-q.ok { border-left: 5px solid var(--ok); }
.quiz-list .quiz-q.ko { border-left: 5px solid var(--ochre); }
.choices { list-style: none; padding: 0; }
.choices li { padding: .2rem .4rem; border-radius: 6px; }
.choices li.good { background: var(--ok-soft); }
.choices li.picked:not(.good) { background: var(--err-soft); }
.tag { font-size: .75rem; font-weight: 700; color: var(--ok); }
.tag-you { color: var(--ink-2); }
.explain { background: var(--paper); border-radius: 8px; padding: .6rem .8rem; margin-top: .5rem; border: 1px dashed var(--line); }

.persona { display: flex; gap: .9rem; align-items: center; margin-bottom: .6rem; }
.avatar { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 1.2rem; color: #fff; background: radial-gradient(circle at 30% 30%, var(--bougain), var(--teal)); flex: none; box-shadow: 0 0 0 4px var(--ochre-soft); }
.chat { list-style: none; padding: 0; display: grid; gap: .7rem; margin: 1rem 0; max-height: 34rem; overflow-y: auto; }
.msg { padding: .7rem .9rem; border-radius: 14px; max-width: 88%; }
.msg p:last-child { margin-bottom: 0; }
.msg .who { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; color: var(--ink-2); }
.msg-persona { background: var(--teal-soft); border-bottom-left-radius: 4px; }
.msg-me { background: var(--ochre-soft); justify-self: end; border-bottom-right-radius: 4px; }

.livrable .version-current { background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; margin: .5rem 0 .8rem; }
.deposit summary, .versions summary, .ai-feedback summary { padding: .5rem 0; color: var(--teal); }
.user-text { max-height: 22rem; overflow: auto; }
.files { list-style: "📎 "; }
.preretour { display: block; margin: .6rem 0; }
.feedback-item { border-left: 4px solid var(--teal-2); padding: .3rem .9rem; margin: .5rem 0; background: var(--teal-soft); border-radius: 0 8px 8px 0; }
.version { border-top: 1px dashed var(--line); padding-top: .6rem; margin-top: .6rem; }

.imprevu { border: 2px solid var(--ochre); background: linear-gradient(180deg, #fff8e6, #fff 40%); }
.timer { font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: .5rem .8rem; border-radius: 8px; }
.timer-left { margin-left: .5rem; }

/* Panneau « Ma mission » */
.side-card { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.side-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(232, 176, 75, .28); }
.side-kicker { text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; font-weight: 800; color: var(--ochre); margin: 0; }
.side-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; margin: .2rem 0 .7rem; }
.resume { padding-left: 1.1rem; margin-bottom: .6rem; font-size: .93rem; }
.side-card .small, .side-card strong { color: #fff; }
.side-alert { background: var(--warn-soft); border: 2px solid var(--ochre); border-radius: var(--radius); padding: .8rem 1rem; }
.side-links ul { list-style: none; padding: 0; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-links li { margin: 0; border-bottom: 1px solid var(--line); }
.side-links li:last-child { border: 0; }
.side-links a { display: flex; justify-content: space-between; padding: .65rem 1rem; text-decoration: none; font-weight: 600; }
.side-links a:hover { background: var(--teal-soft); }
.count { background: var(--sand); border-radius: 999px; padding: 0 .55rem; font-size: .82rem; color: var(--ink); }

/* Correction */
.grading-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.grading-side { position: sticky; top: .8rem; max-height: calc(100vh - 1.6rem); overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.live-note { position: sticky; top: -1rem; background: var(--bougain-soft); padding: .6rem .8rem; border-radius: 10px; font-size: 1.1rem; z-index: 2; }
.criterion-form { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin-bottom: 1rem; }
.criterion-form legend { font-family: var(--serif); font-size: 1.05rem; padding: 0 .3rem; }
.indicator { border-bottom: 1px dashed var(--line); padding: .5rem 0; }
.ind-q { margin: 0 0 .3rem; font-size: .93rem; }
.ind-q .small { display: block; }
.ans-row { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.ans-opt { font-weight: 500; font-size: .92rem; margin: 0; }
.crit-score { font-weight: 700; color: var(--teal); }
.result-head .big-note { font-family: var(--serif); margin: 0; }
.result-head .note { font-size: 3.2rem; font-weight: 800; color: var(--bougain); }
.result-head .sur { font-size: 1.4rem; color: var(--ink-2); }
.ans-oui { color: var(--ok); font-weight: 700; } .ans-partiel { color: var(--warn); font-weight: 700; } .ans-non { color: var(--err); font-weight: 700; }

.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1rem; margin: 0 0 .6rem; }
.faq > div { padding-top: .5rem; }
.preview-steps { padding-left: 1.2rem; }
.error-page { padding-top: 4rem; }

/* Pied de page */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.5rem 0; font-size: .92rem; }
.footer-row ul { list-style: none; display: flex; gap: 1.2rem; flex-wrap: wrap; padding: 0; }

/* Célébration */
.confetti { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 200; pointer-events: none; border-radius: 2px; animation: fall 1.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }

@media (max-width: 960px) {
  main.with-aside { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: 1; }
  .side-links { display: block; }
  .grading-layout { grid-template-columns: 1fr; }
  .grading-side { position: static; max-height: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-height: 260px; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .header-tools .who { display: none; }
  .card { padding: 1rem; }
  .msg { max-width: 100%; }
}
html.p-calm *, html.p-calm *::before, html.p-calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-header, .site-footer, .side, .stepper, .help, form { display: none !important; } body { background: #fff; } }

/* ---------- v1 : univers, 5 temps, dossier ---------- */
[data-univers] { --u-accent: var(--teal); --u-accent-contraste: #fff; --u-surface: var(--paper); --u-texte: var(--ink); --u-ligne: var(--line); }
.univers-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.univers-card { position: relative; border-top: 6px solid var(--u-accent); background: var(--u-surface); color: var(--u-texte); }
.univers-card h3, .univers-card .small, .univers-card p { color: var(--u-texte); }
.univers-card .kicker { color: var(--u-texte); opacity: 1; }
.univers-card h3 a { color: inherit; }
.idea-card { border: 2px dashed var(--teal-2); background: var(--paper); position: relative; }
.idea-card h2 a::after, .idea-card h3 a::after { content: ""; position: absolute; inset: 0; }
.idea-card:focus-within { outline: 3px solid var(--bougain); outline-offset: 2px; }
.univers-card h3 a::after { content: ""; position: absolute; inset: 0; }
.univers-card:focus-within { outline: 3px solid var(--bougain); outline-offset: 2px; }
.univers-art { display: block; width: 100%; height: 8.75rem; object-fit: cover; border-radius: 10px; margin-bottom: .6rem; background: var(--sand); }
.univers-visual, .univers-motion { display: block; }
.univers-photo { margin: 0 0 1.2rem; }
.univers-photo figcaption { overflow-wrap: anywhere; }
.univers-visual .univers-art { width: 100%; height: auto; aspect-ratio: 16 / 7; }
.univers-visual .univers-still { display: none; }
html.p-calm .univers-motion { display: none; }
html.p-calm .univers-visual .univers-still { display: block; }
.univers-hero .univers-visual { max-width: 800px; margin: 0 auto 1.2rem; }
.univers-visual .univers-clip { display: none; }
.univers-visual.is-playing .univers-clip { display: block; }
.univers-visual.is-playing .univers-poster { display: none; }
html.p-calm .univers-visual .univers-clip { display: none; }
html.p-calm .univers-visual .univers-poster { display: block; }
@media (prefers-reduced-motion: reduce) {
  .univers-visual.is-playing .univers-clip { display: none; }
  .univers-visual.is-playing .univers-poster { display: block; }
}
.univers-soon { opacity: 1; }
.univers-hero { border-top: 8px solid var(--u-accent); }
.lead { font-size: 1.12rem; }
.notion .card-head .kicker, .scenario .kicker, .hypothese .kicker { margin: 0; }
.glossaire { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; background: var(--sand); padding: .8rem 1rem; border-radius: 10px; }
.glossaire dt { font-weight: 700; }
.glossaire dd { margin: 0; }
@media (max-width: 40rem) { .glossaire { grid-template-columns: 1fr; } .glossaire dd { margin-bottom: .5rem; } }
.situation { background: var(--teal-soft); padding: .8rem 1rem; border-radius: 10px; margin-bottom: .8rem; }
.choix-list { display: grid; gap: .5rem; margin-bottom: 1rem; }
.choix-item { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.choix-item summary { cursor: pointer; padding: .7rem 1rem; font-weight: 600; }
.choix-item[open] summary { border-bottom: 1px solid var(--line); }
.choix-body { padding: .7rem 1rem; }
.verdict { display: inline-block; padding: .15rem .6rem; border-radius: 999px; margin: .3rem 0 .6rem; }
.verdict-pertinent { background: var(--ok-soft); color: var(--ok); }
.verdict-discutable { background: var(--warn-soft); color: var(--warn); }
.verdict-risque { background: var(--err-soft); color: var(--err); }
.verdict-pertinent::before { content: "✓ "; } .verdict-discutable::before { content: "~ "; } .verdict-risque::before { content: "! "; }
.ma-reponse, .expert { border-radius: 10px; padding: .8rem 1rem; margin-bottom: .8rem; }
.ma-reponse { background: var(--sand); }
.expert { background: var(--teal-soft); border-left: 4px solid var(--teal); }
.points-cles li::marker { content: "✓  "; color: var(--ok); }
.consigne-act { background: var(--ochre-soft); }
.dossier-mission h2 { margin-top: .2rem; }
.dossier-item { margin-bottom: 1rem; }
.dossier .user-text, .dossier-mission .user-text { white-space: pre-line; background: var(--sand); padding: .5rem .8rem; border-radius: 8px; }

/* Vidéo d'introduction de l'univers. Pas de lecture automatique : le son ne part
   jamais tout seul (RGAA). Sous-titres fournis par la piste WebVTT, transcription
   en clair sous la vidéo. */
.univers-video { margin: 1.2rem 0 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; box-shadow: var(--shadow); }
.univers-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #08191e; border-radius: 10px; }
.univers-video figcaption { margin-top: .5rem; color: var(--ink-2); }
.univers-video .transcript { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.univers-video .transcript summary { cursor: pointer; font-weight: 600; }
.transcript-lines { margin: .6rem 0 0; padding-left: 1.2rem; }
.transcript-lines li { margin-bottom: .35rem; }
.transcript-lines .t { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; margin-right: .4rem; }

/* Parcours et planning de classe (13/11/2026) */
.parcours-bar { width: 100%; height: 14px; margin: .4rem 0; accent-color: var(--accent, #0c5b6b); }
.planning-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.planning-list li { padding-left: .8rem; border-left: 3px solid var(--accent, #0c5b6b); }
.planning-list li.is-past { opacity: .7; border-left-style: dashed; }
.planning-date { font-weight: 700; }
.planning-admin { padding-left: 1.1rem; }

/* Ticket 59 : consignes, synthèse et verdicts (rouge sur blanc : contraste > 7:1). */
.writing-guide p { margin: .35rem 0; }
.writing-guide .reflection { border-left: 3px solid currentColor; padding-left: .65rem; }
.livrable > summary { padding: .8rem; cursor: pointer; }
.livrable-body { padding-top: .75rem; }
.quiz-verdict { color: #a01428; background: #fff; font-weight: 800; display: inline-block; padding: .15rem .35rem; }
.dialogue-table { width: 100%; table-layout: fixed; }
.dialogue-table td, .dialogue-table th { overflow-wrap: anywhere; vertical-align: top; }
.dialogue-table caption { text-align: left; font-weight: 700; }
.chat-error { color: #a01428; }

.context-panel { width: min(42rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); border: 2px solid var(--teal); border-radius: var(--radius); padding: 1.2rem; overflow: auto; color: var(--ink); background: var(--paper); }
.context-panel::backdrop { background: rgb(0 0 0 / .45); }
.context-panel .main-col { min-width: 0; }
@media (max-width: 960px) { .side-links { display: block; } }

/* Ticket 72 : cibles des actions de compte et des choix de confirmation. */
.account-action { min-height: 44px; min-width: 44px; }
.account-choice { display: flex; align-items: center; gap: .5rem; }
.account-choice label { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.account-choice input { flex: 0 0 auto; }

/* Ticket 100 : choix lisibles au clavier, sur mobile et en mode DYS. */
.retours-form .check { display: flex; align-items: center; gap: .5rem; margin-block: .25rem; }
.retours-form .check input { flex: 0 0 auto; }
.retours-form .check label { display: flex; align-items: center; min-height: 44px; margin: 0; font-weight: 500; cursor: pointer; }
.retours-form .user-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.retours-progress { width: 100%; height: 1rem; accent-color: var(--teal); }
@media (max-width: 640px) {
  .display-body { left: 0; right: auto; width: min(17rem, calc(100vw - 2rem)); box-sizing: border-box; }
}

/* Recette : contrôles alignés, attributions cliquables et dialogue mobile. */
.check { display: flex; align-items: center; gap: .5rem; }
.check input { flex: 0 0 auto; }
.check label { margin-bottom: 0; }
.univers-card figcaption a { position: relative; z-index: 2; }
@media (max-width: 600px) {
  .dialogue-table, .dialogue-table tbody, .dialogue-table tr, .dialogue-table td { display: block; width: auto; }
  .dialogue-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dialogue-table td::before { display: block; font-weight: 700; content: attr(data-label); }
  .dialogue-table tr { margin-bottom: 1rem; border-bottom: 2px solid var(--line); }
}
/* Tableaux dans les réponses (#108) */
.user-table { overflow-x: auto; margin: .4rem 0 .8rem; max-width: 100%; }
.user-table:focus-visible { outline: 3px solid var(--focus, #a01450); outline-offset: 2px; }
.user-table table { border-collapse: collapse; min-width: 60%; background: var(--paper, #fff); color: var(--ink, #1b2330); }
.user-table th, .user-table td { border: 1px solid #8a94a3; padding: .35rem .55rem; text-align: left; vertical-align: top; }
.user-table th { background: #e7edf2; color: #1b2330; font-weight: 700; }
.user-text .user-table { white-space: normal; }
.tbl-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .3rem 0; }
.tbl-tools button, .tbl-editor button { min-height: 44px; min-width: 44px; }
.tbl-editor { border: 2px solid #8a94a3; border-radius: 8px; padding: .8rem; margin: .5rem 0; background: var(--paper, #fff); }
.tbl-editor .tbl-grid { overflow-x: auto; }
.tbl-editor table { border-collapse: collapse; }
.tbl-editor td, .tbl-editor th { border: 1px solid #8a94a3; padding: 2px; }
.tbl-editor textarea { min-width: 8rem; min-height: 44px; font: inherit; border: 0; padding: .3rem .4rem; resize: vertical; }
.tbl-editor thead textarea { font-weight: 700; background: #e7edf2; color: #1b2330; }
.tbl-preview { margin: .3rem 0 .8rem; }
.tbl-preview > summary { cursor: pointer; min-height: 44px; display: list-item; padding: .6rem 0; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .tbl-editor { transition: none; } }
.tbl-help { margin: .2rem 0 .8rem; font-size: .92rem; }
.tbl-help > summary { cursor: pointer; min-height: 44px; display: list-item; padding: .6rem 0; }
.tbl-help pre { white-space: pre; overflow-x: auto; background: var(--sand); padding: .5rem .7rem; border-radius: 6px; }

/* Ticket 109 : picto discret de signalement, fenêtre et retour étudiant. */
.signalement-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); border: 2px solid var(--teal); box-shadow: var(--shadow); text-decoration: none; }
.signalement-fab:hover { background: var(--teal-soft); }
.signalement-fab:focus-visible { outline: 3px solid var(--bougain); outline-offset: 2px; }
.signalement-dialog { width: min(28rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); border: 2px solid var(--teal); border-radius: var(--radius); padding: 1.2rem; color: var(--ink); background: var(--paper); }
.signalement-dialog::backdrop { background: rgb(0 0 0 / .45); }
.signalement-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.signalement-dialog-head h2 { margin: 0; font-size: 1.2rem; }
.signalement-dialog textarea { width: 100%; box-sizing: border-box; }
.signalement-close { min-width: 44px; min-height: 44px; }
.signalement-error { color: #a01428; }
.signalement-toast { position: fixed; right: 4.5rem; bottom: 1rem; z-index: 40; max-width: calc(100vw - 6rem); }
.signalement-toast:not(:empty) { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); border-radius: 10px; padding: .55rem .9rem; font-weight: 600; box-shadow: var(--shadow); }
.signalement-fixed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.signalement-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 32rem; }
@media print { .signalement-fab, .signalement-toast { display: none !important; } }

/* Cadre commun : après les grilles métier, conserver le repli à fort zoom. */
@media (max-width: 650px) {
  .grid-2, .grid-3, .row-2, .row-3 { grid-template-columns: minmax(0, 1fr); }
  .brand { flex-wrap: wrap; max-width: 100%; }
  .main-nav ul { flex-wrap: wrap; }
  .main-nav li, .header-tools .display-panel, .header-tools .role-picker { min-width: 0; max-width: 100%; }
  .main-nav a, .header-tools summary { overflow-wrap: anywhere; max-width: 100%; }
  .main-col { overflow-wrap: anywhere; }
}

/* L2 : une priorité, puis les détails du travail. Les textes restent entiers. */
.student-overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; }
.student-overview .card { margin-bottom: .5rem; padding: 1rem; }
.student-overview h2 { margin-top: 0; }
.student-overview p { margin-bottom: .6rem; }
.terrain-heading { display: flex; gap: 1rem; align-items: center; margin-bottom: .6rem; }
.terrain-heading > div { min-width: 0; }
.terrain-photo { margin: 0; flex: 0 0 150px; max-width: 40%; }
.terrain-photo img { display: block; width: 100%; height: 85px; object-fit: contain; background: var(--sand); border-radius: 8px; }
.terrain-photo figcaption { font-size: .72rem; line-height: 1.4; margin-top: .25rem; overflow-wrap: anywhere; }
.home-alert { padding: .6rem; border-left: 3px solid var(--warn); background: var(--warn-soft); }
.compact-missions { padding: 0; list-style: none; }
.compact-missions > li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .5rem 0; }
.compact-missions > li > div { min-width: 0; max-width: 100%; }
/* Garder toute la pastille lisible, même avec les polices Linux et DYS 130 %. */
.compact-missions .pill-facultative { max-width: 100%; white-space: normal; }
.compact-missions p { margin: .2rem 0 0; }
.secondary-section, .activity-page, .rubric-page, .mission-tools { margin-block: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: .6rem .8rem; }
.secondary-section > summary, .activity-page > summary, .rubric-page > summary, .mission-tools > summary { cursor: pointer; min-height: 44px; padding-block: .4rem; font-weight: 600; }
.activity-page > .card { margin-top: .6rem; box-shadow: none; border: 0; padding: .5rem 0; }
.rubric-page .field { margin-top: .6rem; }
.home-video { margin-block: .8rem; }
.mission-identity { padding-block: .4rem; border-bottom: 1px solid var(--line); }
.mission-identity p { margin-bottom: .2rem; }
.save-state { padding: .6rem; border: 1px solid var(--line); border-radius: 8px; }
.selected-page { font-weight: bold; }
@media (max-width: 650px) {
  .student-overview { grid-template-columns: minmax(0, 1fr); }
  .terrain-heading { gap: .6rem; flex-wrap: wrap; }
  .terrain-photo { flex-basis: 120px; }
  .compact-missions > li { flex-wrap: wrap; gap: .3rem; }
  .activity-page, .rubric-page { padding-inline: .6rem; }
}

/* Accueil : « Des missions pour couvrir le programme » (tableau séances × missions) */
.mx { margin: 3rem 0 2rem; padding: 2rem clamp(1rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); border-top: 6px solid var(--teal); }
.mx-head h2 { margin: .1rem 0 .4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.mx-head .lead { max-width: 60rem; }
.mx-kpis { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.mx-kpis li { background: var(--teal-soft); border-radius: var(--radius); padding: .8rem 1rem; display: flex; gap: .8rem; align-items: center; }
.mx-kpis strong { font-family: var(--serif); font-size: 1.9rem; color: var(--teal); line-height: 1; }
.mx-kpis span { color: var(--ink); font-size: .95rem; line-height: 1.35; }
.mx-tools { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: .6rem 0; }
.mx-tools[hidden] { display: none; }
.mx-seg { display: inline-flex; border: 1px solid var(--teal); border-radius: 999px; overflow: hidden; }
.mx-seg-btn { font: inherit; border: 0; background: var(--paper); color: var(--teal); padding: .55rem 1rem; min-height: 44px; cursor: pointer; }
.mx-seg-btn[aria-pressed="true"] { background: var(--teal); color: #fff; font-weight: 700; }
.mx-seg-btn:focus-visible, .mx-colbtn:focus-visible, .mx-rowbtn:focus-visible, .mx-scroll:focus-visible { outline: 3px solid var(--bougain); outline-offset: 2px; }
.mx-hint { color: var(--ink-2); margin: 0; }
.mx-live { min-height: 1.6em; margin: .2rem 0 .6rem; font-weight: 600; color: var(--teal); }
.mx-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.mx-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; background: var(--paper); }
.mx-table caption { text-align: left; padding: .7rem 1rem; color: var(--ink-2); font-size: .88rem; caption-side: top; }
.mx-table thead th { position: sticky; top: 0; background: var(--sand); border-bottom: 2px solid var(--line); padding: 0; vertical-align: bottom; z-index: 1; }
.mx-corner, .mx-cov-h { text-align: left; padding: .6rem .8rem !important; font-size: .85rem; color: var(--ink-2); }
.mx-corner { position: sticky; left: 0; z-index: 2 !important; min-width: 19rem; }
.mx-colbtn { font: inherit; background: none; border: 0; width: 100%; min-width: 2.6rem; min-height: 44px; padding: .5rem .15rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .15rem; color: var(--ink); }
.mx-id { font-weight: 700; }
.mx-tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: .05rem .35rem; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.mx-tag-avenir { background: var(--bougain-soft); color: var(--bougain-2); }
.mx-row { position: sticky; left: 0; background: var(--paper); z-index: 1; padding: 0; text-align: left; border-right: 1px solid var(--line); }
.mx-rowbtn { font: inherit; background: none; border: 0; width: 100%; min-height: 44px; padding: .55rem .8rem; cursor: pointer; display: flex; gap: .6rem; align-items: flex-start; text-align: left; color: var(--ink); }
.mx-s { flex: none; font-weight: 700; color: #fff; background: var(--teal); border-radius: 8px; padding: .1rem .45rem; font-size: .85rem; }
.mx-rt { display: flex; flex-direction: column; }
.mx-t { font-weight: 700; }
.mx-o { color: var(--ink-2); font-size: .85rem; line-height: 1.35; font-weight: 400; }
.mx-table tbody tr:nth-child(even) td, .mx-table tbody tr:nth-child(even) .mx-row { background: var(--cream); }
.mx-table td, .mx-table tbody th { border-bottom: 1px solid var(--line); }
.mx-cell { text-align: center; font-size: 1.05rem; padding: .25rem .1rem; transition: opacity .2s, background-color .2s; }
.mx-f { color: var(--teal); }
.mx-cell.mx-f span[aria-hidden] { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--teal-soft); }
.mx-p { color: var(--warn); }
.mx-cell.mx-p span[aria-hidden] { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ochre-soft); }
.mx-n { color: #8c8170; }
.mx-table td.is-fac-cell { opacity: .55; }
.mx-col.is-fac .mx-id { color: var(--ink-2); }
.mx-cov { padding: .4rem .8rem; min-width: 9.5rem; white-space: nowrap; border-right: 2px solid var(--line); }
.mx-bar { display: block; height: .45rem; background: var(--sand); border-radius: 999px; overflow: hidden; margin-bottom: .25rem; }
.mx-bar-f { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); border-radius: 999px; }
.mx-w0 { width: 0; } .mx-w1 { width: 10%; } .mx-w2 { width: 20%; } .mx-w3 { width: 30%; } .mx-w4 { width: 40%; } .mx-w5 { width: 50%; }
.mx-w6 { width: 60%; } .mx-w7 { width: 70%; } .mx-w8 { width: 80%; } .mx-w9 { width: 90%; } .mx-w10 { width: 100%; }
.mx-cov-t { font-size: .85rem; color: var(--ink-2); }
.mx-table tbody tr:hover td, .mx-table tbody tr:hover .mx-row { background: var(--teal-soft); }
.mx-table .is-sel { background: var(--ochre-soft) !important; }
.mx-table tr.is-sel td, .mx-table tr.is-sel .mx-row { background: var(--ochre-soft) !important; }
.mx-table .is-dim { opacity: .3; }
.mx-table.only-f .mx-p span[aria-hidden] { visibility: hidden; }
.mx-colbtn[aria-pressed="true"], .mx-rowbtn[aria-pressed="true"] { box-shadow: inset 0 -4px 0 var(--bougain); }
.mx-explain { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.mx-legend { display: grid; gap: .6rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: .8rem 0 1rem; }
.mx-legend div { display: flex; flex-direction: column; gap: .15rem; }
.mx-legend dt { font-weight: 700; display: flex; gap: .4rem; align-items: center; }
.mx-legend dd { margin: 0; color: var(--ink-2); font-size: .93rem; }
.mx-explain p { max-width: 62rem; }
@media (max-width: 650px) { .mx-corner { min-width: 11rem; } .mx-o { display: none; } .mx-cov { min-width: 8rem; } }
@media print { .mx-tools, .mx-live { display: none !important; } .mx-scroll { overflow: visible; } }
