/* La salle de contrôle : une table lumineuse.
   Le fond est la table, froide et claire ; ce que l'agence produit y est posé
   comme des épreuves — du papier blanc, à bords nets, sans ombre (sur une table
   lumineuse, la lumière vient d'en dessous). L'encre est noire.
   Une couleur dit un état, jamais un décor :
     le surligneur  — c'est à toi ;
     le bleu        — le système travaille, ou trace un repère ;
     le vert, le rouge — validé, refusé.
   Voir docs/INTERFACE.md. */

@font-face {
    font-family: "Bricolage";
    src: url("/polices/bricolage-grotesque.woff2") format("woff2");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/polices/spectral-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/polices/spectral-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Spectral";
    src: url("/polices/spectral-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --table: #e8ecef;
    --creux: #dce2e6;
    --papier: #ffffff;
    --encre: #000000;
    --encre-2: #48535a;
    --encre-3: #77838a;
    --trait: #c3ccd2;
    --surligneur: #ffe500;
    --sur-surligneur: #000000;
    --bleu: #0a6c96;
    --bleu-clair: #a6dcf2;
    --vert: #12884a;
    --rouge: #d3261d;
    --voile: rgba(8, 12, 15, 0.94);
    --police: "Bricolage", "Helvetica Neue", Arial, sans-serif;
    --lecture: "Spectral", Georgia, "Times New Roman", serif;
    --rail: 15.5rem;
    --marge: clamp(1rem, 3.2vw, 2.75rem);
}
@media (prefers-color-scheme: dark) {
    :root {
        --table: #101417;
        --creux: #191f23;
        --papier: #1f262b;
        --encre: #ffffff;
        --encre-2: #b7c1c8;
        --encre-3: #88949b;
        --trait: #37424a;
        --bleu: #7fcdec;
        --bleu-clair: #1c4b60;
        --vert: #4cc584;
        --rouge: #ff6f63;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    background: var(--table);
    color: var(--encre);
    font: 400 0.9375rem/1.5 var(--police);
    font-optical-sizing: auto;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
    margin: 0;
    padding: 0;
}
ul,
ol {
    list-style: none;
}
button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
}
code {
    font: inherit;
    font-weight: 500;
    overflow-wrap: anywhere;
}
:focus-visible {
    outline: 2px solid var(--encre);
    outline-offset: 3px;
}
[hidden] {
    display: none !important;
}

/* ——— Le texte ——— */

.titre-1 {
    font-size: clamp(2.25rem, 5.4vw, 3.75rem);
    line-height: 0.94;
    font-weight: 800;
    font-stretch: 78%;
    letter-spacing: -0.022em;
    text-wrap: balance;
}
.titre-2 {
    font-size: 1.75rem;
    line-height: 1.08;
    font-weight: 760;
    font-stretch: 82%;
    letter-spacing: -0.014em;
    text-wrap: balance;
}
.titre-3 {
    font-size: 1.125rem;
    line-height: 1.25;
    font-weight: 700;
    font-stretch: 90%;
}
.sous-titre {
    font-size: 1.3125rem;
    line-height: 1.25;
    font-weight: 500;
    color: var(--encre-2);
}
.discret {
    color: var(--encre-2);
}
.petit {
    font-size: 0.8125rem;
    line-height: 1.45;
}
.mesure {
    max-width: 68ch;
}
/* Ce qui attend G. est passé au surligneur, comme sur une épreuve. */
.surligne {
    background: linear-gradient(to bottom, transparent 10%, var(--surligneur) 10% 90%, transparent 90%);
    color: var(--sur-surligneur);
    padding: 0 0.28em;
    margin: 0 -0.08em;
    border-radius: 0.2em 0.5em 0.3em 0.45em / 0.5em 0.2em 0.45em 0.3em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ——— Les commandes : des pilules. Le papier a des bords nets ; ce qu'on presse est rond. ——— */

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.45rem 1.05rem;
    border: 1.5px solid var(--encre);
    border-radius: 99rem;
    background: var(--encre);
    color: var(--table);
    font-weight: 650;
    font-size: 0.9375rem;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.08s ease;
}
.bouton:active:not(:disabled) {
    transform: translateY(1px);
}
.bouton:disabled {
    cursor: not-allowed;
    background: transparent;
    color: var(--encre-3);
    border-color: var(--trait);
}
/* Le seul bouton au surligneur d'un écran : ce que G. peut faire maintenant. */
.bouton.a-toi:not(:disabled) {
    background: var(--surligneur);
    border-color: var(--surligneur);
    color: var(--sur-surligneur);
}
.bouton.contour:not(:disabled) {
    background: transparent;
    color: var(--encre);
}
.bouton.danger:not(:disabled) {
    background: transparent;
    color: var(--rouge);
    border-color: var(--rouge);
}
.bouton.petit {
    min-height: 2rem;
    padding: 0.25rem 0.8rem;
    font-size: 0.8125rem;
}
.bouton svg {
    flex: none;
}
.lien {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.18em;
    cursor: pointer;
    text-align: left;
}
.lien:hover {
    text-decoration-thickness: 2.5px;
}
.lien:disabled {
    color: var(--encre-3);
    cursor: not-allowed;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.75rem;
}

.champ {
    display: block;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--trait);
    border-radius: 0.6rem;
    background: var(--papier);
    line-height: 1.45;
}
textarea.champ {
    resize: vertical;
    min-height: 5.2rem;
}
.champ:hover {
    border-color: var(--encre-3);
}
.champ:focus-visible {
    outline: none;
    border-color: var(--encre);
    box-shadow: 0 0 0 1.5px var(--encre);
}
.champ::placeholder {
    color: var(--encre-3);
}
.etiquette {
    display: block;
    font-weight: 650;
    margin-bottom: 0.3rem;
}
.aide {
    color: var(--encre-2);
    font-size: 0.8125rem;
    margin-bottom: 0.45rem;
}
.message {
    min-height: 1.2em;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rouge);
}
.message.bon {
    color: var(--vert);
}
.message:empty {
    display: none;
}
.alerte {
    padding: 0.7rem 0.9rem;
    border-left: 4px solid var(--rouge);
    background: var(--papier);
    font-weight: 500;
}

/* ——— Ce qui aide à lire : les bulles, les gestes en pictogramme, l'interrupteur, les segments, les puces ———
   Un pictogramme ne dit rien à qui ne le connaît pas : chacun a sa phrase, au survol et au clavier. */

.bulle {
    position: fixed;
    z-index: 60;
    max-width: min(21rem, calc(100vw - 8px));
    padding: 0.5rem 0.7rem;
    border-radius: 0.4rem;
    background: var(--encre);
    color: var(--table);
    font-size: 0.8125rem;
    line-height: 1.4;
    font-weight: 500;
    pointer-events: none;
}
.bulle::after {
    content: "";
    position: absolute;
    left: var(--pointe, 50%);
    bottom: -4px;
    width: 9px;
    height: 9px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}
.bulle.dessous::after {
    top: -4px;
    bottom: auto;
}
.question {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--encre-3);
    cursor: help;
}
.question:hover,
.question:focus-visible {
    color: var(--encre);
}
.geste {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: none;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1.5px solid transparent;
    border-radius: 99rem;
    background: none;
    color: var(--encre-2);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.geste:hover:not(:disabled),
.geste:focus-visible {
    border-color: var(--encre);
    color: var(--encre);
}
.geste.actif {
    background: var(--encre);
    border-color: var(--encre);
    color: var(--table);
}
.geste:disabled {
    color: var(--trait);
    cursor: default;
}
/* Son nom : à côté du pictogramme là où l'on ne survole pas (un téléphone), dans la bulle ailleurs. */
.geste-nom {
    display: none;
}
.interrupteur-rang {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.interrupteur {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}
/* La vraie case est posée sur la piste, invisible : c'est elle qu'on presse, au doigt comme au clavier. */
.interrupteur input {
    position: absolute;
    z-index: 1;
    width: 2.5rem;
    height: 1.4rem;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.interrupteur-piste {
    position: relative;
    flex: none;
    width: 2.5rem;
    height: 1.4rem;
    border: 1.5px solid var(--encre-3);
    border-radius: 99rem;
    background: var(--papier);
    transition: background 0.12s ease;
}
.interrupteur-piste::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.17rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--encre-3);
    transform: translateY(-50%);
    transition: left 0.12s ease;
}
.interrupteur input:checked + .interrupteur-piste {
    border-color: var(--encre);
    background: var(--encre);
}
.interrupteur input:checked + .interrupteur-piste::after {
    left: 1.28rem;
    background: var(--papier);
}
.interrupteur input:focus-visible + .interrupteur-piste {
    outline: 2px solid var(--encre);
    outline-offset: 3px;
}
.segments {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    border: 1.5px solid var(--trait);
    border-radius: 1.35rem;
    background: var(--papier);
}
.segment {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.segment input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.segment > span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.25rem 0.85rem;
    border-radius: 99rem;
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--encre-2);
    white-space: nowrap;
}
.segment:hover > span {
    color: var(--encre);
}
.segment input:checked + span {
    background: var(--encre);
    color: var(--table);
}
.segment input:focus-visible + span {
    outline: 2px solid var(--encre);
    outline-offset: 2px;
}
.segment-combien {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0.72;
}
.puce {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--encre-2);
    white-space: nowrap;
}
.puce svg {
    flex: none;
    color: var(--encre-3);
}
.puce[data-bulle] {
    cursor: help;
}
.courbe {
    flex: none;
    color: var(--encre);
    vertical-align: middle;
}

/* ——— Les gommettes : l'état d'une chose, en un point ——— */

.gommette {
    --teinte: var(--encre-3);
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--teinte);
    color: var(--papier);
}
.gommette svg {
    width: 0.75rem;
    height: 0.75rem;
}
.gommette.valide {
    --teinte: var(--vert);
}
.gommette.refuse {
    --teinte: var(--rouge);
}
.gommette.travail {
    --teinte: var(--bleu);
}
.gommette.a-toi {
    --teinte: var(--surligneur);
    color: var(--sur-surligneur);
}
.gommette.creuse {
    background: transparent;
    border: 1.5px solid var(--trait);
}
.gommette.mini {
    width: 0.625rem;
    height: 0.625rem;
}
.marque-etat {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.8125rem;
}

