@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/polices/archivo-latin.woff2") format("woff2-variations"), url("/polices/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/polices/archivo-latin-ext.woff2") format("woff2-variations"), url("/polices/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --fond: #F2F3F7;
  --fond-2: #E8EAF1;
  --fond-3: #DDE0EA;
  --surface: #FFFFFF;
  --encre: #151A33;
  --encre-2: #4A5072;
  --encre-3: #5F6585;
  --trait: #D5D8E5;
  --trait-fort: #7D82A0;
  --marque: #24306B;
  --focus: #2E3FA8;
  --alerte: #B42318;
  --inverse: #FFFFFF;
  --plus: #151A33;
  --plus-icone: #FFFFFF;
  --toast: #151A33;
  --toast-texte: #F2F3F7;
  --voile: rgba(21, 26, 51, 0.38);
  --contenu: #2E3FA8;
  --mannequinat: #B8324A;
  --musique: #8C6200;
  --beviweb: #3D7A4D;
  --prune: #7A3E8E;
  --petrole: #1F6F78;
  --rouille: #A3502A;
  --travail: #24306B;
  --toi: #4A5072;
  --fil: var(--encre-2);
  --fil-texte: var(--inverse);
  --largeur: 640px;
  --gouttiere: 18px;
  --barre-nav: 64px;
  --rayon: 6px;
  --rayon-etiquette: 10px;
  --filet: #E0E2EB;
  --haute: #FFFFFF;
  --ombre: 0 1px 2px rgba(21, 26, 51, 0.06), 0 10px 28px rgba(21, 26, 51, 0.12);
  --clavier: 0px;
  --visible: 100dvh;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    color-scheme: dark;
    --fond: #191919;
    --fond-2: #202020;
    --fond-3: #2B2B2B;
    --surface: #202020;
    --encre: #E3E3E2;
    --encre-2: #A6A6A5;
    --encre-3: #8F8F8E;
    --trait: #2C2C2B;
    --trait-fort: #6E6E6D;
    --marque: #8D9BFF;
    --focus: #8D9BFF;
    --alerte: #FF8A80;
    --inverse: #191919;
    --plus: #F2C04E;
    --plus-icone: #191919;
    --toast: #E3E3E2;
    --toast-texte: #191919;
    --voile: rgba(0, 0, 0, 0.6);
    --contenu: #8D9BFF;
    --mannequinat: #FF7D90;
    --musique: #F2C04E;
    --beviweb: #79CC8E;
    --prune: #D59BEA;
    --petrole: #6FD0D9;
    --rouille: #F29A6B;
    --travail: #B3B8D3;
    --toi: #A6A6A5;
    --filet: #2C2C2B;
    --haute: #2F2F2F;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="sombre"] {
  color-scheme: dark;
  --fond: #191919;
  --fond-2: #202020;
  --fond-3: #2B2B2B;
  --surface: #202020;
  --encre: #E3E3E2;
  --encre-2: #A6A6A5;
  --encre-3: #8F8F8E;
  --trait: #2C2C2B;
  --trait-fort: #6E6E6D;
  --marque: #8D9BFF;
  --focus: #8D9BFF;
  --alerte: #FF8A80;
  --inverse: #191919;
  --plus: #F2C04E;
  --plus-icone: #191919;
  --toast: #E3E3E2;
  --toast-texte: #191919;
  --voile: rgba(0, 0, 0, 0.6);
  --contenu: #8D9BFF;
  --mannequinat: #FF7D90;
  --musique: #F2C04E;
  --beviweb: #79CC8E;
  --prune: #D59BEA;
  --petrole: #6FD0D9;
  --rouille: #F29A6B;
  --travail: #B3B8D3;
  --toi: #A6A6A5;
  --filet: #2C2C2B;
  --haute: #2F2F2F;
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.55);
}

[data-fil="contenu"] { --fil: var(--contenu); }
[data-fil="mannequinat"] { --fil: var(--mannequinat); }
[data-fil="musique"] { --fil: var(--musique); }
[data-fil="beviweb"] { --fil: var(--beviweb); }
[data-fil="prune"] { --fil: var(--prune); }
[data-fil="petrole"] { --fil: var(--petrole); }
[data-fil="rouille"] { --fil: var(--rouille); }
[data-fil="travail"] { --fil: var(--travail); }
[data-fil="toi"] { --fil: var(--toi); }
[data-fil="encre"] { --fil: var(--encre); }

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--fond);
}

@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--encre);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: lining-nums;
  font-kerning: normal;
}

body[data-nav="oui"] { padding-bottom: calc(var(--barre-nav) + env(safe-area-inset-bottom) + 24px); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }

