/* Quorum — mise en page de l'application */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--bois);
  outline-offset: 2px;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

.app {
  max-width: var(--largeur-app);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  padding: var(--s3) var(--s2) var(--s2);
  border-bottom: 1px solid var(--filet);
}

.masthead__nom {
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--texte);
  text-decoration: none;
}

.masthead__descripteur {
  font-size: var(--t-sm);
  color: var(--texte-doux);
  text-align: center;
  line-height: 1.45;
  max-width: 22rem;
  margin: 0;
}

/* ---------- Barre de retour ---------- */

.barre {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--filet);
  min-height: 3rem;
}

.barre__retour {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--t-sm);
  color: var(--texte-doux);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  min-height: 2.75rem;
  cursor: pointer;
}

.barre__retour:hover {
  color: var(--texte);
}

.barre__etape {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-doux);
  font-variant-numeric: tabular-nums;
}

/* Le sommaire du devoir, à un seul geste depuis n'importe quelle étape. */
.barre__etape--lien {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.barre__etape--lien:hover {
  color: var(--texte);
  border-bottom-color: var(--filet-fort);
}

/* La position dans le parcours : un filet de 2 px, sans animation. */
.barre__progression {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--filet);
}

.barre__progression > span {
  display: block;
  height: 100%;
  background: var(--bois);
}

/* ---------- Écran ---------- */

.ecran {
  flex: 1;
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding-bottom: 6rem;
}

.ecran__entete {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.ecran__titre {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 1.75rem);
}

.ecran__chapeau {
  color: var(--texte-doux);
  font-size: var(--t-md);
  line-height: 1.5;
  max-width: var(--largeur-texte);
}

/* Ligne de contexte : le titre de la loi, une fois, en petit sous le h1.
   Il n'est un h1 que sur l'accueil et le sommaire. */
.ecran__loi {
  margin: 0;
  font-size: var(--t-sm);
  line-height: 1.45;
  color: var(--texte-doux);
  max-width: var(--largeur-texte);
}

/* Progression d'un devoir : un compteur, puis un filet de 3 px. */
.avancement {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

/* ---------- Phases et étapes du devoir ---------- */

.phase {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.phase__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.phase__compte {
  color: var(--texte-faible);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.etape {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  gap: var(--s2);
  align-items: baseline;
  padding: 0.8rem 0;
  border-top: 1px solid var(--filet);
  text-decoration: none;
  color: inherit;
}

.etapes li:last-child .etape {
  border-bottom: 1px solid var(--filet);
}

.etape:hover .etape__nom {
  color: var(--bois-texte);
}

.etape:active {
  background: var(--fond-2);
}

.etape__num {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-faible);
  font-variant-numeric: tabular-nums;
}

.etape__nom {
  font-size: var(--t-md);
  color: var(--texte-doux);
}

.etape--faite .etape__nom {
  color: var(--texte);
}

.etape--faite .etape__num,
.etape__fait {
  color: var(--bois-texte);
}

.etape--suivante .etape__nom {
  color: var(--texte);
  font-weight: 500;
}

.etape__etat {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--bois);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bois-texte);
  white-space: nowrap;
}

.etape__compte {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-faible);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Ligne de contexte factuelle : date, chambre, statut. */
.meta-ligne {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--texte-doux);
  font-variant-numeric: tabular-nums;
}

.theme {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.theme::before {
  content: "";
  width: 2px;
  height: 0.95em;
  background: var(--bois);
}

/* ---------- Cartes et listes ---------- */

.carte {
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  background: var(--fond-2);
}

.carte--nue {
  border: 0;
  background: transparent;
  padding: 0;
}

.liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ligne {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: var(--s2);
  align-items: baseline;
  padding: var(--s2) 0;
  border-top: 1px solid var(--filet);
  text-decoration: none;
  color: inherit;
}

.ligne:last-child {
  border-bottom: 1px solid var(--filet);
}

.ligne--etroit {
  grid-template-columns: 2rem 1fr auto;
  padding: 0.9rem 0;
}

.ligne--archive {
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
}

.archive-section,
.suivi-section {
  margin-top: var(--s5);
}

.section-en-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.section-en-tete h2 {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  font-size: var(--t-lg);
}

.v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 2px;
  background: var(--bordeaux);
  color: #ede7dc;
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1;
  text-transform: none;
}