/* Le repère d'impression : il tourne tant qu'un agent travaille, et seulement alors. */
.repere {
    flex: none;
    color: var(--bleu);
}
.repere.tourne {
    animation: tourner 7s linear infinite;
}
@keyframes tourner {
    to {
        transform: rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .repere.tourne {
        animation: none;
    }
    * {
        transition: none !important;
    }
}

/* ——— La charpente : le rail des dossiers, puis la table ——— */

.salle {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    min-height: 100vh;
}
.rail {
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 1.25rem 0.75rem 1rem;
    border-right: 1px solid var(--trait);
    overflow-y: auto;
}
.enseigne {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.5rem 1.1rem;
    font-weight: 800;
    font-stretch: 80%;
    font-size: 1.3125rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.enseigne .repere {
    color: var(--encre);
}
.rail-titre {
    padding: 0.9rem 0.5rem 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--encre-3);
}
.rail-liste {
    display: grid;
    gap: 1px;
}
.rail-entree {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 0;
    border-radius: 0.5rem;
    background: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.rail-entree:hover {
    background: var(--creux);
}
.rail-entree[aria-current="page"] {
    background: var(--encre);
    color: var(--table);
}
.rail-entree strong {
    display: block;
    font-weight: 700;
    font-stretch: 88%;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rail-entree span {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.3;
    opacity: 0.72;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rail-pied {
    margin-top: auto;
    padding-top: 1rem;
    display: grid;
    gap: 0.5rem;
}
.rail-pied .rail-entree {
    font-weight: 600;
}
.rail-etat {
    padding: 0.6rem 0.5rem 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--encre-2);
}
.rail-etat strong {
    display: block;
    color: var(--encre);
    font-weight: 650;
}
.nouveau {
    display: grid;
    gap: 0.45rem;
    padding: 0.6rem 0.5rem;
}
.nouveau .champ {
    padding: 0.45rem 0.6rem;
}
.table {
    min-width: 0;
    padding: clamp(1rem, 2.6vw, 2.25rem) var(--marge) 5rem;
}
.barre-mobile {
    display: none;
}
/* L'application ne répond plus : on le dit en haut, sans rien cacher de ce qui était là. */
.panne {
    position: sticky;
    top: 0;
    z-index: 15;
    padding: 0.7rem var(--marge);
    background: var(--rouge);
    color: #fff;
    font-weight: 600;
}

/* ——— L'en-tête d'un dossier ——— */

.dossier-tete {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem 2rem;
}
.dossier-tete .sous-titre,
.table > .titre-1 + .sous-titre {
    margin-top: 0.3rem;
}
.depense {
    text-align: right;
    font-size: 0.8125rem;
    color: var(--encre-2);
    min-width: 11rem;
}
.depense strong {
    display: block;
    font-size: 1.3125rem;
    line-height: 1.1;
    font-weight: 700;
    font-stretch: 86%;
    color: var(--encre);
}
.jauge {
    height: 4px;
    margin: 0.4rem 0 0.25rem auto;
    background: var(--creux);
}
.jauge i {
    display: block;
    height: 100%;
    background: var(--encre);
}
.jauge.pleine i {
    background: var(--rouge);
}

/* ——— Où on en est : une phrase, et ce qu'on peut faire ——— */

.ou {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
    min-height: 2.75rem;
}
.ou-phrase {
    flex: 1 1 24rem;
    font-size: 1.3125rem;
    line-height: 1.32;
    font-weight: 600;
    font-stretch: 92%;
    text-wrap: pretty;
}
.ou-phrase .repere {
    vertical-align: -0.2em;
    margin-right: 0.35rem;
}
.ou-autres {
    flex-basis: 100%;
    display: grid;
    gap: 0.3rem;
    padding-left: 0.1rem;
}
.ou-autres li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0 0.55rem;
}
.ou-autres .bouton {
    margin: 0.15rem 0 0.15rem 0.35rem;
    vertical-align: middle;
}

/* ——— Le chemin de fer : une planche par étape, dans l'ordre du travail ——— */

.chemin {
    display: flex;
    gap: 0.875rem;
    margin: 1.75rem calc(var(--marge) * -1) 0;
    padding: 1.4rem var(--marge) 0;
    overflow-x: auto;
    scrollbar-width: thin;
    border-bottom: 2px solid var(--encre);
}
.planche {
    position: relative;
    flex: 1 0 6.5rem;
    max-width: 8.75rem;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.4rem;
    padding: 0 0 0.9rem;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}
.feuille {
    position: relative;
    aspect-ratio: 5 / 6;
    background: var(--papier);
    overflow: hidden;
}
.planche.a-venir .feuille {
    background: transparent;
    outline: 1.5px dashed var(--trait);
    outline-offset: -1.5px;
}
.planche:hover .feuille {
    outline: 1.5px solid var(--encre-3);
    outline-offset: -1.5px;
}
.planche[aria-current="step"] .feuille {
    outline: 2.5px solid var(--encre);
    outline-offset: 2px;
}
/* L'étape qu'on regarde tient à la ligne du bas, comme un onglet. */
.planche[aria-current="step"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 6px;
    background: var(--encre);
}
.planche-etiquette {
    position: absolute;
    top: -0.7rem;
    left: 0.4rem;
    z-index: 1;
    padding: 0.05rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    background: var(--surligneur);
    color: var(--sur-surligneur);
    transform: rotate(-2deg);
}
.planche-etiquette {
    white-space: nowrap;
}
.planche-etiquette.travail {
    background: var(--bleu);
    color: var(--papier);
    transform: none;
}
.planche-etiquette.refus {
    background: var(--rouge);
    color: #fff;
    transform: none;
}
.planche .gommette {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
}
.planche-nom {
    display: flex;
    gap: 0.4rem;
    font-weight: 700;
    font-stretch: 86%;
    font-size: 0.875rem;
    line-height: 1.15;
}
.folio {
    color: var(--encre-3);
    font-weight: 500;
}
.planche-phrase {
    /* Sans cela, la planche la plus haute étire les autres, et une phrase coupée à deux lignes montre la troisième. */
    align-self: start;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--encre-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* La miniature : ce que l'étape a vraiment rendu, en tout petit. */
.mini-texte {
    margin: 0.5rem 0.45rem;
    font: 400 0.34rem/1.5 var(--lecture);
    color: var(--encre-2);
    overflow: hidden;
    height: calc(100% - 1rem);
    word-break: break-word;
}
/* Sous une étiquette, le texte descend d'un cran : elle ne lui passe pas dessus. */
.planche-etiquette + .feuille .mini-texte {
    margin-top: 0.8rem;
    height: calc(100% - 1.3rem);
}
.mini-texte b {
    display: block;
    font: 700 0.5rem/1.2 var(--police);
    color: var(--encre);
    margin-bottom: 0.2rem;
}
.mini-images {
    display: grid;
    gap: 2px;
    height: 100%;
    padding: 2px;
    background: var(--papier);
}
.mini-images img,
.mini-images i {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 0;
    background: var(--creux);
}
.mini-points {
    display: grid;
    align-content: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    padding: 0.4rem;
}
.mini-points i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--trait);
}
.mini-points i.valide {
    background: var(--vert);
}
.mini-points i.refuse {
    background: var(--rouge);
}

/* ——— L'atelier d'une étape : ce qu'elle a rendu, et le poste de celui qui le fait ——— */

.atelier {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20.5rem;
    gap: 2rem clamp(1.5rem, 3vw, 3rem);
    margin-top: 2rem;
    align-items: start;
}
.atelier.seul {
    grid-template-columns: minmax(0, 1fr);
}
.rendu {
    display: grid;
    gap: 1.75rem;
    min-width: 0;
}
.bloc {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}
.bloc-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1rem;
}
.vide {
    padding: 2.25rem 1.5rem;
    outline: 1.5px dashed var(--trait);
    outline-offset: -1.5px;
    color: var(--encre-2);
}
.vide .actions {
    margin-top: 1rem;
}
.vide strong {
    display: block;
    color: var(--encre);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

/* Le poste d'un agent. */
.poste {
    position: sticky;
    top: 1.25rem;
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--papier);
}
.poste-tete {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.2rem 0.8rem;
    align-items: center;
}
.poste-tete p {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    color: var(--encre-2);
}
/* Le monogramme d'un métier : un caractère de plomb. */
.monogramme {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--encre);
    color: var(--papier);
    font-weight: 800;
    font-stretch: 75%;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}