button:disabled { cursor: default; }

:focus { outline: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

::selection { background: color-mix(in srgb, var(--contenu) 24%, transparent); color: inherit; }

[hidden] { display: none !important; }

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

.chiffres { font-variant-numeric: tabular-nums lining-nums; }

.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic.petit { width: 1em; height: 1em; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.2; text-wrap: balance; }

p { margin: 0; text-wrap: pretty; }

.vue {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 8px var(--gouttiere) 0;
}

.vue:focus { outline: none; }

.barre {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: env(safe-area-inset-top) max(var(--gouttiere), calc((100% - var(--largeur)) / 2)) 0;
  background: var(--fond);
  transition: box-shadow 0.2s ease;
}

.barre.defile { box-shadow: 0 1px 0 var(--filet); }

.barre-gauche { display: flex; align-items: center; min-width: 0; }
.barre-droite { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.barre-titre {
  font-weight: 600;
  font-size: 0.94rem;
  opacity: 0;
  transition: opacity 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.barre.defile .barre-titre { opacity: 1; }

.retour {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin-left: -8px;
  padding: 0 8px 0 2px;
  font-weight: 500;
  text-decoration: none;
  color: var(--encre-2);
  min-width: 0;
}

.retour span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bouton-icone {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--rayon);
  color: var(--encre-2);
  text-decoration: none;
}

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

.navigation {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  height: calc(var(--barre-nav) + env(safe-area-inset-bottom));
  padding: 8px max(4px, calc((100% - var(--largeur)) / 2)) env(safe-area-inset-bottom);
  background: var(--fond);
  border-top: 1px solid var(--filet);
}

.navigation .marque-nav, .navigation .nav-texte { display: none; }

.onglet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 48px;
  padding-top: 2px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--encre-3);
  text-decoration: none;
}

.onglet .ic { width: 23px; height: 23px; }

.onglet[aria-current="page"] { color: var(--encre); font-weight: 650; }

.onglet-plus {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 34px;
  margin-top: 4px;
  border-radius: 10px;
  background: var(--plus);
  color: var(--plus-icone);
}

.onglet-plus .ic { width: 20px; height: 20px; stroke-width: 2.2; }

.onglet-plus:active { transform: scale(0.96); }

.pastille {
  position: absolute;
  top: -2px;
  left: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--mannequinat);
  color: var(--inverse);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--fond);
}

.direct-pilule {
  position: fixed;
  left: max(var(--gouttiere), calc((100% - var(--largeur)) / 2));
  right: max(var(--gouttiere), calc((100% - var(--largeur)) / 2));
  bottom: calc(var(--barre-nav) + env(safe-area-inset-bottom) + 10px);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 8px 14px;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-etiquette);
  background: var(--haute);
  color: var(--encre);
  text-decoration: none;
  box-shadow: var(--ombre);
}

.direct-pilule .point { color: var(--fil); }
.direct-pilule-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.direct-pilule-texte b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.direct-pilule-texte span { color: var(--encre-2); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.direct-pilule-temps { font-weight: 650; font-size: 1rem; }

body.avec-direct[data-nav="oui"] { padding-bottom: calc(var(--barre-nav) + env(safe-area-inset-bottom) + 90px); }

.point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  animation: battement 2s ease-in-out infinite;
}

@keyframes battement { 50% { opacity: 0.35; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--barre-nav) + env(safe-area-inset-bottom) + 14px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(calc(100% - 2 * var(--gouttiere)), 460px);
  min-height: 48px;
  padding: 10px 10px 10px 16px;
  border-radius: var(--rayon-etiquette);
  background: var(--toast);
  color: var(--toast-texte);
  box-shadow: var(--ombre);
  transform: translate(-50%, 8px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-weight: 500;
}

body.avec-direct .toast { bottom: calc(var(--barre-nav) + env(safe-area-inset-bottom) + 74px); }
body[data-nav="non"] .toast { bottom: calc(env(safe-area-inset-bottom) + 20px); }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.toast-texte { flex: 1; }

.toast-action {
  min-height: 40px;
  padding: 0 10px;
  font-weight: 650;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.titre-date {
  margin: 18px 0 0;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.titre {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

.sous-titre {
  margin: 6px 0 0;
  color: var(--encre-2);
  font-size: 0.97rem;
}

.entete { margin-bottom: 22px; }

.entete .avant-titre {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--encre-2);
  font-weight: 500;
  font-size: 0.86rem;
}

.section { margin-top: 34px; }
.section:first-child { margin-top: 0; }

.titre-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.005em;
}

.titre-section .compte { color: var(--encre-3); font-weight: 500; font-size: 0.88rem; }

.lien-section {
  flex: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--focus);
  text-decoration: none;
}

.texte-doux { color: var(--encre-2); }
.aide { color: var(--encre-2); font-size: 0.86rem; line-height: 1.5; margin-top: 8px; }
.aide a { color: var(--focus); text-decoration: none; font-weight: 500; }
.petit-texte { font-size: 0.88rem; }

.paragraphe { margin-top: 8px; line-height: 1.55; }

.liste { list-style: none; margin: 0; padding: 0; }

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

.ligne {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}

.ligne.compacte { min-height: 44px; padding: 7px 0; }

a.ligne:active, button.ligne:active { background: var(--fond-2); }

.ligne-avant {
  flex: none;
  min-width: 46px;
  align-self: baseline;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--encre-2);
}

