/* Déclic Brevet: the single application stylesheet.
   Built from six historical layers, then flattened on 12 November 2026: declarations that a later
   rule for the same selector overrode were removed, and repeated selectors were merged into their
   first rule wherever nothing in between set the same property (verified with
   tools/style-snapshot.cjs: identical computed styles on 18 views). Sections still apply in order,
   so a later section may refine an earlier one: add new rules to the section of their component.
   Theme tokens are in the « site theme » section; the dark mode is at the end. */
/* ==== base: layout, typography, buttons, cards ==== */
:root{--ink:#193e35;--light:#e4ebdb;--line:#e1e5db;--serif:'playfairdisplay-regular',Georgia,'Times New Roman',serif;--sans:'sourcesanspro-regular',Arial,sans-serif;--figures:'poppins-regular',Arial,sans-serif;--text:#212529;/* site body text */
  --heading:#252930;/* site heading colour */
  --ink:#2A5F62;/* brand teal:buttons, active states, brand mark */
  --ink-hover:#245153;--ink-deep:#1E4447;--brand-light:#9CCACE;--accent:#2A5F62;--paper:#fff;--white:#fff;--panel:#EEF2F4;/* site bg-brand-light */
  --light:#E9F1F0;/* site services band */
  --line:#dee2e6;--field:#ced4da;--muted:#5f6870;/* Bootstrap grey darkened to 4.7:1 or more on every light background (WCAG AA) */ --danger:#b02a37;--page:#F3F6F6;/* soft teal-grey page so white cards read */
  --sun:#F2C14E;/* logo ochre, brightened:highlighter and stickers */
  --sun-soft:#FFF4D1;/* post-it notes */
  --sun-ink:#6E5110;--mint:#DCEEEB;/* logo light teal, softened */
  --radius:16px;--shadow-sm:0 .125rem .25rem rgba(0,0,0,.075);/* bootstrap 5 .shadow-sm */
  --shadow:0 .5rem 1rem rgba(0,0,0,.15);/* bootstrap 5 .shadow */
  --shadow-lg:0 1rem 3rem rgba(0,0,0,.175)}