.monogramme.petit {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
}
.poste-quoi {
    font-weight: 600;
    line-height: 1.35;
}
.poste-bloque {
    padding-left: 0.75rem;
    border-left: 3px solid var(--trait);
    color: var(--encre-2);
}
.poste-travail {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: var(--bleu);
    font-weight: 650;
}
/* Ce qui a changé de ce qu'il reçoit depuis qu'il a rendu : chaque changement, et de quoi le relire. */
.poste-depuis {
    display: grid;
    gap: 0.5rem;
}
.depuis {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.depuis li {
    display: grid;
    gap: 0.15rem;
    justify-items: start;
    line-height: 1.4;
}
.poste h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--encre-3);
    margin-bottom: 0.35rem;
}
.poste .actions.petit {
    margin-top: 0.3rem;
    gap: 0.2rem 1rem;
}
.poste-dit {
    font: 400 0.9375rem/1.55 var(--lecture);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.poste-dit.coupe {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fiche-lignes {
    display: grid;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}
.fiche-lignes dt {
    color: var(--encre-3);
}
.fiche-lignes dd {
    font-weight: 500;
}
.poids {
    height: 4px;
    background: var(--creux);
    margin-top: 0.3rem;
}
.poids i {
    display: block;
    height: 100%;
    background: var(--encre);
}
.poids.trop i {
    background: var(--rouge);
}
details.repli > summary {
    cursor: pointer;
    font-weight: 650;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
details.repli > summary::-webkit-details-marker {
    display: none;
}
details.repli > summary::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.12s;
}
details.repli[open] > summary::before {
    transform: rotate(45deg);
}
details.repli > :not(summary) {
    margin-top: 0.75rem;
}

/* ——— Une feuille de papier : un document à lire ——— */

.page {
    background: var(--papier);
    padding: clamp(1.25rem, 3.4vw, 3rem) clamp(1.1rem, 4vw, 3.5rem);
}
.document {
    font: 400 1.0625rem/1.62 var(--lecture);
    max-width: 66ch;
    overflow-wrap: anywhere;
}
.document > * + * {
    margin-top: 0.9em;
}
.document h1,
.document h2,
.document h3,
.document h4 {
    font-family: var(--police);
    line-height: 1.15;
    text-wrap: balance;
}
.document h1 {
    font-size: 1.9rem;
    font-weight: 800;
    font-stretch: 80%;
    letter-spacing: -0.015em;
}
.document h2 {
    font-size: 1.3rem;
    font-weight: 750;
    font-stretch: 86%;
    margin-top: 1.8em;
}
.document h3,
.document h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5em;
}
.document ul,
.document ol {
    padding-left: 1.3em;
}
.document ul {
    list-style: disc;
}
.document ol {
    list-style: decimal;
}
.document li + li {
    margin-top: 0.3em;
}
.document strong {
    font-weight: 600;
}
/* Ce qui change d'une version à l'autre. Ni vert ni rouge : un ajout n'est pas validé, un retrait n'est pas refusé.
   Ce qui part se barre et s'estompe ; ce qui arrive se signale en marge, comme sur une épreuve corrigée. */
.difference del,
.difference ins {
    display: block;
    text-decoration: none;
}
.difference del {
    color: var(--encre-3);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.difference ins {
    margin-left: -1rem;
    padding-left: calc(1rem - 3px);
    border-left: 3px solid var(--encre);
}
/* Ce qui ne change pas se replie : un pli, et combien il en cache. */
.difference-replie {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font: 500 0.8125rem/1.3 var(--police);
    color: var(--encre-3);
}
.difference-replie::before,
.difference-replie::after {
    content: "";
    flex: 1;
    border-top: 1px dashed var(--trait);
}
.document blockquote {
    padding-left: 1em;
    border-left: 3px solid var(--trait);
    font-style: italic;
}
.document pre {
    font: 500 0.8125rem/1.5 var(--police);
    white-space: pre-wrap;
    background: var(--creux);
    padding: 0.8rem 1rem;
}
.document hr {
    border: 0;
    border-top: 1px solid var(--trait);
    margin: 1.6em 0;
}
.document table {
    border-collapse: collapse;
    font: 400 0.875rem/1.4 var(--police);
}
.document th,
.document td {
    border-bottom: 1px solid var(--trait);
    padding: 0.35rem 0.75rem 0.35rem 0;
    text-align: left;
    vertical-align: top;
}
/* Les quatre signes du brief : ce qui est imposé, et d'où vient chaque fait. */
.impose {
    font-weight: 600;
    background: linear-gradient(to bottom, transparent 62%, var(--bleu-clair) 62% 92%, transparent 92%);
}
.source {
    display: inline-block;
    margin: 0 0.1em;
    padding: 0 0.45em;
    border: 1px solid currentColor;
    border-radius: 99rem;
    font: 600 0.72em/1.5 var(--police);
    vertical-align: 0.08em;
    white-space: nowrap;
    color: var(--encre-2);
}
.colle {
    white-space: nowrap;
}
.source.suppose {
    color: var(--bleu);
}
.source.a-confirmer {
    border-color: var(--surligneur);
    background: var(--surligneur);
    color: var(--sur-surligneur);
}
.brut {
    font: 400 0.8125rem/1.55 ui-monospace, "Cascadia Mono", Menlo, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.editeur {
    width: 100%;
    min-height: 60vh;
    border: 0;
    padding: 0;
    background: transparent;
    font: 400 0.9375rem/1.6 ui-monospace, "Cascadia Mono", Menlo, monospace;
    resize: vertical;
}
.editeur:focus-visible {
    outline: none;
}

/* Les versions d'un livrable. */
.versions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.version {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.2rem 0.7rem;
    border: 1.5px solid var(--trait);
    border-radius: 99rem;
    background: transparent;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
}
.version[aria-pressed="true"] {
    border-color: var(--encre);
    background: var(--encre);
    color: var(--table);
}
.version .gommette {
    width: 0.75rem;
    height: 0.75rem;
}

/* Les concepts : une fiche par idée. */
.concepts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
    gap: 1rem;
}
.concept {
    background: var(--papier);
    padding: 1.25rem 1.35rem 1.4rem;
}
.concept-tete {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}
.lettre {
    font-size: 2.5rem;
    line-height: 0.85;
    font-weight: 800;
    font-stretch: 75%;
}
.concept .document {
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* ——— Les épreuves : les images d'une étape ——— */

.epreuves {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
    gap: 1.75rem 1.25rem;
    align-items: start;
}
.epreuves.table-formats {
    grid-template-columns: repeat(var(--colonnes, 3), minmax(0, 1fr));
    gap: 1.5rem 1.1rem;
}
/* Une image seule se regarde sans prendre toute la table : la loupe est là pour s'en approcher. */
.epreuve-seule {
    max-width: 34rem;
}
.rang-titre {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--trait);
}
.rang-titre:first-child {
    border-top: 0;
    padding-top: 0;
}
.rang-titre .lettre {
    font-size: 1.75rem;
}
.epreuve {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}
.epreuve-image {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--creux);
    cursor: zoom-in;
}
.epreuve-image img {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.epreuve-image img.vue {
    opacity: 1;
}
.epreuve-image.absente {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    background: transparent;
    outline: 1.5px dashed var(--trait);
    outline-offset: -1.5px;
    color: var(--encre-3);
    font-size: 0.8125rem;
    cursor: default;
}
/* Ce que G. retient part à l'impression : des traits de coupe aux quatre coins. */
.epreuve.retenue .epreuve-image::before,
.epreuve.retenue .epreuve-image::after {
    content: "";
    position: absolute;
    inset: -0.55rem;
    pointer-events: none;
    background:
        linear-gradient(var(--encre), var(--encre)) left 0.55rem top 0 / 1.5px 0.4rem no-repeat,
        linear-gradient(var(--encre), var(--encre)) left 0 top 0.55rem / 0.4rem 1.5px no-repeat,
        linear-gradient(var(--encre), var(--encre)) right 0.55rem top 0 / 1.5px 0.4rem no-repeat,
        linear-gradient(var(--encre), var(--encre)) right 0 top 0.55rem / 0.4rem 1.5px no-repeat,
        linear-gradient(var(--encre), var(--encre)) left 0.55rem bottom 0 / 1.5px 0.4rem no-repeat,
        linear-gradient(var(--encre), var(--encre)) left 0 bottom 0.55rem / 0.4rem 1.5px no-repeat,
        linear-gradient(var(--encre), var(--encre)) right 0.55rem bottom 0 / 1.5px 0.4rem no-repeat,
        linear-gradient(var(--encre), var(--encre)) right 0 bottom 0.55rem / 0.4rem 1.5px no-repeat;
}
.epreuve.perimee .epreuve-image img {
    filter: grayscale(1);
    opacity: 0.45;
}
.epreuve-legende {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
    font-size: 0.8125rem;
}
.epreuve-legende strong {
    font-size: 0.9375rem;
    font-weight: 700;
    font-stretch: 88%;
}
.epreuve .actions {
    gap: 0.4rem 0.9rem;
}
.epreuve .actions .lien {
    font-size: 0.8125rem;
}
.reproches {
    display: grid;
    gap: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}
.reproches li {
    padding-left: 0.7rem;
    border-left: 2px solid var(--rouge);
}
.reproches strong {
    font-weight: 650;
}

/* La planche-contact : les cases serrées, dans l'ordre de la planche, comme sur une table lumineuse. */
.planche-contact {
    display: grid;
    grid-template-columns: repeat(var(--colonnes, 3), minmax(0, 1fr));
    gap: 1.4rem 1rem;
    align-items: start;
    max-width: 46rem;
}
.case-contact {
    gap: 0.4rem;
}
.case-contact .epreuve-image img {
    aspect-ratio: var(--format, 4 / 5);
    object-fit: cover;
}
.case-contact .epreuve-image.absente {
    aspect-ratio: var(--format, 4 / 5);
}
.case-contact .epreuve-image.absente {
    font-size: 1.5rem;
    font-weight: 800;
    font-stretch: 75%;
}
.case-contact .epreuve-legende {
    flex-wrap: nowrap;
    gap: 0.4rem;
    min-height: 1.25rem;
}
.case-lettre {
    font-size: 1.125rem;
    line-height: 1;
    font-weight: 800;
    font-stretch: 75%;
}
.case-nom {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--encre-2);
}
.case-contact .bouton {
    justify-self: start;
}
/* Une piste déclinée : sa planche de maquettes, sous son nom. */
.piste-declinee {
    display: grid;
    gap: 0.9rem;
}
.piste-declinee + .piste-declinee {
    padding-top: 1.5rem;
    border-top: 1px solid var(--trait);
}
.piste-declinee .rang-titre,
.retenu-dit .rang-titre {
    flex-wrap: wrap;
    border-top: 0;
    padding-top: 0;
}
/* Ce qu'un agent a retenu : l'image, et ce qu'il en dit — un texte de l'équipe, en Spectral. */
.retenus {
    display: grid;
    gap: 1rem;
}
.retenu {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    background: var(--papier);
    padding: 1.1rem 1.25rem;
}
.retenu-dit {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}
.choix-dit {
    font: 400 0.9375rem/1.55 var(--lecture);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.choix-dit strong {
    font: 600 0.75rem/1.35 var(--police);
}
@media (max-width: 34rem) {
    .planche-contact {
        gap: 1rem 0.55rem;
    }
    .case-nom {
        display: none;
    }
    .retenu {
        grid-template-columns: 1fr;
    }
}

/* Le jugement : un critère par ligne, une image par colonne. */
.jugement {
    overflow-x: auto;
    background: var(--papier);
    padding: 1rem 1.25rem 1.25rem;
}
.jugement table {
    border-collapse: collapse;
    min-width: 100%;
}
.jugement th,
.jugement td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--trait);
    text-align: center;
    vertical-align: middle;
}
.jugement tbody tr:last-child > * {
    border-bottom: 0;
}
.jugement th:first-child {
    text-align: left;
    font-weight: 600;
    padding-left: 0;
    min-width: 12rem;
}
.jugement thead th {
    font-size: 0.8125rem;
    font-weight: 700;
    vertical-align: bottom;
}
.jugement .point {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}
.jugement .point:hover {
    background: var(--creux);
}
.constat {
    padding: 0.9rem 1.1rem;
    background: var(--papier);
    border-left: 3px solid var(--encre);
}
.constat.refuse {
    border-left-color: var(--rouge);
}
.constat.valide {
    border-left-color: var(--vert);
}

/* ——— Le client : son formulaire, ses photos, ce que l'agence lui demande ——— */