.champ-recherche {
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s4);
  color: var(--texte-doux);
  font-size: var(--t-sm);
}

.champ-recherche input {
  width: 100%;
  min-height: 3rem;
  box-sizing: border-box;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  padding: var(--s2) var(--s3);
  background: var(--fond-2);
  color: var(--texte);
  font: inherit;
  font-size: var(--t-md);
}

.champ-recherche input:focus-visible {
  outline-color: var(--bois-texte);
}

.ligne--suivi {
  grid-template-columns: 10rem minmax(0, 1fr);
}

.suivi-acte__meta {
  display: block;
  margin-top: var(--s1);
  color: var(--texte-doux);
  font-family: var(--mono);
  font-size: var(--t-xs);
}

.lien {
  color: var(--bois-texte);
  text-underline-offset: 0.2em;
}

@media (max-width: 30rem) {
  .ligne--archive {
    grid-template-columns: 5rem minmax(0, 1fr) auto;
  }

  .ligne--suivi {
    grid-template-columns: 1fr;
    gap: var(--s1);
  }
}

.ligne__date {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-doux);
  font-variant-numeric: tabular-nums;
}

.ligne__texte {
  font-size: var(--t-md);
}

.ligne--lien:hover .ligne__texte {
  color: var(--bois-texte);
}

.ligne--lien:active {
  background: var(--fond-2);
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  width: 100%;
  min-height: 3rem;
  padding: var(--s2) var(--s3);
  border: 0;
  border-radius: var(--rayon);
  background: var(--bordeaux);
  color: #ede7dc;
  font-size: var(--t-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--duree) var(--courbe),
    transform 120ms var(--courbe);
}

.bouton:hover {
  background: var(--bordeaux-haut);
}

.bouton:active {
  transform: scale(0.985);
}

.bouton:focus-visible {
  outline-color: var(--texte);
}

.bouton:disabled {
  background: var(--fond-3);
  color: var(--texte-doux);
  cursor: not-allowed;
}

.bouton--secondaire {
  background: transparent;
  color: var(--texte);
  border: 1px solid var(--filet-fort);
}

.bouton--secondaire:hover {
  background: var(--fond-2);
}

.bouton--secondaire:active {
  background: var(--fond-3);
}

.bouton--discret {
  background: transparent;
  color: var(--texte-doux);
  border: 0;
  font-weight: 400;
  min-height: 2.75rem;
}

.bouton--discret:hover {
  background: transparent;
  color: var(--texte);
}

.bouton--petit {
  width: auto;
  min-height: 2.25rem;
  padding: var(--s1) var(--s2);
  font-size: var(--t-sm);
}

/* ---------- Puces et étiquettes ---------- */

.puces {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.puce {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--filet-fort);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.puce--bois {
  border-color: var(--bois);
  color: var(--bois-texte);
}

.puce--pour {
  border-color: var(--pour);
  color: var(--pour);
}

.puce--contre {
  border-color: var(--contre);
  color: var(--contre);
}

.puce--abstention {
  border-color: var(--abstention);
  color: var(--abstention);
}

/* ---------- Vote : ce qui est voté, puis la question ---------- */

.ce-vote {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding-top: var(--s2);
  border-top: 1px solid var(--filet-fort);
}

.ce-vote .etiquette {
  margin: 0;
}

.ce-vote__texte {
  font-size: var(--t-md);
  line-height: 1.55;
  max-width: var(--largeur-texte);
}

/* ---------- Vote : carte à balayer ---------- */

.vote {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.vote__zone {
  position: relative;
  min-height: 13rem;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.vote__carte {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  background: var(--fond-2);
  will-change: transform, opacity;
  transition: transform var(--duree) var(--courbe), opacity var(--duree) var(--courbe);
}

.vote__carte[data-glisse="true"] {
  transition: none;
}

.vote__question {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.375rem);
  line-height: 1.3;
  text-wrap: balance;
}

.vote__aide {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-faible);
}

/* Le sens du geste, sous la carte, dans le même ordre que les boutons :
   contre à gauche, abstention au centre, pour à droite. */
.vote__sens {
  display: flex;
  justify-content: space-between;
  gap: var(--s1);
  margin: calc(var(--s2) * -1) 0 0;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-faible);
}

