:root {
  --fond: #f6f2e9;
  --feuille: #fffdf8;
  --texte: #1b1b1b;
  --texte-secondaire: #4d4a44;
  --orange: #ff4d14;
  --orange-survol: #e83b00;
  --vert: #0a6847;
  --vert-vif: #10b981;
  --vert-doux: #e3f3ea;
  --alerte: #8a2f1b;
  --alerte-fond: #fff0eb;
  --doux: #e8e1d5;
  --blanc: #fffdf8;
  --trait: #cfc6b5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--texte);
  background: var(--fond);
  font: 1rem/1.45 var(--sans);
}
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
h1, h2, h3 { line-height: 1.12; }
h1 {
  margin: 0 0 .5rem;
  font: 400 clamp(2rem, 5vw, 3.5rem)/1.02 var(--serif);
  letter-spacing: -.02em;
}
h2, h3 { font-family: var(--serif); }
p { text-wrap: pretty; }

.site-header { border-bottom: 1px solid var(--texte); background: var(--fond); }
.site-header__contenu {
  display: flex;
  max-width: 78rem;
  min-height: 4.5rem;
  margin: auto;
  padding: 0 2rem;
  align-items: center;
  gap: 2rem;
}
.marque {
  flex: none;
  font: italic 600 1.45rem/1 var(--serif);
  text-decoration: none;
}
nav { display: flex; flex: 1; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.navigation-deconnexion { display: inline; margin: 0 0 0 auto; }
.navigation-deconnexion button {
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--texte);
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-decoration: underline;
}
main { max-width: 78rem; margin: auto; padding: 2rem; }

