/* Mercure — la feuille de style, reprise de zéro le 15 octobre 2026.

   Un bureau, pas un tableau de bord. Une seule famille (Hanken Grotesk,
   variable, 300–700), de grands titres serrés, un corps à 17 px, de l'air.
   Une seule voix à part : ce que les employés DISENT en travaillant est en
   italique serif (Newsreader) — c'est le seul geste typographique, et il
   porte l'idée du produit.

   La couleur ne dit que l'état : un vert « en direct / fait », un ambre
   « à vous », un rouge « cassé ». Tout le reste est encre et gris. Pas de
   capitales minuscules, pas de carte dans une carte, pas de dégradé.

   Pas de script d'ailleurs, pas de style en ligne (CSP : default-src 'self'),
   et les polices sont servies d'ici. */

@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
}

:root {
  --fond: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --encre: #1d1d1f;
  --encre-2: #515154;
  --encre-3: #86868b;
  --trait: rgba(0, 0, 0, 0.08);
  --trait-2: rgba(0, 0, 0, 0.16);
  --accent: #0066cc;
  --accent-doux: #eaf2fd;
  --vif: #1a9a68;
  /* Le vert du bandeau « un agent travaille » : soutenu, pour que du blanc
     dessus reste lisible, et le même dans les deux thèmes - c'est une bande
     pleine, pas une surface. */
  --travail: #0f7a52;
  --vif-doux: #e6f5ee;
  --alerte: #b45309;
  --alerte-doux: #fff3e0;
  --danger: #c0392b;
  --danger-doux: #fdecea;
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --ombre-haute: 0 2px 6px rgba(0, 0, 0, 0.06), 0 24px 60px rgba(0, 0, 0, 0.12);
  --rayon: 20px;
  --rayon-2: 14px;
  --rayon-3: 10px;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --barre: 15.5rem;
  /* Pour compatibilite avec les anciennes classes qui les nomment encore. */
  --papier: var(--fond); --carte: var(--surface); --fil: var(--alerte); --fil-doux: var(--alerte-doux);
  --fil-encre: var(--alerte); --fait: var(--vif); --fait-doux: var(--vif-doux); --manque: var(--danger); --manque-doux: var(--danger-doux);
}

* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { background: var(--fond); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 17px/1.55 var(--sans); color: var(--encre); min-height: 100vh;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv05";
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, p, li, dd { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-doux); }

/* --- la coque : une barre en haut, quatre mots, et la page ----------------
   Le menu latéral à huit entrées est parti le 12/11/2026. */
.coque { min-height: 100vh; display: flex; flex-direction: column; }
.haute {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 1.1rem;
  padding: 0.65rem 1.6rem; border-bottom: 1px solid var(--trait);
  background: rgba(245, 245, 247, 0.86); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.marque { display: flex; align-items: center; gap: 0.6rem; color: var(--encre); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; }
.marque:hover { text-decoration: none; }
.marque .sceau { width: 1.55rem; height: 1.55rem; border-radius: 8px; background: var(--encre); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.05rem; line-height: 1; }
.societe-haute { color: var(--encre-3); font-size: 0.92rem; padding-left: 0.4rem; border-left: 1px solid var(--trait-2); }
.quatre { display: flex; gap: 0.15rem; margin-left: auto; }
.quatre a { position: relative; padding: 0.4rem 0.75rem; color: var(--encre-2); font-size: 0.97rem; font-weight: 500; border-radius: 10px; }
.quatre a:hover { background: rgba(0, 0, 0, 0.04); color: var(--encre); text-decoration: none; }
.quatre a[aria-current="page"] { color: var(--encre); font-weight: 600; }
.quatre a[aria-current="page"]::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: -0.68rem; height: 2px; background: var(--encre); }
.quatre .badge { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 0.38rem; margin-left: 0.4rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--alerte); color: #fff; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.compte { position: relative; }
.compte summary { list-style: none; cursor: pointer; color: var(--encre-3); font-size: 0.88rem; padding: 0.35rem 0.6rem; border-radius: 999px; border: 1px solid var(--trait); }
.compte summary::-webkit-details-marker { display: none; }
.compte[open] summary { background: var(--surface); }
.compte-menu { position: absolute; right: 0; top: calc(100% + 0.4rem); min-width: 12rem; display: grid; gap: 0.2rem; padding: 0.6rem; background: var(--surface); border-radius: 12px; box-shadow: var(--ombre-haute); border: 1px solid var(--trait); }
.compte-menu a, .compte-menu .lien { color: var(--encre-2); padding: 0.35rem 0.5rem; border-radius: 8px; text-align: left; }
.compte-menu a:hover, .compte-menu .lien:hover { background: rgba(0, 0, 0, 0.04); text-decoration: none; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.lien:hover { text-decoration: underline; text-underline-offset: 2px; }

/* la barre du haut, pour les écrans sans entreprise (connexion, inscription) */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.6rem; }
.barre .nav { display: flex; gap: 1.2rem; align-items: center; font-size: 0.95rem; }
.barre .nav a, .barre .nav .lien { color: var(--encre-2); }

.page { width: 100%; max-width: 56rem; margin: 0 auto; padding: 2.2rem 1.6rem 5rem; }
.page.large { max-width: 70rem; }
.sans-barre .page { padding-top: 1.5rem; }
.sans-barre main { min-height: calc(100vh - 8rem); }

/* --- la typographie ---------------------------------------------------------- */
h1 { font-weight: 700; font-size: 2.3rem; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.6rem; text-wrap: balance; }
h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; margin: 0; line-height: 1.25; }
h3 { font-size: 1.02rem; font-weight: 600; margin: 1.2rem 0 0.4rem; letter-spacing: -0.005em; }
.lede { font-size: 1.1rem; line-height: 1.5; color: var(--encre-2); margin: 0 0 1.6rem; max-width: 58ch; font-weight: 400; }
.lede.calme { margin-bottom: 0; }
.intro { font-size: 1.15rem; margin: 0 0 1.4rem; color: var(--encre-2); max-width: 56ch; }
.note { color: var(--encre-2); font-size: 0.9rem; line-height: 1.5; margin: 0.6rem 0 0; }
.meta, .meta-ligne { color: var(--encre-3); font-size: 0.88rem; }
.meta-ligne { margin: 0 0 1.6rem; }
.fil { font-size: 0.86rem; margin: 0 0 0.5rem; }
.fil a { color: var(--encre-3); }
.fil a:hover { color: var(--encre); text-decoration: none; }
.fil a::before { content: "← "; }
.suite { margin: 0.9rem 0 0; font-size: 0.92rem; }
.suite a, .plus { color: var(--accent); font-size: 0.92rem; font-weight: 500; }
.apart { margin-top: 2.5rem; font-size: 0.8rem; letter-spacing: 0.01em; color: var(--encre-3); font-weight: 600; }
.voix { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 1.12em; letter-spacing: -0.005em; }
.chiffre-fort { font-variant-numeric: tabular-nums; letter-spacing: -0.03em; font-weight: 700; }