.ligne-avant.doux { color: var(--encre-3); }

.ligne-icone { flex: none; display: grid; place-items: center; width: 26px; color: var(--encre-3); }

.ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.ligne-titre { font-weight: 500; overflow-wrap: anywhere; }

.ligne-sous { color: var(--encre-2); font-size: 0.86rem; line-height: 1.4; overflow-wrap: anywhere; }

.ligne-apres { flex: none; display: flex; align-items: center; gap: 6px; color: var(--encre-2); font-size: 0.9rem; }

.chevron { width: 16px; height: 16px; color: var(--encre-3); flex: none; opacity: 0.75; }

.ligne.faite .ligne-titre { color: var(--encre-3); text-decoration: line-through; text-decoration-thickness: 1px; }

.marque-fil {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--fil);
  vertical-align: 0.06em;
}

.ligne .marque-fil { align-self: center; }

.nom-fil { color: var(--fil); font-weight: 600; }

.mot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--encre-2);
  white-space: nowrap;
}

.mot.retard { color: var(--alerte); }
.mot.fil { color: var(--fil); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: transparent;
  color: var(--encre);
  font-weight: 550;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.bouton .ic { width: 1.15em; height: 1.15em; }
.bouton:active { background: var(--fond-2); }
.bouton.principal { background: var(--marque); border-color: var(--marque); color: var(--inverse); }
.bouton.principal:active { opacity: 0.88; }
.bouton.petit { min-height: 34px; padding: 0 11px; font-size: 0.88rem; }
.bouton.plein { width: 100%; }
.bouton.danger { border-color: color-mix(in srgb, var(--alerte) 45%, transparent); color: var(--alerte); }
.bouton.arme { background: var(--alerte); border-color: var(--alerte); color: var(--inverse); }
.bouton:disabled { opacity: 0.5; }

.bouton-texte {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-weight: 550;
  color: var(--focus);
  text-decoration: none;
}

.bouton-texte.discret { color: var(--encre-2); font-weight: 500; }
.bouton-texte.danger { color: var(--alerte); }
.bouton-texte.arme { color: var(--alerte); }
.bouton-texte:disabled { opacity: 0.5; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.actions.pile { flex-direction: column; align-items: stretch; }
.actions.pile .bouton { justify-content: flex-start; }

.etiquette {
  position: relative;
  margin-top: 8px;
  padding: 14px 14px 16px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--fil) 6%, var(--fond));
  color: var(--encre);
}

.etiquette[data-fil="encre"], .etiquette:not([data-fil]) { --fil: var(--marque); }

.etiquette-tete { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--encre-2); font-size: 0.8rem; font-weight: 500; }

.etiquette-tete::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--fil); }

.etiquette-tete > .point { width: 7px; height: 7px; margin-left: auto; color: var(--fil); }

.etiquette-titre { margin: 0 0 4px; font-weight: 600; font-size: 1.12rem; line-height: 1.3; overflow-wrap: anywhere; }

.etiquette-texte { color: var(--encre-2); font-size: 0.94rem; line-height: 1.45; }

.etiquette-projet { margin-top: 8px; font-size: 0.86rem; font-weight: 500; }

.etiquette-projet a { color: inherit; }

.etiquette .actions { margin-top: 12px; gap: 8px 12px; }

.etiquette .bouton { border-color: color-mix(in srgb, var(--fil) 35%, transparent); color: var(--encre); }

.etiquette .bouton.principal { background: var(--fil); border-color: var(--fil); color: var(--fil-texte); }

.etiquette .bouton-texte { color: color-mix(in srgb, var(--fil) 88%, var(--encre)); }

.etiquette .bouton-texte.discret { color: var(--encre-2); }

.etiquette .chrono-grand { margin: 2px 0 4px; color: var(--encre); font-weight: 650; font-size: 2.1rem; line-height: 1.05; letter-spacing: -0.02em; }