.vote__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}

.vote__bouton {
  min-height: 3rem;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  background: transparent;
  color: var(--texte);
  font-size: var(--t-sm);
  cursor: pointer;
  transition:
    border-color var(--duree) var(--courbe),
    color var(--duree) var(--courbe),
    transform 120ms var(--courbe);
}

.vote__bouton:active {
  transform: scale(0.97);
}

.vote__bouton:hover {
  border-color: var(--texte);
}

.vote__bouton[data-choix="pour"]:hover {
  border-color: var(--pour);
  color: var(--pour);
}

.vote__bouton[data-choix="contre"]:hover {
  border-color: var(--contre);
  color: var(--contre);
}

.vote__bouton[data-choix="abstention"]:hover {
  border-color: var(--abstention);
  color: var(--abstention);
}

/* ---------- Chronologie ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--s3);
  border-left: 1px solid var(--filet);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.timeline__item {
  position: relative;
  padding-left: var(--s3);
}

.timeline__marqueur {
  position: absolute;
  left: calc(var(--s3) * -1 - 3.5px);
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--commission);
}

.timeline__marqueur[data-chambre="AN"] {
  background: var(--an);
}

.timeline__marqueur[data-chambre="SENAT"] {
  background: var(--senat);
}

.timeline__date {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-doux);
  font-variant-numeric: tabular-nums;
}

.timeline__texte {
  margin-top: 0.15rem;
}

.legende {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-doux);
}

.legende__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legende__pastille {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--commission);
  flex: none;
}

/* La légende de l'hémicycle : un groupe par ligne, son nom entier et son
   effectif. Un sigle seul ne dit rien à qui n'a pas la table des groupes. */
.legende--groupes {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legende--groupes .legende__item {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--filet);
  text-transform: none;
  letter-spacing: 0;
}

.legende--groupes .legende__item:first-child {
  border-top: 1px solid var(--filet);
}

.legende__nom {
  color: var(--texte-doux);
  line-height: 1.4;
}



/* ---------- Extraits ---------- */

.extrait {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s1);
  padding: var(--s3) 0;
}

.extrait + .extrait {
  border-top: 1px solid var(--filet);
}

.extrait > * {
  align-self: flex-start;
  max-width: 100%;
}

.extrait__citation {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.45;
  border-left: 1px solid var(--filet-fort);
  padding-left: var(--s2);
  text-wrap: pretty;
}

.extrait__source {
  padding-left: var(--s2);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-faible);
}

.compteur {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-doux);
}

/* ---------- Article ---------- */

.article {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-width: var(--largeur-texte);
}

.article p {
  margin: 0;
}

.article__bloc {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.article__bloc + .article__bloc {
  padding-top: var(--s3);
  border-top: 1px solid var(--filet);
}

.article__ref {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bois-texte);
}

.article__titre {
  font-size: var(--t-md);
  font-weight: 400;
}

.article__note {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--filet);
  font-size: var(--t-sm);
  color: var(--texte-doux);
}

.article__note a {
  color: var(--bois-texte);
}

/* ---------- Variante : ce qui a changé ---------- */

.variante {
  margin-top: var(--s4);
  padding: var(--s3);
  border: 1px solid var(--filet);
  border-left: 2px solid var(--bois);
  background: var(--fond);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-width: var(--largeur-texte);
}

.variante__ref {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--bois-texte);
}

.variante__citation {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--texte);
}

.variante__compte {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--texte);
}

.variante__note {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--texte-doux);
}

.variante__lien {
  font-size: var(--t-sm);
  color: var(--bois-texte);
  word-break: break-word;
}

/* ---------- Chiffres ---------- */

.chiffres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--filet);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  overflow: hidden;
}