label { display: block; margin-top: 1rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  padding: .75rem;
  border: 1.5px solid var(--texte);
  border-radius: 0;
  color: var(--texte);
  background: var(--feuille);
  font: inherit;
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--texte); }
.case-liee {
  display: flex;
  min-height: 44px;
  gap: .65rem;
  align-items: center;
  margin: .5rem 0;
  font-weight: 400;
  cursor: pointer;
}
.case-liee input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
}
.champ-a-remplir { border-color: var(--alerte); background: var(--alerte-fond); }
.choix-radio label {
  display: flex;
  min-height: 44px;
  gap: .65rem;
  align-items: center;
  margin: 0;
  border-bottom: 1px solid var(--trait);
  font-weight: 400;
}
.choix-radio input[type="radio"], .choix-radio input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
button, input[type="submit"], .bouton, .bouton-principal, .bouton-secondaire {
  display: inline-flex;
  min-height: 44px;
  padding: .7rem 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font: 700 1rem var(--sans);
}
button, input[type="submit"], .bouton, .bouton-secondaire {
  border: 1.5px solid var(--texte);
  color: var(--texte);
  background: var(--feuille);
  text-decoration: none;
}
.bouton-principal {
  border: 1.5px solid var(--texte);
  color: var(--texte);
  background: var(--orange);
  text-decoration: none;
}
.bouton-principal:hover { color: var(--texte); background: var(--orange-survol); }
.actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}
.actions__principales { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.actions form { margin: 0; }

.introduction { max-width: 52rem; margin: .25rem 0 1rem; color: var(--texte-secondaire); }
.repere, .etiquette { font-weight: 800; color: var(--vert); }
.etiquette { margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .08em; }
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.carte, .section-documents { padding: 1rem; border: 1px solid var(--texte); background: var(--feuille); }
.section-documents { margin: 1rem 0; }
.aide { padding: 1rem; background: var(--vert-doux); border-left: .25rem solid var(--vert-vif); }
.messages { margin-bottom: 1rem; }
.message {
  margin: 0;
  padding: .85rem 1rem;
  border-left: 4px solid var(--vert-vif);
  color: var(--texte);
  background: var(--vert-doux);
}
.message--warning, .message--error {
  border-color: var(--alerte);
  color: var(--alerte);
  background: var(--alerte-fond);
}
.errorlist { color: var(--alerte); }
.progression { color: var(--texte-secondaire); }
.alerte { padding: .75rem 1rem; color: var(--alerte); background: var(--alerte-fond); }
.pastille-etat {
  display: inline-block;
  padding: .2rem .55rem;
  border: 1px solid currentcolor;
  color: var(--vert);
  background: var(--vert-doux);
}
.pastille-etat--0, .pastille-etat--1 { color: var(--alerte); background: var(--alerte-fond); }
.pastille-etat--2, .pastille-etat--3 { color: #744000; background: #fff0c7; }
.urgent {
  margin: 0 0 1.25rem;
  padding: 1rem;
  color: var(--alerte);
  background: var(--alerte-fond);
  border: 2px solid var(--alerte);
}
.urgent h2, .urgent p { margin: .35rem 0; }
.au-quotidien { margin: 2rem 0 1rem; }
dt { margin-top: .75rem; font-weight: 700; }
dd { margin-left: 0; }
article { border-top: 1px solid var(--trait); padding: .5rem 0; }
.texte-masque { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-copie { min-height: 1.5rem; }
.action-apercu { position: sticky; top: .75rem; z-index: 2; margin: 1rem 0; text-align: right; }
.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;
}
.accueil-entete {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.25rem;
}
.accueil-entete h1 { font-size: clamp(3rem, 7vw, 5rem); }
.accueil-entete .introduction { margin: 0 0 .4rem; font: italic 1.1rem/1.5 var(--serif); }
.chemin {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.25fr);
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1.5px solid var(--texte);
  border-bottom: 1.5px solid var(--texte);
}
.chemin__etape {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 9.5rem;
  padding: 1rem .75rem;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid var(--trait);
}
.chemin__etape:nth-last-child(2) { border-right-color: var(--texte); }
.chemin__etape:last-child { border-right: 0; }
.chemin__etape--en_cours { background: var(--feuille); box-shadow: inset 0 -5px 0 var(--texte); }
.chemin__noeud {
  display: block;
  min-width: 44px;
  min-height: 44px;
  color: var(--texte-secondaire);
  font: italic 400 2.45rem/1 var(--serif);
  text-decoration: none;
}
.chemin__etape--terminee .chemin__noeud { color: var(--vert); }
.chemin__etape--en_cours .chemin__noeud { color: var(--texte); font-weight: 700; }
.chemin__etape--dossier .chemin__noeud { font-style: normal; }
.chemin__etape strong { margin-top: .2rem; line-height: 1.2; }
.chemin__etape small { margin-top: .45rem; color: var(--texte-secondaire); font-size: .78rem; }
.chemin__etape--terminee small { color: var(--vert); font-weight: 700; }
.bulle {
  position: absolute;
  right: .6rem;
  top: .65rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chemin__legende-mobile { display: none; }
.accueil-suite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, .8fr);
  gap: 3rem;
  align-items: start;
}
.action-parcours {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-direction: column;
  padding-top: .25rem;
}
.action-parcours::before {
  content: "Prochaine étape";
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.action-parcours .bouton-principal { min-height: 54px; font-size: 1.05rem; }
.phrase-etape { max-width: 42rem; font: 400 1.2rem/1.5 var(--serif); }
.accueil-notes { display: flex; flex-direction: column; gap: 1.4rem; }
.a-faire { margin: 0; }
.a-faire h2, .dossier-compris h2 {
  margin: 0 0 .55rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--texte);
  font: italic 500 1.25rem/1.2 var(--serif);
}
.a-faire ul, .dossier-compris ul { margin: 0; padding: 0; list-style: none; }
.a-faire li, .dossier-compris li { padding: .55rem 0; border-bottom: 1px solid var(--trait); }
.a-faire a { font-weight: 650; }
.dossier-compris p { margin: .35rem 0; color: var(--texte-secondaire); }
.autres-fonctions { margin-top: 1.5rem; border-top: 1px solid var(--trait); padding-top: .75rem; }
.lecon { max-width: none; margin: auto; border: 0; }
.lecon__entete {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--texte);
}
.lecon__quitter { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.lecon__progression { flex: 1; }
.lecon__progression p { margin: 0 0 .35rem; text-align: right; }
progress { width: 100%; height: .55rem; accent-color: var(--vert-vif); }
.progressions-guide { display: grid; grid-template-columns: 1fr 2fr; gap: .65rem; }
.progressions-guide label { color: var(--texte-secondaire); font-size: .72rem; }
.progressions-guide progress { display: block; margin-top: .15rem; }
.revue-question { margin: 1.5rem 0; padding: 0; border: 0; }
.revue-question legend { margin-bottom: .65rem; font: 600 1.15rem/1.35 var(--serif); }
.revue-choix > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.revue-choix label {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: .65rem;
  padding: .65rem .8rem;
  border: 1px solid var(--trait);
  background: var(--papier);
  cursor: pointer;
}
.revue-choix label:has(input:checked) { border-color: var(--texte); background: var(--vert-doux); }
.revue-choix input { width: 1.25rem; height: 1.25rem; flex: none; }
.ecran-question__grille {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) minmax(14rem, 18rem);
  gap: 3rem;
  align-items: start;
}
.question-repere { color: var(--texte-secondaire); }
.question-repere__numero { display: block; font: italic 400 6rem/.85 var(--serif); }
.question-repere__total { display: block; margin-top: 1rem; font-size: .85rem; }
.question-principale h1 { max-width: 46rem; font-size: clamp(2.5rem, 4.5vw, 4rem); }
.question-principale .aide-question { max-width: 42rem; }
.pourquoi {
  margin: .5rem 0 1rem;
  color: var(--texte-secondaire);
  font: italic 1rem/1.55 var(--serif);
}
.pourquoi strong, .pourquoi summary { color: var(--texte); font: italic 700 1.1rem var(--serif); }
.pourquoi summary { min-height: 44px; cursor: pointer; align-items: center; }
.pourquoi p { margin: .4rem 0; }
.pourquoi--mobile { display: none; }
.lecon__formulaire { padding-bottom: 1rem; }
.aide-question { margin: .5rem 0 1rem; color: var(--texte-secondaire); }
.champ-reponse ul { list-style: none; margin: 0; padding: 0; border-block: 1.5px solid var(--texte); }
.champ-reponse li label {
  display: flex;
  min-height: 54px;
  gap: .75rem;
  align-items: center;
  margin: 0;
  padding: .65rem;
  border: 0;
  border-bottom: 1px solid var(--trait);
  background: transparent;
  font-weight: 600;
}
.champ-reponse li:last-child label { border-bottom: 0; }
.reponses-booleennes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
  border-block: 1.5px solid var(--texte);
}
.tuile-reponse {
  min-height: 6rem;
  padding: 1rem 1.25rem;
  justify-content: flex-start;
  border: 0;
  border-right: 1px solid var(--trait);
  color: var(--texte);
  background: transparent;
  font: 500 1.7rem var(--serif);
  text-align: left;
}
.tuile-reponse:last-child { border-right: 0; }
.tuile-reponse--inconnue { grid-column: auto; }
.tuile-reponse--enregistree { background: var(--feuille); box-shadow: inset 0 -4px 0 var(--vert-vif); }
.tuile-reponse small { display: block; margin-top: .15rem; color: var(--vert); font: 700 .75rem var(--sans); }
.question-precedente { margin: .75rem 0 0; }
.guide-traitement { max-width: 78rem; margin: auto; border: 0; }
.guide-traitement__voir-fiche { display: none; }
.guide-traitement__colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 2rem;
  background: var(--doux);
}
.guide-traitement__question {
  padding: 2.5rem;
  background: var(--fond);
  box-shadow: inset -18px 0 18px -18px rgb(0 0 0 / 20%);
}
.guide-traitement__question h2 { margin: .25rem 0; font: 400 2.2rem/1.12 var(--serif); }
.guide-traitement .reponse-commune {
  display: flex;
  min-height: 44px;
  gap: .65rem;
  align-items: center;
  margin: .75rem 0;
  padding: .5rem 0;
  border-top: 1px solid var(--trait);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}