.etiquette.accomplie { animation: accompli 0.4s ease forwards; }

@keyframes accompli { to { opacity: 0.35; transform: scale(0.985); } }

.etiquette.calme { background: color-mix(in srgb, var(--encre) 4%, var(--fond)); }

.etiquette.calme .etiquette-tete::before { display: none; }
.etiquette.calme .bouton { border-color: var(--trait); color: var(--encre); }
.etiquette.calme .bouton.principal { background: var(--marque); border-color: var(--marque); color: var(--inverse); }
.etiquette.calme .bouton-texte { color: var(--focus); }

.ligne-annonce {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin-top: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
  text-decoration: none;
  color: inherit;
}

.ligne-annonce + .ligne-annonce { margin-top: 0; border-top: 0; }
.ligne-annonce .ligne-texte b { font-weight: 600; }

.tissee { width: 100%; border-collapse: collapse; table-layout: fixed; }

.tissee caption { text-align: left; }

.tissee th { font-weight: 500; }

.tissee thead th {
  padding: 0 1px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fil);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.tissee thead th a { color: inherit; text-decoration: none; }
.tissee thead th:first-child { width: 40px; }

.tissee tbody th {
  padding: 0;
  height: 24px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--encre-3);
  text-align: left;
}

.tissee tbody tr.ici th { color: var(--encre); font-weight: 650; }

.tissee td { position: relative; padding: 0; height: 24px; }

.tissee abbr { text-decoration: none; }

.tissee tbody td::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: var(--fil);
  opacity: 0.24;
}

.tissee td .rang {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--fil);
  box-shadow: 0 0 0 3px var(--fond);
}

.tissee td button { position: absolute; inset: 0; width: 100%; }

.tissee tr.futur td::before { opacity: 0.1; }

.tissee-legende { margin-top: 10px; color: var(--encre-2); font-size: 0.8rem; }

.journee { list-style: none; margin: 0; padding: 0; }

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

.journee .ligne { align-items: baseline; }

.journee .passee .ligne-titre, .journee .passee .ligne-avant { color: var(--encre-3); }

.journee .faite .ligne-titre { color: var(--encre-3); }

.journee .maintenant-trait {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 20px;
  border-top: 0;
  color: var(--mannequinat);
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.journee .maintenant-trait::after { content: ""; flex: 1; height: 1px; background: currentColor; }

.journee .maintenant-trait + li { border-top: 0; }

.journee .en-cours .ligne-titre { font-weight: 650; }

.tache { display: flex; align-items: flex-start; gap: 4px; }

.coche {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 46px;
  margin-left: -9px;
  color: var(--encre);
}

.coche::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--trait-fort);
  border-radius: 5px;
  grid-area: 1 / 1;
}

.coche .ic { grid-area: 1 / 1; width: 13px; height: 13px; stroke-width: 3; opacity: 0; }

.coche[aria-pressed="true"]::before { background: var(--marque); border-color: var(--marque); }
.coche[aria-pressed="true"] .ic { opacity: 1; color: var(--inverse); }

.tache-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 11px 0; min-height: 46px; text-align: left; }

.tache-texte { font-weight: 500; overflow-wrap: anywhere; }

.tache.faite .tache-texte { color: var(--encre-3); text-decoration: line-through; text-decoration-thickness: 1px; }

.tache.sort { opacity: 0; transform: translateX(14px); transition: opacity 0.25s ease, transform 0.25s ease; }

.suggestion-ia {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--rayon-etiquette);
  background: color-mix(in srgb, var(--marque) 7%, var(--fond));
}

.parcours { list-style: none; margin: 0; padding: 0; position: relative; }

.parcours > li { position: relative; display: flex; gap: 12px; padding-left: 0; }

.parcours > li::before {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--fil);
  opacity: 0.3;
}

.parcours > li:first-child::before { top: 22px; }
.parcours > li:last-child::before { bottom: calc(100% - 22px); }
.parcours > li:only-child::before { display: none; }

.parcours .noeud {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 44px;
}

.parcours .noeud i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--fil);
  background: var(--fond);
}

.parcours .franchie .noeud i { background: var(--fil); }

.parcours .en_cours .noeud i { width: 12px; height: 12px; border-width: 0; background: var(--fil); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fil) 20%, var(--fond)); }

.parcours .etape { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 8px 0; text-align: left; }

.parcours .etape-titre { font-weight: 500; }

.parcours .en_cours .etape-titre { font-weight: 650; }

.parcours .franchie .etape-titre { color: var(--encre-2); }