.chiffre {
  background: var(--fond);
  padding: var(--s2) 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chiffre__valeur {
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-variant-numeric: tabular-nums;
}

.chiffre__libelle {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* ---------- Débat cité ---------- */

.debat strong {
  color: var(--texte);
  font-weight: 600;
}

.debat-ensemble {
  display: flex;
  flex-direction: column;
  border-radius: var(--rayon);
  overflow: hidden;
}

/* Le camp se lit à la teinte du fond et à la couleur du libellé. Un filet
   neutre sépare les deux panneaux sans le liseré épais qui signe une interface
   générée. */
.debat {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--filet);
}

.debat + .debat {
  border-top: 0;
}

.debat__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
}

.debat__cote {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.debat__compte {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--texte-doux);
  white-space: nowrap;
}

.debat__titre {
  margin: calc(var(--s1) * -1) 0 0;
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 400;
  line-height: 1.3;
  color: var(--texte);
}

.debat--pour {
  background: var(--pour-fond);
}

.debat--contre {
  background: var(--contre-fond);
}

.debat--pour .debat__cote {
  color: var(--pour-texte);
}

.debat--contre .debat__cote {
  color: var(--contre-texte);
}

/* ---------- Débat cité et chiffres vérifiés ---------- */

.citation {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin: 0;
}

.citation + .citation {
  padding-top: var(--s3);
  border-top: 1px solid rgba(127, 127, 127, 0.18);
}

.citation__texte {
  margin: 0;
  font-size: var(--t-md);
  line-height: 1.62;
  color: var(--texte);
  text-wrap: pretty;
}

.citation__auteur {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: var(--t-sm);
}

.citation__nom {
  font-weight: 600;
}

.citation__role {
  color: var(--texte-doux);
}

.citation__source {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-block: 0.35rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  line-height: 1.5;
  text-decoration: none;
}

.citation__date {
  text-decoration: underline;
  text-decoration-color: var(--filet-fort);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.citation__source:hover .citation__date,
.citation__source:focus-visible .citation__date {
  text-decoration-color: currentColor;
}

/* La chambre passe sous la date plutôt que derrière un point orphelin
   lorsqu'il ne reste plus assez de place sur 360 px. */
.citation__chambre {
  color: var(--texte-doux);
}

.verif {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  background: var(--fond-2);
}

.verif__verdict {
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.verif[data-verdict="confirmé"] .verif__verdict {
  color: var(--texte);
}

.verif[data-verdict="non documenté"] .verif__verdict {
  border-style: dashed;
  color: var(--texte-faible);
}

.verif__phrase {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.4;
}

.verif__auteur,
.verif__sources {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--texte-doux);
}

.verif__texte {
  font-size: var(--t-md);
  line-height: 1.6;
}

.sources {
  font-size: var(--t-xs);
  line-height: 1.8;
  color: var(--texte-doux);
}

.sources__titre {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-faible);
}

.sources a {
  text-decoration-color: var(--filet-fort);
}

.sources a:hover {
  color: var(--bois-texte);
}

/* ---------- Arguments, presse, experts ---------- */

.bord {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.bord__titre {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* Le filet passe sous le libellé : un titre qui tient sur deux lignes ne
   laisse pas un trait flotter au milieu. */
.bord__titre::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: var(--s1);
  border-radius: 1px;
  background: var(--filet-fort);
}

.bord--pour .bord__titre {
  color: var(--pour);
}

.bord--contre .bord__titre {
  color: var(--contre);
}

.bord--pour .bord__titre::after {
  background: var(--pour);
}

.bord--contre .bord__titre::after {
  background: var(--contre);
}

.bord--neutre .bord__titre::after {
  background: var(--filet-fort);
}/* Le bord d'une colonne d'arguments se lit d'un coup d'œil : vert pour la
   peine plus lourde, rouge pour la peine plus légère. Les colonnes de presse
   sont neutres : elles sont classées par type de source, pas par bord. */
.bord--pour,
.bord--contre {
  padding-left: var(--s2);
  border-left: 2px solid;
}

.bord--pour {
  border-left-color: var(--pour);
}

.bord--contre {
  border-left-color: var(--contre);
}

.entree {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--s2) 0;
  border-top: 1px solid var(--filet);
}

.entree__meta {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-faible);
}