.formulaire {
    display: grid;
    gap: 1.6rem;
}
.question-client .etiquette {
    font-size: 1.125rem;
    font-weight: 700;
    font-stretch: 90%;
}
.essentiel {
    font-weight: 600;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    vertical-align: 0.15em;
}
.depot {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    padding: 1.4rem 1rem;
    border: 1.5px dashed var(--encre-3);
    border-radius: 0.6rem;
    text-align: center;
    cursor: pointer;
}
.depot.survol {
    border-style: solid;
    border-color: var(--encre);
    background: var(--papier);
}
.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.photo {
    display: grid;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--encre-2);
    min-width: 0;
}
.photo button.vignette {
    padding: 0;
    border: 0;
    background: var(--creux);
    cursor: zoom-in;
    aspect-ratio: 1;
}
.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fil {
    display: grid;
    gap: 1rem;
}
.demande {
    display: grid;
    gap: 0.6rem;
    padding: 1.1rem 1.25rem 1.25rem;
    background: var(--papier);
}
.demande-tete {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8125rem;
    color: var(--encre-2);
}
.demande-question {
    font: 400 1.1875rem/1.4 var(--lecture);
}
.demande dl {
    display: grid;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--encre-2);
}
.demande dt {
    display: inline;
    font-weight: 650;
    color: var(--encre);
}
.demande dd {
    display: inline;
}
.demande-reponse {
    padding-left: 0.9rem;
    border-left: 3px solid var(--encre);
    font: 400 1.0625rem/1.5 var(--lecture);
}
/* Ce que l'agence propose : un point par ligne, que le client confirme ou corrige en une fois. */
.propose {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
.propose-point {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0.45rem 1rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--trait);
    font: 400 1.0625rem/1.45 var(--lecture);
}
.propose-point:last-child {
    border-bottom: 1px solid var(--trait);
}
.propose-point .champ {
    grid-column: 1 / -1;
    min-height: 0;
    font: inherit;
}
.propose-juste {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font: 500 0.8125rem/1.3 var(--police);
    color: var(--encre-2);
    white-space: nowrap;
    cursor: pointer;
}
.propose-juste input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--encre);
}
/* Le point à corriger perd son air d'évidence : on le lit comme une épreuve à reprendre. */
.propose-point.a-corriger > span {
    color: var(--encre-2);
}
/* Une fois répondu, le point confirmé porte sa gommette ; le corrigé garde, barré, ce que l'agence avait compris. */
.propose-point.juste,
.propose-point.corrige {
    grid-template-columns: 0.625rem 1fr;
}
.propose-point.juste .gommette {
    align-self: start;
    margin-top: 0.46rem;
}
.propose-point.corrige s {
    grid-column: 2;
    font-size: 0.9375rem;
}
.propose-point.corrige span {
    grid-column: 2;
}
.propositions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
    gap: 1.25rem;
}

/* Ce que le projet demande. */
.perimetre {
    display: grid;
    gap: 1rem;
    padding: 1.15rem 1.25rem 1.3rem;
    background: var(--papier);
}
.perimetre-reglages {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}
.compteur {
    display: grid;
    gap: 0.3rem;
}
.compteur > span {
    font-size: 0.8125rem;
    color: var(--encre-2);
}
.compteur-touches {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.compteur-touches output {
    min-width: 2ch;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    font-stretch: 78%;
    line-height: 1;
}
.touche {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1.5px solid var(--encre);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.touche:disabled {
    border-color: var(--trait);
    color: var(--encre-3);
    cursor: not-allowed;
}
.format {
    display: inline-grid;
    justify-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.6rem 0.4rem;
    border: 1.5px solid var(--trait);
    border-radius: 0.6rem;
    background: transparent;
    font-weight: 650;
    font-size: 0.8125rem;
    cursor: pointer;
}
.format i {
    display: block;
    height: 1.9rem;
    background: var(--trait);
}
.format[aria-pressed="true"] {
    border-color: var(--encre);
}
.format[aria-pressed="true"] i {
    background: var(--encre);
}

/* ——— Le plan du projet : une feuille, une tâche par métier ; puis la réunion d'où il sort ——— */

.page.plan {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.1rem, 2.8vw, 2.25rem) clamp(1.1rem, 3.2vw, 2.5rem);
}
/* Les trois phrases du plan : c'est sa voix, on les lit avant tout le reste. */
.plan .document {
    font-size: 1.1875rem;
    line-height: 1.5;
    max-width: 60ch;
}
.plan-cout {
    font-size: 0.875rem;
    color: var(--encre-2);
    max-width: 70ch;
}
.plan-champ {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
}
.plan-champ .champ {
    font: 400 1.0625rem/1.5 var(--lecture);
}
.taches {
    display: grid;
}
.tache {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 0;
    border-top: 1px solid var(--trait);
}
.tache-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.7rem;
}
.tache-tete strong,
.tache-nom {
    font-weight: 700;
    font-size: 1.0625rem;
    font-stretch: 90%;
}
.tache-nom {
    text-decoration: none;
}
.tache-nom:hover {
    text-decoration: underline;
}
.tache-etat,
.tache-tete .bouton {
    margin-left: auto;
}
.tache-etat {
    color: var(--encre-2);
    text-align: right;
}
.marque-etat.travail {
    color: var(--bleu);
}
/* Sous le nom du métier, dans l'alignement du texte et non du monogramme. */
.tache-mission,
.tache-faits,
.tache > .champ {
    margin-left: 2.45rem;
}
.tache-mission {
    font: 400 1rem/1.55 var(--lecture);
    max-width: 66ch;
    overflow-wrap: anywhere;
}
.tache-faits {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--encre-2);
    max-width: 76ch;
}
.tache > .champ {
    width: auto;
    font: 400 1rem/1.5 var(--lecture);
}
/* Celui dont le projet se passe : sa place reste dessinée, vide. */
.tache.ecartee .monogramme {
    background: transparent;
    color: var(--encre-3);
    outline: 1.5px dashed var(--encre-3);
    outline-offset: -1.5px;
}
.tache.ecartee strong,
.tache.ecartee .tache-mission {
    color: var(--encre-2);
}
.plan-dehors {
    display: grid;
    gap: 0.5rem;
}
.tour-de-table {
    display: grid;
    gap: 0.75rem;
}
.tour-de-table + .tour-de-table {
    margin-top: 0.75rem;
}
.tour-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.9rem;
}
.paroles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
    gap: 0.75rem;
    align-items: start;
}
.parole {
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1.1rem 1.15rem;
    background: var(--papier);
}
/* Une objection se voit avant de se lire : la feuille est cernée d'encre. */
.parole.objecte {
    outline: 2px solid var(--encre);
    outline-offset: -2px;
}
.parole-tete {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.parole-tete strong {
    font-weight: 700;
    font-stretch: 90%;
}
.parole-tete .discret {
    margin-left: auto;
}
.parole-dit {
    display: grid;
    gap: 0.5rem;
    font: 400 0.9375rem/1.5 var(--lecture);
    overflow-wrap: anywhere;
}
.parole-dit dt,
.parole-dit strong {
    font: 600 0.75rem/1.35 var(--police);
    color: var(--encre-3);
}
.parole-dit.objection {
    display: block;
}
.parole-dit.objection strong {
    color: var(--encre);
    font-size: 0.8125rem;
}
/* Sous la phrase d'état : ce que le plan fait de lui-même, et de quoi le suspendre. */
.conduite {
    flex-basis: 100%;
    font-size: 0.875rem;
    color: var(--encre-2);
}
.conduite.en-pause {
    color: var(--encre);
}
.conduite .bouton {
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* ——— Le journal : ce qui s'est vraiment passé ——— */

.journal {
    display: grid;
    gap: 0.75rem;
}
.execution {
    background: var(--papier);
}
.execution > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.25rem 0.85rem;
    padding: 0.9rem 1.1rem;
    list-style: none;
    cursor: pointer;
}
.execution > summary::-webkit-details-marker {
    display: none;
}
.execution-qui {
    font-weight: 700;
    font-stretch: 88%;
    font-size: 1.0625rem;
    line-height: 1.2;
}
.execution-resume {
    grid-column: 2 / -1;
    font-size: 0.8125rem;
    color: var(--encre-2);
}
.pas {
    display: grid;
    padding: 0 1.1rem 1rem;
}
.pas li {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-top: 1px solid var(--creux);
    font-size: 0.8125rem;
    line-height: 1.45;
}
.pas .heure {
    color: var(--encre-3);
}
.pas .cout {
    color: var(--encre-2);
    text-align: right;
    white-space: nowrap;
}
.pas .quoi {
    min-width: 0;
    overflow-wrap: anywhere;
}
.pas .meta {
    margin-top: 0.2rem;
    color: var(--encre-2);
}
.pas .etape {
    color: var(--encre-3);
}
.pas li.erreur .quoi,
.pas li.refuse .quoi > :first-child {
    color: var(--rouge);
    font-weight: 600;
}
.pas li.plafond .quoi {
    color: var(--rouge);
    font-weight: 700;
}
.pas li.fort .quoi {
    font-weight: 650;
}
.hors-execution {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: baseline;
    padding: 0.35rem 1.1rem;
    font-size: 0.8125rem;
}
.hors-execution .heure {
    color: var(--encre-3);
}
.vignettes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.1rem 1.1rem;
}
.vignettes button {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 0;
    background: var(--creux);
    cursor: zoom-in;
}
.vignettes button.ecartee {
    opacity: 0.4;
}
.vignettes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fichiers {
    display: grid;
    gap: 1.5rem;
}
.fichiers ul {
    background: var(--papier);
    padding: 0.4rem 1.1rem;
}
.fichiers li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--creux);
    font-size: 0.875rem;
}
.fichiers li:first-child {
    border-top: 0;
}
.fichiers li span {
    color: var(--encre-3);
    white-space: nowrap;
}

/* ——— La loupe : regarder de près ——— */

