/* 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 { position: relative; }
.display-panel 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 { 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: .4rem 0 0; padding: .45rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; display: inline-block; font-size: .92rem; }
.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-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(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: none; }
  .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(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-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; }