*{box-sizing:border-box}
body{margin:0;font:15px/1.6 var(--sans)}
button{font:inherit;color:inherit;cursor:pointer;border:0}
input,select,textarea{font:inherit;color:inherit}
button:disabled{cursor:not-allowed;opacity:.5}
h1{margin-top:0;margin-bottom:20px}
h2{margin-top:0}
h3{margin-top:0;font-size:17px}
p{margin-top:0;color:var(--muted)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline-offset:4px}
.skip{position:fixed;top:-100px;left:12px;z-index:100;background:white;padding:12px}
.skip:focus{top:12px}
.brand{display:flex;gap:12px;text-decoration:none;align-items:center;font:34px/1 var(--serif)}
.brand b{font-weight:400;background:var(--ink);color:var(--paper);width:45px;height:47px;border-radius:10px;text-align:center;font-size:42px}
.brand small{display:block;font:8px var(--sans)}
.eyebrow{font-size:10px}
.tag{font-size:10px}
main{padding:44px 48px 50px;max-width:1500px;margin:auto;min-height:calc(100vh - 150px)}
.hero{display:grid;align-items:center;padding-bottom:37px;border-bottom:1px solid var(--line)}
.hero h1 em{font-weight:400}
.hero .eyebrow{margin-bottom:22px}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;text-decoration:none;line-height:1.5}
.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;text-decoration:none;line-height:1.5;border:1px solid #c4cebb}
.quiet{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:5px;font-weight:600;line-height:1.5;background:transparent;color:var(--muted)}
.actions{display:flex;align-items:center;flex-wrap:wrap}
.hero-art{position:relative;display:flex;justify-content:center;align-items:center}
.paper{border:1px solid #d4dcca;transform:rotate(-6deg)}
.paper:after{content:'';position:absolute;inset:7px -10px -9px 8px;border:1px solid #ced8c1;transform:rotate(11deg)}
.paper strong{display:block;font:32px/1.12 var(--serif)}
.section-heading{display:flex;justify-content:space-between;gap:15px;margin:32px 0 22px}
.section-heading h2{margin:0}
.section-heading p{margin:0}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.subject{position:relative;display:flex;flex-direction:column}
.subject-top{display:flex}
.subject h3{font:25px var(--serif);margin-bottom:10px}
.practice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.callout{font-size:12px;margin:25px 0}
.callout p:last-child{margin-bottom:0}
.callout a{font-weight:600}
.resume-banner{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}
.resume-banner p{margin:0;font-size:12px}
.resume-banner strong{display:block;color:var(--ink);font-size:14px}
footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:20px 48px;color:var(--muted)}
dialog{padding:32px;width:590px;max-width:calc(100vw - 30px);max-height:90vh}
dialog::backdrop{backdrop-filter:blur(3px)}
dialog h2{font-size:35px}
dialog p{font-size:13px}
.close{float:right;background:none;font-size:24px}
.option{display:block;padding:12px 14px;margin:10px 0;font-size:13px}
.option small{display:block;margin-left:25px;color:var(--muted);font-size:11px}
.option input{margin-right:8px;accent-color:var(--ink)}
fieldset{border:0;padding:0;margin:20px 0}
legend{font-size:12px;font-weight:600}
.science-choice{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;font-size:12px}
#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 18px;border-radius:6px;box-shadow:0 3px 20px #0002;z-index:100;max-width:90vw;font-size:12px}
#notice:empty{display:none}
.exam-heading{display:flex;justify-content:space-between;gap:25px;align-items:start}
.exam-heading h1{font-size:40px}
.exam-heading .eyebrow{margin-bottom:12px}
.clock-box{text-align:right;font-size:11px;min-width:150px}
.clock-box b{display:block;font:32px var(--serif);font-variant-numeric:tabular-nums;line-height:1.25}
.exam-tools{position:sticky;top:0;z-index:8;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;gap:15px;backdrop-filter:blur(8px);margin-bottom:20px;font-size:11px}
.exam-tools #save-state{color:var(--muted)}
.stage-tabs{display:flex;gap:8px;margin:15px 0 22px;flex-wrap:wrap}
.stage-tabs span{font-size:10px}
.exam-layout{display:grid;grid-template-columns:1fr 174px;gap:25px;align-items:start}
.question-list{min-width:0}
.question{margin-bottom:20px;scroll-margin-top:90px}
.question-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}
.points{font-size:10px;white-space:nowrap}
.question h3{white-space:pre-line}
.document{padding:22px;margin:10px 0 25px;white-space:pre-line}
.question textarea{width:100%;border:1px solid #cbd5c1;padding:14px;resize:vertical;font-size:14px;line-height:1.75}
.question textarea.long{min-height:330px}
.question input.numeric{max-width:100%;padding:12px;border:1px solid #cbd5c1}
.answer-meta{font-size:10px;color:var(--muted);text-align:right}
.navigator{position:sticky;top:90px;padding:15px}
.navigator p{margin-bottom:10px}
.nav-grid{display:flex;gap:6px;flex-wrap:wrap}
.nav-grid a{display:flex;width:32px;height:32px;align-items:center;justify-content:center;text-decoration:none;font-size:11px}
.navigator small{display:block;font-size:10px;margin-top:14px;color:var(--muted)}
.navigator .primary{width:100%;margin-top:20px;padding:10px;font-size:11px}
.draw-area{border:1px solid #cbd5c1;background:white;width:100%;height:auto;aspect-ratio:12/5;display:block;touch-action:none}
.drawing-tools{display:flex;justify-content:space-between;margin:8px 0 18px;font-size:10px;color:var(--muted)}
.drawing-tools button{background:none;text-decoration:underline;font-size:10px}
.locked{opacity:.7}
.locked textarea,.locked canvas{pointer-events:none}
.locked-label{background:var(--light);padding:8px 12px;font-size:11px;margin-bottom:15px}
.submission-bar{padding:22px;border:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;align-items:center;border-radius:6px}
.submission-bar p{font-size:12px;margin:0}
.result-hero{padding:28px 32px;margin-bottom:25px;display:flex;justify-content:space-between;align-items:center;gap:25px}
.result-hero p{font-size:12px}
.result-hero h2{margin-bottom:8px}
.result-score{white-space:nowrap}
.result-score small{font:12px var(--sans);display:block}
.correction{margin-top:20px;border-top:1px solid var(--line);padding-top:20px}
.correction h4{margin:0 0 10px}
.correction p{font-size:13px;white-space:pre-line}
.rubric{width:100%;font-size:11px;border-collapse:collapse;margin-top:15px}
.rubric td{border-bottom:1px solid var(--line);padding:8px 0}
.rubric td:last-child{text-align:right;padding-left:15px;white-space:nowrap}
.grade-field{display:flex;gap:12px;align-items:center;margin-top:18px;font-size:12px}
.grade-field input{width:80px;padding:8px;border:1px solid #bdc8b1}
.answer-text{white-space:pre-wrap;padding:16px;font-size:13px;min-height:55px}
.history-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:25px;padding:19px 22px;margin-bottom:12px}
.history-row h3{margin:0 0 4px}
.history-row small{color:var(--muted);font-size:10px}
.history-row .tag{margin-left:9px}
.simulator{padding:26px;margin-top:30px}
.simulator-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.simulator label{font-size:11px}
.simulator input,.simulator select{display:block;width:100%;padding:10px;border:1px solid #c5cfbb;margin-top:6px}
.simulator output{display:block;margin-top:22px}
.source-grid{display:grid;grid-template-columns:1fr 1fr}
.source-card{padding:23px}
.source-card h3{font:25px var(--serif)}
.source-card p,.source-card li{color:var(--muted)}
.source-card a{text-underline-offset:3px}
.sources-table{width:100%;border-collapse:collapse;font-size:12px}
.sources-table th,.sources-table td{text-align:left;border-bottom:1px solid var(--line);padding:14px 10px}
.reader{max-width:900px}
.reader blockquote{font:22px/1.9 var(--serif);margin:35px 0;border-block:1px solid var(--line);padding:25px 0}
.reader button{padding:12px 20px}
.empty{padding:45px}
.empty h2{margin-bottom:12px}
.muted{color:var(--muted)}
[hidden]{display:none!important}
@media(min-width:1500px){
 .cards{grid-template-columns:repeat(2,1fr)}
 .practice-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1100px){
 main{padding:35px 30px}
 .hero-art{transform:none}
 .exam-layout{grid-template-columns:1fr}
 .navigator{position:static;grid-row:1;display:flex;align-items:center;gap:15px}
 .navigator p,.navigator small{display:none}
 .navigator .primary{margin:0;width:auto;margin-left:auto}
 .source-grid{grid-template-columns:1fr}
 .simulator-grid{grid-template-columns:1fr 1fr}
 footer{padding:20px 30px;flex-direction:column;gap:5px}
}
@media(max-width:760px){
 .brand{font-size:27px}
 .brand b{width:38px;height:40px;font-size:36px}
 .workspace{margin:0}
 main{padding:27px 20px}
 .hero{padding-bottom:25px}
 .hero .eyebrow{font-size:9px;margin-bottom:17px}
 .section-heading{flex-direction:column}
 .resume-banner{align-items:start;flex-direction:column}
 .callout{font-size:11px}
 .exam-heading h1{font-size:32px}
 .clock-box{min-width:91px}
 .clock-box small{font-size:9px}
 .exam-tools{font-size:10px;padding:10px;gap:10px;flex-wrap:wrap}
 .exam-tools .secondary{font-size:10px;padding:6px 8px}
 .document{font-size:15px;line-height:1.8;padding:17px}
 .stage-tabs span{font-size:9px}
 .navigator{padding:10px;gap:10px;flex-wrap:wrap}
 .nav-grid{gap:5px}
 .nav-grid a{width:29px;height:29px}
 .submission-bar{align-items:start;flex-direction:column}
 .result-hero{padding:23px;align-items:start;flex-wrap:wrap}
 .history-row{grid-template-columns:1fr auto;gap:12px;padding:17px}
 .history-row>button{grid-column:1/-1}
 .simulator-grid{grid-template-columns:1fr}
 .simulator{padding:19px}
 .source-card{padding:18px}
 .sources-table{font-size:10px}
 .sources-table th,.sources-table td{padding:12px 5px}
 footer{padding:20px}
 dialog{padding:24px}
 .reader{padding:25px}
 .reader blockquote{font-size:19px}
}
@media print{
 footer,#notice,.exam-tools,.navigator,.stage-tabs,.submission-bar,.actions,.grade-field button,.drawing-tools,button{display:none!important}
 .workspace{margin:0}
 body{font-size:11pt}
 main{padding:0;max-width:none}
 .exam-layout{display:block}
 .question{break-inside:avoid;border-color:#aaa}
 .document{border-color:#777;font-size:11pt}
 .result-hero{border:1px solid #aaa;padding:15px}
 .correction{break-inside:avoid}
 .hero{display:block}
 .cards,.practice-grid{display:block}
 .subject{break-inside:avoid;margin-bottom:12px}
 .simulator{break-inside:avoid}
 .draw-area{max-height:180px}
 .reader blockquote{font-size:14pt}
 .grade-field input{border:none;width:60px}
 .history-row{break-inside:avoid}
}
/* Examination documents: readable on screen and retained when printing a copy. */
.exam-document{margin:22px 0;padding:18px;color:#243b38}
.exam-document h4{font-size:16px;margin:0 0 14px;letter-spacing:0;text-transform:none}
.document-image-link{display:block;text-align:center;background:#fff}
.document-image{display:block;width:auto;height:auto;max-width:100%;max-height:620px;margin:auto;object-fit:contain}
.exam-document figcaption{font-size:11px;line-height:1.6;margin-top:12px;color:#53645f}
.exam-document figcaption a{white-space:nowrap;text-decoration:underline}
.document-description{font-size:13px;line-height:1.65;margin:12px 0 0}
.document-table-wrap{overflow-x:auto;margin:14px 0}
.document-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left;background:#fff}
.document-table caption{text-align:left;font-weight:600;margin-bottom:8px;color:#243b38}
.document-table th,.document-table td{padding:9px 12px;border:1px solid #bdc9c4;font-variant-numeric:tabular-nums}
.document-table thead{background:#eef2ef}
@media(max-width:760px){
 .exam-document{padding:10px;margin:16px 0}
 .document-table{font-size:12px}
 .document-table th,.document-table td{padding:7px 9px}
}
@media print{
 .exam-document{break-inside:avoid;padding:10px}
 .document-image{max-height:95mm;max-width:150mm}
 .exam-document figcaption a{display:none}
 .exam-document figcaption,.document-description{font-size:9pt;color:#222}
 .document-table-wrap{overflow:visible}
 .document-table{font-size:9pt}
}
/* ==== maps in papers ==== */
/* Cartography scoped to the shared exam papers. Geometry is data-based. */
.repere-map{margin:20px auto 25px;border:1px solid #c9d4c0;border-radius:6px;overflow:hidden;background:#e1eeeb;max-width:720px}
.repere-map.france{max-width:420px}
.repere-map svg{display:block;width:100%;height:auto}
.repere-map .country{fill:#eef0df;stroke:#9caa98;stroke-width:1.2;stroke-linejoin:round}
.repere-map .region{fill:#e8ebd5;fill-opacity:.7;stroke:#6c8066;stroke-width:1.5;stroke-linejoin:round}
.repere-map .region.highlight{fill:#c15f3d;fill-opacity:.78;stroke:#713a2c;stroke-width:3}
.repere-map .river{fill:none;stroke:#8cb3ba;stroke-width:2;opacity:.7}
.repere-map .river.highlighted-river{stroke:#b75837;stroke-width:7;opacity:1}
.repere-map text{font-family:'Segoe UI',Arial,sans-serif;font-weight:600}
.repere-map figcaption{font-size:10px;text-align:center;color:#536952;background:#f0f2e8;padding:9px 12px}
.repere-map .repere-inset{height:230px;border-top:1px solid #aebda5}
.repere-map.world .country{stroke-width:.7}
@media(max-width:760px){
 .repere-map.france{max-width:340px}
 .repere-map .repere-inset{height:180px}
}
@media print{
 .repere-map{break-inside:avoid;max-width:400px}
 .repere-map.france{max-width:230px}
 .repere-map .repere-inset{height:130px}
}
/* ==== student interface ==== */
/* Student interface: quiet labels, clear actions and illustrated subject icons. */
h1{font-size:40px}
h2{font-size:24px}
p{line-height:1.65}
.brand small{font-size:11px;letter-spacing:0;font-weight:400;margin-top:8px}
main{padding-top:34px}
.hero{grid-template-columns:1fr 220px;gap:30px;padding:5px 0 25px}
.hero h1{font-size:42px;letter-spacing:-1px}
.hero p{font-size:15px;max-width:570px;margin-bottom:24px}
.hero-art{min-height:210px;padding:16px 12px;background:none}
.paper{width:148px;min-height:180px;padding:18px;background:var(--white)}
.paper strong{font-size:30px;margin-top:17px}
.paper small{font-size:7px;letter-spacing:1px}
.paper .lines{height:25px;margin-top:15px}
.primary,.secondary{font-size:13px;padding:11px 17px}
.quiet{font-size:13px;text-decoration:underline;text-underline-offset:3px;padding:10px}
.actions{gap:13px}
.section-heading{margin-top:32px;margin-bottom:18px;align-items:center}
.section-heading p{font-size:12px}
.cards{gap:16px}
.subject{padding:23px;min-height:210px}
.subject-top{justify-content:flex-start;gap:16px;margin-bottom:15px;align-items:center}
.subject-icon{width:50px;height:50px;object-fit:contain;flex-shrink:0;display:block}
.subject h3{font-family:var(--sans);font-size:19px;font-weight:650;line-height:1.35;margin:0 0 5px;letter-spacing:-.3px}
.subject-duration{font-size:12px;color:var(--muted)}
.subject p{font-size:13px;line-height:1.6;max-width:none;margin-bottom:19px}
.subject-start{font-size:13px;text-align:left;margin-top:auto}
.subject[data-subject=oral]{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.4fr auto;gap:25px;align-items:center;min-height:112px}
.subject[data-subject=oral] .subject-top,.subject[data-subject=oral] p{margin:0}
.practice-grid .subject{padding:20px;min-height:200px}
.practice-grid .subject h3{font-size:17px}
.practice-grid .subject p{font-size:12px}
.practice-grid .subject-top{margin-bottom:14px}
.home-help{font-size:12px;max-width:760px;margin:27px 0 0;line-height:1.8}
.inline-link{padding:0;background:transparent;text-decoration:underline;text-underline-offset:3px;font-size:inherit;cursor:pointer;color:var(--ink)}
.dialog-title{display:flex;gap:15px;align-items:center;margin:8px 0 20px}
.exam-title{display:flex;gap:15px;align-items:center;margin-bottom:20px}
.dialog-title h2{font-size:29px;margin:0}
.dialog-step{font-size:12px;color:var(--muted);margin:0}
.close{padding:1px 5px}
.exam-title h1{font-size:32px;margin:0}
.exam-heading{margin-bottom:8px}
.exam-meta{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted);margin-bottom:14px;text-transform:none}
.answer-label{display:block;color:var(--muted);font-size:12px;letter-spacing:0;margin-bottom:8px}
.question-head span{color:var(--muted);font-size:12px;letter-spacing:0;font-weight:400}
.question-head .points{font-size:12px;font-weight:600;letter-spacing:0}
.question{padding:25px}
.question h3{font-size:15px;font-weight:600;letter-spacing:0;line-height:1.7}
.question textarea{min-height:160px}
.question input.numeric{width:250px}
.question>label.muted{font-size:12px}
.correction h4{font-size:16px;text-transform:none;letter-spacing:0;color:var(--ink);margin-bottom:10px}
.rubric caption{font-size:12px;text-align:left;letter-spacing:0;color:var(--muted);font-weight:400;padding-bottom:8px}
.navigator p{letter-spacing:0;font-size:12px}
.result-hero h2{font-family:var(--sans);font-size:28px;font-weight:650}
.result-score{font:600 32px var(--sans)}
.result-score small{margin-top:7px;max-width:270px;white-space:normal;font-size:11px}
.source-card h3{font-family:var(--sans);font-size:21px;letter-spacing:-.3px}
.source-card p,.source-card a,.source-card li{font-size:13px}
.simulator h2{font-family:var(--sans)}
.simulator>p{font-size:13px}
.simulator output{font:600 24px var(--sans)}
.history-row b{font:600 22px var(--sans)}
.history-row h3{font-size:16px}
.source-grid{gap:16px}
footer{font-size:11px;letter-spacing:0}
@media(max-width:1100px){
 .hero{grid-template-columns:1fr 170px}
 .subject[data-subject=oral]{grid-template-columns:1fr 1fr}
 .subject[data-subject=oral] .subject-start{grid-column:1/-1}
 .practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 main{padding-top:26px}
 .hero{grid-template-columns:1fr;padding:3px 0 26px}
 .hero h1{font-size:34px}
 .hero p{font-size:14px}
 .hero-art{display:none}
 .section-heading{margin-top:28px;gap:7px;align-items:start}
 .section-heading h2{font-size:23px}
 .section-heading p{font-size:12px}
 .cards,.practice-grid{grid-template-columns:1fr}
 .subject,.practice-grid .subject{min-height:0;padding:20px}
 .subject h3,.practice-grid .subject h3{font-size:18px}
 .subject p,.practice-grid .subject p{font-size:13px}
 .subject[data-subject=oral]{display:flex;gap:0}
 .subject[data-subject=oral] .subject-top{margin-bottom:15px}
 .subject[data-subject=oral] p{margin-bottom:19px}
 .dialog-title h2{font-size:25px}
 .exam-title{gap:11px}
 .exam-title h1{font-size:26px}
 .exam-title .subject-icon{width:40px;height:40px}
 .exam-heading{gap:12px}
 .clock-box b{font-size:25px}
 .question{padding:18px}
 .question-head span{font-size:11px}
 .question h3{font-size:14px}
 .exam-meta{font-size:11px}
 .result-hero h2{font-size:24px}
 .result-score{font-size:28px}
 .simulator output{font-size:22px}
 footer{font-size:10px}
 .home-help{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .subject-start span{transition:none}
}
@media print{
 h1{font-size:25pt}
 .hero-art,.subject-icon,.home-help{display:none}
 .exam-title{margin-bottom:10px}
 .exam-title h1{font-size:23pt}
 .result-score{font-size:23pt}
 .question-head span,.question-head .points{color:black}
 .subject[data-subject=oral]{display:block}
 .rubric caption{color:black}
}
/* Minimal top menu bar (replaces the left rail). */
.workspace{margin-left:0}
main:focus{outline:none}
.menubar{align-items:center;gap:28px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.menubar .brand{font:22px/1 var(--serif);flex-shrink:0;text-decoration:none}
.menubar .brand b{width:30px;height:30px;line-height:30px;border-radius:7px;font-size:25px}
.menubar nav{overflow-x:auto;scrollbar-width:none;flex:1;justify-content:center;align-self:stretch;overflow:visible}
.menubar nav button{font-size:13px;position:relative;justify-content:center;border-radius:0;white-space:nowrap}
.menubar nav .active,.menubar nav .active:hover{background:var(--ink);color:var(--paper)}
@media(max-width:760px){
 .menubar{gap:12px}
 .menubar .brand span{display:none}
}
/* ==== site theme: fonts, colour tokens, menu ==== */
/* ADKline.Design theme for Déclic Brevet.
   Fonts and palette follow the main site (src/scss/_variables.scss and
   css-modules/global.scss): Playfair Display for headings, Source Sans Pro
   for text, Poppins for figures; brand teal #2A5F62 on white.
   Loaded last so it overrides exam.css and student.css. */
@font-face{font-family:'playfairdisplay-regular';src:url('../fonts/playfairdisplay/playfairdisplay-regular-webfont.woff2') format('woff2'),url('../fonts/playfairdisplay/playfairdisplay-regular-webfont.woff') format('woff');font-weight:normal;font-style:normal;font-display:swap}
@font-face{font-family:'sourcesanspro-regular';src:url('../fonts/sourcesanspro/sourcesanspro-regular-webfont.woff2') format('woff2'),url('../fonts/sourcesanspro/sourcesanspro-regular-webfont.woff') format('woff');font-weight:normal;font-style:normal;font-display:swap}
@font-face{font-family:'poppins-regular';src:url('../fonts/poppins/poppins-regular-webfont.woff2') format('woff2'),url('../fonts/poppins/poppins-regular-webfont.woff') format('woff');font-weight:normal;font-style:normal;font-display:swap}
body{background:var(--page);color:var(--text);font-family:var(--sans)}
h1,h2,h3{font-family:var(--serif);font-weight:700;letter-spacing:0;line-height:1.3;color:var(--heading)}
h1 em,.hero h1 em{color:var(--ink)}
a{color:var(--ink)}
a:hover{color:var(--ink-hover)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid rgba(42,95,98,.5)}
/* Long prompts and texts stay in the reading face. */
.question h3{font-family:var(--sans);color:var(--text)}
.document{color:var(--text);font:16px/1.85 var(--sans)}
.answer-text{color:#495057}
/* Figures: timer, scores, counters. */
.clock-box b,.result-score{font-family:var(--figures);font-weight:normal}
.clock-box.warning{color:var(--danger)}
/* Menu bar, as on the site: white, blurred, brand teal for the active page. */
/* Buttons. */
.primary{background:var(--ink);color:#fff}
.primary:hover{background:var(--ink-hover)}
.primary:active{background:var(--ink-deep)}
.secondary{border-color:var(--field);color:var(--ink)}
.secondary:hover{background:var(--light)}
/* Surfaces previously tinted sage. */
.home-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 190px;gap:30px}
.hero-subjects-banner{display:block;width:100%;height:auto;max-width:527px;justify-self:center}
@media(max-width:1100px){
 .home-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
 .home-hero .hero-art{display:none}
}
@media(max-width:760px){
 .home-hero{grid-template-columns:minmax(0,1fr);gap:24px}
 .hero-subjects-banner{max-width:440px}
}
@media print{
 .hero-subjects-banner{display:none}
}
.paper{border-color:var(--line);box-shadow:0 18px 36px rgba(42,95,98,.08)}
.paper:after{border-color:#cfe0e1;background:var(--light)}
.paper .lines{background:repeating-linear-gradient(transparent,transparent 10px,var(--line) 11px,var(--line) 12px)}
.subject:hover{border-color:var(--brand-light)}
.resume-banner{border-color:var(--brand-light)}
dialog{border-color:var(--line);background:#fff;color:var(--text)}
dialog::backdrop{background:rgba(30,68,71,.42)}
.question textarea,.question input.numeric,.grade-field input,.simulator input,.simulator select{border-color:var(--field);background:#fff}
.draw-area{border-color:var(--field)}
.nav-grid .answered{border-color:var(--brand-light)}
/* Result banner uses the site's CTA gradient. */
.result-hero{background:var(--ink);color:#fff}
.result-hero h2{color:#fff}
.result-hero p,.result-hero .exam-meta{color:#d4e9ea}
.result-hero .eyebrow{color:#FFDCA1}
.result-hero .secondary{color:#fff;border-color:rgba(255,255,255,.45)}
.result-hero .secondary:hover{background:rgba(255,255,255,.12)}
@media print{
 body{background:#fff;color:#000}
 h1,h2,h3{color:#000}
 .result-hero{background:none;color:#000}
 .result-hero h2{color:#000}
}
/* Multiple-choice automatismes. */
.choices{border:0;padding:0;margin:4px 0 0;display:grid;gap:8px}
.choices legend{padding:0;margin-bottom:4px;font-size:12px}
.choice{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--field);background:#fff;cursor:pointer;font-size:14px}
.choice:hover{border-color:var(--brand-light);background:var(--light)}
.choice b{font-family:var(--figures);font-weight:normal;color:var(--ink);min-width:1.2em}
.choice input{accent-color:var(--ink);margin:0}
.choice:has(input:checked){border-color:var(--ink);background:var(--light)}
.choice:has(input:disabled){cursor:not-allowed;opacity:.7}
/* Exercise headings: several numbered questions share one statement, as on the real papers. */
.exercise-title{font:700 20px/1.3 var(--serif);color:var(--heading);margin:28px 0 8px}
.question-list>.exercise-title:first-child{margin-top:0}
.exam-document img[src$=".svg"]{background:#fff}
/* ==== navigation bar ==== */
/* Déclic Brevet navigation. Keep the site's typography and teal palette. */
.menubar{display:block;height:auto;padding:0;background:rgba(255,255,255,.96)}
.menubar-inner{display:flex;align-items:center;gap:26px;max-width:1500px;min-height:80px;margin:0 auto;padding:0 48px}
.menubar .brand{display:flex;align-items:center;gap:10px;min-width:190px;margin:0;color:var(--heading);font-family:var(--sans)}
.menubar .brand-logo{display:block;width:50px;height:50px;object-fit:contain;flex-shrink:0}
.menubar .brand-name{display:block;font:700 28px/1 var(--sans);letter-spacing:-.7px;color:var(--ink-deep)}
.menubar .brand-descriptor{display:block;margin-top:5px;font:600 13px/1.1 var(--sans);letter-spacing:0;color:var(--muted)}
.menubar nav{display:flex;align-items:stretch;gap:28px;margin:0;min-width:0}
.menubar nav button{display:inline-flex;align-items:center;flex-shrink:0;min-height:48px;padding:0 3px;border:0;background:transparent;color:var(--muted);font:400 15px var(--sans)}
.menubar nav button:hover{background:transparent;color:var(--ink)}
.menubar nav button.active{background:transparent;color:var(--ink);font-weight:600}
.menubar nav button.active:hover{background:transparent;color:var(--ink)}
.menubar nav button::after{content:'';position:absolute;bottom:15px;left:3px;right:3px;height:2px;border-radius:2px;background:transparent}
.menubar nav button:hover::after{background:var(--brand-light)}
.menubar nav button.active::after{background:var(--ink)}
.menubar .session-label{display:block;min-width:130px;margin-left:auto;text-align:right;color:var(--muted);font:400 13px var(--sans);white-space:nowrap}
.brand-group{display:flex;align-items:center;gap:20px;flex-shrink:0}
.menubar .site-brand{display:flex;align-items:center;padding-right:20px;border-right:1px solid var(--line)}
.site-brand img{display:block;width:150px;height:auto}
@media(max-width:1100px){
 .menubar-inner{padding:0 30px;gap:18px}
 .menubar .brand{min-width:170px}
 .menubar nav{gap:22px}
 .menubar .session-label{min-width:110px;font-size:12px}
}
@media(max-width:760px){
 .menubar-inner{display:grid;grid-template-columns:1fr auto;gap:0 16px;min-height:0;padding:0 18px}
 .brand-group{grid-column:1/-1;gap:14px;min-width:0}
 .menubar .site-brand{padding-right:14px}
 .site-brand img{width:113px}
 .menubar .brand{flex:1;min-width:0;min-height:65px;gap:8px}
 .menubar .brand-logo{width:42px;height:42px}
 .menubar .brand .brand-name{display:block;font-size:25px}
 .menubar .brand .brand-descriptor{display:block;font-size:12px;margin-top:4px}
 .menubar .session-label{display:none}
 .menubar nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%;border-top:1px solid #edf0f0}
 .menubar nav button{min-width:0;min-height:46px;padding:0 6px;font-size:14px}
 .menubar nav button::after{bottom:0;left:14px;right:14px}
}
@media print{
 .menubar{display:none!important}
}
/* ==== reading sizes ==== */
/* Comfortable reading sizes throughout the student interface. Loaded last. */
@media screen{
 body{font-size:18px;line-height:1.7}
 p{line-height:1.75}
 .hero p,.subject p,.practice-grid .subject p{font-size:18px}
 .home-help{letter-spacing:0}
 .source-card p,.source-card a,.callout,.callout p,.simulator>p,.empty p,.reader p{font-size:18px}
 .subject h3,.practice-grid .subject h3{font-size:23px;line-height:1.4}
 .subject-duration,.section-heading p,.exam-meta,.question-head span{font-size:16px;line-height:1.6;letter-spacing:0}
 .question-head .points{font-size:16px;line-height:1.6;letter-spacing:0;white-space:nowrap}
 .answer-label,.question>label.muted,.choices legend,.dialog-step{font-size:16px;line-height:1.6;letter-spacing:0}
 .tag,.home-help{font-size:16px;line-height:1.6}
 .answer-meta,.drawing-tools,.locked-label,.clock-box small,.result-score small,.history-row small,.navigator p,.navigator small,.rubric caption,.stage-tabs span,footer{font-size:16px;line-height:1.6;letter-spacing:0}
 .primary,.secondary,.quiet{font-size:17px;line-height:1.5;min-height:44px;padding:10px 17px}
 .subject-start{font-size:17px;line-height:1.5;min-height:44px}
 .exam-tools .secondary,.navigator .primary,.reader button{font-size:17px;line-height:1.5;min-height:44px;padding:10px 17px}
 .subject{min-height:245px}
 .practice-grid .subject{min-height:235px}
 .section-heading h2{font-size:30px}
 .home-hero{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 170px;gap:24px}
 .hero h1{font-size:clamp(34px,2.7vw,44px)}
 .exam-title h1{font-size:36px}
 .question h3{font-size:18px;line-height:1.75;font-weight:600}
 .question textarea{font-size:18px;line-height:1.75;padding:14px;min-height:190px}
 .question input.numeric,.answer-text,.choice,.correction p,.rubric,.grade-field,.grade-field input,.document-table,.document-description,.option,.science-choice,.submission-bar p,.simulator label,.simulator input,.simulator select,.history-row h3{font-size:18px;line-height:1.75}
 .document{font-size:19px;line-height:1.85}
 .correction h4{font-size:20px}
 .exam-document figcaption,.repere-map figcaption,.exam-tools,.sources-table,.source-card li,.option small{font-size:16px;line-height:1.7}
 .exercise-title{font-size:24px;line-height:1.5}
 .question-head{gap:12px;flex-wrap:wrap}
 .exam-tools{flex-wrap:wrap;gap:12px}
 .exam-tools .actions{flex-wrap:wrap}
 .nav-grid a{font-size:16px;width:40px;height:40px}
 .grade-field{flex-wrap:wrap}
 .science-choice label{display:flex;align-items:center;gap:8px}
 input[type=radio],input[type=checkbox]{min-width:20px;min-height:20px;accent-color:var(--ink)}
 dialog{width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:30px;overflow-y:auto;font-size:18px;line-height:1.7}
 dialog p,dialog form>p,dialog fieldset>p{font-size:18px}
 dialog legend{font-size:18px;font-weight:600}
 .close{min-width:44px;min-height:44px;font-size:30px;line-height:1}
 .menubar nav button{font-size:18px;min-height:48px}
 .menubar .session-label{font-size:16px}
 .resume-banner{gap:18px}
 .resume-banner p,.resume-banner strong,.resume-banner span{font-size:17px}
 .result-hero{flex-wrap:wrap}
 .result-hero p{font-size:18px}
 .result-score small{max-width:320px}
 .muted[style*="font-size"],.simulator>p[style*="font-size"]{font-size:16px!important}
 #notice:not(:empty){font-size:17px;line-height:1.6;max-width:min(560px,calc(100vw - 32px))}
 @media(max-width:1100px){
  .home-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
  .home-hero .hero-art{display:none}
  .practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 }
 @media(max-width:760px){
  .home-hero{grid-template-columns:minmax(0,1fr);gap:24px}
  .hero p,.subject p,.practice-grid .subject p{font-size:18px}
  .subject h3,.practice-grid .subject h3{font-size:22px}
  .section-heading{align-items:flex-start}
  .section-heading h2{font-size:28px}
  .practice-grid{grid-template-columns:minmax(0,1fr)}
  .menubar nav button{font-size:17px;min-height:48px;padding:0 6px}
  .menubar .session-label{font-size:15px}
  .exam-heading{flex-wrap:wrap}
  .exam-title h1{font-size:30px}
  .clock-box{min-width:0;max-width:100%}
  .actions{gap:10px}
  .exam-tools .actions{width:100%}
  .question{padding:18px}
  .question h3{font-size:18px}
  .question input.numeric{width:100%}
  .document{font-size:19px;padding:16px}
  .navigator{align-items:flex-start}
  .history-row{grid-template-columns:minmax(0,1fr);gap:12px}
  .history-row>button{justify-self:start}
  .subject[data-subject=oral]{display:flex;align-items:flex-start}
  dialog{padding:22px}
  .submission-bar{align-items:flex-start}
  .result-score{white-space:normal}
 }
}
.export-dialog h2{padding-right:36px;font-size:30px}
.export-options{display:grid;gap:14px;margin:22px 0;border:0;padding:0}
.export-options legend{margin-bottom:12px}
.export-options label{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:10px;align-items:center;cursor:pointer}
.export-options small{grid-column:2;font-size:16px;line-height:1.6;color:var(--muted)}
.ai-handoff{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}
.ai-handoff h3{font-family:var(--sans);font-size:23px}
.ai-handoff ol{padding-left:25px}
.ai-handoff li{margin:10px 0}
.provider-links{margin:16px 0}
.provider-links a{text-decoration:none}
.export-dialog .ai-handoff p,.export-privacy{font-size:16px;line-height:1.7}
.export-dialog details{margin:20px 0}
.export-dialog summary{cursor:pointer;color:var(--ink);font-weight:600}
.export-dialog textarea{display:block;width:100%;font:16px/1.6 var(--sans);border:1px solid var(--field);border-radius:6px;padding:12px;margin:10px 0;resize:vertical}
.export-image-links{display:grid;gap:10px}
#export-status:not(:empty){margin-top:16px;padding:12px;background:var(--light);border-radius:6px;font-size:17px}
.export-dialog .adult-key{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.export-dialog .adult-key p{font-size:16px;line-height:1.7}
#key-status:not(:empty){margin-top:16px;padding:12px;background:var(--light);border-radius:6px;font-size:17px}
.example-answer{margin:12px 0 16px}
.example-answer summary{cursor:pointer;font-weight:600;color:var(--ink)}
.example-answer p{margin:10px 0 6px}
.example-answer small{color:var(--muted,#536168)}
@media print{
 .export-dialog{display:none!important}
}
/* ==== paper layering (was inline in shell.php) ==== */
.paper:before{content:'';position:absolute;inset:0;background:var(--white);border-radius:inherit;z-index:-1}
.paper:after{z-index:-2}
/* ==== images and save file ==== */
/* <picture> only chooses WebP or PNG/JPEG; the <img> stays the layout box, exactly as before. */
picture{display:contents}
picture>source{display:none}
.callout .actions{margin:14px 0 6px;flex-wrap:wrap}
.callout .actions a{text-decoration:none}
/* ==== Déclic design ====
   White cards with Bootstrap's shadow-sm on a soft page, advice as post-it notes, highlighter
   strokes on key titles, pill buttons and chips. Colours come from the logo: teal, light teal
   and the ochre bookmark. No accent bars, gradients-as-decoration or spaced capitals. */
/* Cards */
.subject,.question,.history-row,.source-card,.simulator,.navigator,.resume-banner,.empty{border:0;border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-sm)}
.exam-tools{border:0;border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.clock-box,.document,.exam-document{border:0;border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-sm)}
.answer-text{border:0}
.option{border:0;border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-sm)}
.clock-box{padding:10px 18px}
.exam-tools{background:rgba(255,255,255,.96)}
/* Inside a question card, source texts and figures sit on a paper tint so they stand apart. */
.question .document,.question .exam-document{background:#FCFBF7;border-radius:12px}
.answer-text{background:#F6F8F8;box-shadow:none;border-radius:12px}
.subject{transition:transform .15s,box-shadow .15s}
.subject:hover{transform:translateY(-3px);box-shadow:var(--shadow);background:#fff}
.subject .subject-icon,.dialog-title .subject-icon{box-sizing:border-box;width:64px;height:64px;padding:7px;border-radius:50%;background:var(--mint)}
.subject-start{align-self:start;padding:8px 18px;border-radius:999px;background:var(--mint);color:var(--ink-deep);font-weight:600;transition:background-color .15s}
.subject-start:hover{background:var(--brand-light)}
.subject[data-subject=oral] .subject-start{align-self:center}
/* Post-it notes for advice */
.callout{border:0;border-radius:4px 4px 22px 4px;background:var(--sun-soft);box-shadow:var(--shadow-sm);color:var(--text);padding:20px 24px}
.callout strong{color:var(--sun-ink)}
/* Ochre underline on key titles: drawn below the text, never over it, and broken around descenders. */
.hero h1 mark{color:inherit;background:none;text-decoration:underline var(--sun);text-decoration-thickness:.12em;text-underline-offset:.2em;text-decoration-skip-ink:auto}
.exercise-title{border-top:0;padding-top:0;text-decoration:underline var(--sun);text-decoration-thickness:3px;text-underline-offset:8px;text-decoration-skip-ink:auto}
/* Buttons, chips and fields */
.primary,.secondary{border-radius:999px;transition:transform .12s,box-shadow .12s,background-color .12s}
.primary:hover,.secondary:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.secondary{background:#fff}
.result-hero .secondary{background:transparent}
.navigator .primary{border-radius:14px}
.eyebrow,.tag{display:inline-block;padding:4px 14px;border:0;border-radius:999px;background:var(--sun-soft);color:var(--sun-ink);font-weight:600;letter-spacing:0}
.stage-tabs span{border:0;border-radius:999px;padding:8px 16px;background:#fff;box-shadow:var(--shadow-sm)}
.stage-tabs .current{background:var(--ink);color:#fff}
.nav-grid a{border:0;border-radius:12px;background:#F1F4F4}
.nav-grid .answered{background:var(--mint);color:var(--ink-deep);font-weight:600}
.choice{border-radius:12px}
.choice:has(input:checked){box-shadow:0 0 0 .2rem rgba(42,95,98,.18)}
.question textarea,.question input.numeric,.grade-field input,.simulator input,.simulator select{border-radius:12px}
.question textarea:focus,.question input.numeric:focus,.grade-field input:focus,.simulator input:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 .25rem rgba(42,95,98,.2)}
.draw-area{border-radius:12px}
dialog{border:0;border-radius:22px;box-shadow:var(--shadow-lg)}
#notice:not(:empty){border-radius:999px;padding:12px 22px;box-shadow:var(--shadow)}
/* Result: flat teal banner with the mark on a tilted ochre sticker */
.result-hero{border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.result-score{background:var(--sun);color:var(--ink-deep);border-radius:22px;padding:16px 24px;transform:rotate(-3deg);box-shadow:var(--shadow);text-align:center}
.result-score small{color:var(--ink-deep);text-align:center}
@media(prefers-reduced-motion:reduce){
 .subject,.primary,.secondary{transition:none}
 .subject:hover,.primary:hover,.secondary:hover{transform:none}
}
@media print{
 .subject,.question,.callout,.document,.exam-document,.result-hero,.result-score{box-shadow:none}
 .result-score{transform:none;background:none}
 .hero h1 mark,.exercise-title{text-decoration:none}
}
/* ==== recordings in questions (music, language listening) ==== */
.exam-audio{margin:18px 0;padding:16px 20px;border-radius:12px;background:#F1F8F7;box-shadow:var(--shadow-sm)}
.exam-audio h4{margin:0 0 10px;font:600 18px/1.4 var(--sans);color:var(--heading)}
.exam-audio audio{display:block;width:100%;max-width:560px}
.exam-audio figcaption{margin-top:10px;font-size:15px;line-height:1.5;color:var(--muted)}
@media print{
 .exam-audio audio{display:none}
 .exam-audio{box-shadow:none}
}
/* ==== recorded dictation ==== */
.dictee-player{margin:14px 0 18px;padding:20px 22px;border:0;border-radius:var(--radius);background:#F1F8F7;box-shadow:var(--shadow-sm)}
.dictee-player h4{display:flex;align-items:center;gap:12px;margin:0 0 8px;font:600 19px/1.4 var(--sans);color:var(--heading)}
.dictee-player h4:before{content:'';flex:none;width:38px;height:38px;border-radius:50%;background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 15v-3a8 8 0 0 1 16 0v3'/%3E%3Crect x='3' y='14' width='4.5' height='6.5' rx='1.8' fill='white'/%3E%3Crect x='16.5' y='14' width='4.5' height='6.5' rx='1.8' fill='white'/%3E%3C/svg%3E") center/20px no-repeat}
.dictee-help{margin:0 0 14px;color:var(--muted)}
.dictee-steps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:0;list-style:none;counter-reset:step}
.dictee-steps li{counter-increment:step;padding:5px 16px;border-radius:999px;background:#fff;box-shadow:var(--shadow-sm);color:var(--muted)}
.dictee-steps li:before{content:counter(step)'. '}
.dictee-steps li.current{background:var(--ink);color:#fff;font-weight:600}
.dictee-steps li.done{background:var(--mint);color:var(--ink-deep)}
.dictee-steps li.done:before{content:'✓ '}
.dictee-settings{display:flex;flex-wrap:wrap;gap:12px 24px;margin:16px 0 4px}
.dictee-settings label{display:flex;align-items:center;gap:8px}
.dictee-settings select{font:inherit;padding:6px 14px;border:1px solid var(--field);border-radius:999px;background:#fff}
.dictee-free{margin:14px 0 0}
.dictee-free summary{cursor:pointer;color:var(--ink);font-weight:600}
.dictee-player audio{display:block;width:100%;max-width:520px;margin-top:10px}
.dictee-status{display:inline-block;margin:14px 0 0;padding:8px 16px;border-radius:14px 14px 14px 4px;background:#fff;box-shadow:var(--shadow-sm);font-weight:600;color:var(--ink)}
.dictee-player [hidden]{display:none!important}
/* Start/pause of the recorded dictation: the key-action button (end of file) with a play or pause icon */
.dictee-player .primary[data-dictee=toggle]{padding-left:20px;padding-right:22px}
.dictee-player .primary[data-dictee=toggle]:before{content:'';flex:none;width:0;height:0;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent currentColor}
.dictee-player .primary[data-dictee=toggle][data-playing]:before{width:13px;height:16px;border-width:0 4px;border-color:currentColor;box-sizing:border-box}
@media screen{
 .dictee-help,.dictee-steps,.dictee-settings,.dictee-status{font-size:17px;line-height:1.6}
}
@media print{
 .dictee-player{display:none}
}
/* ==== back button on papers ==== */
/* First item of the sticky toolbar, so it is always in reach; distinct from the teal main actions. */
.back-button{display:inline-flex;align-items:center;gap:8px;flex:none;min-height:44px;padding:8px 20px;border:0;border-radius:999px;background:var(--mint);color:var(--ink-deep);font:600 17px/1.3 var(--sans);box-shadow:var(--shadow-sm);cursor:pointer;transition:background-color .12s,transform .12s}
.back-button:hover{background:var(--brand-light);transform:translateY(-1px)}
.back-button span{font-size:20px;line-height:1}
.exam-tools #save-state{flex:1;min-width:0}
@media(max-width:760px){
 .back-button{width:100%;justify-content:center}
}
@media print{
 .back-button{display:none}
}

/* ==== demo banner (visitors from the company site) ==== */
.demo-banner{position:relative;margin:0 0 22px;padding:14px 56px 14px 20px;border-radius:var(--radius);background:var(--mint);box-shadow:var(--shadow-sm)}
.demo-banner p{margin:0;font-size:16px;line-height:1.6}
.demo-banner p+p{margin-top:4px}
.demo-banner span[lang]{display:block;color:var(--muted);font-size:15px}
.demo-banner a{color:var(--ink-deep);font-weight:600}
.demo-banner .close{position:absolute;top:8px;right:10px}
/* A dialog's close button stays in view while its content scrolls (sticky inside the dialog's scroll box). */
dialog>.close{position:sticky;top:-14px;z-index:3;float:right;margin:-14px -14px 0 8px;border-radius:50%;background:inherit;box-shadow:0 0 0 6px var(--white,#fff)}
.copy-ref{align-self:flex-start;font-size:13px;color:var(--muted);white-space:nowrap}

/* ==== display settings, read-aloud, footer ==== */
.display-button{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--mint);color:var(--ink-deep);font:700 16px/1 var(--sans);cursor:pointer;box-shadow:var(--shadow-sm)}
.display-button:hover{background:var(--brand-light)}
.speak-button{display:none;align-items:center;gap:6px;margin:0 0 12px;padding:4px 14px;border:1px solid var(--field);border-radius:999px;background:var(--white);color:var(--ink);font:600 15px/1.4 var(--sans);cursor:pointer}
.speak-button::before{content:'';width:14px;height:14px;background:currentColor;clip-path:polygon(0 30%,35% 30%,75% 0,75% 100%,35% 70%,0 70%)}
.speak-button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
[data-speak=on] .speak-button{display:inline-flex}
.footer-links{display:block;margin-top:6px}
.stage-note,.simulator-note{font-size:16px;line-height:1.6}
@media(max-width:760px){.menubar .brand-group{grid-column:1}.display-button{grid-column:2;grid-row:1;align-self:center}}

/* ==== progress by theme (Mes copies) ==== */
.progress{margin-top:30px;padding:26px;border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow-sm)}
.progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:18px;margin-top:16px}
.progress-subject h3{font:600 19px/1.4 var(--sans);margin:0 0 8px}
.progress-subject ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.progress-subject li{display:grid;grid-template-columns:minmax(0,1fr) 90px 52px;align-items:center;gap:10px;font-size:16px}
.progress-subject li small{grid-column:1/-1;margin-top:-6px;color:var(--muted);font-size:14px}
.progress-subject .meter{display:block;height:10px;border-radius:999px;background:var(--panel);overflow:hidden}
.progress-subject .meter span{display:block;height:100%;border-radius:inherit;background:var(--ink)}
.progress-subject .weak .meter span{background:#c0392b}
.progress-subject .middle .meter span{background:var(--sun)}
.progress-subject b{text-align:right}

/* ==== marks pasted from an AI ==== */
.paste-marks{margin:-8px 0 24px;padding:16px 20px;border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow-sm)}
.paste-marks summary{cursor:pointer;font-weight:600;color:var(--ink)}
.paste-marks textarea{display:block;width:100%;margin:8px 0 12px;padding:12px;border:1px solid var(--field);border-radius:12px;font:16px/1.6 var(--sans)}
.grade-field input.pasted{border-color:var(--sun);box-shadow:0 0 0 .2rem rgba(242,193,78,.35)}

/* ==== drawing: toolbar, base map, photo ==== */
.drawing{margin:0 0 16px}
.draw-toolbar{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin:0 0 10px}
.tool-group{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
.draw-toolbar button,.photo-button{display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border:1px solid var(--field);border-radius:999px;background:var(--white);color:var(--ink);font:600 15px/1.3 var(--sans);cursor:pointer}
.draw-toolbar button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.draw-toolbar .swatch{width:34px;min-height:34px;padding:0;background:var(--swatch);border:3px solid var(--white);box-shadow:0 0 0 1px var(--field)}
.draw-toolbar .swatch[aria-pressed=true]{background:var(--swatch);border-color:var(--white);box-shadow:0 0 0 3px var(--ink)}
.draw-toolbar .width{width:44px;justify-content:center}
.draw-toolbar .width span{display:block;width:22px;border-radius:999px;background:currentColor}
.draw-stage{position:relative;width:100%;margin-inline:auto;border-radius:12px;background:#fff center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px var(--field);overflow:hidden}
/* Blank drawing sheet: warm off-white with a faint paper grain (display only; exported drawings stay on white). */
.draw-stage.paper-sheet{background-color:#fbfaf6;background-repeat:repeat;background-position:0 0;background-size:180px 180px,520px 520px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .4 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E")}
.draw-stage .draw-area{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;background:transparent}
.draw-stage .draw-result{display:block;width:100%;height:100%}
.draw-photo{display:block;max-width:100%;max-height:640px;margin:0 0 10px;border-radius:12px;box-shadow:var(--shadow-sm)}
.drawing-help{margin:8px 0 0;color:var(--muted);font-size:16px}

/* ==== oral rehearsal recording (kept in the browser only) ==== */
.recorder{margin:16px 0 0;padding:16px 20px;border-radius:12px;background:var(--panel)}
.recorder h4{margin:0 0 6px;font:600 18px/1.4 var(--sans)}
.recorder-note,.recorder-status{margin:0 0 10px;font-size:16px;color:var(--muted)}
.recorder audio{display:block;width:100%;max-width:520px;margin:10px 0}

/* ==== statements in several parts: subjects to choose from, a passage to rewrite, a list of tasks ==== */
.prompt-body{margin:-6px 0 16px;font-size:18px;line-height:1.75;color:var(--text)}
.prompt-body p{margin:0 0 12px;white-space:pre-line}
.prompt-body .prompt-list{margin:0 0 12px;padding-left:1.4em}
.prompt-body .prompt-list li{margin:4px 0}
[data-reading=aere] .prompt-body{font-size:20px}

/* ==== « localiser » questions: pins (practice) or a click on a blank map (timed) ==== */
.repere-map.place-map{max-width:620px;background:#dcecf2}
.repere-map.place-map.world{max-width:820px}
.place-map svg.editable .pin,.place-map svg.click.editable{cursor:pointer}
.place-map svg.click.editable{cursor:crosshair}
.place-map .pin circle{fill:#b75837;stroke:#fff;stroke-width:4}
.place-map .pin.chosen circle{fill:#2A5F62}
.place-map .pin circle.hit{fill:transparent;stroke:none}
.place-map .pin text,.place-map .mark text,.place-map .badge text{fill:#fff;font-family:Arial,sans-serif;font-weight:700}
.place-map .mark circle,.place-map .badge circle{fill:#2A5F62;stroke:#fff;stroke-width:3}
.place-map .ok circle{fill:#2e7d4f}
.place-map .ko circle{fill:#c0392b}
.place-map .target{fill:none;stroke:#2e7d4f;stroke-width:5;stroke-dasharray:8 5}
.place-map .place-label{fill:#1d3b2a;stroke:#fff;stroke-width:6;paint-order:stroke;font-family:Arial,sans-serif;font-weight:700}
.place-map .river{stroke:#3f86a8;stroke-width:5;opacity:.9}
.place-items,.place-letters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px}
.place-items button,.place-letters button{min-height:42px;padding:6px 16px;border:1px solid var(--field);border-radius:999px;background:var(--white);color:var(--ink);font:600 16px/1.3 var(--sans);cursor:pointer}
.place-items button b{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:4px;border-radius:50%;background:var(--mint);color:var(--ink-deep);font-size:14px}
.place-items button span{font-weight:400;color:var(--muted)}
.place-items button[aria-pressed=true],.place-letters button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.place-items button[aria-pressed=true] span{color:#fff}
.place-items button.ok{border-color:#2e7d4f}.place-items button.ko{border-color:#c0392b}
.place-items button:disabled{cursor:default;opacity:1}
.place-letters button{width:44px;padding:0}
.place-letters span{color:var(--muted);font-size:16px}

/* ==== privacy page ==== */
.privacy{max-width:760px}
.privacy h2{font:600 22px/1.4 var(--sans);margin:28px 0 8px}
.privacy li{margin:6px 0}
.privacy p{color:var(--text)}
.privacy h1+p{color:var(--muted)}
.privacy .back-button{text-decoration:none}

/* ==== reading comfort: « Lecture aérée » ==== */
[data-reading=aere] body{word-spacing:.12em;letter-spacing:.02em}
[data-reading=aere] p,[data-reading=aere] .document,[data-reading=aere] .question h3,[data-reading=aere] .answer-text,[data-reading=aere] li,[data-reading=aere] textarea{line-height:2;text-align:left}
[data-reading=aere] .question h3,[data-reading=aere] textarea,[data-reading=aere] .choice{font-size:20px}
[data-reading=aere] .document{font-size:21px;font-style:normal}
[data-reading=aere] em,[data-reading=aere] i{font-style:normal;font-weight:600}

/* ==== dark mode (data-mode is set by the script from the theme setting or the device) ==== */
[data-mode=dark]{color-scheme:dark;--page:#101718;--white:#182224;--paper:#18242a;--panel:#1f2b2d;--light:#22312f;--line:#2e3c3e;--field:#3d4d50;
  --text:#e4ecec;--heading:#f1f5f5;--muted:#a9b8ba;--ink:#7cc4c9;--ink-hover:#9cd4d8;--ink-deep:#d5efef;--mint:#21393a;--brand-light:#3f6f72;--sun-soft:#3a3220;--sun-ink:#f6d98b;
  --shadow-sm:0 .125rem .25rem rgba(0,0,0,.4)}
[data-mode=dark] body{background:var(--page);color:var(--text)}
[data-mode=dark] .menubar,[data-mode=dark] .exam-tools{background:rgba(16,23,24,.94)}
[data-mode=dark] .subject,[data-mode=dark] .question,[data-mode=dark] .history-row,[data-mode=dark] .source-card,[data-mode=dark] .simulator,[data-mode=dark] .navigator,
[data-mode=dark] .resume-banner,[data-mode=dark] .empty,[data-mode=dark] .clock-box,[data-mode=dark] .option,[data-mode=dark] dialog,[data-mode=dark] .stage-tabs span,
[data-mode=dark] .dictee-steps li,[data-mode=dark] .dictee-status,[data-mode=dark] .secondary,[data-mode=dark] .choice{background:var(--white);color:var(--text)}
[data-mode=dark] .question .document,[data-mode=dark] .question .exam-document,[data-mode=dark] .document,[data-mode=dark] .answer-text,[data-mode=dark] .nav-grid a,
[data-mode=dark] .dictee-player,[data-mode=dark] .exam-audio{background:var(--panel);color:var(--text)}
[data-mode=dark] .question textarea,[data-mode=dark] .question input.numeric,[data-mode=dark] .grade-field input,[data-mode=dark] .simulator input,[data-mode=dark] .dictee-settings select,
[data-mode=dark] .paste-marks textarea,[data-mode=dark] .export-dialog textarea{background:#0d1415;color:var(--text);border-color:var(--field)}
[data-mode=dark] .document-table,[data-mode=dark] .document-table thead{background:var(--white);color:var(--text)}
[data-mode=dark] .document-table th,[data-mode=dark] .document-table td,[data-mode=dark] .rubric td,[data-mode=dark] .sources-table th,[data-mode=dark] .sources-table td{border-color:var(--line)}
[data-mode=dark] .callout{background:var(--sun-soft);color:var(--text)}
[data-mode=dark] .primary{background:#2A5F62;color:#fff}
[data-mode=dark] .primary:hover{background:#357478}
[data-mode=dark] .result-hero{background:#1E4447;color:#fff}
[data-mode=dark] .exam-document img,[data-mode=dark] .document-image{background:#fff}
[data-mode=dark] .site-brand img{filter:invert(1) hue-rotate(180deg)}
[data-mode=dark] .exam-document figcaption,[data-mode=dark] .repere-map figcaption{color:var(--muted);background:transparent}
[data-mode=dark] .document-image-link:has(img[src$=".jpg"]),[data-mode=dark] .document-image[src$=".jpg"]{background:#0d1415}   /* photographs; diagrams keep white */
[data-mode=dark] .choice:has(input:checked),[data-mode=dark] .nav-grid .answered{background:var(--mint);color:var(--ink-deep)}
[data-mode=dark] .exercise-title,[data-mode=dark] h1,[data-mode=dark] h2,[data-mode=dark] h3{color:var(--heading)}
@media print{[data-mode=dark] body{background:#fff;color:#000}}

/* ───────────── Key action ─────────────
   The logo ochre lifts the one decisive button of a screen out of the teal: start a paper, hand it in,
   resume, play the dictation, download a prepared PDF. Use it once per screen at most; other actions stay teal.
   Dark text on ochre keeps WCAG AA contrast in light and dark modes. */
.primary.key-action,[data-mode=dark] .primary.key-action{background:var(--sun);color:#2b2103;font-weight:700;box-shadow:var(--shadow-sm)}
.primary.key-action:hover:not(:disabled),[data-mode=dark] .primary.key-action:hover:not(:disabled){background:#E5B23A;color:#2b2103}
.primary.key-action:active:not(:disabled){background:#D9A62E}
.primary.key-action:disabled{opacity:.55;cursor:wait}
.primary.key-action:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