.parcours .etape-sous { color: var(--encre-3); font-size: 0.8rem; }

.note-assistant {
  margin-top: 28px;
  padding: 12px 14px;
  border-radius: var(--rayon-etiquette);
  background: color-mix(in srgb, var(--marque) 6%, var(--fond));
}

.par-assistant {
  display: block;
  margin-bottom: 4px;
  color: var(--encre-3);
  font-size: 0.78rem;
  font-weight: 600;
}

.note-assistant p { font-size: 0.97rem; line-height: 1.5; }

.niveau { font-weight: 650; }

.tendance { color: var(--encre-2); }
.tendance.progresse { color: var(--beviweb); }
.tendance.recule { color: var(--alerte); }

.semaines { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.semaines i { display: block; width: 6px; border-radius: 1px; background: var(--fil); opacity: 0.8; }
.semaines i.vide { height: 2px !important; background: var(--trait-fort); opacity: 0.5; }

.puces { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin: 0 calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); }
.puces::-webkit-scrollbar { display: none; }
.puces.enroule { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 0; }

.puce {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: color-mix(in srgb, var(--encre) 6%, transparent);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--encre);
  white-space: nowrap;
  text-decoration: none;
}

.puce[aria-pressed="true"], .puce[aria-current="page"] { background: color-mix(in srgb, var(--focus) 15%, transparent); color: var(--focus); font-weight: 600; }
.puce:disabled { opacity: 0.5; }
.puce.pointillee { background: transparent; border: 1px dashed var(--trait-fort); color: var(--encre-2); }

.segments {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--fond-2);
}

.segments button { min-height: 34px; padding: 0 6px; border-radius: 7px; color: var(--encre-2); font-weight: 500; font-size: 0.86rem; text-align: center; }
.segments button[aria-pressed="true"] { background: var(--haute); color: var(--encre); font-weight: 600; box-shadow: 0 1px 2px rgba(21, 26, 51, 0.1); }

.champ { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.champ:first-child { margin-top: 0; }
.champ label, .etiquette-champ { font-weight: 600; font-size: 0.86rem; color: var(--encre-2); }

.champ input, .champ select, .champ textarea, .saisie {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--trait-fort);
  border-radius: 8px;
  background: var(--surface);
  color: var(--encre);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.champ textarea { resize: none; min-height: 84px; }
.champ textarea[data-une-ligne] { min-height: 44px; }
.champ textarea[rows="2"] { min-height: 64px; }

.champ select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D82A0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
}

.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible, .saisie:focus-visible, .composeur textarea:focus-visible, .connexion input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 24%, transparent); }

.champ input::placeholder, .champ textarea::placeholder, .saisie::placeholder { color: var(--encre-3); }

.champ input[type="date"], .champ input[type="time"] { min-height: 44px; }

.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.grille-2 .champ { margin-top: 14px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }

.bascule { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; margin-top: 10px; font-weight: 500; }

.interrupteur { position: relative; flex: none; width: 46px; height: 28px; }
.interrupteur input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.interrupteur span { position: absolute; inset: 0; border-radius: 14px; background: var(--fond-3); border: 1px solid var(--trait-fort); transition: background 0.18s ease; }
.interrupteur span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22); transition: transform 0.18s ease; }
.interrupteur input:checked + span { background: var(--marque); border-color: var(--marque); }
.interrupteur input:checked + span::after { transform: translateX(18px); background: var(--fond); }
.interrupteur input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.groupe { margin-top: 6px; }
.groupe-titre { margin: 30px 0 6px; font-weight: 650; font-size: 1rem; }
.groupe-ligne { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 50px; padding: 9px 0; border-top: 1px solid var(--filet); color: inherit; text-decoration: none; font-weight: 500; }
.groupe-ligne:last-child { border-bottom: 1px solid var(--filet); }
.groupe-valeur { color: var(--encre-2); font-weight: 400; text-align: right; }
.groupe-note { margin-top: 10px; color: var(--encre-2); font-size: 0.86rem; }
.groupe-bloc { padding: 12px 0; border-top: 1px solid var(--filet); }

.vide { padding: 28px 0 8px; }
.vide-titre { font-weight: 650; font-size: 1.06rem; }
.vide-texte { margin-top: 6px; color: var(--encre-2); max-width: 46ch; }
.vide .bouton, .vide .bouton-texte { margin-top: 14px; }

.bloc-vide { padding: 10px 0; color: var(--encre-2); }

.erreur, .feuille-erreur { color: var(--alerte); font-weight: 500; font-size: 0.94rem; }
.feuille-erreur:empty { display: none; }
.feuille-erreur { margin-top: 12px; }