.entree__titre {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.35;
}

.entree__titre a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.entree__texte {
  color: var(--texte-doux);
  font-size: var(--t-sm);
}

/* ---------- Carte de l'hémicycle ---------- */

.carte-sieges {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.carte-sieges svg {
  width: 100%;
  height: auto;
  display: block;
}

.bascule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  overflow: hidden;
}

.bascule button {
  padding: var(--s1) var(--s2);
  min-height: 2.75rem;
  background: transparent;
  border: 0;
  color: var(--texte-doux);
  font-size: var(--t-sm);
  cursor: pointer;
  transition: color var(--duree) var(--courbe);
}

.bascule button:hover {
  color: var(--texte);
}

.bascule button[aria-pressed="true"] {
  color: var(--texte);
  box-shadow: inset 0 -2px 0 var(--bois);
}

/* ---------- Arbre de compétences ---------- */

.pieuvre {
  display: block;
  width: 100%;
  height: auto;
  margin: var(--s3) 0 var(--s1);
  overflow: visible;
}

.pieuvre .lien {
  fill: none;
  stroke: var(--filet-fort);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

.pieuvre .lien--ouvert {
  stroke: var(--bois);
  stroke-dasharray: none;
}

.pieuvre .bulle {
  fill: var(--fond-2);
  stroke: var(--filet);
  stroke-width: 1.5;
  transition: stroke var(--duree) var(--courbe);
}

.pieuvre .bulle--vide {
  fill: none;
  stroke-dasharray: 3 4;
}

.pieuvre .bulle--ouverte {
  stroke: var(--bois);
}

.pieuvre .logo {
  fill: none;
  stroke: var(--texte);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pieuvre .logo--vide {
  stroke: var(--texte-faible);
  opacity: 0.55;
}

/* Le camembert passe sur le pictogramme, jamais sur le nom. */
.pieuvre .part {
  fill: var(--bois);
  fill-opacity: 0.38;
  stroke: none;
}

.pieuvre .nom {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.01em;
  fill: var(--texte-faible);
  text-anchor: middle;
}

.pieuvre .nom--ouverte {
  fill: var(--texte);
}

.pieuvre .moyeu {
  fill: var(--fond-3);
  stroke: var(--filet-fort);
  stroke-width: 1.5;
}

.pieuvre .moyeu__xp {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  fill: var(--texte);
  text-anchor: middle;
}

.pieuvre .moyeu__legende {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  fill: var(--texte-faible);
  text-anchor: middle;
}

.pieuvre__note {
  margin: 0 0 var(--s3);
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--texte-faible);
}

.essaim__logo {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--texte-faible);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.essaim--ouvert .essaim__logo {
  stroke: var(--bois);
}

.jauge {
  height: 3px;
  background: var(--filet);
  border-radius: 2px;
  overflow: hidden;
}

.jauge__part {
  display: block;
  height: 100%;
  background: var(--bois);
  transition: width var(--duree) var(--courbe);
}

.tronc {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.jalons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.jalon {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-faible);
}

.jalon__marque {
  width: 6px;
  height: 6px;
  border: 1px solid var(--filet-fort);
  border-radius: 50%;
}

.jalon--ouvert {
  color: var(--texte);
}

.jalon--ouvert .jalon__marque {
  background: var(--bois);
  border-color: var(--bois);
}

.essaims {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.essaim {
  padding-left: var(--s3);
  border-left: 1px solid var(--filet-fort);
}

.essaim--ouvert {
  border-left-color: var(--bois);
}

.essaim__tete {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.essaim__nom {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--texte-faible);
}

.essaim--ouvert .essaim__nom {
  color: var(--texte);
}

.essaim__loi {
  padding: 0 0.3rem;
  border: 1px solid var(--bois);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bois-texte);
}

.essaim__etat {
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-faible);
}

.noeuds {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin: var(--s2) 0 0;
  padding: 0;
  list-style: none;
}

.noeud {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding: 0.3rem 0 0.3rem var(--s3);
  color: var(--texte-faible);
}

.noeud::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--s2);
  border-top: 1px solid var(--filet-fort);
}