.loupe {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--voile);
    color: #fff;
}
.loupe::backdrop {
    background: var(--voile);
}
.loupe-cadre {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
}
.loupe-barre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
}
.loupe-titre {
    flex: 1 1 12rem;
    min-width: 0;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.loupe-titre small {
    display: block;
    font-weight: 400;
    font-size: 0.8125rem;
    opacity: 0.7;
}
/* La loupe est sombre quel que soit le thème : ses commandes reprennent les mêmes règles, à l'encre blanche. */
.loupe-barre,
.loupe-pied,
.loupe-fleche {
    --encre: #ffffff;
    --table: #05080a;
    --papier: #05080a;
    --encre-2: #c6cfd4;
    --encre-3: #8f9aa1;
    --trait: #56626a;
    --rouge: #ff7a6f;
    --vert: #4cc584;
}
.loupe .bouton[aria-pressed="false"],
.loupe-barre .bouton.contour {
    background: transparent;
    color: var(--encre);
}
.loupe .bouton[aria-pressed="true"] {
    background: var(--encre);
    color: var(--table);
}
.loupe-scene {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    margin: 0 3.5rem;
    overflow: auto;
    /* L'image tient dans la scène, en largeur comme en hauteur, quelle que soit la place que prend le pied. */
    container-type: size;
}
.loupe-image {
    position: relative;
    line-height: 0;
}
.loupe-image img {
    max-width: 100cqw;
    max-height: 100cqh;
    width: auto;
    height: auto;
}
.loupe-cote-a-cote {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: center;
    justify-items: center;
}
.loupe-cote-a-cote .loupe-image img {
    max-width: calc(50cqw - 0.7rem);
    max-height: calc(100cqh - 2rem);
}
.loupe-cote-a-cote figcaption {
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.3;
    opacity: 0.75;
    text-align: center;
}
.loupe-page {
    align-self: start;
    width: min(100%, 54rem);
    margin: 0 auto 2rem;
    color: var(--encre);
}
.loupe-fleche {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.loupe-fleche:hover {
    border-color: #fff;
}
.loupe-fleche.avant {
    left: 0.5rem;
}
.loupe-fleche.apres {
    right: 0.5rem;
}
.loupe-pied {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem 2rem;
    padding: 0.85rem 1rem 1rem;
    max-height: 34vh;
    overflow: auto;
    font-size: 0.875rem;
}
.loupe-pied:empty {
    display: none;
}
.loupe-pied .reproches li {
    border-left-color: #ff7a6f;
}
.loupe-pied .champ {
    background: #fff;
    color: #000;
}
.loupe-points {
    display: grid;
    gap: 0.3rem;
    max-width: 62ch;
}
.loupe-points li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: baseline;
}
/* Le calque : ce que l'interface d'un réseau recouvre, tracé au bleu des repères — celui qui ne s'imprime pas. */
.calque {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.calque i {
    position: absolute;
    display: grid;
    place-items: center;
    /* Des hachures légères : on doit encore lire ce que l'interface recouvrira. */
    background: repeating-linear-gradient(-45deg, rgba(120, 208, 245, 0.44) 0 6px, rgba(120, 208, 245, 0.14) 6px 12px);
    outline: 1.5px solid #78d0f5;
    outline-offset: -1.5px;
}
.calque i.marge {
    background: none;
    outline: 0;
    border: 2px dashed #78d0f5;
}
.calque b {
    padding: 0.1rem 0.45rem;
    background: #06384d;
    color: #d9f3fd;
    font: 600 0.75rem/1.4 var(--police);
    white-space: nowrap;
}
/* À la taille d'un téléphone : c'est là que la pub sera vue. */
.telephone {
    height: min(100cqh, 46rem);
    max-width: 100cqw;
    aspect-ratio: 9 / 19.5;
    padding: 0.55rem;
    border-radius: 2.4rem;
    background: #1c2327;
    outline: 1.5px solid #4a565e;
    overflow: hidden;
}
.telephone-ecran {
    display: grid;
    align-content: center;
    height: 100%;
    border-radius: 1.9rem;
    background: #000;
    overflow: hidden;
}
.telephone-ecran .loupe-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
}

/* ——— Les Réglages ——— */

.reglages {
    display: grid;
    gap: 1rem;
    max-width: 60rem;
}
.reglages > h2 {
    margin-top: 1.75rem;
    font-size: 1.75rem;
    line-height: 1.08;
    font-weight: 760;
    font-stretch: 82%;
    letter-spacing: -0.014em;
}
.reglages > h1 {
    font-size: clamp(2.25rem, 5.4vw, 3.75rem);
    line-height: 0.94;
    font-weight: 800;
    font-stretch: 78%;
    letter-spacing: -0.022em;
}
.panneau {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem 1.35rem;
    background: var(--papier);
}
.panneau > header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1rem;
}
.panneau h3 {
    font-size: 1.125rem;
    font-weight: 700;
    font-stretch: 90%;
}
.panneau.a-venir {
    background: transparent;
    outline: 1.5px dashed var(--trait);
    outline-offset: -1.5px;
}
.panneau.accueil h1 {
    font-size: 2.5rem;
    line-height: 0.96;
    font-weight: 800;
    font-stretch: 78%;
}
.etapes {
    display: grid;
    gap: 0.6rem;
    counter-reset: etape;
}
.etapes li {
    counter-increment: etape;
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.7rem;
}
.etapes li p {
    align-self: center;
    max-width: 68ch;
}
.etapes li::before {
    content: counter(etape);
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1.5px solid var(--encre);
    font-weight: 700;
    font-size: 0.8125rem;
}
.etapes li.fait::before {
    content: "";
    background: var(--vert)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E")
        center / 0.9rem no-repeat;
    border-color: var(--vert);
}
.pastille {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
}
.pastille::before {
    content: "";
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--encre-3);
}
.pastille.finie::before {
    background: var(--vert);
}
.pastille.echec::before {
    background: var(--rouge);
}
.pastille.attente::before {
    background: transparent;
    border: 1.5px solid var(--encre-3);
}
.conseil {
    padding-left: 0.75rem;
    border-left: 3px solid var(--bleu);
    color: var(--encre-2);
    font-size: 0.875rem;
}
.cle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.cle .champ {
    flex: 1 1 16rem;
    width: auto;
}
.choisi {
    display: grid;
    gap: 0.1rem;
}
.choisi strong {
    font-size: 1.0625rem;
}
.choisi code,
.modele code {
    color: var(--encre-2);
    font-size: 0.8125rem;
    font-weight: 400;
}
.choix {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--trait);
}
.onglets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.onglets:empty {
    display: none;
}
.modeles {
    display: grid;
    max-height: 22rem;
    overflow-y: auto;
    border: 1.5px solid var(--trait);
    border-radius: 0.6rem;
}
.modeles li + li {
    border-top: 1px solid var(--creux);
}
.modeles li.discret {
    padding: 0.6rem 0.8rem;
    font-size: 0.8125rem;
}
.modele {
    display: grid;
    gap: 0.05rem;
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}
.modele:hover {
    background: var(--creux);
}
.modele[aria-current="true"] {
    box-shadow: inset 4px 0 0 var(--encre);
}
.modele .discret {
    font-size: 0.8125rem;
}
.essai {
    display: grid;
    gap: 0.5rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--trait);
    font-size: 0.875rem;
}
.essai .tete {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    align-items: baseline;
}
.essai .vignette {
    width: 9rem;
    padding: 0;
    border: 0;
    background: var(--creux);
    cursor: zoom-in;
}
.plafonds {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.9rem 1.25rem;
}
.plafonds label {
    display: grid;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.875rem;
}
.plafonds input {
    width: 9rem;
    padding: 0.5rem 0.7rem;
    border: 1.5px solid var(--trait);
    border-radius: 0.6rem;
    background: var(--papier);
}
.reglages .pas {
    padding: 0;
}
.reglages .pas li:first-child {
    border-top: 0;
}

/* ——— Le stockage : le disque d'un regard, puis ce qui pèse ——— */

.stockage h3 {
    margin-top: 0.6rem;
}
.stockage-phrase {
    font-size: 1.0625rem;
}
/* L'encre : ce qui est à nous. Le gris : le reste du serveur. Le vide : ce qui est libre. Aucune couleur d'état ici — le
   rouge n'apparaît qu'avec l'alerte. */
.disque {
    position: relative;
    display: flex;
    gap: 2px;
    height: 1.1rem;
}
.disque > span:not(.disque-seuil) {
    min-width: 2px;
    flex-basis: 0;
}
.disque-nous {
    background: var(--encre);
}
.disque-autres {
    background: var(--encre-3);
}
.disque-libre {
    background: var(--creux);
}
.disque-seuil {
    position: absolute;
    top: -0.25rem;
    bottom: -0.25rem;
    width: 0;
    border-left: 2px dashed var(--encre);
}
.disque-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.25rem;
    font-size: 0.8125rem;
    color: var(--encre-2);
    font-variant-numeric: tabular-nums;
}
.disque-cle::before {
    content: "";
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.4rem;
    vertical-align: -0.05rem;
    background: var(--creux);
}
.disque-cle.nous::before {
    background: var(--encre);
}
.disque-cle.autres::before {
    background: var(--encre-3);
}
.pesee {
    display: grid;
    padding: 0;
    list-style: none;
}
.pesee-ligne {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(3rem, 1fr) 5.5rem minmax(4.5rem, auto);
    align-items: center;
    gap: 0.3rem 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--trait);
}
.pesee-ligne:first-child {
    border-top: 0;
}
.pesee-nom {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    min-width: 0;
}
.pesee-compte {
    font-size: 0.8125rem;
}
.pesee-jauge {
    height: 0.5rem;
    background: linear-gradient(to right, var(--encre) var(--part, 0%), var(--creux) var(--part, 0%));
}
.pesee-poids {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.pesee-action {
    text-align: right;
}
.pesee-action .actions {
    justify-content: flex-end;
}

/* ——— La connexion : une feuille posée seule sur la table ——— */

.connexion {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--marge);
}
.connexion-feuille {
    width: min(100%, 23rem);
    padding: 1.75rem 1.75rem 2rem;
    background: var(--papier);
}
.connexion-feuille .enseigne {
    padding: 0 0 1.4rem;
}
.connexion-feuille .titre-1 {
    margin-bottom: 1.25rem;
}
.connexion-feuille .alerte {
    margin-bottom: 1rem;
    color: var(--encre);
}
.connexion-feuille .bouton {
    margin-top: 1.1rem;
}

/* ——— L'accueil : tous les dossiers d'un regard ——— */

.accueil-liste {
    display: grid;
    margin-top: 2rem;
    border-top: 2px solid var(--encre);
}
.accueil-ligne {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding: 1rem 0.25rem;
    border: 0;
    border-bottom: 1px solid var(--trait);
    background: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.accueil-ligne:hover {
    background: var(--creux);
}
.accueil-ligne strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1.05;
    font-weight: 780;
    font-stretch: 80%;
    letter-spacing: -0.012em;
}

/* ——— Le radar : ce qui se vend par la pub, lu dans la Bibliothèque de Meta ———
   De haut en bas : ce qu'on peut en faire maintenant, où il en est (trois cases), ses vues.
   Il se lit d'abord avec les yeux : l'image de chaque pub, les marches du filtre, une jauge
   pour le budget, une petite courbe dès qu'un compte a été lu deux fois. Les couleurs gardent
   leur sens : ce qui monte se lit dans les chiffres et l'allure d'une courbe, jamais dans une
   teinte ; le rouge ne dit que ce qui n'a pas été lu, ou un plafond atteint. La seule couleur
   de décor ici est celle des pubs elles-mêmes. */