.attente {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1.75px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tour 0.8s linear infinite;
  vertical-align: -3px;
}

@keyframes tour { to { transform: rotate(360deg); } }

.statut-ligne { display: flex; align-items: center; gap: 10px; color: var(--encre-2); font-size: 0.94rem; padding: 10px 0; }

.squelette { padding-top: 16px; }
.os { background: var(--fond-2); border-radius: 4px; }
.os-titre { width: 58%; height: 32px; margin-top: 8px; }
.os-sous { width: 34%; height: 15px; margin-top: 12px; }
.os-carte { height: 156px; margin-top: 22px; border-radius: var(--rayon-etiquette); }
.os-bloc { height: 80px; margin-top: 20px; }
.os-ligne { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--filet); }
.os-ligne:first-of-type { margin-top: 18px; }
.os-rond { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.os-texte { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.os-barre { height: 12px; }

.feuille {
  width: 100%;
  max-width: none;
  max-height: calc(var(--visible) - 40px);
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: var(--fond);
  color: var(--encre);
  box-shadow: var(--ombre);
  overflow: hidden;
  transform: translateY(var(--decalage, 0));
}

.feuille[open] { display: flex; flex-direction: column; animation: monte 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); }

.feuille::backdrop { background: var(--voile); animation: voile 0.24s ease; }

@keyframes monte { from { transform: translateY(40px); opacity: 0.4; } }
@keyframes voile { from { opacity: 0; } }

.feuille.resiste { animation: resiste 0.3s ease; }

@keyframes resiste { 25% { transform: translateY(8px); } 60% { transform: translateY(-3px); } }

.feuille-corps { display: flex; flex-direction: column; min-height: 0; max-height: inherit; margin: 0; }

.feuille-poignee { flex: none; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--trait-fort); opacity: 0.45; }

.feuille-tete {
  flex: none;
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 2px var(--gouttiere) 0;
  border-bottom: 1px solid var(--filet);
}

.feuille-tete h2 { font-size: 1rem; font-weight: 650; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feuille-tete .bouton-texte { justify-self: start; color: var(--encre-2); font-weight: 500; text-decoration: none; }
.feuille-tete .valider { justify-self: end; color: var(--focus); font-weight: 600; text-decoration: none; }

.feuille-contenu {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gouttiere) calc(24px + env(safe-area-inset-bottom) + var(--clavier));
}

.feuille-sous-titre { margin: 22px 0 8px; font-weight: 650; font-size: 0.94rem; }

.feuille-statut { display: flex; align-items: center; gap: 10px; color: var(--encre-2); margin-top: 12px; }

.feuille-question { margin: 18px 0 10px; font-weight: 600; }

.commande .feuille-contenu { padding-top: 12px; }

.commande-champ {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 4px 0 12px;
  border: 1px solid var(--trait-fort);
  border-radius: 10px;
  background: var(--surface);
}

.commande-champ input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font-size: 1.06rem; }
.commande-champ input:focus-visible { outline: none; }
.commande-champ:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 24%, transparent); }
.commande-effacer { display: grid; place-items: center; width: 42px; height: 42px; color: var(--encre-3); }

.commande-astuce { margin-top: 10px; color: var(--encre-2); font-size: 0.86rem; }

.commande-choix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }

.commande-tuile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 66px;
  padding: 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--encre) 5%, transparent);
  color: var(--encre);
  font-weight: 550;
  font-size: 0.86rem;
  text-decoration: none;
}

.commande-tuile .ic { width: 20px; height: 20px; color: var(--encre-2); }
.commande-tuile:active { background: color-mix(in srgb, var(--encre) 10%, transparent); }

.commande-groupe { margin: 22px 0 6px; font-weight: 650; font-size: 0.94rem; }

.commande-lecture { margin-top: 12px; }
.commande-titre { font-weight: 600; margin-bottom: 8px; }
.commande-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.commande-puce { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--rayon); background: color-mix(in srgb, var(--encre) 6%, transparent); font-weight: 500; font-size: 0.86rem; }
.commande-puce.type { background: color-mix(in srgb, var(--focus) 15%, transparent); color: var(--focus); font-weight: 600; }
.commande-puce.pointillee { background: transparent; border: 1px dashed var(--trait-fort); color: var(--encre-2); }
.commande-types, .commande-projets { margin-bottom: 12px; }