/* messages d'état */
.confirmation, .probleme { border-radius: var(--rayon-2); padding: 0.8rem 1.05rem; margin: 0 0 1.2rem; font-size: 0.95rem; line-height: 1.45; }
.confirmation { background: var(--vif-doux); color: #0f5b3d; }
.probleme { background: var(--danger-doux); color: #7f2318; }
.probleme.doute { background: var(--alerte-doux); color: #7a3a05; }
.probleme a, .confirmation a { color: inherit; text-decoration: underline; }

/* --- blocs, cartes, listes ---------------------------------------------------- */
.bloc { background: var(--surface); border-radius: var(--rayon); padding: 1.35rem 1.5rem; margin: 0 0 1.1rem; box-shadow: var(--ombre); }
.bloc .entete { display: flex; align-items: baseline; justify-content: space-between; gap: 0.9rem; margin-bottom: 0.7rem; }
.bloc .entete .compteur { margin-left: auto; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
.deux > .bloc, .deux > div > .bloc { margin: 0; }
.cadre { background: var(--surface); border-radius: var(--rayon); overflow-x: auto; margin: 0 0 1.1rem; box-shadow: var(--ombre); }
.compteur { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.45rem; border-radius: 999px; background: var(--alerte); color: #fff; font-weight: 700; font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.liste.sobre { gap: 0; }
.liste.sobre .ligne { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid var(--trait); }
.liste.sobre .ligne:first-child { border-top: 0; }
.liste.refus { margin-top: 0.5rem; }
.souci-detail { color: var(--danger); font-size: 0.9rem; }
.carte { display: block; background: var(--surface); border-radius: var(--rayon-2); padding: 1rem 1.15rem; color: inherit; box-shadow: var(--ombre); transition: transform 180ms ease, box-shadow 180ms ease; }
a.carte:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--ombre-haute); }
.carte .sujet { display: block; font-weight: 600; font-size: 1.05rem; }
.carte .nom { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.carte .entete-carte { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.carte .apercu { display: block; margin-top: 0.3rem; color: var(--encre-2); }
.carte .meta { display: block; margin-top: 0.25rem; }
.carte .nom .meta, .carte .entete-carte .meta { display: inline; margin: 0; }
.carte .role { display: block; color: var(--encre-3); font-size: 0.88rem; margin-top: 0.15rem; }
.carte.exploitation { border: 1px dashed var(--trait-2); box-shadow: none; }

.etat { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: rgba(0, 0, 0, 0.06); color: var(--encre-2); white-space: nowrap; }
.etat.actif { background: var(--vif-doux); color: #0f6b47; }
.etat.pause { background: rgba(0, 0, 0, 0.06); color: var(--encre-2); }
.etat.souci { background: var(--danger-doux); color: var(--danger); }
.etiquette { display: inline-block; font-size: 0.78rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: rgba(0, 0, 0, 0.05); color: var(--encre-2); vertical-align: middle; font-weight: 500; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--alerte); }
.tag.fait { color: var(--vif); }
.tag.manque, .tag.casse { color: var(--danger); font-weight: 500; }

/* Un bloc qui ne sert qu'a titrer une liste de cartes n'est pas une carte :
   il devient transparent, et les cartes posent sur le fond. */
.bloc:has(> .liste > li > .carte), .bloc:has(> .liste > .carte), .bloc.a-approuver, .bloc.a-confier { background: transparent; box-shadow: none; padding: 0.4rem 0 0; }
.bloc:has(> .liste > li > .carte) > .entete, .bloc.a-approuver > .entete, .bloc.a-confier > .entete { margin-bottom: 0.4rem; }
.bloc:has(> .liste > li > .carte) > .lede, .bloc.a-approuver > .lede, .bloc.a-confier > .lede { margin-bottom: 1rem; }

/* --- formulaires ------------------------------------------------------------ */
.formulaire { display: grid; gap: 0.4rem; }
.formulaire.reponse { background: var(--surface); border-radius: var(--rayon); padding: 1.35rem 1.5rem; margin: 0 0 1.1rem; box-shadow: var(--ombre); }
.formulaire label { font-weight: 600; font-size: 0.92rem; margin-top: 0.7rem; color: var(--encre); }
.formulaire label:first-of-type { margin-top: 0; }
.facultatif { color: var(--encre-3); font-weight: 400; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire input[type="password"], .formulaire input[type="url"],
.formulaire input[type="search"], .formulaire textarea, .formulaire select, .formulaire input[type="file"] {
  font: inherit; width: 100%; padding: 0.68rem 0.85rem; border: 1px solid var(--trait-2); border-radius: var(--rayon-3); background: var(--surface); color: var(--encre);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.formulaire textarea { resize: vertical; line-height: 1.5; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-doux); }
.formulaire fieldset { border: 0; padding: 0; margin: 0.9rem 0 0; }
.formulaire legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.choix { display: grid; gap: 0.45rem; }
.choix label { font-weight: 400; margin: 0; display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.45; }
.choix input { margin-top: 0.35rem; accent-color: var(--encre); }
.actions { display: flex; gap: 0.6rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
button[type="submit"]:not(.lien), .bouton, button.secondaire {
  font: inherit; font-weight: 600; font-size: 0.97rem; padding: 0.62rem 1.15rem; border-radius: 999px; border: 1px solid var(--encre); background: var(--encre); color: #fff; cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
a.bouton { display: inline-block; }
a.bouton:hover { text-decoration: none; }
button[type="submit"]:not(.lien):hover, .bouton:hover { background: #000; transform: translateY(-1px); }
button[type="submit"]:not(.lien):active, .bouton:active { transform: translateY(0); }
button[type="submit"].secondaire, button.secondaire, .bouton.secondaire, .actions .secondaire { background: var(--surface); color: var(--encre); border-color: var(--trait-2); }
button[type="submit"].secondaire:hover, button.secondaire:hover, .bouton.secondaire:hover { background: var(--surface-2); border-color: var(--encre-3); }
form.inline { display: inline; }
.formulaire > button[type="submit"], .formulaire > .bouton { justify-self: start; }
/* Les ecrans sans entreprise - connexion, inscription - sont une colonne
   etroite, centree : un formulaire d'une ligne n'a pas besoin de 62rem. */
.sans-barre .page { max-width: 34rem; padding-top: 3.5rem; }
.sans-barre .page:has(.liste) { max-width: 44rem; }
form.inline input[type="text"] { font: inherit; padding: 0.3rem 0.55rem; border: 1px solid var(--trait-2); border-radius: 8px; max-width: 12rem; margin-right: 0.3rem; }
.accepte { display: flex; gap: 0.6rem; align-items: flex-start; }
.accepte input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--encre); }
.segment { display: inline-flex; background: rgba(0, 0, 0, 0.06); border-radius: 999px; padding: 3px; }
.segment label { padding: 0.38rem 0.95rem; cursor: pointer; margin: 0; font-weight: 500; border-radius: 999px; font-size: 0.92rem; }
.segment input { position: absolute; opacity: 0; width: 0; height: 0; }
.segment label:has(input:checked), .segment input:checked + label { background: var(--surface); color: var(--encre); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.1rem; }
.deux-champs .large { grid-column: 1 / -1; }
.deux-champs label, .trois-champs label { display: block; }
.trois-champs { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.6rem 1.1rem; }
.sous-champ { margin-top: 0.5rem; }

/* Un formulaire dans un bloc n'est pas une carte de plus : un panneau posé,
   sans ombre, un ton plus bas que la surface. */
.bloc .formulaire.reponse, .bloc .cadre, .carte-boite .formulaire.reponse { box-shadow: none; background: var(--surface-2); border: 1px solid var(--trait); }
.bloc .formulaire.reponse { padding: 1.1rem 1.25rem; margin: 0.6rem 0 0; }

/* Les champs hors d'un formulaire (un essai, un filtre) ont la meme tenue. */
.essai input[type="email"], .essai input[type="text"], .gestes input[type="text"], .demande input[type="text"] {
  font: inherit; padding: 0.55rem 0.85rem; border: 1px solid var(--trait-2); border-radius: var(--rayon-3); background: var(--surface); color: var(--encre);
}
.essai label { font-weight: 600; font-size: 0.92rem; }
.essai button[type="submit"] { padding: 0.5rem 1rem; }

/* --- tableaux --------------------------------------------------------------- */
.tableau { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cadre > .tableau { min-width: 56rem; }
.tableau .serre { white-space: nowrap; }
.tableau .inline input[type="text"] { width: 7rem; }
.tableau th, .tableau td { text-align: left; padding: 0.7rem 1rem; border-top: 1px solid var(--trait); vertical-align: top; }
.tableau th { color: var(--encre-3); font-weight: 600; font-size: 0.8rem; border-top: 0; }
.tableau tbody tr:hover { background: var(--surface-2); }

/* --- propositions, messages, fils -------------------------------------------- */
.proposition .meta { color: var(--encre-3); }
.carte.proposition .manque { display: block; margin-top: 0.3rem; color: var(--alerte); font-size: 0.88rem; }
.fil-messages { display: grid; gap: 0.7rem; margin: 0 0 1.2rem; }
.message { background: var(--surface); border-radius: var(--rayon-2); padding: 0.95rem 1.1rem; max-width: 90%; box-shadow: var(--ombre); }
.message.outbound { margin-left: auto; background: var(--encre); color: #fff; box-shadow: none; }
.message header { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.84rem; color: var(--encre-3); margin-bottom: 0.3rem; }
.message.outbound header { color: rgba(255, 255, 255, 0.65); }
.message .de { font-weight: 600; color: var(--encre-2); }
.message.outbound .de { color: #fff; }
.corps { white-space: pre-wrap; line-height: 1.55; }
.message .cite { margin-top: 0.6rem; border-top: 1px solid var(--trait); padding-top: 0.5rem; }
.message .cite summary { cursor: pointer; font-size: 0.86rem; color: var(--encre-3); }
.message .cite .corps { margin-top: 0.5rem; font-size: 0.92rem; color: var(--encre-3); }
.message.outbound .cite { border-color: rgba(255, 255, 255, 0.18); }
.message.outbound .cite summary, .message.outbound .cite .corps { color: rgba(255, 255, 255, 0.6); }
.corps.conserve { background: var(--surface); border-radius: var(--rayon-2); padding: 1rem 1.15rem; box-shadow: var(--ombre); }
.bloc.approche .meta { display: block; }

/* --- les prospects : l'angle, les faits ---------------------------------------- */
/* « un agent travaille » : visible de n'importe quelle page, parce qu'un
   travail qu'on ne voit pas est un bouton qu'on croit cassé (20/10/2026) */
.au-travail {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 2.4rem; background: var(--travail); color: #fff; font-size: 0.95rem;
  animation: descend 320ms ease-out;
  /* Une ligne, toujours. Un bandeau qui passe à deux lignes pousse la page
     sous les doigts, et une phrase de fin de ronde y tenait un paragraphe
     entier (20/10/2026). */
  white-space: nowrap; overflow: hidden;
}
.au-travail .battement { width: 9px; height: 9px; border-radius: 50%; background: #fff; align-self: center; flex: none; animation: battement 1.3s ease-in-out infinite; }
.au-travail .qui-travaille { font-weight: 700; white-space: nowrap; }
.au-travail .dit-travaille { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(255, 255, 255, 0.92); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.au-travail .qui-travaille::after { content: " ·"; color: rgba(255, 255, 255, 0.5); }
@keyframes descend { from { transform: translateY(-100%); } to { transform: none; } }
@media (max-width: 64rem) { .au-travail { padding: 0.7rem 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .au-travail { animation: none; } .au-travail .battement { animation: none; } }

/* « pourquoi ? », posée après coup et jamais obligatoire */
.pourquoi { margin: 0 0 1.4rem; padding: 1.1rem 1.25rem; background: var(--surface); border-radius: var(--rayon-2); box-shadow: var(--ombre); }
.pourquoi .demande { margin: 0 0 0.8rem; color: var(--encre-2); font-size: 0.97rem; }
.pourquoi ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.6rem 1.4rem; }
.pourquoi li { display: grid; gap: 0.3rem; align-content: start; }
.pourquoi button { justify-self: start; padding: 0.42rem 0.9rem; font-size: 0.9rem; }
.pourquoi span { color: var(--encre-3); font-size: 0.88rem; line-height: 1.45; }

/* le tuyau : une étape par colonne, le chiffre d'abord, et ce qui coince */
.tuyau { margin: 0 0 1.6rem; }
.tuyau > .meta { margin: 0 0 0.6rem; }
.tuyau .rang { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-3); margin-bottom: 0.4rem; }
.tuyau li.avous .rang { color: var(--accent); }
.tuyau li.avous { box-shadow: var(--ombre), inset 0 0 0 1px var(--accent-doux); }
.tuyau li.fin .rang { color: rgba(255, 255, 255, 0.55); }
.tuyau ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.6rem; }
.tuyau li { background: var(--surface); border-radius: var(--rayon-2); padding: 0.85rem 1rem; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.tuyau .chiffre { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tuyau .quoi { font-size: 0.88rem; font-weight: 600; color: var(--encre-2); }
.tuyau .souci { margin-top: 0.35rem; font-size: 0.8rem; line-height: 1.4; color: var(--alerte); }
.tuyau .geste { font-size: 0.8rem; font-weight: 600; }
.tuyau li.coince { box-shadow: var(--ombre), inset 3px 0 0 var(--alerte); }
.tuyau li.fin { background: var(--encre); }
.tuyau li.fin .chiffre { color: var(--surface); }
.tuyau li.fin .quoi { color: rgba(255, 255, 255, 0.72); }
.tuyau li.fin .souci { color: rgba(255, 255, 255, 0.6); }
.tuyau li.fin .geste { color: #fff; }
.tuyau li.fin.coince { box-shadow: var(--ombre), inset 3px 0 0 rgba(255, 255, 255, 0.35); }

/* --- prospects : la carte dit l'accroche, la décision est à droite --------- */
.titre-page { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.titre-page h1 { margin-bottom: 0.2rem; }
.titre-page .sous { color: var(--encre-2); margin: 0; font-size: 1.05rem; }
.titre-page .sous strong { color: var(--encre); font-weight: 600; }
.titre-page .gestes-page { display: flex; gap: 0.5rem; margin: 0 0 0.35rem; flex-wrap: wrap; }
.gestes-page .bouton { padding: 0.5rem 1rem; font-size: 0.92rem; }
.bloc.a-approuver > .entete { flex-direction: column; align-items: flex-start; gap: 0.25rem; margin-bottom: 0.8rem; }
.bloc.a-approuver > .entete h2 { display: flex; align-items: center; gap: 0.6rem; }
.bloc.a-approuver > .entete .meta { max-width: 62ch; }
.carte.prospect { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1.6rem; padding: 1.2rem 1.35rem; align-items: center; }
.carte.prospect .corps-prospect { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.entete-prospect { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; margin: 0; }
.entete-prospect .rang { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 999px; background: var(--encre); color: #fff; font-size: 0.78rem; font-weight: 700; align-self: center; }
.entete-prospect .nom { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.entete-prospect .site { color: var(--accent); font-size: 0.9rem; }
.entete-prospect .classement { margin-left: auto; font-size: 0.82rem; white-space: nowrap; }
.carte.prospect .accroche { font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.4; margin: 0.1rem 0 0; color: var(--encre); font-weight: 450; text-wrap: pretty; }
.carte.prospect .pourquoi { margin: 0; color: var(--encre-2); line-height: 1.5; }
.carte.prospect .contact-prospect { margin: 0.1rem 0 0; font-size: 0.92rem; color: var(--encre-2); }
.carte.prospect .contact-prospect .qui { font-weight: 600; color: var(--encre); }
.carte.prospect .contact-prospect .meta { display: inline; margin: 0; }
.carte.prospect .generique { margin: 0.1rem 0 0; color: var(--alerte); }
.carte.prospect .generique .lien { color: var(--accent); font-weight: 600; }
.carte.prospect .faits { margin-top: 0.15rem; }
.carte.prospect .faits summary { font-size: 0.88rem; color: var(--encre-3); }
.carte.prospect .faits .angle { margin-top: 0.6rem; }
.carte.prospect .decision { display: flex; flex-direction: column; gap: 0.5rem; align-self: center; margin: 0; }
.carte.prospect .decision button { width: 100%; white-space: nowrap; }
.carte.prospect .decision form { margin: 0; }
.carte.prospect .doute { margin: 0.2rem 0; }
.etiquette.manque { background: var(--alerte-doux); color: var(--alerte); }

/* les autres : une ligne par entreprise, l'état et la raison */
.lignes-prospects { list-style: none; margin: 0; padding: 0; }
.lignes-prospects li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 0.3rem 1.2rem; align-items: baseline; padding: 0.75rem 0; border-top: 1px solid var(--trait); }
.lignes-prospects li:first-child { border-top: 0; }
.bloc > .meta + .lignes-prospects { margin-top: 0.5rem; }
.lignes-prospects .identite { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: baseline; min-width: 0; }
.lignes-prospects .identite .nom { font-weight: 600; }
.lignes-prospects .identite .meta, .lignes-prospects .identite a { font-size: 0.88rem; }
.lignes-prospects .precision { font-size: 0.9rem; color: var(--encre-2); min-width: 0; }
.lignes-prospects .precision .tag { display: inline; }
.lignes-prospects .relance { color: var(--encre-3); }
.lignes-prospects .gestes-ligne { font-size: 0.9rem; white-space: normal; text-align: right; }
.lignes-prospects .gestes-ligne .lien { color: var(--accent); }
.bloc.ecartees > summary { cursor: pointer; display: flex; align-items: baseline; gap: 0.6rem; list-style: none; }
.bloc.ecartees > summary::-webkit-details-marker { display: none; }
.bloc.ecartees > summary h2 { display: inline; }
.bloc.ecartees[open] > summary { margin-bottom: 0.4rem; }
.vide-prospects { margin-bottom: 1.4rem; }

/* les trois manières de chercher : le bouton, puis ce qu'il fait */
.manieres { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.manieres li { display: grid; grid-template-columns: minmax(14rem, auto) minmax(0, 1fr); gap: 0.4rem 1.2rem; align-items: baseline; padding-top: 0.9rem; border-top: 1px solid var(--trait); }
.manieres li:first-child { border-top: 0; padding-top: 0; }
.manieres button { justify-self: start; white-space: nowrap; }
.manieres span { color: var(--encre-2); font-size: 0.95rem; line-height: 1.5; }

/* les portes : trois volets repliés */
.portes { display: grid; gap: 1.1rem; margin-top: 0.4rem; }
.portes .bloc { margin: 0; }
.porte > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.porte > summary::-webkit-details-marker { display: none; }
.porte > summary::after { content: "+"; margin-left: auto; color: var(--encre-3); font-size: 1.4rem; line-height: 1; font-weight: 300; }
.porte[open] > summary::after { content: "–"; }
.porte > summary h2 { display: inline; }
.porte > .formulaire { margin-top: 1rem; }
.porte .formulaire > .note:first-child { margin: 0 0 0.6rem; }
.porte .liste.sobre { margin-top: 1rem; }

.angle { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.45rem 1rem; margin: 0.5rem 0 0.2rem; font-size: 0.97rem; }
.angle dt { color: var(--encre-3); font-size: 0.86rem; font-weight: 500; padding-top: 0.1rem; }
.angle dd { margin: 0; }
.angle .accroche { font-family: var(--serif); font-style: italic; font-size: 1.1rem; font-weight: 450; }
.faits summary { cursor: pointer; color: var(--encre-2); font-size: 0.9rem; }
.faits .reponse-lue { display: block; margin-top: 0.4rem; font-size: 0.92rem; }
.citation { color: var(--encre-2); font-family: var(--serif); font-style: italic; font-size: 1.02em; }
.verdict { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 0.05rem 0.45rem; border-radius: 6px; background: rgba(0, 0, 0, 0.06); color: var(--encre-2); }
.verdict.oui { background: var(--vif-doux); color: #0f6b47; }
.verdict.non { background: var(--danger-doux); color: var(--danger); }
.lecture { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.8rem; margin: 0.5rem 0 0; font-size: 0.92rem; }
.lecture dt { color: var(--encre-3); }
.lecture dd { margin: 0; }
.lecture .changement { color: var(--alerte); }
.provenance { color: var(--encre-3); font-size: 0.85rem; }

/* --- le socle, les pastilles, l'historique --------------------------------------- */
.pastilles { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pastille { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; background: rgba(0, 0, 0, 0.05); color: var(--encre-2); }
.pastille.pleine { background: var(--vif-doux); color: #0f6b47; }
.pastille.vide { background: transparent; border: 1px dashed var(--trait-2); }
.pastille:hover { text-decoration: none; color: var(--encre); }
.versions { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.8rem; }
.versions li { border-left: 2px solid var(--trait-2); padding-left: 0.8rem; }
.versions p { margin: 0.2rem 0; white-space: pre-wrap; }
.versions .calme { color: var(--encre-3); font-style: italic; }

/* --- la phrase (page missions) -------------------------------------------- */
.phrase { font-size: 1.3rem; line-height: 1.45; margin: 0 0 0.5rem; max-width: 60ch; font-weight: 400; letter-spacing: -0.01em; }
.phrase .verbe { color: var(--encre); font-weight: 600; border-bottom: 2px solid var(--alerte); }
.phrase .verbe.prudent { border-bottom-color: var(--vif); }
.phrase .verbe.eteint { color: var(--encre-3); font-weight: 400; border-bottom-color: var(--trait-2); }
.phrase.seconde { margin-top: 0.3rem; }
.sous-phrase { color: var(--encre-2); font-size: 0.92rem; margin: 0 0 1.4rem; max-width: 64ch; }
.sous-phrase em { font-style: normal; color: var(--encre-3); }
.bloc.mission .lede { margin-bottom: 0.6rem; }
.bloc.mission h3 { margin: 1.5rem 0 0.4rem; }
.bloc.point .lede { margin-bottom: 0.3rem; }
.gestes { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0.9rem 0 0.4rem; }
.gestes form { margin: 0; }
.gestes-ligne { white-space: nowrap; }
.gestes-ligne form + form { margin-left: 0.6rem; }
.bloc.lecon { border-left: 3px solid var(--alerte); }
.bloc.lecon h3 { margin-top: 0; }
.dire-qui { margin-bottom: 0.6rem; }
.traduction { background: var(--vif-doux); border-radius: var(--rayon-2); padding: 0.9rem 1.1rem; margin: 0.6rem 0; display: grid; gap: 0.3rem; }
.traduction .suite-titre { margin: 0; font-weight: 600; }
.traduction .meta { margin: 0; color: var(--encre-2); }
details.criteres { margin: 0.4rem 0 0.6rem; }
details.criteres > summary { cursor: pointer; color: var(--encre-2); font-size: 0.92rem; padding: 0.2rem 0; }
details.criteres[open] > summary { margin-bottom: 0.4rem; }
.degres { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.degres li { display: grid; grid-template-columns: 2.4rem 1fr auto; grid-template-areas: "n t e" "n d e"; column-gap: 0.9rem; align-items: center; padding: 0.9rem 1rem; border-radius: var(--rayon-2); background: var(--surface-2); }
.degres li.courant { background: var(--surface); box-shadow: 0 0 0 2px var(--encre); }
.degres li.ferme { opacity: 0.55; }
.degres .numero { grid-area: n; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(0, 0, 0, 0.07); font-weight: 700; }
.degres li.courant .numero { background: var(--encre); color: #fff; }
.degres .titre { grid-area: t; font-weight: 600; }
.degres .detail { grid-area: d; color: var(--encre-2); font-size: 0.9rem; }
.degres .etat { grid-area: e; }
.degres li form { grid-area: e; }

/* --- le conseiller --------------------------------------------------------- */
.bloc.question { box-shadow: var(--ombre), 0 0 0 2px var(--alerte); }
.bloc.question .demande { font-size: 1.2rem; font-weight: 500; line-height: 1.4; margin: 0.2rem 0 0.3rem; text-wrap: balance; font-family: var(--serif); font-style: italic; }
.bloc.question .formulaire { margin-top: 0.6rem; }

/* --- les documents, la connexion, le pied ---------------------------------------- */
.document { max-width: 62ch; }
.document h2 { margin-top: 1.8rem; }
.journal ol { list-style: none; margin: 0; padding: 0; }
.journal li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.5rem; padding: 0.45rem 0; border-top: 1px solid var(--trait); font-size: 0.92rem; }
.journal li:first-child { border-top: 0; }
.journal time { color: var(--encre-3); font-size: 0.82rem; }
.journal .qui { font-weight: 600; }
.pied { padding: 2rem 2.4rem 2.5rem; color: var(--encre-3); font-size: 0.82rem; }
.pied a { color: var(--encre-3); }
.attente { color: var(--encre-2); }
.liste-plate { list-style: none; padding: 0; margin: 0.6rem 0; display: grid; gap: 0.3rem; }

/* --- l'accueil : le bureau --------------------------------------------------- */
.salut { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.salut h1 { margin-bottom: 0.2rem; }
.salut .sous { color: var(--encre-2); font-size: 1.05rem; margin: 0; }
.direct { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--vif); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.direct i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--vif); box-shadow: 0 0 0 0 rgba(26, 154, 104, 0.5); animation: direct 2.2s ease-out infinite; }
.direct.endormi { color: var(--encre-3); }
.direct.endormi i { background: var(--encre-3); animation: none; box-shadow: none; }
@keyframes direct { 0% { box-shadow: 0 0 0 0 rgba(26, 154, 104, 0.45); } 100% { box-shadow: 0 0 0 11px rgba(26, 154, 104, 0); } }

/* les employés : une carte chacun, qui est son bureau */
.employes { display: grid; grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); gap: 1.1rem; margin: 0 0 1.1rem; }
.employe { position: relative; background: var(--surface); border-radius: var(--rayon); padding: 1.35rem 1.5rem 1.1rem; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.tete-employe { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.employe .visage { width: 3.4rem; height: 3.4rem; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--encre); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.14); }
.employe .visage svg { width: 1.75rem; height: 1.75rem; }
.employe .visage.courrier { background: linear-gradient(160deg, #4c9dff, #0a5fd0); }
.employe .visage.prospection { background: linear-gradient(160deg, #8f7cf5, #5b48d8); }
.employe.arrete .visage { background: #c7c7cc; box-shadow: none; }
.employe .genre { margin: 0 0 0.1rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-3); }
.employe .qui { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.015em; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.employe .etat-employe { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--encre-3); }
.employe .etat-employe::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--encre-3); }
.employe.travaille .etat-employe { color: var(--vif); }
.employe.travaille .etat-employe::before { background: var(--vif); animation: battement 1.4s ease-in-out infinite; }
.employe.service .etat-employe { color: var(--vif); }
.employe.service .etat-employe::before { background: var(--vif); }
.employe.attend .etat-employe { color: var(--alerte); }
.employe.attend .etat-employe::before { background: var(--alerte); }
.employe .dit { font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.35; font-weight: 450; margin: 0.15rem 0 0; color: var(--encre); letter-spacing: -0.005em; text-wrap: pretty; }
.employe.arrete .dit { color: var(--encre-3); font-family: var(--sans); font-style: normal; font-size: 1rem; }
.employe .suite-employe { color: var(--encre-3); font-size: 0.86rem; margin-top: 0.3rem; }
.employe .suite-employe a { color: var(--encre-2); }
@keyframes battement { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }

/* ce avec quoi il travaille : ses boîtes, son périmètre, ses chiffres */
.outils { list-style: none; margin: 0; padding: 0; }
.outils li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid var(--trait); font-size: 0.92rem; min-width: 0; }
.outils .glyphe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--encre-3); }
.outils a { color: var(--encre); font-weight: 500; overflow-wrap: anywhere; }
.outils .etat-outil { color: var(--encre-3); font-size: 0.82rem; white-space: nowrap; }
.outils a.etat-outil { color: var(--accent); font-weight: 500; }
.outils li.probleme .etat-outil { color: var(--alerte); font-weight: 600; }
.outils li.probleme .glyphe { color: var(--alerte); }
.outils li.manque a { color: var(--accent); }
.outils .ou-cherche, .outils .quand-cherche { color: var(--encre-2); min-width: 0; }
.chiffres { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: -0.3rem 0 0; font-size: 0.9rem; color: var(--encre-3); }
.chiffres b { font-weight: 700; color: var(--encre); font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ses dernières phrases : trois, le reste se déplie */
.paroles { list-style: none; margin: 0; padding: 0; }
.paroles li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0.6rem; align-items: baseline; padding: 0.42rem 0; border-top: 1px solid var(--trait); font-size: 0.9rem; }
.paroles li:nth-child(n+4) { display: none; }
.employe.tout .paroles li { display: grid; }
.paroles .quand { color: var(--encre-3); font-size: 0.78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paroles .ligne { color: var(--encre-2); line-height: 1.4; overflow-wrap: anywhere; }
.paroles li.recente .ligne { color: var(--encre); font-weight: 500; }
.paroles li.neuve { animation: arrivee 0.5s ease-out; }
@keyframes arrivee { from { opacity: 0; transform: translateY(-0.4rem); } to { opacity: 1; transform: none; } }
.paroles-vide { color: var(--encre-3); font-size: 0.88rem; margin: 0; padding-top: 0.6rem; border-top: 1px solid var(--trait); }
.employe .plus { align-self: flex-start; font-size: 0.82rem; color: var(--encre-3); margin-top: -0.45rem; }

/* à vous : ce qui attend un geste, et rien d'autre */
.avous { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; margin: 0 0 1.1rem; }
.tuile-action { display: grid; grid-template-rows: auto auto auto; gap: 0.1rem; align-content: start; background: var(--encre); color: #fff; border-radius: var(--rayon); padding: 1.25rem 1.4rem 1.15rem; transition: transform 180ms ease, box-shadow 180ms ease; }
.tuile-action:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--ombre-haute); }
.tuile-action .nombre { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tuile-action .quoi { color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; }
.tuile-action .cta { margin-top: 0.7rem; font-weight: 600; color: #fff; font-size: 0.95rem; }
.tuile-action .cta::after { content: " →"; }
.rien-a-faire { display: flex; align-items: center; gap: 0.7rem; background: var(--surface); border-radius: var(--rayon); padding: 1rem 1.4rem; margin: 0 0 1.1rem; color: var(--encre-2); box-shadow: var(--ombre); }
.rien-a-faire::before { content: "✓"; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--vif-doux); color: var(--vif); font-weight: 700; font-size: 0.85rem; flex: none; }

/* en cours : ce qui bouge, carte par carte */
.bloc.encours-bloc { background: transparent; box-shadow: none; padding: 0.4rem 0 0; }
.bloc.encours-bloc > .entete { margin-bottom: 0.5rem; }
.narration-vide, .fil-vide, .atelier-vide { color: var(--encre-3); margin: 0.6rem 0 0; font-size: 0.92rem; }
.encours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.7rem; }
.encours li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.8rem; padding: 0.8rem 1rem; align-items: baseline; background: var(--surface); border-radius: var(--rayon-2); box-shadow: var(--ombre); min-width: 0; }
.encours .qui { font-weight: 600; overflow-wrap: anywhere; }
.encours .ou { grid-column: 1; color: var(--encre-3); font-size: 0.86rem; }
.encours .ou b { font-weight: 600; color: var(--encre-2); }
.encours .quand { grid-column: 2; grid-row: 1; color: var(--encre-3); font-size: 0.82rem; white-space: nowrap; }
.encours li.attend .ou b { color: var(--alerte); }
.encours a { color: inherit; }
.encours a:hover { color: var(--accent); text-decoration: none; }
.encours li.arrive { animation: arrivee 0.5s ease-out; }
.encours li.part { opacity: 0; transition: opacity 300ms ease; }

/* le fil : ce qui s'est passé */
.flux { list-style: none; margin: 0; padding: 0; }
.flux li { display: grid; grid-template-columns: 10px 1fr auto; gap: 0.8rem; align-items: baseline; padding: 0.65rem 0; border-top: 1px solid var(--trait); }
.flux li:first-child { border-top: 0; }
.flux .point { width: 8px; height: 8px; border-radius: 50%; background: var(--trait-2); position: relative; top: -1px; }
.flux .point.vous { background: var(--alerte); }
.flux .point.fait { background: var(--vif); }
.flux .point.casse { background: var(--danger); }
.flux .texte { line-height: 1.45; }
.flux .texte a { color: inherit; font-weight: 500; }
.flux .texte a:hover { color: var(--accent); text-decoration: none; }
.flux .quand { color: var(--encre-3); font-size: 0.82rem; white-space: nowrap; }
.flux li.parti .texte { color: var(--encre-2); }

/* le parcours : visible jusqu'à la dernière étape */
.parcours { background: var(--surface); border-radius: var(--rayon); padding: 1.3rem 1.5rem 1.4rem; margin: 0 0 1.1rem; box-shadow: var(--ombre); }
.parcours-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.parcours h2 { font-size: 1.15rem; }
.jalons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.jalons li { display: grid; grid-template-columns: 1.7rem 1fr; grid-template-areas: "n t" "n d" "n b"; column-gap: 0.6rem; row-gap: 0.25rem; align-items: start; }
.jalons .numero { grid-area: n; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 0.78rem; font-weight: 700; background: rgba(0, 0, 0, 0.07); color: var(--encre-2); }
.jalons .fait .numero { background: var(--vif); color: #fff; }
.jalons .courant .numero { background: var(--encre); color: #fff; }
.jalons .titre { grid-area: t; font-weight: 600; line-height: 1.3; color: inherit; }
.jalons .futur .titre { color: var(--encre-3); font-weight: 500; }
.jalons .fait .titre { color: var(--encre-3); text-decoration: line-through; text-decoration-color: var(--trait-2); }
.jalons .sans-objet .titre { color: var(--encre-3); font-weight: 500; }
.jalons .detail { grid-area: d; font-size: 0.86rem; color: var(--encre-2); line-height: 1.35; }
.jalons .bouton { grid-area: b; justify-self: start; margin-top: 0.35rem; padding: 0.45rem 0.95rem; }
.commencer { background: var(--surface); border-radius: var(--rayon); padding: 1.4rem 1.5rem; margin: 0 0 1.1rem; box-shadow: var(--ombre); }
.commencer .lede { margin: 0; }
.commencer .note { margin-top: 0.5rem; }
.resume { display: none; }

/* où tout le reste vit */
.tuiles-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.9rem; margin: 0 0 1.1rem; }
.tuile { display: block; background: var(--surface); border-radius: var(--rayon-2); padding: 1rem 1.1rem; color: inherit; box-shadow: var(--ombre); transition: transform 180ms ease, box-shadow 180ms ease; }
.tuile:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--ombre-haute); }
.tuile .chiffre { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tuile .titre { display: block; font-weight: 600; margin-top: 0.25rem; }
.tuile .detail { display: block; color: var(--encre-3); font-size: 0.86rem; margin-top: 0.15rem; }
.tuile.manque-info .chiffre { color: var(--alerte); }
.missions-lignes { list-style: none; margin: 0; padding: 0; }
.missions-lignes li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.6rem 0; border-top: 1px solid var(--trait); }
.missions-lignes li:first-child { border-top: 0; }

/* le bandeau du parcours, sur les autres pages */
.bandeau-parcours { display: flex; align-items: center; gap: 0.6rem 1.2rem; flex-wrap: wrap; padding: 0.7rem 2.4rem; background: var(--surface); border-bottom: 1px solid var(--trait); font-size: 0.86rem; color: var(--encre-2); }
.bandeau-parcours .ou { color: var(--encre-3); }
.bandeau-parcours a { color: var(--encre-2); }
.bandeau-parcours .pastilles { margin: 0; gap: 0.3rem 1rem; }
.bandeau-parcours .pastilles li a { display: inline-flex; align-items: center; gap: 0.4rem; }
.bandeau-parcours .numero { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; font-size: 0.7rem; font-weight: 700; background: rgba(0, 0, 0, 0.08); }
.bandeau-parcours .fait .numero { background: var(--vif); color: #fff; }
.bandeau-parcours .courant .numero { background: var(--encre); color: #fff; }
.bandeau-parcours .courant .quoi { font-weight: 600; color: var(--encre); }
.bandeau-parcours .futur a { opacity: 0.55; }
@media (max-width: 52rem) { .bandeau-parcours .fait .quoi, .bandeau-parcours .futur .quoi { display: none; } }

/* --- l'assistant ---------------------------------------------------------------- */
.assistant-bouton { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 20; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.1rem 0.75rem 0.9rem; border-radius: 999px; border: 0; background: var(--encre); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--ombre-haute); }
.assistant-bouton:hover { background: #000; }
.assistant-icone { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0, #fff 22%, rgba(255,255,255,0.28) 24%, rgba(255,255,255,0.28) 100%); }
.assistant { position: fixed; right: 1.4rem; bottom: 4.7rem; z-index: 20; width: min(25rem, calc(100vw - 2.8rem)); background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre-haute); padding: 1rem 1.1rem 1.1rem; display: grid; gap: 0.7rem; }
.assistant-tete { display: flex; justify-content: space-between; align-items: center; }
.assistant-fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; max-height: 40vh; overflow-y: auto; }
.assistant-fil li { padding: 0.6rem 0.8rem; border-radius: 14px; font-size: 0.93rem; line-height: 1.45; max-width: 92%; }
.assistant-fil li.mercure { background: var(--fond); }
.assistant-fil li.vous { background: var(--encre); color: #fff; justify-self: end; }
.assistant-fil li.attente { color: var(--encre-3); }
.assistant-fil .aller { font-weight: 600; }
.assistant-fil li.vous a { color: #fff; }
.suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.suggestion { font: inherit; font-size: 0.82rem; padding: 0.32rem 0.7rem; border-radius: 999px; border: 1px solid var(--trait-2); background: var(--surface); color: var(--encre-2); cursor: pointer; }
.suggestion:hover { border-color: var(--encre); color: var(--encre); }
.assistant-form { display: flex; gap: 0.4rem; }
.assistant-form input { flex: 1; font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--trait-2); border-radius: 999px; }
.assistant-form button[type="submit"] { padding: 0.55rem 1rem; }
.spot { position: absolute; z-index: 15; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(29, 29, 31, 0.5), 0 0 0 3px var(--accent); pointer-events: auto; transition: top 300ms ease, left 300ms ease, width 300ms ease, height 300ms ease; }
.spot-bulle { position: absolute; z-index: 16; background: var(--encre); color: #fff; padding: 0.65rem 0.9rem; border-radius: 14px; font-size: 0.92rem; max-width: 24rem; box-shadow: var(--ombre-haute); }
.surligne { position: relative; z-index: 16; }

/* --- les fonds : chez vous, à peine ------------------------------------------- */
body.theme-sable { background: radial-gradient(1100px 600px at 10% -10%, #f6ebdb 0%, transparent 60%), #f7f5f1; }
body.theme-ciel { background: radial-gradient(1100px 600px at 0% -10%, #e3edf9 0%, transparent 60%), #f3f6fa; }
body.theme-foret { background: radial-gradient(1000px 600px at 0% -10%, #e2efe7 0%, transparent 60%), #f2f5f3; }
body.theme-ardoise { background: radial-gradient(1000px 600px at 0% -10%, #e4e8ee 0%, transparent 60%), #eef0f3; }
html:has(body.theme-sable) { background: #f7f5f1; }
html:has(body.theme-ciel) { background: #f3f6fa; }
html:has(body.theme-foret) { background: #f2f5f3; }
html:has(body.theme-ardoise) { background: #eef0f3; }
.fonds { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.fond { display: grid; gap: 0.35rem; justify-items: center; cursor: pointer; font-weight: 500; margin: 0; }
.fond input { position: absolute; opacity: 0; width: 0; height: 0; }
.fond span { padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.85rem; color: var(--encre-2); }
.fond::before { content: ""; display: block; width: 4.6rem; height: 3rem; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--trait); }
.fond.papier::before { background: #f5f5f7; }
.fond.sable::before { background: linear-gradient(135deg, #f6ebdb, #f7f5f1); }
.fond.ciel::before { background: linear-gradient(135deg, #e3edf9, #f3f6fa); }
.fond.foret::before { background: linear-gradient(135deg, #e2efe7, #f2f5f3); }
.fond.ardoise::before { background: linear-gradient(135deg, #e4e8ee, #eef0f3); }
.fond:has(input:checked)::before { box-shadow: 0 0 0 2px var(--encre); }
.fond:has(input:checked) span { background: var(--encre); color: #fff; }

/* --- faisons connaissance : trois colonnes ------------------------------------- */
.page:has(.rencontre) { max-width: 80rem; }
.rencontre { display: grid; grid-template-columns: 16rem minmax(0, 1fr) 20rem; gap: 1.2rem; align-items: start; }
.rencontre-gauche h1 { font-size: 1.7rem; }
.appris { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.appris li { display: flex; gap: 0.55rem; align-items: center; color: var(--encre-2); font-size: 0.92rem; }
.appris li.fait { color: var(--encre); font-weight: 600; }
.appris li.partiel { color: var(--encre); }
.appris .coche { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: rgba(0, 0, 0, 0.07); font-size: 0.72rem; color: var(--encre-3); flex: none; }
.appris li.fait .coche { background: var(--vif); color: #fff; }
.appris li.partiel .coche { background: var(--alerte-doux); color: var(--alerte); }
.rencontre-chat { background: var(--surface); border-radius: var(--rayon); padding: 1.1rem 1.2rem; box-shadow: var(--ombre); display: grid; gap: 0.8rem; min-height: 62vh; grid-template-rows: 1fr auto; }
.tours { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; align-content: start; max-height: 62vh; overflow-y: auto; }
.tours li { display: grid; gap: 0.15rem; max-width: 84%; }
.tours li.vous { justify-self: end; justify-items: end; }
.tours .bulle { padding: 0.8rem 1rem; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; }
.tours li.mercure .bulle { background: var(--fond); border-bottom-left-radius: 6px; }
.tours li.vous .bulle { background: var(--encre); color: #fff; border-bottom-right-radius: 6px; }
.tours li.attente .bulle { color: var(--encre-3); }
.tours .quand { color: var(--encre-3); font-size: 0.74rem; padding: 0 0.3rem; }
.tours li.offres .bulle { display: flex; gap: 0.5rem; flex-wrap: wrap; background: transparent; padding: 0; }
.offre { font: inherit; font-weight: 600; padding: 0.55rem 0.95rem; border-radius: 999px; border: 1px solid var(--encre); background: var(--surface); color: var(--encre); cursor: pointer; }
.offre:disabled { opacity: 0.6; cursor: default; }
.dire { display: grid; gap: 0.4rem; }
.dire textarea { font: inherit; width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--trait-2); border-radius: 14px; resize: vertical; line-height: 1.45; }
.dire textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-doux); }
.dire .actions { margin-top: 0; }
.joindre { display: inline-flex; align-items: center; cursor: pointer; margin: 0; font-weight: 500; }
.joindre input { position: absolute; opacity: 0; width: 0; height: 0; }
.joindre span { padding: 0.5rem 0.9rem; border: 1px solid var(--trait-2); border-radius: 999px; background: var(--surface); }
.joindre:hover span { border-color: var(--encre); }
.rencontre-droite h2 { font-size: 1rem; }
.fiches { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.fiche { display: grid; gap: 0.2rem; background: var(--surface); border-radius: var(--rayon-2); padding: 0.7rem 0.85rem; font-size: 0.9rem; box-shadow: var(--ombre); transition: box-shadow 400ms ease, transform 400ms ease; }
.fiche.vide { color: var(--encre-3); box-shadow: none; border: 1px dashed var(--trait-2); }
.fiche .etiq { font-size: 0.74rem; font-weight: 600; color: var(--encre-3); }
.fiche .texte { line-height: 1.4; }
.fiche .source { font-size: 0.74rem; color: var(--encre-3); }
.fiche.neuve { box-shadow: 0 0 0 3px var(--vif-doux), var(--ombre); transform: translateY(-2px); }
.suite { background: var(--vif-doux); border-radius: var(--rayon-2); padding: 0.9rem 1.05rem; display: grid; gap: 0.4rem; justify-items: start; }
.suite-titre { margin: 0; font-weight: 600; }
.suite .meta { margin: 0; color: var(--encre-2); }
.suite-gestes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.15rem 0 0.2rem; }
.suite-gestes form { display: inline; }
.demande .bulle { display: grid; gap: 0.45rem; justify-items: start; background: var(--alerte-doux); }
.demande textarea { width: 100%; min-width: 18rem; font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--trait-2); border-radius: 10px; resize: vertical; }
.demande button { font: inherit; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--encre); background: var(--encre); color: #fff; cursor: pointer; }
.trace { display: block; color: var(--encre-3); font-size: 0.82rem; margin-top: 0.3rem; }
.a-confier .carte .entete-carte button { padding: 0.45rem 0.95rem; }

/* --- la base ------------------------------------------------------------------- */
.chiffres { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.1rem; }
.chiffres .chiffre { background: var(--surface); border-radius: var(--rayon-2); padding: 0.6rem 0.95rem; display: flex; gap: 0.45rem; align-items: baseline; font-size: 1rem; box-shadow: var(--ombre); }
.chiffres .chiffre strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.chiffres .chiffre span { color: var(--encre-2); font-size: 0.85rem; }
.filtre { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0 0 1.1rem; }
.filtre input[type="search"] { flex: 1 1 14rem; padding: 0.5rem 0.9rem; border: 1px solid var(--trait-2); border-radius: 999px; background: var(--surface); color: inherit; font: inherit; }
.filtre button { padding: 0.45rem 0.95rem; }
.liens-type { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.liens-type .etiquette { padding: 0.3rem 0.75rem; font-size: 0.86rem; }
.liens-type .etiquette:hover { text-decoration: none; color: var(--encre); }
.liens-type .etiquette.retenu { background: var(--encre); color: #fff; }
.organisations { gap: 0; }
.organisation { margin-bottom: 0.9rem; padding: 0; }
.entete-org { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline; padding: 0.85rem 1rem; border-bottom: 1px solid var(--trait); }
.entete-org .nom { font-weight: 600; font-size: 1.02rem; }
.organisation .tableau { table-layout: fixed; width: 100%; }
.organisation .tableau th:nth-child(1), .organisation .tableau td:nth-child(1) { width: 18%; }
.organisation .tableau th:nth-child(2), .organisation .tableau td:nth-child(2) { width: 16%; }
.organisation .tableau th:nth-child(3), .organisation .tableau td:nth-child(3) { width: 26%; }
.organisation .tableau th:nth-child(4), .organisation .tableau td:nth-child(4) { width: 18%; }
.organisation .tableau td { overflow-wrap: anywhere; }
.etiquette.lien-client { background: var(--vif-doux); color: #0f6b47; }
.etiquette.lien-prospect { background: var(--alerte-doux); color: var(--alerte); }
.etiquette.lien-ecarte { color: var(--encre-3); }

/* --- apporter une entreprise ---------------------------------------------------- */
.apporter { margin: 1.6rem 0; }
.candidats { gap: 0.6rem; margin-bottom: 1.1rem; }
.candidat { padding: 0; }
.candidat form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline; padding: 0.85rem 1rem; }
.candidat .nom { font-weight: 600; }
.candidat button { margin-left: auto; }
.fiche-entreprise h3 { margin: 1.2rem 0 0.4rem; }
.fiche-entreprise .tableau.gens input { width: 100%; box-sizing: border-box; }
.fiche-entreprise .tableau.gens { table-layout: fixed; width: 100%; }
.trouves .ligne { display: block; }
.trouves .citation { display: block; margin-top: 0.2rem; }

/* --- les boîtes aux lettres ------------------------------------------------------ */
.boites { gap: 0.8rem; margin-bottom: 1.3rem; }
.boite { padding: 1.1rem 1.3rem; }
.entete-boite { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline; }
.entete-boite .nom { font-weight: 600; font-size: 1.05rem; }
.entete-boite .etat { margin-left: auto; }
.role-boite { margin: 0.3rem 0 0; }
.boite .arreter { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.boite .probleme { margin: 0.6rem 0 0; }
.carte-boite { margin-top: 0.8rem; border-top: 1px solid var(--trait); padding-top: 0.7rem; }
.carte-boite summary { cursor: pointer; font-size: 0.92rem; font-weight: 500; }
.carte-boite .formulaire { margin-top: 0.7rem; }
.carte-boite .essai { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.carte-boite .essai input[type="email"] { width: min(22rem, 100%); }
.carte-boite .case { display: flex; gap: 0.5rem; align-items: baseline; margin-top: 0.9rem; }
details.serveur { margin: 0.8rem 0 0.4rem; }
details.serveur summary { cursor: pointer; color: var(--encre-2); font-size: 0.92rem; }

/* --- petits écrans ----------------------------------------------------------------- */
@media (max-width: 64rem) {
  /* minmax(0, 1fr) et non 1fr : une colonne de grille a une largeur minimale
     « auto », et un enfant un peu large pousse alors la page hors de l'ecran. */
  .coque { grid-template-columns: minmax(0, 1fr); }
  .contenu { min-width: 0; overflow-x: clip; }
  .laterale { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--trait); padding: 0.8rem 1.2rem; gap: 0.6rem; }
  .laterale .bas { margin-top: 0; }
  .menu { display: flex; flex-wrap: wrap; gap: 0.2rem; }
  .menu .titre-groupe { display: none; }
  .page { padding: 1.5rem 1.2rem 4rem; }
}
@media (max-width: 46rem) {
  .deux, .deux-champs, .trois-champs { grid-template-columns: 1fr; }
  .flux li { grid-template-columns: 10px 1fr; }
  .flux .quand { grid-column: 2; }
  .angle { grid-template-columns: 1fr; gap: 0.1rem; }
  .angle dd { margin-bottom: 0.35rem; }
  .degres li { grid-template-columns: 2rem 1fr; grid-template-areas: "n t" "n d" "n e"; row-gap: 0.2rem; }
  .actions button[type="submit"]:not(.lien) { flex: 1 1 auto; padding: 0.8rem 1rem; }
  h1 { font-size: 1.8rem; }
  .assistant-bouton span:last-child { display: none; }
  .assistant-bouton { padding: 0.85rem; }
  .rencontre { grid-template-columns: 1fr; }
  .tours { max-height: 50vh; }
  .paroles li { grid-template-columns: 1fr; gap: 0.05rem; }
  .carte.prospect { grid-template-columns: 1fr; }
  .carte.prospect .decision { flex-direction: row; margin-top: 0.4rem; }
  .carte.prospect .decision button { width: auto; flex: 1 1 auto; }
  .lignes-prospects li { grid-template-columns: 1fr; gap: 0.15rem; }
  .manieres li { grid-template-columns: 1fr; }
  .lignes-prospects .gestes-ligne { text-align: left; }
  .titre-page { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .direct i, .employe .etat-employe::before, .paroles li.neuve, .encours li.arrive { animation: none; }
  .carte, .tuile, .tuile-action, button { transition: none; }
}


/* --- Aujourd'hui ------------------------------------------------------------
   Une phrase, quatre chiffres, une liste où chaque ligne est un geste, un
   endroit pour parler à Mercure, et ce qu'il a fait. (12/11/2026) */
.auj { display: grid; gap: 2rem; }
.auj-tete { display: grid; gap: 0.4rem; }
.auj-date { margin: 0; color: var(--encre-3); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; }
.auj h1 { margin: 0; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; text-wrap: balance; }
.auj h1.voix { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.9rem; }
.auj h2 { margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--encre-2); text-transform: uppercase; letter-spacing: 0.06em; }
.bloc-auj { display: grid; gap: 0.7rem; }
.entre-auj { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.entre-auj a { font-size: 0.9rem; }
.chiffres-auj { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--trait); border-radius: var(--rayon-2); background: var(--surface); overflow: hidden; }
.chiffres-auj > div { padding: 0.9rem 1.1rem; border-left: 1px solid var(--trait); display: grid; gap: 0.1rem; align-content: start; }
.chiffres-auj > div:first-child { border-left: 0; }
.chiffres-auj b { font-size: 1.8rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.chiffres-auj span { color: var(--encre-2); font-size: 0.92rem; }
.chiffres-auj small { color: var(--encre-3); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chiffres-auj .fort b { color: var(--travail); }
.liste-auj { display: grid; border: 1px solid var(--trait); border-radius: var(--rayon-2); background: var(--surface); overflow: hidden; }
.ligne-auj { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.8rem 1.1rem; border-top: 1px solid var(--trait); }
.ligne-auj:first-child { border-top: 0; }
.ligne-auj .quoi { display: grid; gap: 0.1rem; min-width: 0; }
.ligne-auj .quoi b { font-weight: 600; }
.ligne-auj .quoi span { color: var(--encre-2); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.puce-auj { display: inline-block; min-width: 5.6rem; text-align: center; padding: 0.18rem 0.5rem; border-radius: 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--vif-doux); color: var(--travail); }
.puce-auj.vous { background: var(--accent-doux); color: var(--accent); }
.puce-auj.attention { background: var(--alerte-doux); color: var(--alerte); }
.gestes-auj { display: flex; gap: 0.4rem; align-items: center; }
.gestes-auj form { margin: 0; }
.gestes-auj button, .gestes-auj .bouton { white-space: nowrap; }
.bouton.primaire { display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; background: var(--encre); color: #fff; font-weight: 500; }
.bouton.primaire:hover { text-decoration: none; opacity: 0.9; }
.rien-auj { margin: 0; padding: 1.1rem 1.2rem; border: 1px dashed var(--trait-2); border-radius: var(--rayon-2); color: var(--encre-2); }
.fait-auj { display: grid; gap: 0.4rem; color: var(--encre-2); font-size: 0.95rem; }
.fait-auj div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.8rem; }
.fait-auj time { color: var(--encre-3); }
/* dites-lui : l'endroit où l'on parle à Mercure, et il agit */
.dites { display: grid; gap: 0.8rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-2); padding: 1.1rem 1.2rem; }
.dites textarea { width: 100%; resize: vertical; border: 1px solid var(--trait-2); border-radius: 10px; padding: 0.7rem 0.85rem; font: inherit; background: var(--fond); color: var(--encre); }
.dites-form { display: grid; gap: 0.6rem; }
.dites-pied { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.raccourcis { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.raccourcis .suggestion { font-size: 0.85rem; padding: 0.3rem 0.7rem; color: var(--encre-2); background: var(--surface); border: 1px solid var(--trait-2); border-radius: 999px; }
.dites-fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.dites-fil:empty { display: none; }
.dites-fil li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.8rem; font-size: 0.97rem; padding-top: 0.6rem; border-top: 1px solid var(--trait); }
.dites-fil li::before { content: attr(data-qui); color: var(--encre-3); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.3rem; }
.dites-fil li.mercure { font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.4; }
.dites-fil li.mercure .aller { font-family: var(--sans); font-style: normal; font-size: 0.9rem; margin-left: 0.4rem; }
.dites-fil li.attente { color: var(--encre-3); }
body:has(.dites) .assistant-bouton, body:has(.dites) .assistant { display: none; }
/* l'agenda */
.legende-ag { display: flex; gap: 1.2rem; color: var(--encre-3); font-size: 0.85rem; flex-wrap: wrap; }
.legende-ag span::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-right: 0.4rem; background: var(--travail); }
.legende-ag .v::before { background: var(--accent); }
.legende-ag .a::before { background: none; border: 2px solid var(--encre-3); width: 0.38rem; height: 0.38rem; }
.mois-ag { display: grid; gap: 0.6rem; }
.mois-ag h2 { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--encre); }
.grille-ag { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--trait); border-radius: var(--rayon-2); background: var(--surface); overflow: hidden; }
.grille-ag .entete { padding: 0.4rem 0.6rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-3); border-bottom: 1px solid var(--trait); font-weight: 600; }
.grille-ag .case { min-height: 4.8rem; padding: 0.4rem 0.55rem; border-left: 1px solid var(--trait); border-bottom: 1px solid var(--trait); display: grid; gap: 0.25rem; align-content: start; color: var(--encre); }
.grille-ag .case:hover { text-decoration: none; background: var(--surface-2); }
.grille-ag .case:nth-child(7n+1) { border-left: 0; }
.grille-ag .case:nth-last-child(-n+7) { border-bottom: 0; }
.grille-ag .case.hors { color: var(--encre-3); background: var(--fond); }
.grille-ag .num { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: 0.85rem; font-weight: 600; }
.grille-ag .case.auj .num { background: var(--encre); color: #fff; }
.grille-ag .points { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.grille-ag .pt { display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--travail); }
.grille-ag .pt.vous { background: var(--accent); }
.grille-ag .pt.salon { background: var(--alerte); }
.grille-ag .pt.attente { background: none; border: 2px solid var(--encre-3); width: 0.32rem; height: 0.32rem; }
.grille-ag .court { font-size: 0.76rem; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jours-ag { display: grid; }
.jour-ag { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.2rem; padding: 0.75rem 0; border-top: 1px solid var(--trait); scroll-margin-top: 5rem; }
.jour-ag:first-child { border-top: 0; }
.jour-ag .quand { color: var(--encre-3); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.15rem; }
.jour-ag .quand b { display: block; color: var(--encre); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 1rem; }
.jour-ag.passe { color: var(--encre-2); }
.jour-ag.auj { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-2); padding: 1rem 1.1rem; margin: 0.6rem 0; }
.jour-ag.auj + .jour-ag { border-top: 0; }
.jour-ag .evt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; padding: 0.25rem 0; }
.jour-ag .qui { width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-top: 0.55rem; background: var(--travail); }
.jour-ag .qui.vous { background: var(--accent); }
.jour-ag .qui.salon { background: var(--alerte); }
.jour-ag .qui.attente { background: none; border: 2px solid var(--encre-3); width: 0.42rem; height: 0.42rem; }
.jour-ag .qui.vide { background: var(--trait-2); }
.liste-consignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.liste-consignes li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--trait); }
@media (max-width: 46rem) {
  .haute { padding: 0.6rem 1rem; gap: 0.7rem; flex-wrap: wrap; }
  .societe-haute { display: none; }
  .quatre { margin-left: 0; width: 100%; order: 3; justify-content: space-between; }
  .quatre a { padding: 0.35rem 0.4rem; font-size: 0.92rem; }
  .chiffres-auj { grid-template-columns: 1fr 1fr; }
  .chiffres-auj > div:nth-child(3) { border-left: 0; }
  .chiffres-auj > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .ligne-auj { grid-template-columns: 1fr; gap: 0.5rem; }
  .fait-auj div, .dites-fil li, .jour-ag { grid-template-columns: 1fr; gap: 0.2rem; }
  .grille-ag .case { min-height: 3.2rem; padding: 0.3rem; }
  .grille-ag .court { display: none; }
}

/* --- Entreprises : une seule liste ----------------------------------------- */
.etapes-ligne { margin: 0.3rem 0 0; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--encre-2); }
.etapes-ligne b { color: var(--encre); font-weight: 600; font-variant-numeric: tabular-nums; }
.etapes-ligne b.vous { color: var(--accent); }
.etapes-ligne i { font-style: normal; color: var(--encre-3); padding: 0 0.1rem; }
.outils-liste { align-items: center; flex-wrap: wrap; gap: 0.8rem; }
.filtres { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filtres button { font-size: 0.86rem; padding: 0.3rem 0.75rem; color: var(--encre-2); background: var(--surface); border: 1px solid var(--trait-2); border-radius: 999px; }
.filtres button[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.bouton { display: inline-block; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--trait-2); background: var(--surface); color: var(--encre); font-weight: 500; white-space: nowrap; }
.bouton:hover { text-decoration: none; background: var(--surface-2); }
.tableau-liste { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon-2); background: var(--surface); }
table.entreprises { width: 100%; border-collapse: collapse; }
table.entreprises th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-3); font-weight: 600; padding: 0.6rem 1rem; border-bottom: 1px solid var(--trait); }
table.entreprises td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--trait); vertical-align: middle; }
table.entreprises tr:last-child td { border-bottom: 0; }
table.entreprises td .sous { display: block; color: var(--encre-3); font-size: 0.84rem; }
table.entreprises td.mouvement { color: var(--encre-2); font-size: 0.92rem; }
table.entreprises td.geste { text-align: right; white-space: nowrap; }
table.entreprises td.geste form { display: inline-block; margin: 0 0 0 0.5rem; }
table.entreprises td.geste .lien { font-size: 0.9rem; }
.puce-auj.fait { background: var(--vif-doux); color: var(--travail); }
.puce-auj.calme { background: rgba(0, 0, 0, 0.06); color: var(--encre-2); }
@media (max-width: 46rem) { table.entreprises td.mouvement { display: none; } table.entreprises th:nth-child(4) { display: none; } }
.liste-page .puce-auj { white-space: nowrap; min-width: 0; }
table.entreprises th:nth-child(1) { width: 24%; }
table.entreprises th:nth-child(2) { width: 24%; }
table.entreprises td:nth-child(2) { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.entreprises td.geste button, table.entreprises td.geste .bouton { font-size: 0.88rem; padding: 0.36rem 0.8rem; }
.etapes-ligne .note { flex-basis: 100%; }

/* --- Mercure : quatre cartes, une phrase, un lien ------------------------- */
.cartes-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.carte-hub { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-2); padding: 1.1rem 1.2rem; display: grid; gap: 0.55rem; align-content: start; }
.carte-hub h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.carte-hub p { margin: 0; color: var(--encre-2); font-size: 0.95rem; }
.carte-hub p b { color: var(--encre); }
.carte-hub .voix-hub { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--encre); }
.carte-hub .gestes-auj { margin-top: 0.4rem; flex-wrap: wrap; }
.regles-hub { margin: 0; padding-left: 1.1rem; color: var(--encre-2); font-size: 0.93rem; display: grid; gap: 0.2rem; }
.fiches-hub { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fiches-hub li { font-size: 0.8rem; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid var(--trait-2); color: var(--encre-2); }
.fiches-hub li.pleine { background: var(--vif-doux); color: var(--travail); border-color: transparent; }
.fiches-hub li.vide { border-style: dashed; color: var(--encre-3); }
@media (max-width: 46rem) { .cartes-hub { grid-template-columns: 1fr; } }
.legende-ag .s::before { background: var(--alerte); }
.pourquoi-salon { display: block; color: var(--encre-2); font-size: 0.92rem; }
.jour-ag .texte .etiquette { font-size: 0.72rem; background: var(--alerte-doux); color: var(--alerte); padding: 0.1rem 0.45rem; border-radius: 4px; margin-left: 0.3rem; vertical-align: 1px; }
.jour-ag .gestes-auj { margin-top: 0.4rem; }

/* --- le plan du jour : le temps sur chaque ligne (ADR-025) --------------- */
.budget { margin: 0; color: var(--encre-2); font-size: 0.95rem; }
.budget b { color: var(--encre); }
.budget.deborde b { color: var(--alerte); }
.ligne-auj .temps { color: var(--encre-3); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.ligne-auj .temps .retard { color: var(--alerte); }
.ligne-auj.demain { background: var(--surface-2); }
.ligne-auj.demain .quoi b { color: var(--encre-2); font-weight: 500; }
.puce-auj.mienne { background: rgba(0, 0, 0, 0.06); color: var(--encre-2); }
.form-tache { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.form-tache input[type=text] { flex: 1 1 16rem; }
.form-tache input { border: 1px solid var(--trait-2); border-radius: 10px; padding: 0.5rem 0.75rem; font: inherit; background: var(--surface); color: var(--encre); }
.form-tache input[type=number] { width: 6rem; }
@media (max-width: 46rem) { .form-tache input[type=text] { flex-basis: 100%; } }

/* --- la semaine par projet (ADR-025) ------------------------------------- */
.semaine { display: grid; gap: 0.5rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-2); }
.semaine h3 { margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--encre-2); text-transform: uppercase; letter-spacing: 0.06em; }
.semaine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.semaine li { display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr auto; gap: 0.8rem; align-items: center; font-size: 0.93rem; }
.semaine .nom { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.semaine .chiffre { color: var(--encre-3); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.semaine .jauge { display: block; height: 0.5rem; border-radius: 999px; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
.semaine .jauge i { display: block; height: 100%; width: 0; background: var(--vif); border-radius: 999px; }
.semaine .jauge i.p0 { width: 0%; }
.semaine .jauge i.p5 { width: 5%; }
.semaine .jauge i.p10 { width: 10%; }
.semaine .jauge i.p15 { width: 15%; }
.semaine .jauge i.p20 { width: 20%; }
.semaine .jauge i.p25 { width: 25%; }
.semaine .jauge i.p30 { width: 30%; }
.semaine .jauge i.p35 { width: 35%; }
.semaine .jauge i.p40 { width: 40%; }
.semaine .jauge i.p45 { width: 45%; }
.semaine .jauge i.p50 { width: 50%; }
.semaine .jauge i.p55 { width: 55%; }
.semaine .jauge i.p60 { width: 60%; }
.semaine .jauge i.p65 { width: 65%; }
.semaine .jauge i.p70 { width: 70%; }
.semaine .jauge i.p75 { width: 75%; }
.semaine .jauge i.p80 { width: 80%; }
.semaine .jauge i.p85 { width: 85%; }
.semaine .jauge i.p90 { width: 90%; }
.semaine .jauge i.p95 { width: 95%; }
.semaine .jauge i.p100 { width: 100%; }
.semaine li.retard .jauge i { background: var(--alerte); }
.semaine .reveil { margin: 0.2rem 0 0; color: var(--alerte); font-size: 0.93rem; }

/* la saisie d'une tâche, en tête de la journée */
.bloc-auj > .form-tache { padding: 0.75rem 0.8rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-2); }
.bloc-auj > .form-tache { flex-wrap: nowrap; }
.bloc-auj > .form-tache input[name=quoi] { flex: 1 1 10rem; min-width: 0; }
.bloc-auj > .form-tache input[name=projet] { flex: 0 1 7.5rem; min-width: 0; }
.bloc-auj > .form-tache input[name=minutes] { flex: 0 0 4.2rem; width: auto; padding-right: 0.3rem; }
.bloc-auj > .form-tache input[type=date] { flex: 0 0 8.2rem; padding-right: 0.3rem; }
@media (max-width: 46rem) {
  .bloc-auj > .form-tache { flex-wrap: wrap; }
  .bloc-auj > .form-tache input[name=quoi] { flex-basis: 100%; }
}