.radar {
    display: grid;
    gap: 1rem;
    max-width: 80rem;
}
.radar-haut {
    display: grid;
    gap: 0.9rem;
}
.radar-tete {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem 2.5rem;
}
.radar-titre {
    display: grid;
    gap: 0.4rem;
    max-width: 44rem;
}
.radar-titre .sous-titre {
    font-size: 1.1875rem;
}
.radar-lien-aide {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-self: start;
    font-size: 0.875rem;
}
.radar-lancement {
    display: grid;
    justify-items: end;
    gap: 0.4rem;
}
.radar-lancement-dit {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 27rem;
    font-size: 0.8125rem;
    color: var(--encre-2);
}
.radar-lancement-dit.refuse {
    align-items: baseline;
    gap: 0.45rem;
    color: var(--rouge);
    font-weight: 600;
}
.radar-en-cours {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--bleu);
    font-size: 1.125rem;
    font-weight: 700;
}
.radar-simulation {
    display: flex;
    gap: 0.65rem;
    padding: 0.7rem 0.95rem;
    border-left: 4px solid var(--bleu);
    background: var(--papier);
    color: var(--encre-2);
    font-size: 0.875rem;
}
.radar-simulation svg {
    flex: none;
    margin-top: 0.1rem;
    color: var(--bleu);
}

/* Comment ça marche : trois temps, dans l'ordre. Le chiffre est sur le pictogramme : c'est une suite. */
.radar-guide {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.1rem 1.3rem 1.35rem;
    background: var(--papier);
}
.radar-guide > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.radar-guide-temps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    counter-reset: temps;
}
.radar-guide-temps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
    counter-increment: temps;
}
.radar-guide-picto {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    background: var(--creux);
}
.radar-guide-picto::after {
    content: counter(temps);
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    display: grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--encre);
    color: var(--papier);
    font-size: 0.6875rem;
    font-weight: 700;
}
.radar-guide-temps strong {
    display: block;
    font-weight: 700;
}
.radar-guide-temps p {
    margin: 0.15rem 0 0.35rem;
    color: var(--encre-2);
    font-size: 0.875rem;
    line-height: 1.45;
}
.radar-guide-temps .lien {
    font-size: 0.8125rem;
}

/* Où il en est : trois cases sur une même bande de papier. */
.radar-etat {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--papier);
}
.radar-etat > li {
    display: grid;
    align-content: start;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.95rem 1.35rem 1.05rem;
    border-left: 1px solid var(--trait);
}
.radar-etat > li:first-child {
    border-left: 0;
}
.radar-etat-nom {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--encre-2);
    font-size: 0.8125rem;
    font-weight: 600;
}
.radar-etat-valeur {
    font-size: 1.625rem;
    line-height: 1.1;
    font-weight: 800;
    font-stretch: 80%;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.radar-etat-sur {
    color: var(--encre-2);
    font-size: 0.9375rem;
    font-weight: 500;
    font-stretch: 100%;
    letter-spacing: 0;
}
.radar-etat-dit {
    color: var(--encre-2);
    font-size: 0.8125rem;
    line-height: 1.45;
}
.radar-etat-dit.refuse {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    color: var(--rouge);
    font-weight: 600;
}
.radar-jauge {
    height: 6px;
    margin: 0.2rem 0 0.1rem;
    background: var(--creux);
}
.radar-jauge i {
    display: block;
    height: 100%;
    background: var(--encre);
}
.radar-jauge.pleine i {
    background: var(--rouge);
}

/* Ses vues : des pilules, celle qu'on regarde à l'encre. Elles restent en haut quand la page défile. */
.radar-onglets {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 calc(var(--marge) * -1);
    padding: 0.6rem var(--marge);
    background: var(--table);
}
.radar-onglet {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.4rem 1.05rem;
    border: 1.5px solid var(--encre);
    border-radius: 99rem;
    color: var(--encre);
    font-weight: 650;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}
.radar-onglet.montre {
    background: var(--encre);
    color: var(--table);
}
.radar-combien {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0.72;
}

/* Un champ et son nom, au-dessus ; ce qu'il veut dire, dans la bulle de son « ? ». */
.radar-champ {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--encre-2);
}
.radar-champ-nom {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-height: 1.375rem;
}
.radar-champ .champ {
    width: auto;
    padding: 0.45rem 0.7rem;
    color: var(--encre);
    font-size: 0.875rem;
    font-weight: 400;
}
.radar-champ input[type="number"].champ {
    width: 6.5rem;
    font-variant-numeric: tabular-nums;
}
.radar-panneau-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1rem;
}
.radar-panneau-tete h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.radar-lecture {
    padding: 1.5rem 0;
}
.radar-plus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 1.25rem 0 0.5rem;
}
.radar .pas {
    padding: 0;
}
.radar .pas li:first-child {
    border-top: 0;
}
.radar-passage-tete {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
}
.radar .pas .meta {
    display: block;
}
.radar-puces {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.95rem;
}
.radar-gestes {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.radar-domaine {
    color: var(--encre-2);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}
.radar-ecart {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.45rem;
    color: var(--encre-2);
    font-variant-numeric: tabular-nums;
}

/* Comment le radar trie : les marches du filtre, de gauche à droite. La dernière est ce qu'il garde. */
.radar-comment {
    display: grid;
    gap: 0.45rem;
}
.radar-comment-titre {
    color: var(--encre-2);
    font-size: 0.8125rem;
    font-weight: 600;
}
.radar-entonnoir {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--papier);
}
.radar-marche {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.8rem 1rem 0.9rem 1.35rem;
    cursor: help;
}
/* Entre deux marches, un chevron : on passe de l'une à l'autre. */
.radar-marche + .radar-marche::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -0.4rem;
    width: 0.8rem;
    height: 0.8rem;
    border-top: 1.5px solid var(--trait);
    border-right: 1.5px solid var(--trait);
    background: var(--papier);
    transform: translateY(-50%) rotate(45deg);
}
.radar-marche strong {
    font-size: 1.625rem;
    line-height: 1.05;
    font-weight: 800;
    font-stretch: 80%;
    font-variant-numeric: tabular-nums;
}
.radar-marche-nom {
    min-height: 2.6em;
    color: var(--encre-2);
    font-size: 0.8125rem;
    line-height: 1.3;
}
.radar-marche-barre {
    display: block;
    height: 6px;
    margin-top: 0.35rem;
    background: var(--creux);
}
.radar-marche-barre i {
    display: block;
    height: 100%;
    background: var(--encre-3);
}
.radar-marche.fin {
    background: var(--encre);
    color: var(--papier);
}
.radar-marche.fin .radar-marche-nom {
    color: inherit;
    font-weight: 650;
}
.radar-marche.fin .radar-marche-barre {
    background: color-mix(in srgb, var(--papier) 28%, transparent);
}
.radar-marche.fin .radar-marche-barre i {
    background: var(--papier);
}
.radar-marche:focus-visible {
    outline-offset: -3px;
}

/* Au-dessus d'une liste : quoi montrer, quoi chercher, dans quel ordre. */
.radar-outils {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.25rem;
}
.radar-filtres:has(.radar-groupes) {
    align-items: center;
}
.radar-groupe-dit {
    max-width: 68ch;
    color: var(--encre-2);
    font-size: 0.875rem;
}
.radar-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}
.radar-filtres select.champ {
    max-width: 13rem;
}
.radar-cherche {
    position: relative;
    display: block;
    flex: 1 1 17rem;
    max-width: 34rem;
}
.radar-cherche svg {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    color: var(--encre-3);
    transform: translateY(-50%);
    pointer-events: none;
}
.radar-cherche .champ {
    width: 100%;
    padding: 0.5rem 0.8rem 0.5rem 2.45rem;
    border-radius: 99rem;
}
.radar-tri {
    margin-left: auto;
}
.radar-tri select.champ {
    width: auto;
    padding: 0.5rem 0.8rem;
    border-radius: 99rem;
    font-size: 0.875rem;
}
.radar-une-boutique {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-self: start;
    padding: 0.15rem 0.25rem 0.15rem 0.85rem;
    border-radius: 99rem;
    background: var(--encre);
    color: var(--table);
    font-size: 0.875rem;
}
.radar-une-boutique .geste {
    color: inherit;
    min-width: 1.9rem;
    height: 1.9rem;
}
.radar-une-boutique .geste:hover {
    border-color: currentColor;
    color: inherit;
}
.radar-liste-tete,
.radar-vue-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.3rem 1.5rem;
}
.radar-liste-tete {
    padding: 0.35rem 0 0.55rem;
    border-bottom: 2px solid var(--encre);
}
.radar-vue-tete {
    align-items: flex-end;
}
.radar-boutiques > .vide,
.radar-pubs > .vide {
    margin-top: 0.9rem;
}

/* Les boutiques : une feuille par boutique. En tête, le chiffre qu'on regarde d'abord ; puis qui elle est,
   ses pubs en images, et les gestes. */