.noeud--ouvert {
  color: var(--texte);
}

.noeud--ouvert::before {
  border-top-color: var(--bois);
}

.noeud__nom {
  font-size: var(--t-sm);
}

.noeud__seuil {
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-faible);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action {
  display: flex;
  gap: var(--s1);
  font-size: var(--t-sm);
  color: var(--texte-faible);
}

.action__marque {
  width: 1ch;
  font-family: var(--mono);
}

.action--faite {
  color: var(--texte);
}

.action--faite .action__marque {
  color: var(--bois-texte);
}

/* ---------- États vides ---------- */

.vide {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s4) var(--s3);
  border: 1px dashed var(--filet-fort);
  border-radius: var(--rayon);
  text-align: center;
  align-items: center;
}

.vide__titre {
  font-family: var(--serif);
  font-size: var(--t-lg);
}

.vide__texte {
  font-size: var(--t-sm);
  color: var(--texte-doux);
  max-width: 24rem;
}

/* ---------- Barre de navigation ---------- */

.navbas {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--filet);
  background: var(--fond);
  padding-bottom: env(safe-area-inset-bottom);
}

.navbas a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 2.75rem;
  padding: var(--s1) 0 var(--s2);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--texte-doux);
  text-decoration: none;
  border-top: 2px solid transparent;
  margin-top: -1px;
  transition: color var(--duree) var(--courbe);
}

.navbas a[aria-current="page"] {
  color: var(--texte);
  border-top-color: var(--bois);
}

.navbas a:active {
  color: var(--texte);
}

.navbas span {
  font-family: var(--mono);
}

/* ---------- Surcouche d'accueil ---------- */

.surcouche {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4) var(--s3) calc(var(--s4) + env(safe-area-inset-bottom));
  background: var(--fond);
  overflow-y: auto;
}

.surcouche__corps {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin: auto 0;
  max-width: 30rem;
  width: 100%;
  align-self: center;
}

.surcouche p {
  color: var(--texte-doux);
  font-size: var(--t-sm);
}

.surcouche strong {
  color: var(--texte);
  font-weight: 500;
}

@media (min-width: 40rem) {
  /* La surcouche se cale sur la colonne de l'application, pas sur la fenêtre :
     même largeur, même axe. Un seul mécanisme de centrage — left 50 % et
     translateX(-50 %) — sans marges automatiques, qui s'ajoutaient au
     décalage et poussaient le panneau de 120 px vers la droite. */
  .surcouche {
    inset: var(--s4) auto auto 50%;
    width: min(var(--largeur-app), calc(100vw - 2 * var(--s4)));
    max-width: var(--largeur-app);
    margin: 0;
    transform: translateX(-50%);
    border: 1px solid var(--filet);
    border-radius: var(--rayon-cadre);
    min-height: 32rem;
  }
}

/* ---------- Bandeau de démonstration ---------- */

.bandeau-demo {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bois-texte);
}

/* ---------- Pied ---------- */

.pied {
  /* La barre du bas reste collée au bas de la fenêtre : le pied réserve sa
     hauteur pour que la mention ne finisse jamais dessous. */
  padding: var(--s3) var(--s3) calc(var(--s3) + 3.5rem);
  border-top: 1px solid var(--filet);
}

.mention-independance {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--texte-faible);
  line-height: 1.5;
  max-width: var(--largeur-texte);
  margin: 0;
}

/* ---------- Utilitaires ---------- */

.pile {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.rangee {
  display: flex;
  gap: var(--s2);
  align-items: center;
}

.entre {
  justify-content: space-between;
}

.petit {
  font-size: var(--t-sm);
  color: var(--texte-doux);
}

.gris {
  color: var(--texte-doux);
}

.mono {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--texte-doux);
  font-variant-numeric: tabular-nums;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Ordinateur ---------- */

@media (min-width: 40rem) {
  body {
    background: #0d0a09;
    padding: var(--s4) var(--s2);
  }

  .app {
    min-height: auto;
    border: 1px solid var(--filet);
    border-radius: var(--rayon-cadre);
    overflow: hidden;
    box-shadow: 0 24px 60px rgb(0 0 0 / 55%);
  }
}