.connexion { max-width: 360px; margin: 18vh auto 0; display: flex; flex-direction: column; gap: 12px; }
.connexion .marque-grande { display: flex; align-items: baseline; gap: 0; font-stretch: 125%; font-weight: 820; font-size: 2.8rem; letter-spacing: -0.02em; line-height: 1; margin-bottom: 26px; color: var(--encre); }
.connexion .marque-grande svg { height: 0.66em; width: auto; margin-right: 0.01em; }
.connexion input { min-height: 48px; padding: 0 14px; border: 1px solid var(--trait-fort); border-radius: 8px; background: var(--surface); font-size: 1.06rem; }
.connexion .bouton { min-height: 48px; }

.mot-marque { display: inline-flex; align-items: baseline; font-stretch: 125%; font-weight: 820; letter-spacing: -0.02em; line-height: 1; }
.mot-marque svg { height: 0.66em; width: auto; margin-right: 0.01em; display: inline-block; }

.bloc-texte { margin-top: 10px; line-height: 1.55; }
.bloc-texte + .bloc-texte { margin-top: 8px; }

.paires { margin: 0; }
.paires > div { padding: 11px 0; }
.paires > div + div { border-top: 1px solid var(--filet); }
.paires dt { font-weight: 600; font-size: 0.84rem; color: var(--encre-2); margin-bottom: 2px; }
.paires dd { margin: 0; line-height: 1.5; }

.appui { margin-top: 18px; color: var(--encre-2); font-size: 0.86rem; line-height: 1.5; }
.appui b { color: var(--encre); font-weight: 600; }

.liste-points { margin: 6px 0 0; padding-left: 1.1em; }
.liste-points li { margin-top: 4px; line-height: 1.5; }
.liste-points li::marker { color: var(--encre-3); }

.grand-chiffre { font-weight: 650; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.chiffres-ligne { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 12px; }
.chiffre b { display: block; font-weight: 650; font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.chiffre span { color: var(--encre-2); font-size: 0.8rem; }

.jauge { position: relative; height: 4px; border-radius: 2px; background: var(--fond-3); overflow: hidden; margin-top: 8px; }
.jauge i { position: absolute; inset: 0 auto 0 0; background: var(--fil); border-radius: 2px; }

.courbe { width: 100%; height: 72px; margin-top: 10px; overflow: visible; }
.courbe polyline { fill: none; stroke: var(--fil); stroke-width: 2; vector-effect: non-scaling-stroke; }
.courbe circle { fill: var(--fond); stroke: var(--fil); stroke-width: 1.75; }

.bulle-chat { max-width: 88%; padding: 10px 14px; border-radius: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.bulle-chat.moi { margin-left: auto; background: color-mix(in srgb, var(--marque) 11%, var(--fond)); color: var(--encre); }
.bulle-chat.ia { max-width: 100%; padding: 2px 0; border-radius: 0; background: transparent; }
.fil-chat { display: flex; flex-direction: column; gap: 14px; padding-bottom: 12px; }
.fil-chat .meta-ia { margin-top: 6px; color: var(--encre-3); font-size: 0.75rem; }
.actions-ia { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fil-chat { list-style: none; margin: 0; }
.bulle-chat .paragraphe:first-child { margin-top: 0; }
.bulle-chat.echec { opacity: 0.6; }
.arrive { animation: arrive 0.22s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }

.source {
  display: inline-block;
  max-width: 100%;
  padding: 0 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--marque) 9%, var(--fond));
  color: var(--focus);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: 0.08em;
}
a.source:active { background: var(--fond-3); }

.composeur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--barre-nav) + env(safe-area-inset-bottom));
  z-index: 24;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px max(var(--gouttiere), calc((100% - var(--largeur)) / 2));
  background: var(--fond);
  border-top: 1px solid var(--filet);
}

html.clavier .composeur { bottom: var(--clavier); }
.composeur textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 10px 12px; border: 1px solid var(--trait-fort); border-radius: 10px; background: var(--surface); resize: none; font-size: 1rem; line-height: 1.4; }
.composeur .bouton { min-width: 44px; min-height: 44px; padding: 0 12px; }

body[data-page="demander"] { padding-bottom: calc(var(--barre-nav) + env(safe-area-inset-bottom) + 96px); }

.chrono-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.serie { display: flex; align-items: center; gap: 12px; }

.photo-zone { display: grid; place-items: center; min-height: 120px; border: 1px dashed var(--trait-fort); border-radius: var(--rayon-etiquette); color: var(--encre-2); font-weight: 500; text-align: center; padding: 16px; }

@media (hover: hover) {
  .bouton:hover { background: var(--fond-2); }
  .bouton.principal:hover { background: var(--marque); opacity: 0.92; }
  .bouton-texte:hover, .lien-section:hover, .aide a:hover { text-decoration: underline; }
  .puce:hover { background: color-mix(in srgb, var(--encre) 10%, transparent); }
  .puce[aria-pressed="true"]:hover, .puce[aria-current="page"]:hover { background: color-mix(in srgb, var(--focus) 20%, transparent); }
  .commande-tuile:hover { background: color-mix(in srgb, var(--encre) 9%, transparent); }
  .bouton-icone:hover { background: var(--fond-2); }
}