.radar-liste-boutiques {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.8rem;
}
.radar-boutique {
    display: grid;
    grid-template-columns: 8.75rem minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 0.6rem 1.25rem;
    padding: 1rem 0.9rem 1rem 1.35rem;
    background: var(--papier);
}
/* Épinglée : une exception de G., marquée d'un trait d'encre dans la marge. */
.radar-boutique.epinglee {
    box-shadow: inset 4px 0 0 var(--encre);
}
.radar-boutique-compte {
    display: grid;
    align-content: start;
    gap: 0.15rem;
    color: var(--encre-2);
    font-size: 0.75rem;
    line-height: 1.35;
}
.radar-boutique-compte strong {
    color: var(--encre);
    font-size: 1.875rem;
    line-height: 1;
    font-weight: 800;
    font-stretch: 78%;
    font-variant-numeric: tabular-nums;
}
.radar-boutique-corps {
    display: grid;
    align-content: start;
    gap: 0.4rem;
    min-width: 0;
}
.radar-boutique-nom {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.1rem 0.65rem;
}
.radar-boutique-nom strong {
    font-size: 1.0625rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.radar-epinglee {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 650;
}
.radar-boutique-etat {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    max-width: 62ch;
    font-size: 0.875rem;
    line-height: 1.45;
}
.radar-boutique-etat svg {
    position: relative;
    top: 0.15rem;
    flex: none;
    color: var(--encre-3);
}
.radar-boutique-images {
    display: flex;
    gap: 3px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.radar-boutique-image {
    position: relative;
    display: block;
    width: 3.5rem;
    height: 4.375rem;
    overflow: hidden;
    background: var(--creux);
}
.radar-boutique-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.radar-boutique-image i {
    position: absolute;
    left: 3px;
    bottom: 3px;
    display: grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: rgba(8, 12, 15, 0.78);
    color: #fff;
}
.radar-boutique-image.vide {
    display: grid;
    place-items: center;
    color: var(--encre-3);
}
.radar-boutique-images:hover .radar-boutique-image,
.radar-boutique-images:focus-visible .radar-boutique-image {
    outline: 1.5px solid var(--encre);
    outline-offset: -1.5px;
}

/* Les pubs : une planche d'épreuves. Toutes au même format, pour que la planche reste droite ; l'image
   entière se regarde en l'ouvrant. */
.radar-planche {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14.25rem, 1fr));
    gap: 1rem;
    margin-top: 0.9rem;
}
.radar-carte {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    background: var(--papier);
}
.radar-carte-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--creux);
    cursor: zoom-in;
}
/* L'image entière, jamais rognée : une pub carrée ou debout garde ses bords, où se trouve souvent son texte. */
.radar-carte-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.radar-carte-image:hover,
.radar-carte-image:focus-visible {
    outline: 2px solid var(--encre);
    outline-offset: -2px;
}
.radar-carte-rang,
.radar-carte-format {
    position: absolute;
    left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.4;
}
.radar-carte-rang {
    top: 0.5rem;
    background: var(--encre);
    color: var(--papier);
    font-size: 0.875rem;
    font-weight: 750;
    font-stretch: 84%;
    font-variant-numeric: tabular-nums;
}
.radar-carte-format {
    bottom: 0.5rem;
    background: rgba(8, 12, 15, 0.8);
    color: #fff;
}
.radar-sans-image {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.45rem;
    height: 100%;
    padding: 1rem;
    color: var(--encre-3);
    font-size: 0.8125rem;
    text-align: center;
}
.radar-carte-corps {
    display: grid;
    align-content: start;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.75rem 0.9rem 0.4rem;
}
.radar-carte-page {
    display: grid;
}
.radar-carte-page strong {
    font-weight: 700;
    overflow-wrap: anywhere;
}
.radar-carte-titre,
.radar-carte-texte {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.radar-carte-titre {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.875rem;
    font-weight: 650;
}
/* Ce que dit la pub est un texte d'ailleurs, pas de l'interface : il se lit en Spectral. */
.radar-carte-texte {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-family: var(--lecture);
    font-size: 0.875rem;
    line-height: 1.45;
}
.radar-carte-place {
    font-size: 0.75rem;
    line-height: 1.35;
}
.radar-carte > .radar-gestes {
    padding: 0.15rem 0.45rem 0.45rem;
}
/* Sortie de tous ses classements : elle reste lisible, mais ne se donne plus pour une pub du moment. */
.radar-carte.sortie .radar-carte-image img {
    filter: grayscale(1);
    opacity: 0.6;
}
.radar-carte.sortie .radar-carte-rang {
    background: var(--encre-3);
}
.radar-carte.sortie .radar-carte-texte,
.radar-carte.sortie .radar-carte-titre {
    color: var(--encre-2);
}

/* Une pub de près : son image entière sur fond sombre, quel que soit le thème, comme à la loupe ; à côté, tout
   ce que le radar en sait. */
.radar-fiche {
    width: min(66rem, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--papier);
    color: var(--encre);
}
/* Elle tient le clavier quand elle se redessine : ce n'est pas un bouton, elle ne se cerne pas. */
.radar-fiche:focus {
    outline: none;
}
.radar-fiche::backdrop {
    background: var(--voile);
}
.radar-fiche-cadre {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 27rem);
    max-height: calc(100vh - 2rem);
}
.radar-fiche-image {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.6rem;
    min-height: 22rem;
    padding: 1.25rem;
    overflow: auto;
    background: #0c1114;
}
.radar-fiche-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 7rem);
}
.radar-fiche-image .radar-sans-image {
    max-width: 22rem;
    color: #88949b;
}
.radar-fiche-note {
    color: #b7c1c8;
    font-size: 0.75rem;
}
.radar-fiche-corps {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    padding: 1.25rem 1.35rem 1rem;
    overflow: auto;
}
.radar-fiche-tete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.radar-fiche-titre {
    font-weight: 650;
    overflow-wrap: anywhere;
}
.radar-fiche-texte {
    font-family: var(--lecture);
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-line;
}
.radar-fiche-intertitre {
    margin-top: 0.2rem;
    color: var(--encre-2);
    font-size: 0.8125rem;
    font-weight: 650;
}
.radar-fiche-places {
    display: grid;
    gap: 0.15rem;
    font-size: 0.875rem;
    line-height: 1.4;
}
.radar-fiche-pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--trait);
}

/* Les recherches : une feuille par recherche ; celle qu'on compose, cernée d'encre. */
.radar-recherches {
    display: grid;
    gap: 0.9rem;
}
.radar-composeur {
    display: grid;
    gap: 1.1rem;
    padding: 1.2rem 1.35rem 1.35rem;
    border-top: 4px solid var(--encre);
    background: var(--papier);
}
.radar-composeur-tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.radar-genres {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem 1.5rem;
}
.radar-genres li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.6rem;
    color: var(--encre-2);
    font-size: 0.8125rem;
    line-height: 1.45;
}
.radar-genres svg {
    margin-top: 0.1rem;
    color: var(--encre);
}
.radar-genres strong {
    display: block;
    color: var(--encre);
    font-size: 0.875rem;
    font-weight: 700;
}
.radar-mots .champ {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1.0625rem;
}
.radar-composeur-rang {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.9rem 1.75rem;
}
.radar-composeur-cout {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    background: var(--table);
    font-size: 0.875rem;
    line-height: 1.45;
}
.radar-composeur-cout:empty {
    display: none;
}
.radar-composeur-cout svg {
    position: relative;
    top: 0.2rem;
    flex: none;
    color: var(--encre-3);
}
.radar-liste-recherches {
    display: grid;
    gap: 0.45rem;
}
.radar-recherche {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 0.9rem 1rem 1.35rem;
    background: var(--papier);
}
/* Hors rotation : elle attend à côté, dessinée en pointillés. */
.radar-recherche.hors {
    background: transparent;
    outline: 1.5px dashed var(--trait);
    outline-offset: -1.5px;
}
.radar-recherche-tete {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
}
.radar-recherche-nom {
    display: flex;
    flex: 1 1 18rem;
    align-items: flex-start;
    gap: 0.6rem;
    min-width: 0;
}
.radar-recherche-nom > svg {
    flex: none;
    margin-top: 0.25rem;
}
.radar-recherche-nom strong {
    font-size: 1.125rem;
    font-weight: 700;
    font-stretch: 90%;
    overflow-wrap: anywhere;
}
.radar-mots-dits {
    margin-left: 0.6rem;
    color: var(--encre-2);
}
.radar-recherche-traits {
    display: block;
    color: var(--encre-2);
    font-size: 0.8125rem;
}
.radar-lectures {
    display: grid;
    font-size: 0.875rem;
}
.radar-lectures li {
    display: grid;
    grid-template-columns: 4.5rem minmax(9rem, 13rem) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 0.9rem;
    min-height: 2.1rem;
    padding: 0.2rem 0;
    border-top: 1px solid var(--creux);
}
.radar-pays {
    font-weight: 700;
}
/* Ce qu'une lecture a rapporté, et quand elle sera relue : à la suite de sa date. */
.radar-rendu {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem 0.5rem;
}
.radar-compte {
    font-variant-numeric: tabular-nums;
}
.radar-recherche-pied,
.radar-regle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
}
.radar-regle {
    align-items: flex-end;
}

/* Les réglages : à gauche ce qu'on règle, à droite ce que ça donne — avant d'enregistrer. */
.radar-rythme-corps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 25rem);
    align-items: start;
    gap: 1.5rem 2.5rem;
}
.radar-reglages {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.95rem 1.5rem;
}
.radar-taille,
.radar-seul,
.radar-avances,
.radar-reglages > .actions {
    flex: 1 1 100%;
}
.radar-glissiere {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.radar-glissiere input[type="range"] {
    flex: 1 1 auto;
    min-width: 8rem;
    margin: 0;
    accent-color: var(--encre);
}
.radar-seul {
    display: grid;
    gap: 0.1rem;
    padding: 0.7rem 0.9rem;
    background: var(--table);
}
.radar-avances summary {
    width: fit-content;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}
.radar-avances[open] summary {
    margin-bottom: 0.75rem;
}
.radar-estimation,
.radar-apercu {
    display: grid;
    gap: 1rem;
    padding: 1.1rem 1.2rem 1.2rem;
    background: var(--table);
}
.radar-estimation-gros {
    display: grid;
    gap: 0.25rem;
    color: var(--encre-2);
    font-size: 0.8125rem;
}
.radar-estimation-gros strong {
    color: var(--encre);
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 800;
    font-stretch: 78%;
    font-variant-numeric: tabular-nums;
}
.radar-estimation .radar-jauge {
    background: var(--trait);
}
.radar-estimation-faits {
    display: grid;
}
.radar-estimation-faits div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-top: 1px solid var(--trait);
    font-size: 0.875rem;
}
.radar-estimation-faits dt {
    color: var(--encre-2);
}
.radar-estimation-faits dd {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.radar-notes {
    display: grid;
    gap: 0.3rem;
    color: var(--encre-2);
    font-size: 0.8125rem;
    line-height: 1.45;
}
.radar-notes li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0 0.55rem;
}
.radar-apercu {
    gap: 0.6rem;
}
.radar-apercu-titre {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--encre-2);
}
/* Dans un panneau, les marches du filtre se lisent de haut en bas : un chiffre, son nom, sa barre. */
.radar-apercu .radar-entonnoir {
    grid-template-columns: minmax(0, 1fr);
    background: none;
}
.radar-apercu .radar-marche {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0 0.6rem;
    padding: 0.4rem 0.6rem;
}
.radar-apercu .radar-marche + .radar-marche::before {
    content: none;
}
.radar-apercu .radar-marche strong {
    font-size: 1.25rem;
    text-align: right;
}
.radar-apercu .radar-marche-nom {
    min-height: 0;
}
.radar-apercu .radar-marche-barre {
    grid-column: 2;
    margin-top: 0.2rem;
    background: var(--trait);
}