.guide-traitement .reponse-commune input { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; margin: 0; }
.choix-guide > div, .choix-guide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-block: 1.5px solid var(--texte);
  list-style: none;
}
.choix-guide label {
  display: flex;
  min-height: 48px;
  gap: .5rem;
  align-items: center;
  margin: 0;
  padding: .5rem;
  border: 0;
  border-bottom: 1px solid var(--trait);
  background: transparent;
  font-weight: 600;
}
.choix-guide input { flex: 0 0 auto; margin: 0; }
.guide-traitement__actions > * { min-height: 44px; }
.guide-traitement__liens { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: .75rem; }
.rappel-pays { padding: .6rem; background: var(--vert-doux); }
.apercu-fiche {
  padding: 2.5rem;
  border: 0;
  background: var(--feuille);
  box-shadow: inset 18px 0 18px -18px rgb(0 0 0 / 16%);
}
.apercu-fiche__retour { display: none; }
.apercu-fiche h2 { margin: 0 0 1.5rem; font: 400 2.75rem/1 var(--serif); }
.apercu-fiche dl { margin: 0; border-top: 1.5px solid var(--texte); }
.apercu-fiche dt {
  margin-top: 1rem;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.apercu-fiche dd { padding: .3rem 0 .65rem; border-bottom: 1px solid var(--trait); font-family: var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.apercu-fiche__manquant { color: var(--alerte); font-weight: 700; }
.apercu-fiche p { color: var(--texte-secondaire); font-size: .85rem; }

@media (max-width: 899px) {
  .site-header__contenu { min-height: auto; padding: .75rem 1rem; align-items: flex-start; flex-direction: column; gap: .65rem; }
  nav { width: 100%; gap: .8rem; font-size: .86rem; }
  .navigation-deconnexion { margin-left: 0; }
  main { padding: 1rem; }
  .accueil-entete { display: block; margin-bottom: 1rem; }
  .accueil-entete h1 { font-size: 2.7rem; }
  .accueil-entete .introduction { font-size: .92rem; }
  .chemin { grid-template-columns: repeat(7, minmax(44px, 1fr)); margin: 0 0 .35rem; }
  .chemin__etape { min-height: 44px; padding: 0; align-items: center; justify-content: center; border-right: 0; }
  .chemin__noeud { display: grid; width: 44px; height: 44px; place-items: center; font: 700 1rem var(--sans); text-align: center; }
  .chemin__etape--en_cours { box-shadow: inset 0 -4px 0 var(--texte); }
  .chemin__etape strong, .chemin__etape small, .bulle { display: none; }
  .chemin__legende-mobile { display: block; margin: .45rem 0 1rem; text-align: center; }
  .accueil-suite { display: flex; flex-direction: column; gap: 1.25rem; }
  .action-parcours { width: 100%; gap: .55rem; text-align: center; align-items: stretch; }
  .action-parcours::before { text-align: center; }
  .phrase-etape { font-size: 1rem; }
  .accueil-notes { width: 100%; gap: 1rem; }
  .dossier-compris ul { columns: 1; }
  .a-faire li, .dossier-compris li { padding: .4rem 0; font-size: .85rem; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions__principales { justify-content: stretch; }
  .actions__principales > * { flex: 1; }
  .lecon__entete { margin-bottom: .8rem; padding-bottom: .55rem; gap: .75rem; }
  .lecon__progression p { font-size: .78rem; }
  .progressions-guide { grid-template-columns: 1fr; gap: .25rem; }
  .progressions-guide label { font-size: .68rem; }
  .revue-choix > div { grid-template-columns: 1fr; gap: .35rem; }
  .ecran-question__grille { display: flex; flex-direction: column; gap: .35rem; }
  .question-repere { display: none; }
  .question-principale { width: 100%; }
  .question-principale h1 { font-size: 1.65rem; }
  .question-principale .etiquette { margin-top: 0; }
  .question-principale .aide-question { margin: .3rem 0; font-size: .85rem; }
  .question-principale > p { margin: .3rem 0; }
  .pourquoi--ordinateur { display: none; }
  .pourquoi--mobile { display: block; margin: .2rem 0 .45rem; padding: .25rem .6rem; border-block: 1px solid var(--trait); }
  .pourquoi--mobile p { font-size: .85rem; }
  .reponses-booleennes { margin-top: .4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile-reponse { min-height: 3.25rem; padding: .5rem .7rem; font: 600 1.15rem var(--serif); }
  .tuile-reponse--inconnue { grid-column: 1 / -1; border-top: 1px solid var(--trait); border-right: 0; }
  .guide-traitement { font-size: .86rem; }
  .guide-traitement .lecon__entete { margin-bottom: .35rem; }
  .guide-traitement__voir-fiche { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
  .guide-traitement > h1 { display: none; }
  .guide-traitement .introduction { margin-bottom: .35rem; font-size: .8rem; }
  .guide-traitement__colonnes { display: block; padding: 0; background: transparent; }
  .guide-traitement__question { width: 100%; padding: 0; box-shadow: none; background: transparent; }
  .guide-traitement__question h2 { font-size: 1.3rem; }
  .guide-traitement .reponse-commune { margin: .35rem 0; padding: .25rem 0; font-size: .78rem; }
  .guide-traitement .pourquoi { margin: .35rem 0; padding: .4rem .55rem; font-size: .78rem; }
  .aide-question { margin: .25rem 0; font-size: .78rem; }
  .choix-guide > div, .choix-guide ul { gap: 0; }
  .choix-guide label { min-height: 44px; padding: .3rem; font-size: .75rem; line-height: 1.15; }
  .guide-traitement label { margin-top: .35rem; }
  .guide-traitement textarea { min-height: 44px; height: 44px; padding: .4rem; }
  .guide-traitement__actions { flex-direction: row; gap: .5rem; margin-top: .5rem; }
  .guide-traitement__actions > * { flex: 1; padding: .4rem; font-size: .8rem; }
  .guide-traitement__liens { margin-top: .4rem; font-size: .78rem; }
  .apercu-fiche { display: none; }
  .apercu-fiche:target {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    width: 100%;
    overflow-y: auto;
    padding: 1rem;
  }
  .apercu-fiche__retour { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: .75rem; font-weight: 700; }
  .apercu-fiche h2 { font-size: 2rem; }
}

@media (max-width: 420px) {
  main { padding: .7rem; }
  .site-header__contenu { padding: .65rem .75rem; }
  nav { gap: .6rem; font-size: .8rem; }
  .accueil-entete h1 { font-size: 2.35rem; }
  .action-parcours .bouton-principal { min-height: 48px; padding: .55rem .75rem; }
  .lecon__entete { gap: .5rem; }
  .lecon__quitter { font-size: .82rem; }
  .question-principale h1 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