@media (min-width: 900px) {
  :root { --gouttiere: 32px; --largeur: 720px; }

  body[data-nav="oui"] { padding-bottom: 48px; padding-left: 240px; }
  body.avec-direct[data-nav="oui"] { padding-bottom: 110px; }

  .navigation {
    top: 0;
    right: auto;
    bottom: 0;
    width: 240px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    padding: 22px 12px;
    border-top: 0;
    border-right: 1px solid var(--filet);
    background: var(--fond-2);
  }

  .navigation .marque-nav { order: -2; display: block; margin: 0 10px 18px; font-size: 1.55rem; color: var(--encre); text-decoration: none; }

  .onglet { flex-direction: row; gap: 10px; min-height: 36px; padding: 0 10px; color: var(--encre-2); font-size: 0.94rem; font-weight: 500; border-radius: var(--rayon); }
  .onglet:hover { background: var(--fond-3); }
  .onglet[aria-current="page"] { background: var(--fond-3); color: var(--encre); font-weight: 600; }
  .onglet .ic { width: 20px; height: 20px; }
  .pastille { position: static; margin-left: auto; box-shadow: none; }

  .onglet-plus { order: -1; width: auto; height: 36px; margin: 0 0 14px; border-radius: var(--rayon); justify-content: flex-start; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: transparent; color: var(--focus); font-weight: 600; }
  .onglet-plus:hover { background: var(--fond-3); }
  .onglet-plus .nav-texte { display: inline; }
  .onglet-plus .ic { width: 20px; height: 20px; stroke-width: 2; }

  .barre { padding-left: max(var(--gouttiere), calc((100% - var(--largeur)) / 2)); }

  .direct-pilule { left: calc(240px + max(var(--gouttiere), calc((100% - 240px - var(--largeur)) / 2))); right: max(var(--gouttiere), calc((100% - 240px - var(--largeur)) / 2)); bottom: 20px; }

  .toast { bottom: 24px; left: calc(50% + 120px); }
  body.avec-direct .toast { bottom: 90px; }

  .composeur { left: 240px; bottom: 0; }
  body[data-page="demander"] { padding-bottom: 110px; }

  .feuille { width: min(560px, calc(100% - 64px)); margin: auto; border-radius: 12px; max-height: min(86vh, 820px); }
  .feuille-poignee { display: none; }

  .titre-date { font-size: 2.35rem; }
  .titre { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .point { animation: none; }
}

@media (forced-colors: active) {
  .etiquette, .direct-pilule, .note-assistant, .suggestion-ia { border: 2px solid CanvasText; }
  .tissee td .rang { background: CanvasText; }
  .coche[aria-pressed="true"]::before { background: Highlight; }
}

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
legend.titre-section { float: left; width: 100%; }
legend.titre-section + * { clear: both; }

.champ-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.valeur-champ { padding: 10px 12px; border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.statut-ligne .ic { flex: none; width: 1.1em; height: 1.1em; }

.compteur { display: grid; grid-template-columns: 48px 1fr 48px; border: 1px solid var(--trait-fort); border-radius: 8px; background: var(--surface); overflow: hidden; }
.compteur button { display: grid; place-items: center; min-height: 48px; color: var(--encre); }
.compteur button:active { background: var(--fond-2); }
.compteur .ic { width: 18px; height: 18px; }
.champ .compteur input { min-width: 0; min-height: 48px; padding: 0 4px; border: 0; border-left: 1px solid var(--filet); border-right: 1px solid var(--filet); border-radius: 0; background: transparent; text-align: center; font-weight: 650; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.champ .compteur input:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.histogramme { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 100px; margin-top: 8px; }
.histogramme span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; height: 100%; }
.histogramme i { width: 100%; max-width: 14px; height: calc((100% - 22px) * var(--h, 0)); background: var(--fil); border-radius: 2px 2px 0 0; }
.histogramme b { color: var(--encre-3); font-size: 0.7rem; font-weight: 500; }
.histogramme .aujourdhui b { color: var(--encre); font-weight: 650; }

.chiffre .jauge { margin-top: 8px; min-width: 120px; }

.periode { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.periode-texte { flex: 1; text-align: center; font-weight: 600; font-size: 0.94rem; }

.espace-haut { margin-top: 12px; }
.espace-haut-grand { margin-top: 24px; }