/* L'activité : un bâton par jour du mois, haut comme ce que le jour a coûté. */
.radar-jours {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 3px;
    height: 7.5rem;
    max-width: 46rem;
}
.radar-jours li {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 0.9rem;
    gap: 0.3rem;
    min-width: 0;
}
.radar-jour-baton {
    display: flex;
    align-items: flex-end;
    border-bottom: 1.5px solid var(--trait);
}
.radar-jour-baton i {
    display: block;
    width: 100%;
    background: var(--encre);
}
.radar-jour-numero {
    color: var(--encre-3);
    font-size: 0.6875rem;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.radar-jours li.aujourd-hui .radar-jour-baton {
    border-bottom-color: var(--encre);
}
.radar-jours li.aujourd-hui .radar-jour-numero {
    color: var(--encre);
    font-weight: 700;
}
.radar-jours li.a-venir .radar-jour-baton {
    border-bottom-style: dashed;
}
.radar-jours li[data-bulle] {
    cursor: help;
}
.radar-jours li[data-bulle]:hover i,
.radar-jours li[data-bulle]:focus-visible i {
    background: var(--encre-2);
}

/* En ce moment : ce qui gagne, rubrique par rubrique — les boutiques qui montent, les pubs qui percent, celles
   qui durent. Chaque rubrique dit le critère qui la remplit, et où il se règle. */
.radar-moment {
    display: grid;
    gap: 0.4rem;
}
.radar-moment > .vide {
    margin-top: 0.9rem;
}
.radar-rubrique {
    display: grid;
    margin-top: 1.5rem;
}
.radar-rubrique-titre {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.radar-rubrique-critere {
    max-width: 78ch;
    padding-top: 0.5rem;
    color: var(--encre-2);
    font-size: 0.875rem;
}
.radar-rubrique > .vide {
    margin-top: 0.8rem;
}
.radar-rubrique-suite {
    padding-top: 0.85rem;
}
/* Un signal : une étiquette d'encre, jamais une couleur. « Gagnante », « Perce », « Monte » sont ce que le noyau
   a calculé, pas un jugement validé. */
.radar-signal {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.12rem 0.5rem 0.12rem 0.4rem;
    background: var(--encre);
    color: var(--papier);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.radar-carte-image .radar-signal {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}
.radar-fiche-tete .radar-signal {
    margin-top: 0.4rem;
}
/* Ce qui monte s'écrit à l'encre pleine : c'est le chiffre qu'on est venu chercher. */
.radar-hausse {
    color: var(--encre);
    font-weight: 750;
}
.radar-ecart [data-bulle] {
    cursor: help;
}
/* Par quoi on lit les pubs : ce qu'on cherche, leur signal, et chez qui. Sur un rang, au-dessus des filtres. */
.radar-lentilles {
    align-items: center;
}
.radar-lentilles .radar-cherche {
    flex: 1 1 18rem;
    max-width: 30rem;
}
.radar-signaux {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.radar-fiche-histoire {
    display: grid;
    gap: 0.15rem;
    font-size: 0.875rem;
    line-height: 1.4;
}
.radar-fiche-histoire li {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.6rem;
}
.radar-fiche-quand {
    color: var(--encre-2);
    font-variant-numeric: tabular-nums;
}

/* Les réglages qui font le prix se suivent, par sujet ; ce qui gagne s'écrit en trois phrases à trous. */
.radar-reglages-titre {
    flex: 1 1 100%;
    margin-top: 0.35rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--trait);
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--encre-2);
}
.radar-phrases {
    display: grid;
    gap: 1.1rem;
}
.radar-phrase {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    line-height: 2.3;
}
.radar-phrase > svg {
    margin-top: 0.6rem;
}
.radar-phrase strong {
    font-weight: 700;
}
.radar-phrase input[type="number"].champ.radar-trou {
    display: inline-block;
    width: 4.1rem;
    margin: 0 0.15rem;
    padding: 0.2rem 0.35rem 0.2rem 0.55rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    vertical-align: baseline;
}
.radar-comptage {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.radar-comptage th,
.radar-comptage td {
    padding: 0.45rem 0;
    border-top: 1px solid var(--trait);
    text-align: right;
    font-weight: 400;
}
.radar-comptage thead th {
    border-top: 0;
    padding-top: 0;
    color: var(--encre-2);
    font-size: 0.75rem;
    font-weight: 600;
}
.radar-comptage thead td {
    border-top: 0;
}
.radar-comptage tbody th {
    text-align: left;
    font-size: 0.9375rem;
}
.radar-comptage tbody th svg {
    margin-right: 0.5rem;
    vertical-align: -0.2rem;
}
.radar-comptage tbody td {
    width: 5.5rem;
    font-size: 1.25rem;
    font-weight: 750;
    font-stretch: 84%;
}

@media (max-width: 76rem) {
    /* Une boutique sur deux rangs : ses pubs en images passent sous ce qu'on en sait. */
    .radar-boutique {
        grid-template-columns: 8.75rem minmax(0, 1fr) auto;
    }
    .radar-boutique-images {
        grid-column: 2 / -1;
        grid-row: 2;
    }
    .radar-entonnoir .radar-marche {
        padding-right: 0.6rem;
    }
}
@media (max-width: 68rem) {
    .atelier {
        grid-template-columns: minmax(0, 1fr);
    }
    .poste {
        position: static;
    }
}
@media (max-width: 52rem) {
    .salle {
        grid-template-columns: minmax(0, 1fr);
    }
    .rail {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 20;
        width: min(19rem, 86vw);
        background: var(--table);
        transform: translateX(-102%);
        transition: transform 0.18s ease;
    }
    .salle.rail-ouvert .rail {
        transform: none;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45);
    }
    .barre-mobile {
        position: sticky;
        top: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.6rem var(--marge);
        background: var(--table);
        border-bottom: 1px solid var(--trait);
    }
    .barre-mobile .enseigne {
        padding: 0;
        font-size: 1.125rem;
    }
    .dossier-tete {
        grid-template-columns: minmax(0, 1fr);
    }
    .depense {
        text-align: left;
    }
    .jauge {
        margin-left: 0;
    }
    .ou-phrase {
        font-size: 1.125rem;
    }
    .tache-mission,
    .tache-faits,
    .tache > .champ {
        margin-left: 0;
    }
    .tache-etat {
        flex-basis: 100%;
        margin-left: 0;
        text-align: left;
    }
    .planche {
        flex-basis: 5.4rem;
    }
    .epreuves.table-formats {
        gap: 1rem 0.6rem;
    }
    .loupe-scene {
        margin: 0 0.5rem;
    }
    .loupe-fleche {
        background: rgba(0, 0, 0, 0.6);
    }
    .loupe-cote-a-cote {
        grid-template-columns: minmax(0, 1fr);
    }
    .accueil-ligne {
        grid-template-columns: minmax(0, 1fr);
    }
    .pas li {
        grid-template-columns: 3.9rem minmax(0, 1fr);
    }
    .pas .cout {
        grid-column: 2;
        text-align: left;
    }
    /* Le radar : tout sur une colonne. Les gestes disent leur nom, puisqu'on ne survole pas un téléphone. */
    .radar-tete {
        grid-template-columns: minmax(0, 1fr);
    }
    .radar-lancement {
        justify-items: start;
    }
    .radar-guide-temps,
    .radar-etat,
    .radar-genres,
    .radar-rythme-corps {
        grid-template-columns: minmax(0, 1fr);
    }
    .radar-etat > li {
        border-top: 1px solid var(--trait);
        border-left: 0;
        padding: 0.8rem 1rem 0.9rem;
    }
    .radar-etat > li:first-child {
        border-top: 0;
    }
    .radar-onglets {
        position: static;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .radar-onglets::-webkit-scrollbar {
        display: none;
    }
    .radar-onglet {
        min-height: 2.25rem;
        padding: 0.3rem 0.85rem;
        font-size: 0.875rem;
    }
    .geste {
        min-width: 2.5rem;
        height: 2.5rem;
    }
    .radar-boutique .geste,
    .radar-recherche .geste {
        padding: 0 0.7rem;
        border-color: var(--trait);
    }
    .radar-boutique .geste-nom,
    .radar-recherche .geste-nom {
        display: inline;
    }
    .radar-gestes {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    /* Les quatre gestes d'une boutique sur un rang, à parts égales : le pictogramme, son nom dessous. */
    .radar-boutique .radar-gestes {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .radar-boutique .geste {
        flex-direction: column;
        gap: 0.15rem;
        height: auto;
        padding: 0.45rem 0.2rem 0.4rem;
        border-radius: 1rem;
        font-size: 0.6875rem;
    }
    /* Les marches du filtre, de haut en bas : un chiffre, son nom, sa barre. */
    .radar-entonnoir {
        grid-template-columns: minmax(0, 1fr);
    }
    .radar-marche {
        grid-template-columns: 3.75rem minmax(0, 1fr);
        align-items: baseline;
        gap: 0 0.7rem;
        padding: 0.55rem 1rem;
    }
    .radar-marche + .radar-marche::before {
        content: none;
    }
    .radar-marche strong {
        font-size: 1.25rem;
        text-align: right;
    }
    .radar-marche-nom {
        min-height: 0;
    }
    .radar-marche-barre {
        grid-column: 2;
        margin-top: 0.2rem;
    }
    .radar-groupes {
        border-radius: 1.2rem;
    }
    .radar-cherche {
        flex-basis: 100%;
        max-width: none;
    }
    .radar-filtres .radar-champ {
        flex: 1 1 8.5rem;
    }
    .radar-filtres select.champ,
    .radar-champ .champ {
        width: 100%;
        max-width: none;
    }
    .radar-tri {
        margin-left: 0;
    }
    .radar-boutique {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.7rem;
        padding: 0.9rem 1rem;
    }
    .radar-boutique-images {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }
    .radar-etat-valeur {
        font-size: 1.375rem;
    }
    .radar-boutique-compte {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.1rem 0.5rem;
    }
    .radar-planche {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }
    .radar-carte-corps {
        padding: 0.6rem 0.65rem 0.3rem;
    }
    .radar-carte-texte {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .radar-fiche {
        width: 100vw;
        max-height: 100vh;
        height: 100vh;
    }
    .radar-fiche-cadre {
        grid-template-columns: minmax(0, 1fr);
        max-height: 100vh;
        overflow: auto;
    }
    .radar-fiche-image {
        min-height: 0;
        overflow: visible;
    }
    .radar-fiche-image img {
        max-height: 56vh;
    }
    .radar-fiche-corps {
        overflow: visible;
    }
    .radar-recherche,
    .radar-composeur {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .radar-lectures li {
        grid-template-columns: 4rem minmax(0, 1fr);
        row-gap: 0.1rem;
    }
    .radar-lectures li > :nth-child(n + 3) {
        grid-column: 2;
    }
    .radar-lectures li > :empty {
        display: none;
    }
    .radar-glissiere input[type="number"].champ {
        width: 5.5rem;
    }
    .radar-jours {
        gap: 2px;
    }
}
/* Le stockage, plus étroit : le nom et son poids sur une ligne, le reste dessous. */
@media (max-width: 52rem) {
    .pesee-ligne {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .pesee-poids {
        grid-column: 2;
        grid-row: 1;
    }
    .pesee-compte {
        grid-column: 1;
        grid-row: 2;
    }
    .pesee-action {
        grid-column: 2;
        grid-row: 2;
    }
    .pesee-jauge {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}
