/* ===========================================================
   L'ATELIER 2 — la feuille de la copie de travail (/copiedemo2).
   Copie de demo.css : on essaie ici, et ce qui est bon repart
   vers demo.css.

   La démonstration, en une page.

   Une règle tenue partout : PAS UNE FLÈCHE, pas un « cliquez
   ici ». Si l'écran a besoin d'une annotation pour être compris,
   c'est l'écran qu'il faut refaire.

   Deux boutons sur l'entrée, un tableau derrière. C'est tout.
   =========================================================== */
:root {
  --f: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --m: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --p-0: #F5F3EF; --p-1: #FFFFFF; --p-2: #ECE9E3; --p-3: #DAD5CC;
  --t-1: #16150F; --t-2: #55524A; --t-3: #8A8479;
  --vert: #2E6B4F; --vert-d: #E3EFE8;
  --chaud: #B33F1C; --chaud-d: #F7E5DE;
  --or: #A9682E; --or-d: #F3E9DC;
  --bleu: #24506E; --bleu-d: #E1EAF1;
  --ombre: 0 1px 2px rgba(22,21,15,.05), 0 14px 32px -22px rgba(22,21,15,.4);
  /* Le relief, en trois couches. Une ombre unique aplatit : celle de
     contact dit que l'objet touche la page, la moyenne lui donne son
     épaisseur, la large le décolle. C'est la même recette que sous un
     objet posé sur une table près d'une fenêtre. */
  --relief: 0 1px 1px rgba(22,21,15,.06),
            0 4px 9px -5px rgba(22,21,15,.14),
            0 22px 44px -26px rgba(22,21,15,.5);
  --relief-haut: 0 1px 1px rgba(22,21,15,.05),
                 0 8px 18px -8px rgba(22,21,15,.18),
                 0 34px 64px -32px rgba(22,21,15,.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --p-0: #0E0E10; --p-1: #16161A; --p-2: #1D1D22; --p-3: #2E2E36;
    --t-1: #F2F2F0; --t-2: #A7A7AD; --t-3: #74747C;
    --vert: #5BAE85; --vert-d: rgba(91,174,133,.14);
    --chaud: #DD7048; --chaud-d: rgba(221,112,72,.14);
    --or: #C9863F; --or-d: rgba(201,134,63,.14);
    --bleu: #6FA2C8; --bleu-d: rgba(111,162,200,.14);
    --ombre: 0 1px 2px rgba(0,0,0,.5), 0 14px 32px -22px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --p-0: #0E0E10; --p-1: #16161A; --p-2: #1D1D22; --p-3: #2E2E36;
  --t-1: #F2F2F0; --t-2: #A7A7AD; --t-3: #74747C;
  --vert: #5BAE85; --vert-d: rgba(91,174,133,.14);
  --chaud: #DD7048; --chaud-d: rgba(221,112,72,.14);
  --or: #C9863F; --or-d: rgba(201,134,63,.14);
  --bleu: #6FA2C8; --bleu-d: rgba(111,162,200,.14);
  --ombre: 0 1px 2px rgba(0,0,0,.5), 0 14px 32px -22px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--p-0); color: var(--t-1); font-family: var(--f);
       -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }

/* ===========================================================
   LE MENU — du verre posé sur la page

   Il flotte, il laisse passer ce qu'il y a derrière, et il prend
   la couleur du fond. Pour que le flou ait quelque chose à
   flouter, une lueur douce est peinte en haut de la page :
   sans elle, du verre sur un aplat ne ressemble à rien.
   =========================================================== */

/* La lueur qui donne sa couleur au verre.

   Elle est franche : un voile pâle ne traverse pas un flou de 30 px, et
   la barre finissait blanche sur blanc. Les trois taches reprennent les
   couleurs des modules — le vert d'Aiguillage, l'ocre de Facture, le
   bleu du tableau. */
.aura {
  position: fixed; inset: 0 0 auto 0; height: 920px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at  8% -10%, rgba(46,107,79,.72),  transparent 62%),
    radial-gradient(720px 400px at 94% -14%, rgba(169,104,46,.66), transparent 60%),
    radial-gradient(640px 380px at 48%  -6%, rgba(36,80,110,.52),  transparent 64%),
    /* Les deux taches du milieu : ce sont elles qu'on voit à travers les
       compteurs et les tris. Sans elles, le verre n'a rien à montrer. */
    radial-gradient(560px 360px at 88% 46%, rgba(169,104,46,.42), transparent 66%),
    radial-gradient(620px 380px at  4% 58%, rgba(36,80,110,.36),  transparent 68%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0,0,0,.55) 74%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0,0,0,.55) 74%, transparent 98%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .aura {
    background:
      radial-gradient(760px 420px at  8% -10%, rgba(91,174,133,.58), transparent 62%),
      radial-gradient(720px 400px at 94% -14%, rgba(201,134,63,.52), transparent 60%),
      radial-gradient(640px 380px at 48%  -6%, rgba(111,162,200,.44), transparent 64%),
      radial-gradient(560px 360px at 88% 46%, rgba(201,134,63,.34), transparent 66%),
      radial-gradient(620px 380px at  4% 58%, rgba(111,162,200,.30), transparent 68%);
  }
}
:root[data-theme="dark"] .aura {
  background:
    radial-gradient(760px 420px at  8% -10%, rgba(91,174,133,.58), transparent 62%),
    radial-gradient(720px 400px at 94% -14%, rgba(201,134,63,.52), transparent 60%),
    radial-gradient(640px 380px at 48%  -6%, rgba(111,162,200,.44), transparent 64%),
    radial-gradient(560px 360px at 88% 46%, rgba(201,134,63,.34), transparent 66%),
    radial-gradient(620px 380px at  4% 58%, rgba(111,162,200,.30), transparent 68%);
}

.barre {
  position: sticky; top: 12px; z-index: 30;
  margin: 12px auto 0; max-width: 1060px; width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px 9px 18px;
  border-radius: 22px;
  /* Le verre : un voile clair, un flou généreux, et une saturation
     relevée pour que la couleur du fond traverse sans se ternir. */
  background: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(30px) saturate(2.1);
  backdrop-filter: blur(30px) saturate(2.1);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 1px 1px rgba(22,21,15,.04), 0 12px 34px -16px rgba(22,21,15,.30),
              inset 0 1px 0 rgba(255,255,255,.85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .barre {
    background: rgba(24, 24, 28, .42);
    border-color: rgba(255, 255, 255, .13);
    box-shadow: 0 1px 1px rgba(0,0,0,.3), 0 12px 34px -16px rgba(0,0,0,.7),
                inset 0 1px 0 rgba(255,255,255,.10);
  }
}
:root[data-theme="dark"] .barre {
  background: rgba(24, 24, 28, .42);
  border-color: rgba(255, 255, 255, .13);
  box-shadow: 0 1px 1px rgba(0,0,0,.3), 0 12px 34px -16px rgba(0,0,0,.7),
              inset 0 1px 0 rgba(255,255,255,.10);
}
/* Un navigateur sans flou doit rester lisible : on referme le voile. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .barre { background: var(--p-1); }
}

.logo { font-size: 17px; font-weight: 700; letter-spacing: -.02em; flex: none; }
.logo span { color: var(--vert); }

/* Le repère de la page. Sans lui, deux onglets du navigateur se
   ressemblent trop. */
.logo { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.logo .marque {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px; font-weight: 700; font-style: normal;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--or);
  padding: 3px 6px 2px; border-radius: 6px;
  border: 1px solid currentColor; opacity: .85;
}

/* Les deux capsules, poussées à droite de la barre. Elles se lisent
   comme un couple : celle où l'on est est blanche et pleine, l'autre
   reste en verre grisé. Aucune flèche n'est nécessaire pour comprendre
   laquelle est active. */
/* Le menu ne défile pas. Un menu qu'on fait glisser n'est plus un menu :
   on ne voit plus ce qu'on peut faire, et sur un téléphone on ne pense
   même pas à essayer. Il rétrécit donc, jusqu'à tenir. */
.onglets { display: flex; gap: 6px; margin-left: auto; min-width: 0; flex-shrink: 1; }
.ong {
  flex: none; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13.5px; font-weight: 550; color: var(--t-2);
  padding: 8px 15px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.4);
  transition: background .14s ease, color .14s ease, box-shadow .14s ease;
}
.ong:hover { background: rgba(255,255,255,.62); color: var(--t-1); }
.ong .pt {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .45; flex: none;
}
.ong.on {
  background: rgba(255,255,255,.82); color: var(--t-1);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 1px 2px rgba(22,21,15,.10), inset 0 1px 0 rgba(255,255,255,.9);
}
.ong.on .pt { opacity: 1; }
.ong[data-aller="tableau"].on .pt { background: var(--bleu); }
.ong[data-aller="entree"].on .pt { background: var(--or); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ong {
    background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12);
  }
  :root:not([data-theme="light"]) .ong:hover { background: rgba(255,255,255,.12); }
  :root:not([data-theme="light"]) .ong.on {
    background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  }
}
:root[data-theme="dark"] .ong {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12);
}
:root[data-theme="dark"] .ong:hover { background: rgba(255,255,255,.12); }
:root[data-theme="dark"] .ong.on {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

/* La pastille de ce qui attend une décision. */
.ong .compte {
  font-family: var(--m); font-size: 10.5px; font-weight: 700; line-height: 1;
  padding: 3px 6px; border-radius: 20px; background: var(--chaud-d); color: var(--chaud);
}

/* La rangée sous la barre : « Doc + » puis « Repartir de zéro », tous
   deux du côté droit, dans le prolongement du menu. */
.remise { display: flex; justify-content: flex-end; align-items: center;
          gap: 7px; padding: 14px 0 2px; }

/* « Doc + » — volontairement plus petit que son voisin. Ce n'est pas une
   destination du logiciel, c'est une notice qu'on ouvre quand on se pose
   une question. Le livre entrouvert le dit sans légende. */
.doc {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px 7px 9px; border-radius: 13px;
  font-size: 11.5px; font-weight: 550; color: var(--t-2);
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(24px) saturate(2.2);
  backdrop-filter: blur(24px) saturate(2.2);
  border: 1px solid rgba(255, 255, 255, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.doc .ic { width: 14px; height: 14px; flex: none; }
.doc:hover { background: rgba(255,255,255,.36); color: var(--t-1);
             border-color: rgba(255,255,255,.7); }

/* ---- la page Doc ---- */
.niveaux { display: flex; flex-direction: column; gap: 10px; }
.niv {
  padding: 15px 17px; border-radius: 17px;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.niv h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 9px;
          font-size: 14.5px; letter-spacing: -.015em; }
.niv h3 .pt { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.niv.auto    h3 .pt { background: var(--vert); }
.niv.valider h3 .pt { background: var(--or); }
.niv.jamais  h3 .pt { background: var(--chaud); }
.niv ul { margin: 0; padding: 0 0 0 15px; display: flex; flex-direction: column; gap: 4px; }
.niv li { font-size: 12.5px; line-height: 1.4; color: var(--t-2); }
.niv li::marker { color: var(--t-3); }
.niv > p { margin: 9px 0 0; padding-top: 9px; border-top: 1px solid var(--p-3);
           font-size: 12px; font-weight: 600; color: var(--t-1); }
.niv.auto    > p { color: var(--vert); }
.niv.valider > p { color: var(--or); }
.niv.jamais  > p { color: var(--chaud); }

/* « Repartir de zéro » est une action, pas une destination : sa pastille
   reste neutre et sa capsule ne s'allume jamais. */
#remettre .pt { background: var(--t-3); }

@media (max-width: 720px) {
  .barre { padding: 8px 8px 8px 12px; gap: 6px; border-radius: 18px; }
  .logo { font-size: 15.5px; gap: 5px; }
  .logo .marque { font-size: 9px; padding: 3px 5px 2px; }
  .onglets { gap: 5px; }
  .ong { padding: 7px 11px; font-size: 12.5px; gap: 6px; }
  .ong .libelle-long { display: none; }
  .remise { padding: 12px 0 0; }
}

/* ---- le menu sur un petit téléphone ----

   Mesuré : à 360 px, le logo (105) et les deux capsules (82 + 136) font
   323 px pour 308 disponibles. « Mon tableau » sortait de la barre.

   Trois économies, dans l'ordre où elles coûtent le moins :
     1. le mot « Mon » disparaît — « Tableau » se comprend aussi bien ;
     2. le logo et son badge rétrécissent ;
     3. les capsules se resserrent.
   Les deux capsules restent entières, lisibles et touchables. */
@media (max-width: 420px) {
  .barre { padding: 7px 7px 7px 10px; gap: 5px; }
  .logo { font-size: 14.5px; gap: 4px; }
  .logo .marque { font-size: 8px; padding: 2px 4px 1px; letter-spacing: .06em; }
  .onglets { gap: 4px; }
  .ong { padding: 7px 9px; font-size: 12px; gap: 5px; }
  .ong .pt { width: 6px; height: 6px; }
  .ong .libelle .long { display: none; }
  /* « Mon » caché, il restait « tableau » en minuscule. La première
     lettre RENDUE reprend sa majuscule — et quand « Mon » est visible,
     la première lettre est déjà un M, donc la règle ne change rien. */
  .ong .libelle::first-letter { text-transform: uppercase; }
  .ong .compte { font-size: 9.5px; padding: 2px 5px; }
  .ong .point-neuf { width: 6px; height: 6px; }
}
@media (max-width: 340px) {
  .logo .marque { display: none; }
  .ong { padding: 6px 8px; font-size: 11.5px; }
}

.page { max-width: 1060px; margin: 0 auto; padding: 0 22px 90px; position: relative; z-index: 1; }

/* ---- l'entrée : deux portes, rien d'autre ---- */
.entree { padding: 52px 0 40px; text-align: center; }
.entree h1 {
  font-size: clamp(30px, 5.2vw, 46px); font-weight: 700; letter-spacing: -.028em;
  line-height: 1.08; margin: 0 0 16px; text-wrap: balance;
}
.entree .lede {
  font-size: 17px; line-height: 1.6; color: var(--t-2); margin: 0 auto 36px; max-width: 54ch;
}
.portes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
          gap: 14px; max-width: 700px; margin: 0 auto; }
.porte {
  text-align: left; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--p-3);
  background: var(--p-1); box-shadow: var(--ombre); transition: transform .12s ease, border-color .12s ease;
}
.porte:hover { transform: translateY(-2px); border-color: var(--vert); }
.porte b { display: block; font-size: 17px; font-weight: 650; margin-bottom: 5px; }
.porte span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--t-2); }
.porte .role {
  display: inline-block; font-family: var(--m); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--vert); background: var(--vert-d);
  padding: 3px 8px; border-radius: 5px; margin-bottom: 10px;
}
.porte.patron .role { color: var(--bleu); background: var(--bleu-d); }
.porte.patron:hover { border-color: var(--bleu); }

.note-demo {
  margin: 34px auto 0; max-width: 620px; font-size: 12.5px; line-height: 1.6;
  color: var(--t-3); padding: 13px 16px; border-radius: 10px; background: var(--p-2);
}
.note-demo b { color: var(--t-2); }

/* ---- côté client : trois exemples, un envoi ---- */
.ecran { padding: 30px 0 0; }
.ecran h2 { font-size: 24px; font-weight: 700; letter-spacing: -.018em; margin: 0 0 6px; }
.ecran .sous { font-size: 14.5px; line-height: 1.6; color: var(--t-2); margin: 0 0 24px; max-width: 62ch; }
.retour {
  font-size: 13px; color: var(--t-3); background: none; border: 0; padding: 0 0 14px;
}
.retour:hover { color: var(--t-1); }

.exemples { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 11px; }
.ex {
  text-align: left; padding: 15px 17px; border-radius: 11px; border: 1px solid var(--p-3);
  background: var(--p-1); color: var(--t-2);
}
.ex:hover { border-color: var(--t-3); }
.ex.on { border-color: var(--vert); background: var(--vert-d); }
.ex b { display: block; font-size: 14.5px; font-weight: 650; color: var(--t-1); margin-bottom: 4px; }
.ex.on b { color: var(--vert); }
.ex span { display: block; font-size: 12.5px; line-height: 1.5; }

.compose { margin-top: 18px; background: var(--p-1); border: 1px solid var(--p-3);
           border-radius: 13px; padding: 20px 22px; box-shadow: var(--ombre); }
.champ { margin-bottom: 13px; }
.champ label {
  display: block; font-family: var(--m); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-3); margin-bottom: 5px;
}
.champ input, .champ textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--t-1);
  background: var(--p-0); border: 1px solid var(--p-3); border-radius: 8px;
  padding: 10px 12px; resize: vertical; line-height: 1.55;
}
.piece {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  background: var(--p-0); border: 1px dashed var(--p-3); border-radius: 9px; font-size: 13px;
  color: var(--t-2);
}
.piece b { color: var(--t-1); font-weight: 600; }
/* Le bouton et sa phrase, empilés — des deux côtés de la bascule.

   Le bouton était en ligne avec sa légende à droite d'un côté, pleine
   largeur de l'autre. Deux formes pour le même geste : le doigt devait
   se déplacer entre les deux essais, et l'œil vérifier qu'il s'agissait
   bien du même bouton. Empilé et pleine largeur, il est au même endroit
   quelle que soit l'histoire qu'on regarde. */
.envoi { display: flex; flex-direction: column; align-items: stretch; gap: 7px;
         margin-top: 16px; }
.envoi .apres { text-align: center; }
/* UNE seule taille de bouton vert dans toute la démonstration.

   Il y en avait deux : un gros pour « Envoyer ce message », un plus
   petit pour ce que Nown fait tout seul. Deux tailles pour deux gestes
   d'égale importance, ça hiérarchise ce qui n'a pas à l'être — et sur la
   bascule du devis, les deux côtés se répondaient avec des boutons
   différents, comme si l'un comptait plus. C'est le petit qui reste. */
.gros {
  font-size: 13.5px; font-weight: 650; padding: 11px 18px; border-radius: 12px;
  border: 0; background: var(--vert); color: #fff; cursor: pointer;
}
.gros.large { width: 100%; }
/* La deuxième ligne du bouton : ce que le passage fait EN PLUS, en tout
   petit, entre parenthèses. Elle dit « il suit le chantier », pas
   « suivre le chantier » — un bouton ne doit jamais nommer un endroit
   où il ne mène pas. Le lien de la phrase, lui, y mène. */
.gros .gr-t { display: block; }
.gros .gr-s { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 500; opacity: .8; }
.gros:hover { filter: brightness(1.08); }
.gros:disabled { opacity: .55; cursor: default; }
.gros.bleu { background: var(--bleu); }
.envoi .apres { font-size: 13px; color: var(--t-3); }

/* ---- le traitement, en direct ---- */
.travail { margin-top: 20px; background: var(--p-1); border: 1px solid var(--p-3);
           border-radius: 13px; padding: 20px 22px; box-shadow: var(--ombre); }
/* Huit étapes à 9 px de rembourrage chacune faisaient 300 px de haut :
   sur un téléphone, la moitié de l'écran pour une liste qu'on parcourt
   des yeux en deux secondes. Quatre pixels entre les textes, aucun
   rembourrage — c'est serré, et ça reste lisible parce que chaque ligne
   garde sa pastille, son alignement et sa valeur à droite. */
.etapes { display: flex; flex-direction: column; gap: 4px; }
.etape { display: flex; align-items: center; gap: 11px; padding: 0; font-size: 13.5px;
         line-height: 1.3;
         color: var(--t-3); opacity: .45; transition: opacity .25s ease, color .25s ease; }
.etape.on { opacity: 1; color: var(--t-1); }
.etape .pastille {
  flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--p-2); color: var(--t-3); font-size: 10px; font-weight: 700;
}
.etape.on .pastille { background: var(--vert-d); color: var(--vert); }
.etape .quoi { flex: 1; }
.etape .valeur { font-family: var(--m); font-size: 12px; color: var(--t-2); text-align: right; }

/* ---- le résultat ---- */
.verdict { margin-top: 18px; border-radius: 12px; padding: 18px 20px; border: 1px solid; }
.verdict.auto { background: var(--vert-d); border-color: var(--vert); }
.verdict.valider { background: var(--or-d); border-color: var(--or); }
.verdict.humain { background: var(--chaud-d); border-color: var(--chaud); }
.verdict .t { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.verdict.auto .t { color: var(--vert); }
.verdict.valider .t { color: var(--or); }
.verdict.humain .t { color: var(--chaud); }
.verdict .p { font-size: 14px; line-height: 1.6; color: var(--t-2); }
.verdict .p b { color: var(--t-1); }
.verdict .regle {
  margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(128,128,128,.22);
  font-size: 13px; color: var(--t-2);
}
.verdict .regle b { color: var(--t-1); }

.fiche { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fiche .c { background: var(--p-1); border: 1px solid var(--p-3); border-radius: 9px; padding: 11px 13px; }
.fiche .k { font-family: var(--m); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
            color: var(--t-3); margin-bottom: 3px; }
.fiche .v { font-size: 14.5px; font-weight: 600; }

/* ---- le tableau de bord ---- */
/* ===========================================================
   LE VERRE, PLUS BAS QUE LE MENU

   Les compteurs et les tris sont taillés dans la même matière
   que la barre : un voile clair, un flou généreux, une saturation
   relevée. Posés sur la lueur, ils en prennent la couleur — comme
   les pavés du Centre de contrôle sur un fond d'écran.
   =========================================================== */

/* La recette, écrite une fois. */
.verre {
  background: rgba(255, 255, 255, .20);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 8px 22px -16px rgba(22,21,15,.3),
              inset 0 1px 0 rgba(255,255,255,.75);
}

/* Les quatre compteurs, sur une seule rangée et beaucoup plus bas.
   Ils disaient déjà tout en quatre chiffres : ils n'avaient pas besoin
   d'occuper la moitié de l'écran d'un téléphone. */
.compteurs { display: grid; grid-template-columns: repeat(4, 1fr);
             gap: 8px; margin-bottom: 12px; }
.kpi {
  padding: 10px 11px; border-radius: 15px;
  background: rgba(255, 255, 255, .20);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 8px 22px -16px rgba(22,21,15,.3),
              inset 0 1px 0 rgba(255,255,255,.75);
}
.kpi .n { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.kpi .k { font-family: var(--m); font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase;
          color: var(--t-3); margin-top: 4px; line-height: 1.25; }
.kpi.chaud .n { color: var(--chaud); }
.kpi.bon .n { color: var(--vert); }

/* ===========================================================
   LA BASCULE, À CHEVAL SUR LE TABLEAU

   Un seul objet à deux côtés, posé au milieu du bord haut du
   tableau. Sa moitié haute flotte au-dessus de la page, sa moitié
   basse mord sur le tableau : c'est ce chevauchement qui dit, sans
   une ligne de texte, que ce bouton commande CE tableau-là.

   Le tableau se réserve une bande vide en haut pour l'accueillir —
   sans elle, la bascule couvrait les noms de colonnes.
   =========================================================== */
/* 21 px au-dessus, 30 px dedans. Les deux valeurs sont mesurées, pas
   choisies : la bascule fait 46 px de haut, donc elle descend 25 px sous
   le bord du tableau. Avec 21 px de bande intérieure elle mordait de
   3 px sur les noms de colonnes — assez pour qu'on le voie, pas assez
   pour qu'on comprenne pourquoi. 30 px laissent 5 px de jour. */
.zone-tableau { position: relative; padding-top: 21px; }
/* 44 px, et non 30 : la bascule mord de 37 px sur le tableau, et les
   noms de colonnes doivent commencer APRÈS elle. À 30 px ils se
   touchaient exactement — 0 px de jour, mesuré par
   « essais/mesure-bascule.js ». Ce chiffre suit la HAUTEUR du
   sélecteur : s'il grandit encore, relancer la mesure. */
.zone-tableau .tableau { padding-top: 44px; }

/* LA PROFONDEUR DU SÉLECTEUR

   Trois choses se passent en même temps, et c'est leur somme qui fait
   qu'on le voit comme un objet posé et non comme un dessin :

     1. LE RAIL EST CREUX. Une ombre INTÉRIEURE en haut, une lumière
        intérieure en bas : la lumière vient d'en haut, donc un creux
        est sombre en haut et clair en bas. C'est l'inverse exact d'un
        objet bombé, et l'œil fait la différence sans qu'on la lui
        explique.

     2. IL POSE UNE OMBRE SUR LE TABLEAU. Deux couches : une large et
        lointaine qui le décolle, une courte et serrée juste sous le
        bord — l'ombre de contact. Sans la seconde, un objet flotte ;
        avec elle, il touche.

     3. LE CÔTÉ ALLUMÉ EST BOMBÉ. Voir « .cote.on » plus bas : il
        ressort du creux, avec sa propre ombre portée. C'est le galet
        dans la glissière.

   Et il est plus large qu'avant : 5 px de marge intérieure au lieu de
   3, 16 px dans chaque côté au lieu de 11. L'air autour des mots fait
   autant pour la lisibilité que leur taille. */
.bascule {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 4px; padding: 5px; max-width: 100%;
  border-radius: 25px;
  background: rgba(255, 255, 255, .46);
  -webkit-backdrop-filter: blur(30px) saturate(2.6);
  backdrop-filter: blur(30px) saturate(2.6);
  border: 1px solid rgba(255, 255, 255, .7);
  border-top-color: rgba(255, 255, 255, .95);
  box-shadow:
    /* le trait de contour : un cheveu sombre qui détache l'objet du
       fond, au-dessus comme sur le tableau. Sans lui, un objet blanc
       posé sur du blanc n'a pas de bord. */
    0 0 0 1px rgba(22, 21, 15, .05),
    /* portée : large et lointaine */
    0 20px 38px -22px rgba(22, 21, 15, .52),
    /* portée : l'ombre de contact, juste sous le bord */
    0 5px 10px -5px rgba(22, 21, 15, .34),
    /* le creux : sombre en haut, clair en bas */
    inset 0 2px 5px -2px rgba(22, 21, 15, .17),
    inset 0 -1px 0 rgba(255, 255, 255, .85);
}

/* Le galet garde sa ligne, au-dessus du tableau. */
.invite { margin-bottom: 4px; }
.invite .galet { width: 100%; }

/* Le mode d'emploi, en une phrase.

   Elle ne serait pas là si le tableau s'adressait à des gens qui
   passent leur journée dans des logiciels. Il s'adresse à un patron de
   PME qui ouvre sa boîte mail et rien d'autre : pour lui, une barre
   colorée est une étiquette, pas un bouton. La phrase nomme les deux
   deux côtés mot pour mot — c'est ce qui permet à l'œil de les retrouver
   juste en dessous — et dit le geste. Elle n'a plus à expliquer comment
   revenir : un côté est toujours allumé. */
/* 10 px sous la phrase : le sélecteur a besoin d'air au-dessus de lui
   pour qu'on le lise comme un objet posé, et non comme la suite du
   paragraphe. */
.mode-emploi {
  margin: 14px auto 10px; max-width: 58ch;
  font-size: 12.5px; line-height: 1.5; color: var(--t-2);
}
/* Sur un écran large, la phrase est centrée comme la chose qu'elle
   décrit : alignée à gauche sous un bouton posé au milieu, elle avait
   l'air de parler d'autre chose. Sur un téléphone la bascule prend
   presque toute la largeur — le centrage n'y apporte rien et quatre
   lignes centrées se lisent moins bien, donc il s'arrête là. */
@media (min-width: 561px) { .mode-emploi { text-align: center; } }
.mode-emploi b { color: var(--t-1); font-weight: 650; }

.cote {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 8px 16px; border-radius: 19px; border: 1px solid transparent;
  background: none; color: var(--t-2); font-family: var(--f);
  font-size: 12px; font-weight: 550; line-height: 1.18; cursor: pointer;
  text-align: left; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cote .pt { width: 7px; height: 7px; border-radius: 50%; background: var(--t-3); flex: none; }
.cote.bon .pt { background: var(--vert); }
.cote.chaud .pt { background: var(--chaud); }
.cote .nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre-line; }
.cote .nom .court { display: none; }
/* La pastille de couleur quitte la bascule du tableau — treize pixels
   par côté, et elle ne disait rien que le côté allumé ne dise déjà par
   sa couleur. Elle reste sur la bascule d'exemple, où elle sert de
   bouton radio : c'est pourquoi la règle exclut « bascule-ex ». */
.bascule:not(.bascule-ex) .cote .pt { display: none; }
.cote.neutre .pt { background: var(--t-3); }
.cote.neutre.on { background: var(--p-2); border-color: var(--t-3); }
.cote .nb {
  font-family: var(--m); font-size: 10px; font-weight: 700; flex: none;
  padding: 2px 6px; border-radius: 20px;
  background: rgba(255,255,255,.72); color: var(--t-2);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 1px 2px -1px rgba(22,21,15,.2);
}
.cote:hover {
  color: var(--t-1); background: rgba(255, 255, 255, .5);
  box-shadow: 0 4px 9px -6px rgba(22, 21, 15, .35),
              inset 0 1px 0 rgba(255, 255, 255, .8);
}
.cote.on:hover { background: none; }
.cote.bon.on:hover { background: var(--vert-d); }
.cote.chaud.on:hover { background: var(--chaud-d); }
.cote.neutre.on:hover { background: var(--p-2); }

/* Le côté allumé. Il ne s'éteint pas : appuyer dessus ne fait rien, et
   c'est voulu — il n'y a pas d'état « rien de choisi » à découvrir.

   Il est BOMBÉ là où le rail est creux : lumière en haut, ombre portée
   en bas. Les deux dessins s'opposent terme à terme, et c'est ce qui
   fait ressortir le galet de sa glissière. */
.cote.on {
  color: var(--t-1); cursor: default;
  box-shadow: 0 9px 16px -10px rgba(22, 21, 15, .5),
              0 2px 4px -2px rgba(22, 21, 15, .2),
              inset 0 1px 0 rgba(255, 255, 255, .9);
}
.cote.bon.on { background: var(--vert-d); border-color: var(--vert); }
.cote.bon.on .nb { background: var(--vert); color: var(--p-1); }
.cote.chaud.on { background: var(--chaud-d); border-color: var(--chaud); }
.cote.chaud.on .nb { background: var(--chaud); color: var(--p-1); }

/* ---- le galet ----

   Ce n'est pas un troisième tri, c'est une invitation — et l'invitation
   la plus chère de la page. Elle prend donc sa propre ligne, toute la
   largeur, et la même grammaire que le bouton qui ferme Refonte : un
   point qui respire, une phrase, une flèche. Les deux se répondent.

   Sa forme reste celle d'un galet : aucun de ses quatre coins n'est
   l'égal d'un autre. À cette taille l'asymétrie vient des rayons, plus
   de l'inclinaison — un grand bloc penché a l'air d'une erreur, un
   grand bloc aux coins inégaux a l'air d'avoir été ramassé. */
.galet {
  grid-column: 1 / -1; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 16px 20px;
  border-radius: 26px 44px 30px 40px / 34px 26px 42px 30px;
  color: var(--t-1);
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(28px) saturate(2.5);
  backdrop-filter: blur(28px) saturate(2.5);
  border: 1px solid rgba(169, 104, 46, .42);
  box-shadow: 0 14px 32px -20px rgba(169,104,46,.6),
              inset 0 1px 0 rgba(255,255,255,.78);
  transition: background .2s ease, border-color .2s ease,
              border-radius .45s ease, transform .2s ease;
}
.galet .gtxt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.galet .gtxt b { font-size: 14.5px; font-weight: 650; letter-spacing: -.015em; }
.galet .gtxt > span { font-size: 11.5px; color: var(--t-2); line-height: 1.3; }

/* Le point et la flèche, exactement ceux du bouton de Refonte : deux
   gestes de la même main. */
.galet .bat {
  flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--or);
  animation: battement 2.9s ease-in-out infinite;
}
.galet .fleche { flex: none; color: var(--or); font-size: 15px;
                 transition: transform .18s ease; }
.galet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%,
              rgba(255,255,255,.34) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: reflet 7s ease-in-out infinite;
}
/* Au survol il se déforme : un galet n'a pas de position de repos. */
.galet:hover {
  background: rgba(255,255,255,.34);
  border-color: rgba(169,104,46,.72);
  border-radius: 42px 26px 40px 30px / 26px 40px 28px 42px;
  transform: translateY(-1px);
}
.galet:hover .fleche { transform: translateX(4px); }

/* ---- la page Refonte ----
   Elle tient en un écran de téléphone. Rien à faire défiler : c'est
   une réponse, pas une brochure. */
.refonte { padding-top: 28px; }
.rf-tete { margin-bottom: 20px; }
.rf-eti {
  display: inline-block; font-family: var(--m); font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--or);
  border: 1px solid currentColor; border-radius: 7px; padding: 4px 8px 3px;
  margin-bottom: 14px;
}
.refonte h2 { font-size: 27px; line-height: 1.16; letter-spacing: -.025em;
              margin: 0 0 10px; text-wrap: balance; }
.refonte .sous { margin: 0; max-width: 46ch; }

.rf-pas { list-style: none; margin: 0 0 20px; padding: 0;
          display: flex; flex-direction: column; gap: 9px; }
.rf-pas li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .20);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.rf-n {
  font-family: var(--m); font-size: 10px; font-weight: 700; flex: none;
  width: 21px; height: 21px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: var(--or); color: #fff;
}
.rf-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-t b { font-size: 14px; letter-spacing: -.01em; }
.rf-t span { font-size: 12.5px; color: var(--t-2); line-height: 1.35; }

/* ---- la fin de Refonte ----

   Ici on ne vend pas un logiciel à 3 500 € en rayon : on demande à
   quelqu'un d'engager une somme qu'il ne connaît pas encore. Le bloc
   est donc sobre — pas de pavé de couleur, pas d'insistance. Un filet,
   une phrase, une réserve, un geste. Le parcours de l'œil est vertical
   et sans détour : affirmation → précision → action.

   L'urgence n'est pas écrite, elle est physique : un point qui respire
   et un reflet qui traverse le bouton toutes les sept secondes. On ne
   le lit pas, on le remarque. Rien n'est promis qui ne soit vrai. */
.rf-fin {
  display: flex; flex-direction: column; gap: 9px;
  padding: 22px 0 0; position: relative;
  border-top: 1px solid var(--p-3);
}
/* Le petit segment ocre posé sur le filet : c'est lui qui dit « on
   conclut », sans avoir à l'écrire. */
.rf-fin::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 38px; height: 2px; border-radius: 2px; background: var(--or);
}
.rf-fin b { font-size: 17px; letter-spacing: -.022em; line-height: 1.28;
            max-width: 22ch; text-wrap: balance; }
.rf-fin span { font-size: 12.5px; color: var(--t-2); line-height: 1.45; max-width: 44ch; }

/* Le geste. Du verre, un filet ocre, beaucoup d'air dedans : un bouton
   large et calme se clique posément — c'est ce qu'on veut ici. */
.rf-ecrire {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 11px;
  margin-top: 5px; padding: 16px 18px; border-radius: 16px;
  text-decoration: none; color: var(--t-1);
  font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(169, 104, 46, .42);
  box-shadow: 0 10px 26px -18px rgba(169,104,46,.6),
              inset 0 1px 0 rgba(255,255,255,.75);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.rf-ecrire .mot { flex: 1; min-width: 0; }
.rf-ecrire .fleche { flex: none; color: var(--or); font-size: 15px;
                     transition: transform .18s ease; }
.rf-ecrire .bat {
  flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--or);
  animation: battement 2.9s ease-in-out infinite;
}
/* Le reflet qui traverse. Faible, lent, espacé : on ne le voit pas
   passer, on sent que le bouton est vivant. */
.rf-ecrire::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%,
              rgba(255,255,255,.34) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: reflet 7s ease-in-out infinite;
}
.rf-ecrire:hover {
  background: rgba(255,255,255,.34); border-color: rgba(169,104,46,.72);
  transform: translateY(-1px);
}
.rf-ecrire:hover .fleche { transform: translateX(4px); }

@keyframes battement {
  0%, 100% { opacity: .5;  transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.22); }
}
@keyframes reflet {
  0%, 72%  { transform: translateX(-130%); }
  92%, 100% { transform: translateX(130%); }
}
/* Qui ne veut pas de mouvement n'en a pas. */
@media (prefers-reduced-motion: reduce) {
  .rf-ecrire .bat, .galet .bat { animation: none; opacity: 1; }
  .rf-ecrire::after, .galet::after { animation: none; display: none; }
}

/* Le verre en tenue de nuit. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kpi,
  :root:not([data-theme="light"]) .bascule,
  :root:not([data-theme="light"]) .rf-pas li {
    background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  }
  :root:not([data-theme="light"]) .cote .nb { background: rgba(255,255,255,.12); }
  :root:not([data-theme="light"]) .cote:hover { background: rgba(255,255,255,.12); }
  :root:not([data-theme="light"]) .galet {
    background: rgba(255,255,255,.06); border-color: rgba(201,134,63,.5);
    box-shadow: 0 14px 30px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
  }
  :root:not([data-theme="light"]) .galet:hover { background: rgba(255,255,255,.13); }
}
:root[data-theme="dark"] .kpi,
:root[data-theme="dark"] .bascule,
:root[data-theme="dark"] .rf-pas li {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
:root[data-theme="dark"] .cote .nb { background: rgba(255,255,255,.12); }
:root[data-theme="dark"] .cote:hover { background: rgba(255,255,255,.12); }
:root[data-theme="dark"] .galet {
  background: rgba(255,255,255,.06); border-color: rgba(201,134,63,.5);
  box-shadow: 0 14px 30px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
}
:root[data-theme="dark"] .galet:hover { background: rgba(255,255,255,.13); }

/* Le bouton de fin, la nuit : le filet ocre reste, le verre s'assombrit. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rf-ecrire {
    background: rgba(255,255,255,.06); border-color: rgba(201,134,63,.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  }
  :root:not([data-theme="light"]) .rf-ecrire:hover { background: rgba(255,255,255,.13); }
  :root:not([data-theme="light"]) .rf-fin { border-top-color: rgba(255,255,255,.14); }
}
:root[data-theme="dark"] .rf-ecrire {
  background: rgba(255,255,255,.06); border-color: rgba(201,134,63,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
:root[data-theme="dark"] .rf-ecrire:hover { background: rgba(255,255,255,.13); }
:root[data-theme="dark"] .rf-fin { border-top-color: rgba(255,255,255,.14); }

/* « Doc + » et les trois niveaux, la nuit. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .doc,
  :root:not([data-theme="light"]) .niv {
    background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  }
  :root:not([data-theme="light"]) .doc:hover { background: rgba(255,255,255,.13); }
  :root:not([data-theme="light"]) .niv > p { border-top-color: rgba(255,255,255,.14); }
}
:root[data-theme="dark"] .doc,
:root[data-theme="dark"] .niv {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
:root[data-theme="dark"] .doc:hover { background: rgba(255,255,255,.13); }
:root[data-theme="dark"] .niv > p { border-top-color: rgba(255,255,255,.14); }


/* Sans flou, le verre redevient opaque plutôt qu'illisible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .kpi, .bascule, .galet, .rf-pas li, .doc, .niv { background: var(--p-1); }
}

/* ===========================================================
   LE TABLEAU

   C'était la chose la plus plate d'une page qui est partout
   ailleurs en verre et en relief : une boîte blanche, un filet
   gris, une barre grise en haut. L'écran le plus important du
   logiciel avait l'air d'un tableur.

   Il prend la matière du reste — verre, lumière du haut, ombre
   longue — et chaque ligne porte désormais son état sur son bord
   gauche : on lit « il attend quelque chose de moi » avant
   d'avoir lu un seul mot.
   =========================================================== */
.tableau {
  position: relative; border-radius: 20px; overflow: hidden;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(28px) saturate(2.4);
  backdrop-filter: blur(28px) saturate(2.4);
  border: 1px solid rgba(255, 255, 255, .6);
  border-top-color: rgba(255, 255, 255, .95);
  border-bottom-color: rgba(214, 208, 196, .6);
  box-shadow: var(--relief-haut), inset 0 1px 0 rgba(255,255,255,.9);
}
/* Le poli du haut, comme sur les autres panneaux de verre. */
.zone-tableau .tableau::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 84px;
  pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}

/* Le voile du bas. Il ne s'affiche que s'il reste vraiment à descendre,
   et il disparaît dès qu'on est au bout : un dégradé permanent ferait
   croire qu'il y a toujours quelque chose de plus. */
.tableau::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
  background: linear-gradient(to bottom, transparent, var(--p-1) 86%);
}
.tableau.a-plus::after { opacity: 1; }

/* Et la phrase qui dit combien il en reste. */
.sous-tableau {
  margin: 10px 2px 0; font-size: 12px; color: var(--t-2);
}
.tableau .entete, .ligne {
  display: grid;
  /* 152 px pour la dernière colonne, et non 96 : « Traiter le dossier »
     se cassait en deux lignes, ce qui faisait grandir toute la rangée. */
  grid-template-columns: 120px minmax(0, 1.4fr) minmax(0, 1.55fr) 116px 152px;
  gap: 14px; align-items: center; padding: 14px 18px 14px 20px;
}
.tableau .entete {
  position: relative; z-index: 1;
  font-family: var(--m); font-size: 9.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--t-3); background: transparent;
  border-bottom: 1px solid rgba(214, 208, 196, .6);
}

/* ---- la fenêtre du tableau ----

   Le tableau ne grandit plus avec l'historique : il garde la même
   hauteur et c'est son contenu qui défile. Sans ça, une démonstration
   de dix minutes finit par pousser le pied de page à deux écrans de là,
   et on ne sait plus où on en est.

   La hauteur exacte est posée par « calerFenetre » dans le script, qui
   additionne les premières lignes réelles : trois sur un écran large,
   deux sur un téléphone. La valeur ci-dessous n'est qu'un filet de
   sécurité si le script ne tourne pas. */
.tableau .corps { max-height: 306px; overflow-y: auto; }
.tableau .corps::-webkit-scrollbar { width: 9px; }
.tableau .corps::-webkit-scrollbar-thumb {
  background: var(--p-3); border-radius: 9px;
  border: 3px solid var(--p-1); background-clip: padding-box;
}
.tableau .corps::-webkit-scrollbar-track { background: transparent; }
.tableau .corps { scrollbar-width: thin; scrollbar-color: var(--p-3) transparent; }

/* ---- le tri de l'historique, sous le tableau ----

   Le filtre par date était un menu déroulant posé dans la barre grise,
   et caché sur téléphone : la moitié des visiteurs ne l'ont jamais eu.
   Il est descendu sous le tableau, en pastilles, visible partout — et il
   n'apparaît que sur le côté « Classé / Historique », le seul où l'on
   trie vraiment. */
.tri-histo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin: 9px 2px 0;
}
.th-t {
  font-family: var(--m); font-size: 8.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-3); margin-right: 2px;
}
.th-b {
  padding: 5px 10px; border-radius: 20px; cursor: pointer; white-space: nowrap;
  background: rgba(255,255,255,.55); border: 1px solid var(--p-3); color: var(--t-2);
  font-family: var(--f); font-size: 11.5px; font-weight: 600;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.th-b:hover { border-color: var(--t-3); color: var(--t-1); }
.th-b.on { background: var(--t-1); border-color: var(--t-1); color: var(--p-0); }
.th-sep { width: 1px; height: 16px; background: var(--p-3); margin: 0 4px; }
@media (max-width: 460px) {
  .th-b { font-size: 11px; padding: 5px 9px; }
  .th-sep { flex-basis: 100%; height: 0; background: none; margin: 1px 0; }
}
/* Une ligne. Fond franc — c'est du texte qu'on lit — et un liseré à
   gauche qui dit son état avant qu'on ait lu quoi que ce soit. */
.ligne {
  position: relative; z-index: 1;
  border-bottom: 1px solid rgba(214, 208, 196, .45);
  font-size: 13.5px; background: rgba(255,255,255,.72);
  transition: background .16s ease;
}
.ligne::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--t-3); opacity: .5;
}
.ligne.l-valider::before { background: var(--or); opacity: 1; }
.ligne.l-humain::before  { background: var(--chaud); opacity: 1; }
.ligne.l-auto::before    { background: var(--vert); opacity: .85; }
.ligne.l-cours::before   { background: var(--bleu); opacity: .85; }
.ligne:hover { background: rgba(255,255,255,.95); }
.ligne:last-child { border-bottom: 0; }
.ligne.neuve { background: var(--vert-d); }
.ligne .qui b { display: block; font-weight: 650; }
.ligne .qui span { display: block; font-size: 11.5px; color: var(--t-3); margin-top: 1px; }
.ligne .fait { color: var(--t-2); line-height: 1.45; }
.ligne .fait b { color: var(--t-1); font-weight: 600; }
.mod {
  display: inline-block; font-family: var(--m); font-size: 9.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px;
}
/* Les étiquettes de module, en retrait. Elles disent d'où vient la
   ligne — ce n'est pas ce qu'on cherche en premier. L'état l'est, et il
   a son liseré. */
/* Les étiquettes de module gardent la COULEUR de leur module, mais
   perdent leur fond. Quatre pastilles pleines par écran tiraient l'œil
   vers l'information la moins urgente — d'où vient la ligne — alors que
   ce qu'on cherche est son état, qui a maintenant son liseré à gauche. */
.mod { background: transparent; border: 1px solid var(--p-3); }
.mod.facture { color: var(--bleu); border-color: rgba(36, 80, 110, .3); }
.mod.support { color: var(--or); border-color: rgba(169, 104, 46, .3); }
.mod.veille { color: var(--vert); border-color: rgba(46, 107, 79, .3); }
.mod.rappel { color: var(--bleu); border-color: rgba(36, 80, 110, .3); }
.mod.chantier { color: var(--or); border-color: rgba(169, 104, 46, .3); }
/* Hors du tableau — dans la fiche d'un client — elles retrouvent leur
   fond : là, elles sont l'information principale de la ligne. */
.af .mod.facture { background: var(--bleu-d); }
.af .mod.support { background: var(--or-d); }
.af .mod.veille { background: var(--vert-d); }
.af .mod.rappel { background: var(--bleu-d); }
.af .mod.chantier { background: var(--or-d); }
.etat {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.etat.auto { background: var(--vert-d); color: var(--vert); }
.etat.valider { background: var(--or-d); color: var(--or); }
.etat.humain { background: var(--chaud-d); color: var(--chaud); }
/* Autorisé par vous, parti, et qui attend maintenant quelqu'un d'autre.
   Ni vert (ce n'est pas fini) ni ocre (il n'y a rien à décider) : bleu,
   la couleur de ce qui tourne. */
.etat.cours { background: var(--bleu-d); color: var(--bleu); }

/* ---- l'action de la ligne ----

   UN bouton, et son mot dit s'il y a quelque chose à faire. « Détail »
   ne le disait pas : c'était le même mot sur la ligne qui attendait une
   décision et sur celle qui était réglée depuis trois jours. */
.act.traiter {
  background: var(--or-d); color: var(--or); border-color: var(--or); font-weight: 650;
}
.act.traiter:hover { background: var(--or); color: var(--p-1); border-color: var(--or); }
.act.doux { color: var(--t-3); }
.act.doux:hover { color: var(--t-1); border-color: var(--t-3); }

/* La seconde verte du bouton qui valide, dans le dossier. Elle dure le
   temps qu'il faut pour la voir — et pas plus : le dossier s'en va
   ensuite du côté « En cours ». */
.gros.vert.fait {
  background: var(--vert); cursor: default; animation: etat-pose .45s ease-out;
}
@keyframes etat-pose {
  0%   { transform: scale(.94); }
  55%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .gros.vert.fait { animation: none; } }

/* ---- la ligne qu'on vient de traiter ----

   On arrive sur quinze lignes qui se ressemblent, et la sienne est
   quelque part dedans. Un fond vert ne suffisait pas : il dit « récent »
   à qui connaît déjà le code. Le mot, lui, se lit. */
.ligne.neuve { position: relative; box-shadow: inset 3px 0 0 var(--vert); }
.tout-juste {
  position: absolute; left: 0; top: 0;
  font-family: var(--m); font-size: 8.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--p-1); background: var(--vert);
  padding: 2px 7px 2px 8px; border-radius: 0 0 9px 0;
}
.ligne.neuve .qui b { padding-top: 9px; }
.act {
  font-size: 12.5px; padding: 6px 12px; border-radius: 7px; border: 1px solid var(--p-3);
  background: var(--p-0); color: var(--t-2);
}
.act:hover { border-color: var(--vert); color: var(--vert); }
.act.rien { border: 0; background: none; color: var(--t-3); cursor: default; }

.vide { padding: 34px 20px; text-align: center; color: var(--t-3); font-size: 14px; line-height: 1.6; }
.vide b { color: var(--t-1); }

.section-t {
  display: flex; align-items: baseline; gap: 12px; margin: 30px 0 13px;
}
.section-t h3 { font-size: 16px; font-weight: 650; margin: 0; }
.section-t span { font-size: 12.5px; color: var(--t-3); }

/* ---- le détail d'une ligne ---- */
.detail { background: var(--p-1); border: 1px solid var(--p-3); border-radius: 13px;
          padding: 20px 22px; margin-top: 14px; box-shadow: var(--ombre); }
.detail .dt { font-size: 17px; font-weight: 650; margin-bottom: 3px; }
.detail .ds { font-size: 13px; color: var(--t-3); margin-bottom: 16px; }
.jr { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--p-2); font-size: 13px; }
/* 58 px, pas 48 : « a décidé » se cassait en deux lignes dans la
   colonne de gauche, ce qui donnait au repère l'air d'un accident. */
.jr .h { font-family: var(--m); font-size: 11.5px; color: var(--t-3); flex: none; width: 58px; }
.jr .x { flex: 1; }
.jr .x b { display: block; font-weight: 600; }
.jr .x span { display: block; color: var(--t-3); font-size: 12px; margin-top: 1px; line-height: 1.45; }
/* Celle qui a tranché. Les autres se sont déclenchées aussi — c'est la
   plus sévère qui l'emporte — et sans ce repère on lisait « client
   mécontent » et « demande simple » côte à côte, du même poids. */
/* Ce que le modèle a compris, en une phrase, avant les règles. C'est
   l'ordre dans lequel ça s'est passé, et c'est l'ordre dans lequel on
   veut le lire : d'abord ce qu'il a compris, ensuite ce qu'il en a fait. */
.compris {
  display: flex; gap: 12px; align-items: baseline;
  padding: 11px 13px; border-radius: 12px; margin-bottom: 12px;
  background: var(--bleu-d); border: 1px solid rgba(36, 80, 110, .3);
}
.co-t {
  flex: none; font-family: var(--m); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--bleu);
}
.co-x { font-size: 13px; line-height: 1.45; color: var(--t-1); }
.co-x i { color: var(--t-3); font-size: 11.5px; font-style: normal; }

/* Ses sources. « Il sort ça d'où ? » est la première question de tout
   artisan à qui on montre ça — et la seule réponse qui vaille est une
   liste de choses vérifiables, pas un pourcentage de confiance. */
.appuis { margin-bottom: 12px; }
.ap-tt {
  font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-3); margin-bottom: 7px;
}
.appuis ul { margin: 0; padding: 0; list-style: none;
             display: flex; flex-direction: column; gap: 6px; }
.appuis li {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline;
  padding: 8px 11px; border-radius: 10px;
  background: var(--p-1); border: 1px solid var(--p-3);
}
.appuis li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--vert); flex: none; align-self: center;
}
.appuis li b { font-size: 12.5px; font-weight: 650; }
.appuis li span { font-size: 11.5px; color: var(--t-2); line-height: 1.4; flex: 1; min-width: 0; }

/* ---- la porte vers le côté chef d'entreprise ---- */
.passer {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 4px 16px; width: 100%; text-align: left; cursor: pointer;
  margin-top: 18px; padding: 17px 20px;
  border-radius: 20px 30px 22px 28px / 24px 20px 28px 22px;
  background: var(--bleu-d); border: 1px solid var(--bleu); color: var(--t-1);
  box-shadow: 0 12px 28px -18px rgba(22,21,15,.45);
  transition: transform .16s ease, box-shadow .16s ease;
}
.pa-r {
  grid-column: 1; font-family: var(--m); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--bleu);
}
.pa-t { grid-column: 1; font-size: 18px; font-weight: 700; letter-spacing: -.022em; }
.pa-x { grid-column: 1; font-size: 12.5px; line-height: 1.5; color: var(--t-2); max-width: 52ch; }
.pa-x b { color: var(--t-1); font-weight: 650; }
.pa-f { grid-column: 2; grid-row: 1 / -1; font-size: 22px; color: var(--bleu);
        transition: transform .18s ease; }
.passer:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(22,21,15,.5); }
.passer:hover .pa-f { transform: translateX(5px); }
@media (max-width: 560px) {
  .passer { padding: 15px 16px; border-radius: 18px 26px 20px 24px / 22px 18px 26px 20px; }
  .pa-t { font-size: 16.5px; }
  .pa-x { font-size: 12px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .appuis li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
}
:root[data-theme="dark"] .appuis li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }

/* Les règles qui se sont déclenchées SANS l'emporter.

   Affichées en entier, du même poids que la gagnante, elles se
   contredisaient à l'œil : « vous la validez d'un geste » suivi deux
   lignes plus bas de « la réponse part toute seule ». Les deux sont
   vraies — c'est la plus sévère qui gagne — mais mises côte à côte sans
   hiérarchie, on ne sait plus ce qui s'est passé. Elles gardent leur
   titre, elles perdent leur explication. */
.jr-autres {
  margin-top: 4px; padding: 9px 12px; border-radius: 11px;
  background: var(--p-0); border: 1px solid var(--p-3);
  display: flex; flex-direction: column; gap: 3px;
}
.ja-t { font-size: 11px; line-height: 1.4; color: var(--t-3); margin-bottom: 3px; }
.ja-l { font-size: 12px; color: var(--t-2); }
.ja-l::before { content: "· "; color: var(--t-3); }

/* OÙ EN EST ce dossier, quand il n'y a rien à lire.

   On voyait les sources, les règles, puis « Fermer ». Pas un mot sur ce
   qui s'était passé ni sur ce qu'il restait à faire — c'est-à-dire la
   seule chose qu'on venait chercher. */
.etat-dossier {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 12px; padding: 12px 14px; border-radius: 13px;
  background: var(--bleu-d); border: 1px solid rgba(36, 80, 110, .32);
}
.etat-dossier.fini { background: var(--vert-d); border-color: rgba(46, 107, 79, .32); }
.ed-t {
  font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bleu);
}
.etat-dossier.fini .ed-t { color: var(--vert); }
.ed-x { font-size: 12.5px; line-height: 1.5; color: var(--t-1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jr-autres { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
}
:root[data-theme="dark"] .jr-autres { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }

.jr.gagne .h { color: var(--or); font-weight: 700; }
.jr.gagne .x b { color: var(--t-1); }
.jr:not(.gagne) .x b { color: var(--t-2); font-weight: 550; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px);
  background: #16150F; color: #F5F3EF; font-size: 13.5px; padding: 11px 18px;
  border-radius: 9px; opacity: 0; pointer-events: none;
  box-shadow: 0 18px 40px -16px rgba(22,21,15,.65);
  transition: opacity .22s ease, transform .22s ease; z-index: 60;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
/* EN HAUT quand un dossier de chantier est ouvert.

   J'ai d'abord remonté la notification de 98 px pour passer au-dessus
   de la barre collée. Ça ne marche pas : la barre est COLLANTE, donc
   elle n'est au bas de l'écran que tant qu'il reste du dossier en
   dessous. Arrivé au bout, elle se décolle et remonte dans le flux — et
   les deux se retrouvent au même endroit.

   Deux objets dont l'un peut être n'importe où ne s'évitent pas en
   négociant des pixels. La notification passe donc de l'autre côté de
   l'écran, où la barre ne va jamais. */
body.fiche-ouverte .toast {
  bottom: auto; top: 84px; transform: translate(-50%, -18px);
}
body.fiche-ouverte .toast.on { transform: translate(-50%, 0); }
/* Une notification qui porte un lien n'est plus un constat qui passe :
   c'est une proposition. Elle s'élargit, se lit sur deux lignes, et
   reste neuf secondes — le temps de comprendre qu'il y a quelque chose
   à toucher, et d'aller le toucher. */
/* Et surtout : elle PREND les clics quand elle en porte un.

   « pointer-events: none » est juste pour une notification qui constate
   — elle ne doit pas intercepter un geste destiné à ce qu'elle
   recouvre. Mais avec un lien dedans, c'est l'inverse : le lien existait
   à l'écran, le test le déclenchait par programme, et un vrai doigt
   serait passé au travers sans rien faire. */
.toast.avec-lien {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  max-width: min(420px, calc(100vw - 28px)); text-align: left;
  padding: 13px 15px; line-height: 1.45;
  pointer-events: auto;
}
.to-l {
  display: block; width: 100%; cursor: pointer;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-family: var(--f); font-size: 12.5px; font-weight: 650;
}
.to-l:hover { background: rgba(255,255,255,.3); }

@media (max-width: 760px) {
  .tableau .entete { display: none; }
  /* Pas de filtre par date sur téléphone : l'écran est déjà petit, on ne
     va pas y ajouter une commande. On y voit tout l'historique, en
     défilant. */
  .filtre-date { display: none; }
  /* Deux dossiers, pas trois : les lignes s'y empilent au lieu de tenir
     sur une rangée, donc elles sont deux fois plus hautes. */
  .tableau .corps { max-height: 420px; }

  /* La voie de défilement.

     Sur un téléphone, un doigt posé sur la liste fait défiler la LISTE.
     Pour continuer à descendre dans la page, il faut poser le doigt
     ailleurs — et sur un tableau qui occupe toute la largeur, il n'y a
     pas d'ailleurs. On lui rend une bande de 46 px à droite : c'est la
     largeur d'un doigt, et elle n'appartient pas à la zone qui défile.

     Le trait fin dit que la bande est voulue, pas oubliée. */
  /* La bande de droite est posée dans le bloc téléphone de FIN de
     fichier — voir là-bas. Ici, elle serait annulée trois cents lignes
     plus bas par « .zone-tableau .tableau .corps { margin-right: 0 } »,
     de même spécificité et écrite après : le texte des dossiers passait
     sous la bande, illisible, et le rail restait au bord. */
  .ligne { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 14px 16px; }
  .entree { padding: 44px 0 30px; }
  .page { padding: 0 16px 70px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===========================================================
   LE PIED DE PAGE ET LA PAGE LÉGALE
   =========================================================== */

/* Discret, en bas, séparé par un filet. On ne le voit pas quand on
   travaille, on le trouve quand on le cherche. */
.pied {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 16px;
  border-top: 1px solid var(--p-3);
  font-size: 11.5px; color: var(--t-3);
}
/* L'adresse, à la place de l'argument de vente. Un pied de page sert à
   joindre quelqu'un ; « payé une fois » est déjà dit deux écrans plus
   haut, là où ça compte. */
.pied-mail {
  font-family: var(--m); font-size: 11.5px; color: var(--t-2);
  text-decoration: none; overflow-wrap: anywhere;
}
.pied-mail:hover { color: var(--t-1); text-decoration: underline; text-underline-offset: 3px; }

.lien-legal {
  background: none; border: 0; padding: 0;
  font-size: 11.5px; color: var(--t-2); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.lien-legal:hover { color: var(--t-1); }

/* ---- le retour ----

   Un lien de pied de page se clique souvent par erreur. Quelqu'un qui
   n'a pas l'habitude d'Internet se retrouve alors devant un mur de texte
   juridique, sans savoir qu'il existe une flèche « précédent » dans son
   navigateur. Ce bouton est donc volontairement gros, il est en haut ET
   en bas, et il dit en toutes lettres où il ramène. */
.retour { display: flex; }
.retour.haut { margin-bottom: 26px; }
.retour.bas  { margin-top: 30px; }
.gros-retour {
  display: flex; align-items: center; gap: 14px; text-align: left;
  width: 100%; padding: 17px 20px; border-radius: 18px;
  color: var(--t-1);
  background: rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(46, 107, 79, .45);
  box-shadow: 0 10px 26px -18px rgba(46,107,79,.6),
              inset 0 1px 0 rgba(255,255,255,.78);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.gros-retour .fl { flex: none; font-size: 21px; color: var(--vert); line-height: 1;
                   transition: transform .18s ease; }
.gros-retour .rtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gros-retour .rtxt b { font-size: 15.5px; letter-spacing: -.015em; }
.gros-retour .rtxt > span { font-size: 12px; color: var(--t-2); }
.gros-retour:hover {
  background: rgba(255,255,255,.38); border-color: rgba(46,107,79,.75);
  transform: translateY(-1px);
}
.gros-retour:hover .fl { transform: translateX(-4px); }

/* ---- le texte de la page ---- */
.legal { padding-top: 22px; }
.bloc-legal { margin-bottom: 22px; }
.bloc-legal h3 {
  margin: 0 0 8px; padding-bottom: 7px;
  font-size: 14.5px; letter-spacing: -.015em;
  border-bottom: 1px solid var(--p-3);
}
.bloc-legal p { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: var(--t-2);
                max-width: 62ch; }
.bloc-legal p:last-child { margin-bottom: 0; }
.bloc-legal b { color: var(--t-1); font-weight: 650; }
.bloc-legal a { color: var(--vert); text-underline-offset: 3px; }

/* Ce qui reste à remplir se voit de loin : une information manquante
   doit gêner l'œil, sinon elle est publiée telle quelle. */
.trou {
  font-style: normal; font-family: var(--m); font-size: 11.5px;
  padding: 2px 7px; border-radius: 6px;
  background: var(--chaud-d); color: var(--chaud);
  border: 1px dashed var(--chaud);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gros-retour {
    background: rgba(255,255,255,.06); border-color: rgba(91,174,133,.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  }
  :root:not([data-theme="light"]) .gros-retour:hover { background: rgba(255,255,255,.13); }
  :root:not([data-theme="light"]) .pied,
  :root:not([data-theme="light"]) .bloc-legal h3 { border-color: rgba(255,255,255,.14); }
}
:root[data-theme="dark"] .gros-retour {
  background: rgba(255,255,255,.06); border-color: rgba(91,174,133,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
:root[data-theme="dark"] .gros-retour:hover { background: rgba(255,255,255,.13); }
:root[data-theme="dark"] .pied,
:root[data-theme="dark"] .bloc-legal h3 { border-color: rgba(255,255,255,.14); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gros-retour { background: var(--p-1); }
}

/* ---- le passage de la doc vers la protection des données ----
   Petit, en bas, après les trois niveaux : c'est la question qui vient
   juste après « qu'est-ce qu'il se permet ? » — « et mes documents,
   ils vont où ? ». */
.vers-donnees {
  display: flex; align-items: center; gap: 11px; text-align: left;
  width: 100%; margin-top: 14px; padding: 13px 15px; border-radius: 16px;
  color: var(--t-1);
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(36, 80, 110, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  transition: background .18s ease, border-color .18s ease;
}
.vers-donnees .ic { width: 17px; height: 17px; flex: none; color: var(--bleu); }
.vers-donnees .vd { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vers-donnees .vd b { font-size: 13px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.vers-donnees .vd > span { font-size: 11.5px; color: var(--t-2); line-height: 1.3; }
.vers-donnees .fleche { flex: none; color: var(--bleu); font-size: 15px;
                        transition: transform .18s ease; }
.vers-donnees:hover { background: rgba(255,255,255,.34); border-color: rgba(36,80,110,.7); }

/* Deux portes au bas de la doc, deux couleurs : le ton en vert, les
   données en bleu. Sans ça, elles se ressemblaient jusque dans le code —
   et un test s'y est trompé avant moi. */
.vers-styles { border-color: rgba(46, 107, 79, .4); }
.vers-styles .ic, .vers-styles .fleche { color: var(--vert); }
.vers-styles:hover { border-color: rgba(46,107,79,.72); }
.vers-donnees:hover .fleche { transform: translateX(4px); }

/* ---- la page protection des données ---- */
.donnees { padding-top: 22px; }

/* Le rappel qui distingue la démonstration d'une installation. Sans lui,
   la page laisserait croire que ce qu'on essaie ici tourne déjà chez
   OVHcloud — ce serait faux. */
.avert {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 24px; padding: 13px 15px; border-radius: 15px;
  background: var(--chaud-d); border: 1px solid var(--chaud);
}
.avert b { font-size: 13.5px; color: var(--t-1); letter-spacing: -.01em; }
.avert > span { font-size: 12.5px; color: var(--t-2); line-height: 1.45; }

.bloc-don { margin-bottom: 22px; }
.bloc-don h3 {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 9px;
  font-size: 15px; letter-spacing: -.018em;
}
.bloc-don h3 .num {
  font-family: var(--m); font-size: 10.5px; font-weight: 700; color: var(--bleu);
  flex: none;
}
.bloc-don p { margin: 0 0 9px; font-size: 13px; line-height: 1.55; color: var(--t-2);
              max-width: 62ch; }
.bloc-don p:last-child { margin-bottom: 0; }
.bloc-don b { color: var(--t-1); font-weight: 650; }

/* Les citations : ce sont les mots d'OVHcloud, pas les nôtres. Elles
   sont donc mises à part, et signées. */
.bloc-don blockquote {
  margin: 0 0 9px; padding: 11px 14px; border-radius: 13px;
  border-left: 3px solid var(--bleu);
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(24px) saturate(2.2);
  backdrop-filter: blur(24px) saturate(2.2);
  font-size: 12.5px; line-height: 1.5; color: var(--t-2);
}
.bloc-don blockquote cite {
  display: block; margin-top: 6px; font-style: normal;
  font-family: var(--m); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--t-3);
}
.liens-ovh { display: flex; flex-wrap: wrap; gap: 7px; }
.liens-ovh a {
  font-size: 12px; text-decoration: none; color: var(--bleu);
  padding: 7px 12px; border-radius: 12px;
  border: 1px solid rgba(36, 80, 110, .32);
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(22px) saturate(2.2);
  backdrop-filter: blur(22px) saturate(2.2);
  transition: background .16s ease, border-color .16s ease;
}
.liens-ovh a:hover { background: rgba(255,255,255,.4); border-color: var(--bleu); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vers-donnees,
  :root:not([data-theme="light"]) .bloc-don blockquote,
  :root:not([data-theme="light"]) .liens-ovh a {
    background: rgba(255,255,255,.05);
  }
  :root:not([data-theme="light"]) .vers-donnees:hover,
  :root:not([data-theme="light"]) .liens-ovh a:hover { background: rgba(255,255,255,.12); }
}
:root[data-theme="dark"] .vers-donnees,
:root[data-theme="dark"] .bloc-don blockquote,
:root[data-theme="dark"] .liens-ovh a { background: rgba(255,255,255,.05); }
:root[data-theme="dark"] .vers-donnees:hover,
:root[data-theme="dark"] .liens-ovh a:hover { background: rgba(255,255,255,.12); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vers-donnees, .bloc-don blockquote, .liens-ovh a { background: var(--p-1); }
}

/* ---- la page des styles de réponse ---- */
.styles { padding-top: 22px; }

.ton-unique {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 26px; padding: 16px 18px; border-radius: 17px;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(46, 107, 79, .42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.ton-unique b { font-size: 15px; letter-spacing: -.018em; color: var(--t-1); }
.ton-unique span { font-size: 13px; line-height: 1.5; color: var(--t-2); }
/* L'interdiction compte autant que le ton : un « [numéro] » qui part dans
   une lettre au nom du client coûte plus cher qu'une phrase maladroite. */
.ton-unique .garde {
  margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--p-3);
  font-size: 12.5px;
}

.titre-q { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.questions { display: flex; flex-direction: column; gap: 10px; }
.qst {
  padding: 15px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.qst h4 { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
          margin: 0 0 8px; font-size: 14.5px; letter-spacing: -.015em; }
.qst .genre { font-family: var(--m); font-size: 9px; letter-spacing: .09em;
              text-transform: uppercase; color: var(--t-3);
              padding: 3px 7px; border-radius: 6px; background: var(--p-2); }
/* Le message reçu : en retrait, comme une citation. C'est la voix du client. */
.qst .recu { margin: 0 0 10px; padding-left: 11px; border-left: 2px solid var(--p-3);
             font-size: 12.5px; line-height: 1.45; color: var(--t-3); font-style: italic; }
/* La réponse : en <pre>, parce que les retours à la ligne comptent. */
.qst .rep {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: var(--p-1); border: 1px solid var(--p-3);
  font-family: var(--f); font-size: 12.5px; line-height: 1.5; color: var(--t-1);
  white-space: pre-wrap; word-break: break-word;
}
.qst .accord { margin: 9px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--or); }
.qst.jamais { background: var(--chaud-d); border-color: var(--chaud); }
.qst .refus { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--t-2); }
.qst .refus b { color: var(--chaud); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ton-unique,
  :root:not([data-theme="light"]) .qst {
    background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  }
  :root:not([data-theme="light"]) .qst.jamais { background: var(--chaud-d); border-color: var(--chaud); }
}
:root[data-theme="dark"] .ton-unique,
:root[data-theme="dark"] .qst {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
:root[data-theme="dark"] .qst.jamais { background: var(--chaud-d); border-color: var(--chaud); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ton-unique, .qst { background: var(--p-1); }
}

/* ---- « il s'est passé quelque chose » ----
   Un point vert qui respire sur « Mon tableau », quand des lignes sont
   arrivées depuis le dernier passage. Il ne remplace pas le compteur
   orange : celui-là dit « à vous de décider », celui-ci dit seulement
   « venez voir ». Deux messages différents, deux signaux différents. */
.ong .point-neuf {
  width: 7px; height: 7px; border-radius: 50%; background: var(--vert); flex: none;
  animation: battement 2.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .ong .point-neuf { animation: none; } }

/* ---- la ligne montrée dans le verdict ----
   Elle remplace la phrase « la ligne y est déjà » : on montre la chose
   plutôt que de la promettre. */
.deja { margin-top: 16px; }
.deja-t {
  display: flex; align-items: center; gap: 8px; margin-bottom: 9px;
  font-size: 13px; font-weight: 600; color: var(--vert);
}
.deja-t .pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); flex: none; }
.deja .apercu { box-shadow: none; }
.deja .apercu .corps { max-height: none; }
.deja .apercu .ligne { border-bottom: 0; }
/* L'aperçu montre la ligne ; il ne propose pas de l'ouvrir. La porte
   juste en dessous le fait déjà, en plus grand et en expliquant — deux
   boutons qui mènent au même endroit obligent à choisir entre eux, et
   c'est un choix qui n'apporte rien. */
.deja .apercu .ligne > div:last-child, .deja .apercu .tout-juste { display: none; }
/* L'aperçu ne défile pas : ni voie de défilement à droite, ni voile en
   bas. Ils sont faits pour une liste, et il n'y a ici qu'une ligne. */
.deja .apercu::before, .deja .apercu::after { display: none; }

/* ---- la promesse, sur l'accueil ----
   C'est l'argument qui fait la différence avec un logiciel loué. Il ne
   doit pas être une ligne perdue en pied de page. */
.promesse {
  max-width: 640px; margin: 26px auto 0; text-align: left;
  display: flex; flex-direction: column; gap: 7px;
  padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(46, 107, 79, .42);
  box-shadow: 0 10px 26px -18px rgba(46,107,79,.5), inset 0 1px 0 rgba(255,255,255,.78);
}
.promesse b { font-size: 16.5px; letter-spacing: -.02em; color: var(--t-1); }
.promesse span { font-size: 13px; line-height: 1.5; color: var(--t-2); }
/* Ce qui coûte quand même, dit sans le cacher. Un client qui découvre
   une ligne de facture qu'on ne lui avait pas annoncée ne revient pas. */
.promesse .franc {
  margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--p-3);
  font-size: 12.5px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .promesse {
    background: rgba(255,255,255,.06); border-color: rgba(91,174,133,.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  }
  :root:not([data-theme="light"]) .promesse .franc { border-top-color: rgba(255,255,255,.14); }
}
:root[data-theme="dark"] .promesse {
  background: rgba(255,255,255,.06); border-color: rgba(91,174,133,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
:root[data-theme="dark"] .promesse .franc { border-top-color: rgba(255,255,255,.14); }

/* ---- l'écran de décision ----

   C'est le moment qui vend le logiciel : on voit ce que le client a
   écrit, ce que Nown a préparé, et on décide. Rien n'est parti avant
   que le doigt ne touche le bouton vert, et c'est écrit dessus. */
.echange { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--p-3); }
.ech-t {
  font-family: var(--m); font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t-2); margin-bottom: 11px;
}
.bulle { margin-bottom: 11px; padding: 13px 15px; border-radius: 15px; }
.bulle .qui { font-size: 11.5px; color: var(--t-3); margin-bottom: 7px; }
.bulle .txt { font-size: 13px; line-height: 1.5; color: var(--t-1); white-space: pre-wrap; }
/* Ce que le client a écrit : à gauche, sur fond neutre. */
.bulle.recue { background: var(--p-2); border: 1px solid var(--p-3); }
/* Ce que Nown propose : en vert pâle, et modifiable. */
.bulle.ecrite { background: var(--vert-d); border: 1px solid var(--vert); }
.bulle.ecrite .qui b { color: var(--vert); }
.bulle.ecrite textarea {
  width: 100%; resize: vertical; font-family: var(--f); font-size: 13px; line-height: 1.5;
  color: var(--t-1); padding: 11px 12px; border-radius: 11px;
  border: 1px solid var(--p-3); background: var(--p-1);
}
.corrigez { margin-top: 7px; font-size: 11.5px; color: var(--t-2); }

.decider { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.gros.vert {
  padding: 14px 20px; border-radius: 15px; border: 0;
  background: var(--vert); color: #fff; font-size: 14px; font-weight: 650;
  transition: filter .14s ease;
}
.gros.vert:hover { filter: brightness(1.08); }
.gros.vert:disabled { opacity: .6; }

@media (max-width: 560px) {
  .decider { flex-direction: column; align-items: stretch; }
  .gros.vert { width: 100%; }
}

/* ---- l'explication d'un exemple ----
   Deux des cinq exemples demandent qu'on dise pourquoi ils comptent.
   Un artisan ne voit pas tout de suite qu'un devis oublié coûte plus
   cher qu'une facture mal classée. */
.explique {
  margin: 14px 0 16px; padding: 15px 17px; border-radius: 16px;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(36, 80, 110, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.ex-t {
  font-family: var(--m); font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bleu); margin-bottom: 8px;
}
.ex-c { font-size: 13px; line-height: 1.55; color: var(--t-2); white-space: pre-line; }
.ex-c b { color: var(--t-1); font-weight: 650; }

/* La pièce jointe, avec sa vignette : on voit ce que le modèle va voir. */
.piece { display: flex; align-items: flex-start; gap: 12px; }
.piece .vignette {
  width: 92px; height: 70px; object-fit: cover; border-radius: 9px; flex: none;
  border: 1px solid var(--p-3);
}
.piece .avert-p {
  display: block; margin-top: 5px; font-style: normal;
  font-size: 11.5px; color: var(--t-3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .explique { background: rgba(255,255,255,.05); }
}
:root[data-theme="dark"] .explique { background: rgba(255,255,255,.05); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .explique { background: var(--p-1); }
}

/* ---- la boîte de réception ---- */
.vers-boite {
  display: flex; align-items: center; gap: 11px; text-align: left;
  width: 100%; margin: -6px 0 18px; padding: 13px 15px; border-radius: 16px;
  color: var(--t-1);
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(36, 80, 110, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  transition: background .18s ease, border-color .18s ease;
}
.vers-boite .ic { width: 17px; height: 17px; flex: none; color: var(--bleu); }
.vers-boite .vd { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vers-boite .vd b { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.vers-boite .vd > span { font-size: 11.5px; color: var(--t-2); line-height: 1.3; }
.vers-boite .fleche { flex: none; color: var(--bleu); font-size: 15px; transition: transform .18s ease; }
.vers-boite:hover { background: rgba(255,255,255,.34); border-color: rgba(36,80,110,.7); }
.vers-boite:hover .fleche { transform: translateX(4px); }

.boite { padding-top: 22px; }
/* ---- la liste, dessinée comme une boîte de réception ----

   Le modèle est celui que tout le monde a sous les yeux : Gmail. Pas
   par goût, par nécessité — un artisan ouvre sa boîte vingt fois par
   jour, et une liste qui ne ressemble pas à la sienne lui demande un
   effort qu'il n'a pas envie de faire.

   Ses conventions, reprises telles quelles :
     - une ligne par message, JAMAIS deux ;
     - l'expéditeur à gauche, sur une colonne fixe ;
     - l'objet en gras, suivi du début du texte en gris, sur la même
       ligne, coupé net quand ça dépasse ;
     - la date à droite : l'heure si c'est aujourd'hui, le jour et le
       mois sinon ;
     - non traité = fond blanc et gras ; traité = fond grisé et normal.
*/
.inbox {
  border-radius: 13px; overflow: hidden;
  background: var(--p-1); border: 1px solid var(--p-3); box-shadow: var(--ombre);
}
.ib-tete {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 11px 16px; background: var(--p-2); border-bottom: 1px solid var(--p-3);
}
.ib-c { font-size: 13px; font-weight: 650; color: var(--t-1); letter-spacing: -.01em; }
.ib-n { font-family: var(--m); font-size: 10.5px; color: var(--t-3); }

.ib-l {
  display: grid; grid-template-columns: 14px 148px minmax(0, 1fr) auto auto;
  align-items: center; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--p-2);
  background: var(--p-2); color: var(--t-2); font-size: 13px;
  transition: background .12s ease;
}
.ib-l:last-child { border-bottom: 0; }
.ib-l:hover { background: var(--p-3); }
/* Non traité : blanc et gras, comme un message non lu. */
.ib-l.neuf { background: var(--p-1); color: var(--t-1); }
.ib-l.neuf .ib-de, .ib-l.neuf .ib-o b { font-weight: 700; }
.ib-p { color: var(--bleu); font-size: 9px; text-align: center; }
.ib-de { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Objet et extrait sur UNE ligne, coupée net. C'est ce qui fait qu'une
   boîte se parcourt à la verticale sans jamais lire en travers. */
.ib-o { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ib-o b { font-weight: 600; color: var(--t-1); }
.ib-x { color: var(--t-3); }
.ib-q { font-family: var(--m); font-size: 11px; color: var(--t-3); white-space: nowrap; }
.ib-l .etat { font-size: 11px; padding: 3px 8px; white-space: nowrap; }

/* ---- feuilleter ---- */
/* ---- un message ouvert, dans la boîte ----

   Il s'ouvre EN PLACE, sous sa ligne. On parcourt une liste, on en ouvre
   un, on le referme, on continue — c'est le geste qu'on fait cinquante
   fois par jour, et il ne doit pas coûter un changement d'écran. */
.ib-l[data-mail] { cursor: pointer; }
.ib-l.ouvert { background: var(--p-1); box-shadow: inset 3px 0 0 var(--bleu); }
.mail {
  padding: 16px 18px 15px; border-bottom: 1px solid var(--p-3);
  background: var(--p-1);
  box-shadow: inset 0 10px 16px -14px rgba(22,21,15,.45),
              inset 0 -10px 16px -14px rgba(22,21,15,.45);
}
.ma-en { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin-bottom: 13px;
         padding-bottom: 12px; border-bottom: 1px solid var(--p-2); }
.ma-k { font-family: var(--m); font-size: 9px; letter-spacing: .09em; text-transform: uppercase;
        color: var(--t-3); padding-top: 2px; }
.ma-v { font-size: 12.5px; color: var(--t-1); line-height: 1.35; overflow-wrap: anywhere; }
.ma-corps { font-size: 13.5px; line-height: 1.6; color: var(--t-1); white-space: pre-line; }
.ma-pj { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.ma-p1 { font-size: 11.5px; color: var(--t-2); background: var(--p-0);
         border: 1px dashed var(--p-3); border-radius: 8px; padding: 5px 10px; }

/* Ce que Nown en a fait : la seule chose qu'une boîte ordinaire ne sait
   pas montrer. */
.ma-fait {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px;
  margin-top: 14px; padding: 11px 13px; border-radius: 12px;
  background: var(--bleu-d); border: 1px solid rgba(36, 80, 110, .3);
}
.ma-fait.rien { background: var(--p-0); border-color: var(--p-3); }
.ma-ft { flex: none; font-family: var(--m); font-size: 9px; font-weight: 700;
         letter-spacing: .09em; text-transform: uppercase; color: var(--bleu); }
.ma-fait.rien .ma-ft { color: var(--t-3); }
.ma-fr { font-size: 12px; font-weight: 650; color: var(--t-1); }
.ma-fx { flex: 1 1 100%; font-size: 12px; line-height: 1.5; color: var(--t-2); }
.ma-fs { font-family: var(--m); font-size: 10px; color: var(--t-3); }
.ma-pied { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.ma-lec { font-size: 11px; color: var(--t-3); }

/* ---- comment une vraie boîte se branchera ----

   Trois voies, de la plus simple à la plus complète, chacune avec ce
   qu'elle apporte ET sa limite. Une option présentée sans sa limite
   n'est pas une option, c'est une réclame. */
.branchement {
  margin-bottom: 20px; padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .36);
  -webkit-backdrop-filter: blur(26px) saturate(2.3);
  backdrop-filter: blur(26px) saturate(2.3);
  border: 1px solid rgba(255, 255, 255, .55);
  border-top-color: rgba(255, 255, 255, .9);
  box-shadow: var(--relief), inset 0 1px 0 rgba(255,255,255,.85);
}
.br-t { font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
        text-transform: uppercase; color: var(--bleu); margin-bottom: 10px; }
.br-x { margin: 0 0 14px; font-size: 12.5px; line-height: 1.55; color: var(--t-2); }
.br-x b { color: var(--t-1); font-weight: 650; }
.br-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.br-l li { display: flex; gap: 12px; padding: 13px 14px; border-radius: 14px;
           background: var(--p-1); border: 1px solid var(--p-3); }
.br-n {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bleu); color: #fff; font-family: var(--m); font-size: 11px; font-weight: 700;
}
.br-c { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.br-c b { font-size: 13px; letter-spacing: -.012em; line-height: 1.3; }
.br-c > span { font-size: 12px; line-height: 1.5; color: var(--t-2); }
.br-c i { font-family: var(--m); font-style: normal; font-size: 11.5px; color: var(--t-1); }
.br-p { color: var(--vert) !important; }
.br-m { color: var(--t-3) !important; }
.br-f { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--p-3);
        font-size: 12px; line-height: 1.55; color: var(--t-2); }
.br-f b { color: var(--t-1); font-weight: 650; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .branchement { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
  :root:not([data-theme="light"]) .br-l li,
  :root:not([data-theme="light"]) .mail,
  :root:not([data-theme="light"]) .ib-l.ouvert { background: rgba(255,255,255,.06); }
}
:root[data-theme="dark"] .branchement { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
:root[data-theme="dark"] .br-l li,
:root[data-theme="dark"] .mail,
:root[data-theme="dark"] .ib-l.ouvert { background: rgba(255,255,255,.06); }

.pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.pg {
  font-size: 12.5px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--p-3); background: var(--p-1); color: var(--t-2);
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.pg:hover:not(:disabled) { border-color: var(--t-3); color: var(--t-1); }
.pg.on { background: var(--bleu-d); border-color: var(--bleu); color: var(--t-1); font-weight: 650; }
.pg:disabled { opacity: .4; }
.pg-e { font-family: var(--m); font-size: 11px; color: var(--t-3); margin-left: 4px; }

/* La boîte n'a pas de fenêtre à trois lignes : on la parcourt, c'est son métier. */
.boite .tableau .corps { max-height: none; margin-right: 0; }
.boite .tableau::before, .boite .tableau::after { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vers-boite { background: rgba(255,255,255,.05); }
  :root:not([data-theme="light"]) .vers-boite:hover { background: rgba(255,255,255,.12); }
}
:root[data-theme="dark"] .vers-boite { background: rgba(255,255,255,.05); }
:root[data-theme="dark"] .vers-boite:hover { background: rgba(255,255,255,.12); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vers-boite { background: var(--p-1); }
}

/* ---- les deux portes du tableau ---- */
/* Les deux portes sont passées SOUS le tableau. Au-dessus, elles
   s'interposaient entre la veille et le travail du jour ; en dessous,
   elles sont ce qu'elles sont : deux endroits où aller quand on a fini
   de regarder ce qui est arrivé. */
.deux-portes { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 20px 0 0; }
/* Trois portes maintenant : les règles en font partie.

   Le lien vers « Vos règles » était au fond de la fiche d'un chantier —
   c'est-à-dire à trois clics et deux écrans de là. L'écran qui explique
   POURQUOI le logiciel décide comme il décide ne peut pas être plus
   caché que celui qui montre ce qu'il a fait. */
.deux-portes.trois { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.vers-regles { border-color: rgba(46, 107, 79, .42); }
.vers-regles .ic, .vers-regles .fleche { color: var(--vert); }
.vers-regles:hover { border-color: rgba(46,107,79,.75); }
.deux-portes .vers-boite { margin: 0; }
.vers-suivi { border-color: rgba(169, 104, 46, .38); }
.vers-suivi .ic, .vers-suivi .fleche { color: var(--or); }
.vers-suivi:hover { border-color: rgba(169,104,46,.72); }

/* ---- le suivi de chantier ---- */
.suivi { padding-top: 22px; }
/* ===========================================================
   ÊTRE DEDANS

   Ouvrir un chantier, ce n'est pas afficher un bloc de plus sous
   les autres : c'est entrer dans un dossier. Le haut de la page
   — le titre, la démonstration côté terrain — recule d'un cran, et
   la fiche se lève sur un fond qui l'entoure.

   Le recul est léger, et c'est voulu : assez pour qu'on sente où
   l'on est, pas assez pour qu'on croie l'écran cassé. */
.suivi.dedans .rf-tete, .suivi.dedans .poster, .suivi.dedans .retour.haut {
  opacity: .42; transform: scale(.985); transform-origin: top center;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
  filter: saturate(.6);
}
.suivi.dedans .rf-tete:hover, .suivi.dedans .poster:hover { opacity: .8; filter: none; }

.fiche-ch {
  position: relative; margin-top: 18px;
  padding: 16px 15px 0; border-radius: 22px;
  background: linear-gradient(180deg, var(--p-0) 0%, var(--p-0) 55%, rgba(245,243,239,0) 100%);
  box-shadow: var(--relief-haut);
}
/* Le liseré du haut : le bord du dossier qu'on vient de sortir. */
.fiche-ch::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--or); opacity: .55;
}

/* Les cartes du dedans prennent toutes le même relief : c'est ce qui
   fait qu'elles appartiennent au même objet. */
.fiche-ch .fiche-id, .fiche-ch .carnet, .fiche-ch .ajout-photo,
.fiche-ch .pt-av, .fiche-ch .pc, .fiche-ch .manque {
  box-shadow: var(--relief);
}
.fiche-ch .k-c { box-shadow: 0 1px 1px rgba(22,21,15,.05), 0 6px 14px -9px rgba(22,21,15,.3); }

/* ---- la barre collée ----

   Elle reste au bas de l'écran tant qu'on est dans le dossier. Un
   dossier de chantier fait trois mille pixels : sans elle, sortir
   demandait de remonter jusqu'en haut pour retrouver « Fermer ». */
.barre-fiche {
  position: sticky; bottom: 10px; z-index: 5;
  margin: 18px -15px 0; padding: 10px 15px 14px;
  background: linear-gradient(to top, var(--p-0) 62%, rgba(245,243,239,0));
}
.retour-dossiers {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 13px 16px; border-radius: 17px; cursor: pointer;
  background: var(--p-1); border: 1px solid var(--vert); color: var(--t-1);
  box-shadow: var(--relief-haut);
  transition: transform .16s ease, box-shadow .16s ease;
}
.retour-dossiers:hover { transform: translateY(-2px); }
.retour-dossiers:disabled { opacity: .6; cursor: default; }
.rf-i { flex: none; font-size: 19px; color: var(--vert); line-height: 1; }
.rf-x { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-x b { font-size: 14px; letter-spacing: -.015em; }
.rf-x > span { font-size: 11.5px; line-height: 1.35; color: var(--t-2); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fiche-ch {
    background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.05) 55%, rgba(255,255,255,0) 100%);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  }
  :root:not([data-theme="light"]) .barre-fiche {
    background: linear-gradient(to top, #1c1c1a 62%, rgba(28,28,26,0)); }
  :root:not([data-theme="light"]) .retour-dossiers { background: rgba(255,255,255,.08); }
}
:root[data-theme="dark"] .fiche-ch {
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.05) 55%, rgba(255,255,255,0) 100%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
:root[data-theme="dark"] .barre-fiche {
  background: linear-gradient(to top, #1c1c1a 62%, rgba(28,28,26,0)); }
:root[data-theme="dark"] .retour-dossiers { background: rgba(255,255,255,.08); }

@media (prefers-reduced-motion: reduce) {
  .suivi.dedans .rf-tete, .suivi.dedans .poster, .suivi.dedans .retour.haut { transition: none; }
}

/* ===========================================================
   VOS RÈGLES

   L'écran le plus important, et celui qu'on oublie de faire :
   tout le reste montre ce que Nown A FAIT, celui-ci montre
   pourquoi. Il doit se lire comme un règlement affiché au mur —
   numéroté, rangé par service, et sans une ligne de décoration.
   =========================================================== */
.regles-p { padding-top: 22px; }

/* Le routeur, expliqué avant les règles. On ne peut pas lire une liste
   de règles sans savoir laquelle s'applique à quoi. */
.routeur {
  margin-bottom: 24px; padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(26px) saturate(2.3);
  backdrop-filter: blur(26px) saturate(2.3);
  border: 1px solid rgba(255, 255, 255, .55);
  border-top-color: rgba(255, 255, 255, .9);
  box-shadow: var(--relief), inset 0 1px 0 rgba(255,255,255,.85);
}
.ro-t {
  font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bleu); margin-bottom: 11px;
}
.ro-l { margin: 0; padding-left: 19px; display: flex; flex-direction: column; gap: 9px; }
.ro-l li { font-size: 12.5px; line-height: 1.55; color: var(--t-2); }
.ro-l li::marker { color: var(--bleu); font-weight: 700; }
.ro-l b { color: var(--t-1); font-weight: 650; }

/* Un module, ses règles. Le titre dit CE QUI LE DÉCLENCHE : c'est la
   seule chose qui explique pourquoi telle règle est ici et pas ailleurs. */
/* Pourquoi deux modules n'apparaissent pas dans cette liste. Une absence
   qu'on n'explique pas passe pour un oubli. */
.ro-fin {
  margin: 4px 0 8px; padding: 13px 15px; border-radius: 14px;
  background: var(--p-0); border: 1px solid var(--p-3);
  font-size: 12px; line-height: 1.55; color: var(--t-2);
}
.ro-fin b { color: var(--t-1); font-weight: 650; }

.mod-regles { margin-bottom: 26px; }
.mr-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mr-h h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.mr-q { font-size: 11.5px; color: var(--t-3); flex: 1; min-width: 12ch; }
.mr-n { font-family: var(--m); font-size: 10px; color: var(--t-3); }

.regle {
  padding: 13px 15px; border-radius: 15px; margin-bottom: 9px;
  background: var(--p-1); border: 1px solid var(--p-3);
  box-shadow: 0 1px 1px rgba(22,21,15,.04), 0 8px 18px -12px rgba(22,21,15,.3);
  transition: opacity .16s ease;
}
/* Coupée : elle reste lisible, elle n'agit plus. On ne la cache pas —
   savoir ce qu'on a coupé compte autant que savoir ce qui tourne. */
.regle.coupee { opacity: .62; background: var(--p-0); }

.rg-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rg-r {
  flex: none; font-family: var(--m); font-size: 10px; font-weight: 700;
  color: var(--t-3); background: var(--p-2); border-radius: 6px; padding: 2px 6px;
}
.rg-l { flex: 1; min-width: 14ch; font-size: 13.5px; letter-spacing: -.012em; line-height: 1.3; }

/* L'interrupteur. Une pastille et un mot : « active » ou « coupée ». */
.rg-i {
  flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 4px 10px 4px 8px; border-radius: 20px;
  background: var(--p-0); border: 1px solid var(--p-3); color: var(--t-3);
  font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.rg-p { width: 7px; height: 7px; border-radius: 50%; background: var(--t-3); }
.rg-i.on { background: var(--vert-d); border-color: var(--vert); color: var(--vert); }
.rg-i.on .rg-p { background: var(--vert); }
.rg-i:hover { border-color: var(--t-1); }
.rg-i:disabled { opacity: .5; cursor: default; }

.rg-d { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--t-2); }

/* La condition, telle qu'elle est écrite en base. Pas reformulée : un
   règlement qu'on paraphrase n'est plus le règlement. */
.rg-q { display: flex; gap: 9px; align-items: baseline; margin-top: 10px; flex-wrap: wrap; }
.rg-qt, .rg-at {
  flex: none; font-family: var(--m); font-size: 9px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--t-3); width: 42px;
}
.rg-qx { flex: 1; min-width: 0; font-size: 11.5px; color: var(--t-2); line-height: 1.7; }
.rg-qx code {
  font-family: var(--m); font-size: 11px; color: var(--t-1);
  background: var(--p-2); border-radius: 6px; padding: 2px 7px;
}
.rg-qx i { color: var(--t-3); font-style: normal; font-size: 10.5px; }

.rg-a { display: flex; gap: 9px; align-items: baseline; margin-top: 9px; flex-wrap: wrap; }
.rg-c { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; min-width: 0; }
.rg-b {
  padding: 6px 11px; border-radius: 10px; cursor: pointer;
  background: var(--p-0); border: 1px solid var(--p-3); color: var(--t-3);
  font-family: var(--f); font-size: 11.5px; font-weight: 600; white-space: nowrap;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.rg-b:hover { border-color: var(--t-3); color: var(--t-1); }
.rg-b:disabled { opacity: .5; cursor: default; }
.rg-b.auto.on { background: var(--vert-d); border-color: var(--vert); color: var(--vert); }
.rg-b.valider.on { background: var(--or-d); border-color: var(--or); color: var(--or); }
.rg-b.humain.on { background: var(--chaud-d); border-color: var(--chaud); color: var(--chaud); }
.rg-ax { flex: 1 1 100%; padding-left: 51px; font-size: 11px; color: var(--t-3); line-height: 1.4; }
@media (max-width: 480px) { .rg-ax { padding-left: 0; } .rg-qt, .rg-at { width: auto; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .regle { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
  :root:not([data-theme="light"]) .regle.coupee { background: rgba(255,255,255,.02); }
  :root:not([data-theme="light"]) .rg-i,
  :root:not([data-theme="light"]) .rg-b { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
  :root:not([data-theme="light"]) .rg-qx code,
  :root:not([data-theme="light"]) .rg-r { background: rgba(255,255,255,.1); }
  :root:not([data-theme="light"]) .routeur { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
}
:root[data-theme="dark"] .regle { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
:root[data-theme="dark"] .regle.coupee { background: rgba(255,255,255,.02); }
:root[data-theme="dark"] .rg-i,
:root[data-theme="dark"] .rg-b { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
:root[data-theme="dark"] .rg-qx code,
:root[data-theme="dark"] .rg-r { background: rgba(255,255,255,.1); }
:root[data-theme="dark"] .routeur { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .routeur { background: var(--p-1); }
}

/* ===========================================================
   LE VERRE DE L'ATELIER

   Le reste du site pose du verre sur la lueur du fond : un voile
   clair, un flou généreux, une saturation relevée. Ici on garde
   exactement cette recette — il ne s'agit pas d'inventer un
   deuxième langage — et on la polit d'un cran.

   Trois choses font la différence entre du verre et un
   rectangle blanc translucide :

   1. LA LUMIÈRE VIENT DU HAUT. Le filet du bord supérieur est
      presque blanc, celui du bas presque éteint. C'est ce qui
      donne l'épaisseur : on voit la tranche.
   2. LE POLI. Une lumière rasante sur le tiers haut, qui
      s'éteint vers le milieu. Sans elle, le verre est plat.
   3. L'OMBRE PORTÉE EST LONGUE ET BASSE. Un objet épais posé
      près d'une fenêtre projette loin, et doucement.

   Ce qui reste OPAQUE, et c'est voulu : tout ce qui porte du
   texte à lire — les notes, les champs, les points d'avancement.
   Du texte sur du verre est joli une seconde et fatigant au bout
   de trois. Le verre sert de cadre, pas de page.
   =========================================================== */

/* Le plateau : le dossier lui-même. Il laisse voir la lueur du fond. */
.suivi .fiche-ch {
  background: linear-gradient(180deg,
    rgba(255,255,255,.34) 0%, rgba(255,255,255,.18) 52%, rgba(255,255,255,0) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(2.2);
  backdrop-filter: blur(24px) saturate(2.2);
  box-shadow: var(--relief-haut), inset 0 1px 0 rgba(255,255,255,.85);
}

/* Les panneaux. Même verre, taillé un peu plus épais. */
.suivi .fiche-ch .fiche-id,
.suivi .fiche-ch .carnet,
.suivi .fiche-ch .k-c {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(28px) saturate(2.5);
  backdrop-filter: blur(28px) saturate(2.5);
  border: 1px solid rgba(255, 255, 255, .5);
  border-top-color: rgba(255, 255, 255, .95);
  border-bottom-color: rgba(214, 208, 196, .55);
  box-shadow: var(--relief), inset 0 1px 0 rgba(255,255,255,.9);
}
/* Le poli : la lumière rasante du tiers haut. */
.suivi .fiche-ch .fiche-id::after,
.suivi .fiche-ch .carnet::after,
.suivi .fiche-ch .ajout-photo::after,
.suivi .fiche-ch .manque::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38%;
  pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}

/* Les deux panneaux teintés gardent leur couleur, en verre. */
.suivi .fiche-ch .ajout-photo {
  position: relative; overflow: hidden;
  background: rgba(227, 239, 232, .52);
  -webkit-backdrop-filter: blur(28px) saturate(2.5);
  backdrop-filter: blur(28px) saturate(2.5);
  border-color: rgba(46, 107, 79, .5);
  border-top-color: rgba(160, 205, 182, .85);
  box-shadow: var(--relief), inset 0 1px 0 rgba(255,255,255,.75);
}
.suivi .fiche-ch .manque.on {
  position: relative; overflow: hidden;
  background: rgba(243, 233, 220, .55);
  -webkit-backdrop-filter: blur(28px) saturate(2.5);
  backdrop-filter: blur(28px) saturate(2.5);
  border-color: rgba(169, 104, 46, .5);
  border-top-color: rgba(226, 196, 160, .9);
  box-shadow: var(--relief), inset 0 1px 0 rgba(255,255,255,.7);
}

/* Ce qui porte du texte à lire reste SUR le verre, pas dedans : un fond
   franc, une ombre courte. C'est là que l'œil se pose. */
.suivi .fiche-ch .ca-f,
.suivi .fiche-ch .ca-n,
.suivi .fiche-ch .ca-e input,
.suivi .fiche-ch .pt-av,
.suivi .fiche-ch .pc,
.suivi .fiche-ch .af,
.suivi .fiche-ch .no,
.suivi .fiche-ch .ch-m,
.suivi .fiche-ch .aj-c {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(214, 208, 196, .8);
  box-shadow: 0 1px 1px rgba(22,21,15,.04), 0 5px 12px -8px rgba(22,21,15,.26);
}
.suivi .fiche-ch .pt-av.dernier {
  background: rgba(227, 239, 232, .9); border-color: rgba(46, 107, 79, .55);
}

/* Sans flou, le verre redevient franc plutôt qu'illisible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .suivi .fiche-ch,
  .suivi .fiche-ch .fiche-id,
  .suivi .fiche-ch .carnet,
  .suivi .fiche-ch .k-c { background: var(--p-1); }
  .suivi .fiche-ch .ajout-photo { background: var(--vert-d); }
  .suivi .fiche-ch .manque.on { background: var(--or-d); }
}

/* La nuit : le verre s'assombrit, la lumière du haut reste — c'est elle
   qui donne l'épaisseur, et elle compte davantage sur fond sombre. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .suivi .fiche-ch {
    background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.04) 52%, rgba(255,255,255,0) 100%);
  }
  :root:not([data-theme="light"]) .suivi .fiche-ch .fiche-id,
  :root:not([data-theme="light"]) .suivi .fiche-ch .carnet,
  :root:not([data-theme="light"]) .suivi .fiche-ch .k-c {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
    border-top-color: rgba(255,255,255,.3);
    box-shadow: 0 24px 46px -26px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.22);
  }
  :root:not([data-theme="light"]) .suivi .fiche-ch .fiche-id::after,
  :root:not([data-theme="light"]) .suivi .fiche-ch .carnet::after,
  :root:not([data-theme="light"]) .suivi .fiche-ch .ajout-photo::after,
  :root:not([data-theme="light"]) .suivi .fiche-ch .manque::after {
    background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0));
  }
  :root:not([data-theme="light"]) .suivi .fiche-ch .ca-f,
  :root:not([data-theme="light"]) .suivi .fiche-ch .ca-n,
  :root:not([data-theme="light"]) .suivi .fiche-ch .ca-e input,
  :root:not([data-theme="light"]) .suivi .fiche-ch .pt-av,
  :root:not([data-theme="light"]) .suivi .fiche-ch .pc,
  :root:not([data-theme="light"]) .suivi .fiche-ch .af,
  :root:not([data-theme="light"]) .suivi .fiche-ch .aj-c {
    background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14);
    box-shadow: none;
  }
}

/* ===========================================================
   LA FICHE DU CHANTIER

   Ce que l'écran montrait : des photos datées. Ce qui manque à
   un chef de chantier : tout le reste — qui est le client, où
   est le portail, ce qui reste à reprendre. Ces choses vivent
   aujourd'hui sur des bouts de papier et dans des têtes, et
   elles disparaissent le jour où la personne qui les sait est
   en arrêt.
   =========================================================== */
.fiche-id {
  margin: 4px 0 16px; padding: 15px 16px; border-radius: 16px;
  background: var(--p-1); border: 1px solid var(--p-3); box-shadow: var(--ombre);
}
.fi-t {
  font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-3); margin-bottom: 11px;
}
.fi-l { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.fi-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fi-k {
  font-family: var(--m); font-size: 8.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--t-3);
}
.fi-v { font-size: 13px; font-weight: 600; color: var(--t-1); line-height: 1.3;
        overflow-wrap: anywhere; }
.fi-x { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--p-2);
        font-size: 11.5px; line-height: 1.5; color: var(--t-2); }
.fi-x b { color: var(--t-1); font-weight: 650; }
@media (max-width: 480px) { .fi-l { grid-template-columns: 1fr; gap: 9px; } }

/* ---- le carnet ----

   Six rubriques, et dans chacune les lignes du plus récent au plus
   ancien. Pas un champ « notes » où tout s'entasse : on cherche « le
   code du portail » à l'endroit où on l'a rangé, pas en relisant
   quarante lignes. */
.carnet {
  margin: 18px 0; padding: 15px 16px; border-radius: 16px;
  background: var(--p-1); border: 1px solid var(--p-3);
}
.ca-t {
  font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-3); margin-bottom: 8px;
}
.ca-x { margin: 0 0 13px; font-size: 12px; line-height: 1.5; color: var(--t-2); }
.ca-x b { color: var(--t-1); font-weight: 650; }

.ca-f { padding: 12px 13px; border-radius: 13px;
        background: var(--p-0); border: 1px solid var(--p-3); margin-bottom: 14px; }
.ca-r { display: flex; flex-wrap: wrap; gap: 5px; }
.ca-b {
  padding: 6px 11px; border-radius: 20px; cursor: pointer;
  background: var(--p-1); border: 1px solid var(--p-3); color: var(--t-2);
  font-family: var(--f); font-size: 11.5px; font-weight: 600;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.ca-b:hover { border-color: var(--t-3); color: var(--t-1); }
.ca-b.on { background: var(--vert); border-color: var(--vert); color: #fff; }
/* Ce que la rubrique choisie recouvre, en une ligne. Six rubriques dont
   on ne sait pas ce qu'elles contiennent, c'est six hésitations. */
.ca-s { margin: 8px 2px 10px; font-size: 11px; color: var(--t-3); line-height: 1.4; }
.ca-e { display: flex; flex-direction: column; gap: 8px; }
.ca-e input {
  width: 100%; font-family: var(--f); font-size: 13px; color: var(--t-1);
  padding: 11px 12px; border-radius: 11px;
  border: 1px solid var(--p-3); background: var(--p-1);
}
.ca-e input:focus { outline: none; border-color: var(--vert); }
@media (min-width: 560px) {
  .ca-e { flex-direction: row; align-items: center; }
  .ca-e > .gros { flex: none; }
}

.ca-g { margin-bottom: 13px; }
.ca-gt {
  font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--vert); margin-bottom: 6px;
}
.ca-n { display: flex; align-items: flex-start; gap: 10px;
        padding: 9px 12px; border-radius: 11px; margin-bottom: 6px;
        background: var(--p-0); border: 1px solid var(--p-3); }
.ca-nx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
/* La croix reste discrète : on corrige rarement, et une croix rouge sur
   chaque ligne donnerait l'air d'une liste qu'on vient vider. */
.ca-o {
  flex: none; width: 24px; height: 24px; border-radius: 8px; cursor: pointer;
  background: none; border: 1px solid transparent; color: var(--t-3);
  font-size: 16px; line-height: 1;
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.ca-o:hover { color: var(--chaud); border-color: var(--chaud); background: var(--chaud-d); }
.ca-nd { font-family: var(--m); font-size: 10px; color: var(--t-3); }
.ca-nt { font-size: 12.5px; line-height: 1.45; color: var(--t-1); }
.ca-v { margin: 0; font-size: 12px; line-height: 1.5; color: var(--t-3); font-style: italic; }

/* ---- la règle du manque ----

   Elle n'est pas décrite, elle est LUE sur le serveur. Une phrase qui
   promet un fonctionnement que le moteur n'a plus est pire qu'une
   phrase absente : personne ne la découvre jamais. */
.manque {
  margin: 18px 0; padding: 14px 16px; border-radius: 16px;
  background: var(--p-0); border: 1px solid var(--p-3);
}
.manque.on { background: var(--or-d); border-color: rgba(169, 104, 46, .45); }
.ma-t {
  font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-3); margin-bottom: 9px;
}
.manque.on .ma-t { color: var(--or); }
.ma-h { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.ma-p {
  flex: none; font-family: var(--m); font-size: 8.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px;
  background: var(--p-1); border: 1px solid var(--p-3); color: var(--t-3);
}
.manque.on .ma-p { background: var(--or); border-color: var(--or); color: #fff; }
.ma-h b { font-size: 13.5px; letter-spacing: -.015em; color: var(--t-1); line-height: 1.3; }
.ma-x, .ma-d { margin: 0 0 7px; font-size: 12px; line-height: 1.5; color: var(--t-2); }
.ma-d { color: var(--t-1); }
.ma-r { margin: 9px 0 0; padding-top: 9px; border-top: 1px solid var(--p-3);
        font-size: 11.5px; line-height: 1.45; color: var(--t-3); }
.ma-r b { color: var(--t-2); font-weight: 650; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fiche-id,
  :root:not([data-theme="light"]) .carnet { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
  :root:not([data-theme="light"]) .ca-f,
  :root:not([data-theme="light"]) .ca-n,
  :root:not([data-theme="light"]) .ca-e input,
  :root:not([data-theme="light"]) .ca-b { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
  :root:not([data-theme="light"]) .ca-b.on { background: var(--vert); border-color: var(--vert); }
}
:root[data-theme="dark"] .fiche-id,
:root[data-theme="dark"] .carnet { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
:root[data-theme="dark"] .ca-f,
:root[data-theme="dark"] .ca-n,
:root[data-theme="dark"] .ca-e input,
:root[data-theme="dark"] .ca-b { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
:root[data-theme="dark"] .ca-b.on { background: var(--vert); border-color: var(--vert); }

/* ---- mettre le chantier à jour, depuis sa fiche ----

   La notification dit « aucun point d'avancement n'existe pour ce
   chantier » et propose d'y remédier. Elle atterrit ICI : le bouton qui
   ajoute la photo, et l'adresse à donner au compagnon pour qu'il
   l'envoie lui-même depuis le chantier — c'est la voie qui servira le
   plus, parce qu'elle ne demande à personne d'ouvrir un logiciel. */
.ajout-photo {
  margin: 16px 0 18px; padding: 15px 16px; border-radius: 16px;
  background: var(--vert-d); border: 1px solid var(--vert);
}
.aj-t {
  font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--vert); margin-bottom: 10px;
}
.aj-l { display: flex; flex-direction: column; gap: 11px; }
.aj-m { display: flex; flex-direction: column; gap: 3px; }
.aj-o { font-size: 12px; color: var(--t-2); }
.aj-c {
  font-family: var(--m); font-size: 13.5px; font-weight: 700; color: var(--t-1);
  background: var(--p-1); border: 1px solid var(--p-3); border-radius: 9px;
  padding: 8px 11px; align-self: flex-start; user-select: all;
}
.aj-x { font-size: 11.5px; line-height: 1.45; color: var(--t-2); }
@media (min-width: 640px) {
  .aj-l { flex-direction: row; align-items: flex-start; gap: 16px; }
  .aj-l > .gros { flex: none; width: auto; }
  .aj-m { flex: 1; min-width: 0; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .aj-c { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
}
:root[data-theme="dark"] .aj-c { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }

.poster {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  margin-bottom: 22px; padding: 16px 18px; border-radius: 17px;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(46, 107, 79, .4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.po-t { font-family: var(--m); font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
        text-transform: uppercase; color: var(--vert); }
.po-c { font-size: 12.5px; line-height: 1.5; color: var(--t-2); }

.chantier { margin-bottom: 20px; }
.chantier h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px;
               font-size: 15.5px; letter-spacing: -.02em; }
.ch-n { font-family: var(--m); font-size: 10px; color: var(--t-3); }
/* La chronologie : le plus récent en haut, en vert ; les précédents en gris.
   On lit l'avancement d'un chantier comme on lit un carnet. */
.pt-av { padding: 13px 15px; border-radius: 14px; margin-bottom: 8px;
         background: var(--p-1); border: 1px solid var(--p-3); }
.pt-av.dernier { background: var(--vert-d); border-color: var(--vert); }
.pt-h { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.pt-h b { font-size: 13px; }
.pt-d { font-family: var(--m); font-size: 9px; letter-spacing: .09em; text-transform: uppercase;
        color: var(--vert); }
.pt-m { margin-top: 5px; font-size: 13px; line-height: 1.45; color: var(--t-1); }
.pt-v { margin-top: 7px; font-size: 12px; line-height: 1.4; color: var(--t-2); }
.pt-l { display: block; font-family: var(--m); font-size: 9px; letter-spacing: .08em;
        text-transform: uppercase; color: var(--t-3); margin-bottom: 2px; }

/* ---- la photo sur laquelle la réponse s'appuie ---- */
.appui { margin-bottom: 11px; padding: 12px 14px; border-radius: 14px;
         background: var(--or-d); border: 1px solid var(--or); }
.ap-t { font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .1em;
        text-transform: uppercase; color: var(--or); margin-bottom: 8px; }
.ap-c { display: flex; gap: 12px; align-items: flex-start; }
.ap-img { width: 96px; height: 72px; object-fit: cover; border-radius: 9px; flex: none;
          border: 1px solid var(--p-3); }
.ap-x { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ap-x b { font-size: 12.5px; }
.ap-m { font-size: 12.5px; line-height: 1.4; color: var(--t-1); }
.ap-v { font-size: 11.5px; line-height: 1.35; color: var(--t-2); }

@media (max-width: 560px) {
  .deux-portes { grid-template-columns: 1fr; }
  .poster { padding: 14px 15px; }
  .ap-img { width: 76px; height: 58px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .poster { background: rgba(255,255,255,.05); }
  :root:not([data-theme="light"]) .pt-av { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
  :root:not([data-theme="light"]) .pt-av.dernier { background: var(--vert-d); border-color: var(--vert); }
}
:root[data-theme="dark"] .poster { background: rgba(255,255,255,.05); }
:root[data-theme="dark"] .pt-av { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
:root[data-theme="dark"] .pt-av.dernier { background: var(--vert-d); border-color: var(--vert); }

/* ===========================================================
   LA BASCULE D'EXEMPLE

   Elle remplace un bloc « Changer d'exemple » qui était sobre au
   point d'être invisible : un filet gris, une étiquette, deux
   rectangles pâles à l'intérieur de la carte. On ne le voyait pas,
   donc le deuxième exemple n'existait pas.

   Elle est maintenant POSÉE SUR la carte, à cheval sur son bord
   bas, avec son ombre à elle. Une chose qui a son ombre est une
   chose qu'on peut prendre : c'est ce que dit l'ombre portée, et
   c'est pour ça qu'elle est là et pas ailleurs.
   =========================================================== */
.zone-ex { position: relative; }
.zone-ex.a-deux { padding-bottom: 30px; }
/* La bande où la bascule mord, à l'intérieur de la carte. Elle doit
   loger la moitié haute de la bascule ET la ligne d'aide posée au-dessus
   d'elle — sans quoi « Choisissez un des deux exemples » s'imprimait par
   dessus le bouton vert. */
/* La bande doit loger TROIS choses : la moitié haute de la bascule, la
   pastille d'aide posée au-dessus d'elle, et l'air entre les deux. La
   pastille a grandi en prenant sa couleur et son contour — elle est
   passée de 12 à 22 px de haut — et elle mordait sur la phrase du
   dessus. Quatorze pixels de plus, mesurés sur la pastille. */
.zone-ex.a-deux > .compose { padding-bottom: 66px; }
.zone-ex.a-deux > .veille { padding-bottom: 62px; }

.bascule-ex {
  /* « top: auto » n'est pas décoratif : la bascule de base pose top: 0,
     et une boîte absolue qui a top ET bottom avec une hauteur auto
     s'ÉTIRE entre les deux. Elle couvrait donc toute la carte au lieu de
     se poser sur son bord bas — sans rien casser à l'œil, juste un objet
     transparent posé par-dessus le message. */
  position: absolute; top: auto; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 3; width: max-content; max-width: calc(100% - 16px);
  box-shadow: 0 16px 34px -18px rgba(22,21,15,.5),
              0 3px 10px -4px rgba(22,21,15,.18),
              inset 0 1px 0 rgba(255,255,255,.85);
  background: rgba(255, 255, 255, .42);
}
/* Une ligne de rien du tout, posée au-dessus. Elle ne dit pas comment
   ça marche — elle dit qu'il y a un choix à faire, ce qui est la seule
   chose qu'on ne devine pas devant deux cases dont une est déjà
   allumée. */
.bx-aide {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  /* À CHEVAL sur le haut de la bascule, comme tout ce qui commande
     quelque chose dans cette démonstration : posée au-dessus, elle
     flottait entre deux objets et pouvait se rapporter à l'un comme à
     l'autre. Elle mord de onze pixels — la moitié de sa hauteur — sur
     l'objet qu'elle désigne. */
  margin-bottom: -11px; z-index: 2; white-space: nowrap;
  font-family: var(--m); font-size: 8.5px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase;
  /* En gris, elle disait la même chose que les vingt autres petites
     lignes grises de la page — c'est-à-dire rien. Elle porte la seule
     consigne de l'écran : elle prend la couleur qu'on réserve à ce qui
     demande une action, et une pastille pour se détacher du fond. */
  color: var(--chaud); background: var(--chaud-d);
  border: 1px solid rgba(179, 63, 28, .3);
  padding: 3px 10px; border-radius: 20px;
}

.cote-ex {
  position: relative;
  align-items: flex-start; gap: 10px; padding: 9px 14px;
  border-radius: 16px; white-space: normal; text-align: left; flex: 1 1 0; min-width: 0;
}
.cote-ex.bon.on .nom b { color: var(--vert); }
.cote-ex.chaud.on .nom b { color: var(--chaud); }
/* Un rond qu'on coche, pas une pastille de couleur.

   C'était un point de 7 px : un signal d'état, comme les dizaines
   d'autres points de la page. Or ici il faut comprendre qu'on CHOISIT —
   et un rond vide à côté d'un rond plein est la seule forme que tout le
   monde reconnaît sans l'avoir apprise. Celui qui est pris est vert,
   quel que soit le côté : c'est la couleur de « c'est celui-là ». */
/* « .bascule-ex .cote .pt » et non « .cote-ex .pt » : la bascule du
   tableau colore ses pastilles par « .cote.chaud .pt », qui pèse plus
   lourd. Le rond du côté non choisi restait donc plein et rouge — c'est
   exactement le contraire de ce qu'un rond à cocher doit montrer. */
.bascule-ex .cote .pt {
  width: 19px; height: 19px; margin-top: 1px; border-radius: 50%;
  background: transparent; border: 2px solid var(--t-3);
  display: grid; place-items: center;
  transition: background .14s ease, border-color .14s ease;
}
.bascule-ex .cote.on .pt { background: var(--vert); border-color: var(--vert); }
.bascule-ex .cote.on .pt::after {
  content: "✓"; color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
}
.bascule-ex .cote:hover .pt { border-color: var(--t-1); }
.cote-ex .nom { display: flex; flex-direction: column; gap: 1px; overflow: visible; }
.cote-ex .nom b { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.cote-ex .nom > span { font-size: 10.5px; line-height: 1.3; color: var(--t-3); }
.cote-ex.on .nom > span { color: var(--t-2); }

/* Sur un téléphone, deux libellés de deux lignes côte à côte font des
   colonnes de six mots. Ils passent l'un sous l'autre, pleine largeur —
   c'est toujours un seul objet à deux côtés, posé à la verticale. */
@media (max-width: 620px) {
  .bascule-ex { flex-direction: column; width: calc(100% - 20px); }
  .cote-ex { flex: none; }
  .zone-ex.a-deux { padding-bottom: 46px; }
  .zone-ex.a-deux > .compose { padding-bottom: 82px; }
  .zone-ex.a-deux > .veille { padding-bottom: 78px; }
}
/* La nuit, le verre s'assombrit mais l'ombre portée reste : c'est elle
   qui détache la bascule de la carte, et sur fond sombre elle compte
   davantage, pas moins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bascule-ex {
    background: rgba(255,255,255,.1);
    box-shadow: 0 18px 38px -16px rgba(0,0,0,.9),
                inset 0 1px 0 rgba(255,255,255,.16);
  }
  :root:not([data-theme="light"]) .cote-ex .nom > span { color: var(--t-3); }
}
:root[data-theme="dark"] .bascule-ex {
  background: rgba(255,255,255,.1);
  box-shadow: 0 18px 38px -16px rgba(0,0,0,.9),
              inset 0 1px 0 rgba(255,255,255,.16);
}

/* ---- les cinq miniatures ----

   Repliées, les cinq propositions restent VISIBLES : cinq vignettes sur
   une rangée, qui tiennent sur un écran de 360 px sans faire défiler.
   On voit donc toujours ce qu'on aurait pu choisir.

   Les toucher ne choisit pas : ça rouvre les cinq en entier. Choisir
   sans avoir lu ce que fait chacune serait un piège, et une vignette de
   soixante pixels ne peut pas expliquer une automatisation. */
.minis { margin-bottom: 12px; }
.mi-t {
  font-family: var(--m); font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-3); margin-bottom: 8px;
}
.mi-l { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mi {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 3px; border-radius: 12px; min-height: 58px;
  background: var(--p-1); border: 1px solid var(--p-3); color: var(--t-2);
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.mi-n {
  font-family: var(--m); font-size: 9px; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--p-2); color: var(--t-3);
}
.mi-x {
  font-size: 10px; font-weight: 600; line-height: 1.15; text-align: center;
  hyphens: auto; word-break: break-word;
}
.mi:hover { border-color: var(--t-3); color: var(--t-1); }
.mi.on { background: var(--vert-d); border-color: var(--vert); color: var(--t-1); }
.mi.on .mi-n { background: var(--vert); color: #fff; }

/* Un lien souligné est invisible pour quelqu'un qui n'a pas l'habitude
   d'un écran. On en fait un bouton : un cadre, un chevron, deux lignes. */
.deplier, .replier {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  margin-top: 4px; padding: 12px 15px; border-radius: 14px;
  color: var(--t-1); background: var(--p-1); border: 1px solid var(--bleu);
  transition: background .16s ease;
}
.deplier:hover, .replier:hover { background: var(--bleu-d); }
.de-i { flex: none; font-size: 15px; color: var(--bleu); line-height: 1; }
.de-x { display: flex; flex-direction: column; gap: 2px; }
.de-x b { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.de-x > span { font-size: 11.5px; color: var(--t-2); }

@media (max-width: 360px) { .mi-x { font-size: 9px; } .mi { padding: 8px 2px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mi { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
  :root:not([data-theme="light"]) .mi.on { background: var(--vert-d); border-color: var(--vert); }
  :root:not([data-theme="light"]) .deplier, :root:not([data-theme="light"]) .replier { background: rgba(255,255,255,.05); }
}
:root[data-theme="dark"] .mi { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
:root[data-theme="dark"] .mi.on { background: var(--vert-d); border-color: var(--vert); }
:root[data-theme="dark"] .deplier, :root[data-theme="dark"] .replier { background: rgba(255,255,255,.05); }

/* ---- les dossiers de chantier ----
   Une carte par chantier : ce qu'on en sait en trois lignes, et une
   porte vers tout le reste. On ne noie pas la liste sous le détail. */
.fc-t { font-family: var(--m); font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
        text-transform: uppercase; color: var(--t-2); margin: 18px 0 10px; }
.dossiers { display: flex; flex-direction: column; gap: 9px; }
.dos {
  display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%;
  padding: 15px 17px; border-radius: 16px; color: var(--t-1);
  background: var(--p-1); border: 1px solid var(--p-3); box-shadow: var(--ombre);
  transition: border-color .16s ease, transform .16s ease;
}
.dos:hover { border-color: var(--vert); transform: translateY(-1px); }
.do-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.do-h b { font-size: 15px; letter-spacing: -.02em; }
.do-n { font-family: var(--m); font-size: 10px; color: var(--t-3); }
.do-d { font-family: var(--m); font-size: 10.5px; color: var(--t-3); }
.do-m { font-size: 13px; line-height: 1.4; color: var(--t-2); }
.do-v { margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--vert); }

/* ---- la fiche ouverte : voir « ÊTRE DEDANS » plus haut ---- */
.fc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
        margin-bottom: 14px; }
.fc-h h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.fc-s { margin-top: 3px; font-size: 12.5px; color: var(--t-2); }
.fc-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.k-c { padding: 11px 12px; border-radius: 13px; background: var(--p-1); border: 1px solid var(--p-3);
       display: flex; flex-direction: column; gap: 3px; }
.k-c b { font-size: 17px; letter-spacing: -.02em; }
.k-c span { font-family: var(--m); font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase;
            color: var(--t-3); line-height: 1.3; }

.pieces-l { display: flex; flex-direction: column; gap: 9px; }
.pc { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px;
      background: var(--p-1); border: 1px solid var(--p-3); }
.pc-v { width: 88px; height: 66px; object-fit: cover; border-radius: 9px; flex: none;
        border: 1px solid var(--p-3); }
.pc-i { font-size: 26px; flex: none; }
.pc-x { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-x b { font-size: 12.5px; }
.pc-d { font-family: var(--m); font-size: 10px; color: var(--t-3); }
.pc-o { font-size: 11.5px; color: var(--t-2); }
.pc-m { font-size: 11.5px; color: var(--t-3); line-height: 1.35; }

/* La ligne d'une affaire du client.

   En flex, le titre se retrouvait coincé entre trois éléments qui ne
   cèdent rien — l'étiquette de module, la date, l'état. Sur 390 px, il
   lui restait une colonne de six caractères : « Où en est la pose ? »
   descendait un mot par ligne.

   En grille, le titre a sa ligne entière et les trois autres se rangent
   dessous. Ce n'est pas la largeur qui manquait, c'était la disposition. */
.af { display: grid; grid-template-columns: auto 1fr auto; align-items: center;
      gap: 7px 10px;
      padding: 11px 14px; border-radius: 13px; margin-bottom: 7px;
      background: var(--p-1); border: 1px solid var(--p-3); }
.af-t { grid-column: 2; font-size: 13px; line-height: 1.35; min-width: 0; }
.af-d { grid-column: 3; font-family: var(--m); font-size: 10.5px; color: var(--t-3);
        white-space: nowrap; }
.af .mod { grid-column: 1; }
.af .etat { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 560px) {
  .af { grid-template-columns: auto 1fr; }
  .af-t { grid-column: 1 / -1; grid-row: 2; }
  .af-d { grid-column: 2; grid-row: 1; justify-self: end; }
  .af .etat { grid-row: 3; }
}
.fc-n { margin-top: 14px; font-size: 12px; line-height: 1.45; color: var(--t-3); }

@media (max-width: 560px) {
  .fc-k { grid-template-columns: 1fr 1fr; }
  .pc-v { width: 70px; height: 54px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dos,
  :root:not([data-theme="light"]) .k-c,
  :root:not([data-theme="light"]) .pc,
  :root:not([data-theme="light"]) .af { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
}
:root[data-theme="dark"] .dos,
:root[data-theme="dark"] .k-c,
:root[data-theme="dark"] .pc,
:root[data-theme="dark"] .af { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }

/* ---- la veille, dans « Le devis qui dort » ----

   Elle était sur le tableau, large comme la page : 1 000 px de verre pour
   deux phrases et un bouton. Elle est maintenant DANS l'exemple qu'elle
   explique — on ne lit la veille qu'au moment où on s'occupe d'un devis
   qui dort — et sa largeur est bornée au texte : une colonne de 56
   caractères se lit sans que l'œil ait à revenir chercher le début de la
   ligne suivante. Tout le reste est resserré d'un tiers. */
.veille {
  margin-top: 16px; margin-bottom: 4px; max-width: 620px;
  padding: 13px 15px; border-radius: 16px;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(26px) saturate(2.4);
  backdrop-filter: blur(26px) saturate(2.4);
  border: 1px solid rgba(169, 104, 46, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
/* L'étiquette et le titre sur UNE ligne : ils disaient la même chose sur
   deux, et la deuxième coûtait 18 px de hauteur pour rien. */
.ve-h { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.ve-e { font-family: var(--m); font-size: 8.5px; font-weight: 700; letter-spacing: .12em;
        text-transform: uppercase; color: var(--or); }
.veille h3 { margin: 0; font-size: 14.5px; letter-spacing: -.02em; }
.ve-d { margin: 0 0 7px; font-size: 12px; line-height: 1.5; color: var(--t-2); }
.ve-d b { color: var(--t-1); font-weight: 650; }

/* La parenthèse : ce qui se met à jour tout seul, et où. C'est une
   précision, pas une promesse de vente — elle prend donc le ton d'une
   note en bas de page, pas celui du titre. */
.ve-p { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.45;
        color: var(--t-3); font-style: italic; }

/* Le renvoi, DANS la phrase.

   Il était sur sa propre ligne, sous le paragraphe, avec une flèche :
   un bouton de plus à décider, au milieu d'un écran qui en compte déjà
   assez. Alors qu'il ne demande aucune décision — c'est une porte qu'on
   pousse si on veut aller voir, exactement comme un lien dans un texte.

   Il en a donc la forme : bleu, souligné, à l'intérieur de la phrase, à
   la place où le mot se trouvait déjà. Rien n'a été ajouté à l'écran ;
   un mot est devenu cliquable. C'est un bouton dans le code, parce qu'il
   change d'écran sans changer d'adresse. */
.lien-dans {
  display: inline; margin: 0; padding: 0; background: none; border: 0;
  cursor: pointer; font: inherit; color: var(--bleu); font-weight: 650;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.lien-dans:hover { text-decoration-thickness: 2px; }

/* Le passage du soir. Même carte que la veille, teinte différente : ce
   sont deux travaux distincts, et deux choses distinctes ne se peignent
   pas de la même couleur. */
.veille.soir { border-color: rgba(36, 80, 110, .38); }
.veille.soir .ve-e { color: var(--bleu); }

.ve-b { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }


.ve-n { margin: 11px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--t-2); }
.ve-n b { color: var(--or); }
/* ---- ce que la veille vient de faire ----
   Un chiffre, trois lignes, un bouton. Compact, et surtout : il MONTRE
   ce qui s'est passé au lieu de l'affirmer. Le chiffre d'abord, parce
   que c'est la seule chose qu'on retient. */
.ve-f {
  margin-top: 11px; padding: 12px 13px 13px; border-radius: 14px;
  background: var(--vert-d); border: 1px solid var(--vert);
}
.ve-fh { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.ve-fp {
  font-size: 25px; font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: var(--vert); flex: none;
}
.ve-fx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ve-fx b { font-size: 12.5px; letter-spacing: -.015em; color: var(--t-1); line-height: 1.25; }
.ve-fx > span { font-size: 11px; color: var(--t-2); line-height: 1.35; }
/* Trois lignes, six pixels entre elles, et des phrases qu'on lit d'un
   coup d'œil — c'est un relevé de ce qui vient de se passer, pas une
   explication. */
.ve-e3 { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.ve-e3 li { font-size: 11.5px; line-height: 1.35; color: var(--t-2); }
.ve-e3 b { color: var(--t-1); font-weight: 650; }

/* La phrase qui dit où mène le bouton. Elle est sous lui, pas dedans :
   un bouton dit ce qu'il fait, pas ce qu'on y trouvera. */
.ve-o { margin: 7px 0 0; font-size: 11px; line-height: 1.4; color: var(--t-2); }

/* Le bilan quand il n'y avait rien à refaire. Même carte, teinte calme :
   ce n'est pas un travail accompli, c'est un travail épargné. */
.ve-f.calme { background: var(--bleu-d); border-color: var(--bleu); }
.ve-f.calme .ve-fp { color: var(--bleu); font-size: 22px; }

.ve-l { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.ve-c { display: flex; align-items: center; gap: 10px;
        padding: 8px 11px; border-radius: 11px;
        background: var(--p-1); border: 1px solid var(--p-3); }
.ve-r { font-family: var(--m); font-size: 10px; font-weight: 700; color: var(--or); flex: none; }
.ve-x { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.ve-x b { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-x span { font-size: 10.5px; color: var(--t-3); overflow: hidden;
             text-overflow: ellipsis; white-space: nowrap; }
.ve-j { font-family: var(--m); font-size: 10px; color: var(--chaud); flex: none; }

/* ---- chercher dans la boîte ---- */
.ch-d { margin: 0 0 11px; font-size: 12.5px; line-height: 1.5; color: var(--t-2); max-width: 58ch; }
.ch-d b { color: var(--t-1); font-weight: 650; }
.ch-b { display: flex; gap: 8px; margin-bottom: 12px; }
.ch-b input {
  flex: 1; min-width: 0; font-family: var(--f); font-size: 13px; color: var(--t-1);
  padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--p-3); background: var(--p-1);
}
.ch-b input:focus { outline: none; border-color: var(--bleu); }
.ch-l { display: flex; flex-direction: column; gap: 7px; }
.ch-m { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px;
        background: var(--p-1); border: 1px solid var(--p-3); }
.ch-x { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ch-x b { font-size: 12.5px; }
.ch-s { font-size: 12px; color: var(--t-2); overflow: hidden;
        text-overflow: ellipsis; white-space: nowrap; }
.no { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 12px;
      margin-bottom: 7px; background: var(--bleu-d); border: 1px solid var(--bleu); }
.no-d { font-family: var(--m); font-size: 10px; color: var(--t-3); }
.no-t { font-size: 12.5px; line-height: 1.45; color: var(--t-1); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .veille { background: rgba(255,255,255,.05); }
  :root:not([data-theme="light"]) .ve-c,
  :root:not([data-theme="light"]) .ch-m,
  :root:not([data-theme="light"]) .ch-b input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
}
:root[data-theme="dark"] .veille { background: rgba(255,255,255,.05); }
:root[data-theme="dark"] .ve-c,
:root[data-theme="dark"] .ch-m,
:root[data-theme="dark"] .ch-b input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .veille { background: var(--p-1); }
}
@media (max-width: 560px) {
  /* Sur un téléphone, la veille prend la largeur qu'il y a — bornée par
     la page, pas par une valeur en dur — et se serre encore d'un cran. */
  .veille { max-width: none; padding: 12px 13px; }
  .zone-ex > .veille { padding-left: 22px; padding-right: 22px; }
  .veille h3 { font-size: 14px; }
  .ve-d { font-size: 11.5px; }
  .ve-p { font-size: 11px; }
  .ve-b { gap: 6px; }
  .ve-b .gros { font-size: 12.5px; padding: 10px 14px; }
  .ve-fp { font-size: 22px; }
  .ve-c { gap: 8px; padding: 8px 10px; }
  .ch-b { flex-direction: column; }
}

/* ---- « Mettre à jour d'abord » ----

   Le troisième choix, celui qu'on ne pense pas à offrir : ni envoyer,
   ni renoncer — attendre une image fraîche. Il est bleu, entre le vert
   qui envoie et le bouton discret qui renonce. */
.gros.bleu2 {
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--bleu);
  background: var(--bleu-d); color: var(--t-1); font-size: 13.5px; font-weight: 650;
  transition: background .14s ease;
}
.gros.bleu2 { font-size: 13px; }
.gros.bleu2:hover { background: var(--p-1); }
.gros.bleu2:disabled { opacity: .6; }
.maj-x { margin: 9px 0 0; font-size: 12px; line-height: 1.7; color: var(--t-2); max-width: 56ch; }
/* Le bouton, redessiné en miniature dans la phrase qui en parle.

   Le texte disait « Mettre à jour » entre guillemets : il fallait faire
   le lien soi-même entre trois mots et un bouton posé plus haut. Ici
   c'est le bouton lui-même, en petit, avec une flèche qui pointe vers
   l'original. Plus rien à relier. */
.renvoi { display: inline-flex; align-items: center; gap: 5px; vertical-align: -3px; }
.re-f { color: var(--bleu); font-size: 14px; font-weight: 800; line-height: 1;
        animation: re-monte 1.6s ease-in-out infinite; }
.re-b {
  display: inline-block; padding: 3px 9px; border-radius: 8px;
  border: 1px solid var(--bleu); background: var(--bleu-d); color: var(--t-1);
  font-size: 11px; font-weight: 650; white-space: nowrap;
}
@keyframes re-monte {
  0%, 100% { transform: translateY(2px); }
  50%      { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) { .re-f { animation: none; } }
.maj-x b { color: var(--t-1); font-weight: 650; }

/* ---- le dossier, ouvert sous la ligne ----

   Il s'affichait en bas de l'écran : on cliquait sur la troisième ligne
   et la réponse apparaissait ailleurs, hors de vue. Il s'ouvre
   maintenant là où le doigt est posé.

   Et il faut VOIR où il commence et où il s'arrête. Il était gris, dans
   une liste blanche : plus sombre que ce qui l'entoure, donc en retrait,
   alors que c'est la seule chose qu'on regarde. On inverse — il est le
   plus clair de l'écran — et deux ombres portées, l'une vers le haut,
   l'autre vers le bas, le détachent des lignes voisines. Personne n'est
   grisé autour : la liste continue normalement, c'est LUI qui est levé.

   Un filet ocre en haut et en bas donne ses deux bords exacts. */
.tableau .detail {
  position: relative; z-index: 1;
  margin: 0; border-radius: 0; border-left: 0; border-right: 0;
  border-top: 2px solid var(--or); border-bottom: 2px solid var(--or);
  background: var(--p-1);
  padding: 18px 20px 20px;
  box-shadow: 0 -16px 24px -14px rgba(22,21,15,.6),
              0 16px 24px -14px rgba(22,21,15,.6);
}

/* ---- la sortie du dossier ----

   « Fermer » était un petit bouton gris au fond de mille pixels de
   texte. C'est pourtant le geste qui enchaîne : on ferme celui-ci pour
   attaquer le suivant. Il prend donc la largeur, un filet net, et il dit
   ce qu'il enchaîne. */
.fin-dossier { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--p-3);
               display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.fin-dossier .act.doux { align-self: center; }
.fermer {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  width: 100%; padding: 12px 16px; border-radius: 13px; cursor: pointer;
  background: var(--p-0); border: 1px solid var(--t-3); color: var(--t-1);
  font-family: var(--f);
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.fe-t { font-size: 13.5px; font-weight: 650; }
.fe-s { font-size: 11px; color: var(--t-2); }
.fermer:hover { background: var(--p-1); border-color: var(--t-1); transform: translateY(-1px); }
.act.on { background: var(--t-1); color: var(--p-1); border-color: var(--t-1); }

/* ---- le dossier qui s'ouvre replié ----

   Arriver depuis le parcours ne doit pas jeter trois écrans de texte à la
   figure. Le dossier s'ouvre À MOITIÉ : on voit qu'il est là, on voit le
   début du message, on voit le bouton. Le dégradé du bas dit qu'il y a
   une suite — un texte simplement coupé net a l'air d'un bug.

   « Tout lire en grand » le déplie. Le geste est à lui, pas au logiciel. */
.ech-h { display: flex; align-items: baseline; justify-content: space-between;
         gap: 12px; flex-wrap: wrap; }
.ech-h .ech-t { margin-bottom: 0; }
.agrandir {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 5px 10px; border-radius: 10px; cursor: pointer;
  background: var(--p-2); border: 1px solid var(--p-3); color: var(--t-2);
  font-family: var(--f); font-size: 11.5px; font-weight: 600;
  transition: border-color .14s ease, color .14s ease;
}
.agrandir:hover { border-color: var(--bleu); color: var(--bleu); }
.agrandir .ag-i { font-size: 12px; line-height: 1; }

.detail.replie .bulle .txt {
  max-height: 4.4em; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.detail.replie .corrigez, .detail.replie .maj-x, .detail.replie .appui { display: none; }
/* Replié, il reste UN bouton. Trois boutons empilés pleine largeur font
   300 px sur un téléphone — plus haut que le message qu'ils concernent,
   et la question « lequel ? » arrive avant qu'on ait fini de lire. Les
   deux autres reviennent avec « Tout lire en grand », où ils ont leur
   place : c'est là qu'on décide. */
.detail.replie .decider .gros.bleu2,
.detail.replie .decider [data-refuser] { display: none; }
.detail.replie .ech-h { margin-bottom: 9px; }

/* ---- la bulle que Nown n'a PAS écrite ----

   Sur un client en colère, la case est vide, et c'est le seul endroit du
   logiciel où le vide est le produit. Elle porte donc le bord ocre de ce
   qui vous revient, jamais le vert de ce qui est prêt. */
.bulle.avous { background: var(--chaud-d); border: 1px solid var(--chaud); }
.bulle.avous .qui b { color: var(--chaud); }
.bulle.avous textarea {
  width: 100%; margin-top: 3px; font-family: var(--f); font-size: 13px;
  line-height: 1.5; color: var(--t-1); background: var(--p-1);
  border: 1px solid var(--p-3); border-radius: 11px; padding: 11px 12px;
  resize: vertical;
}
.bulle.avous textarea:focus { outline: none; border-color: var(--chaud); }
.bulle.mienne { background: var(--bleu-d); border: 1px solid var(--bleu); }
.bulle.mienne .qui b { color: var(--bleu); }

@media (max-width: 560px) {
  .gros.bleu2 { width: 100%; }
  .tableau .detail { padding: 14px 15px; }
  .agrandir { font-size: 11px; padding: 5px 9px; }

  /* Sur un téléphone, une étiquette et son texte côte à côte laissent au
     texte une colonne de dix caractères. « Une venue est annoncée » y
     tenait sur six lignes hachées. L'étiquette passe donc AU-DESSUS, sur
     toute la largeur : c'est la seule disposition qui rende ses 40
     caractères à la phrase. */
  .compris { flex-direction: column; gap: 5px; align-items: stretch; }
  .appuis li { flex-direction: column; align-items: flex-start; gap: 3px;
               padding-left: 26px; position: relative; }
  .appuis li::before { position: absolute; left: 12px; top: 14px; }
  .appuis li span { width: 100%; }
  .jr { gap: 9px; }
  .jr .h { width: 46px; font-size: 10.5px; }
}
/* La nuit, c'est l'inverse qui détache : le dossier s'éclaircit pendant
   que les lignes restent sombres. Le principe tient — il est le plus
   lumineux de l'écran — la valeur change. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .zone-tableau .tableau .corps { background: transparent; }
  :root:not([data-theme="light"]) .tableau .detail {
    background: rgba(255,255,255,.09);
    box-shadow: 0 -16px 30px -18px rgba(0,0,0,.9), 0 16px 30px -18px rgba(0,0,0,.9);
  }
  :root:not([data-theme="light"]) .fermer {
    background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); }
}
:root[data-theme="dark"] .zone-tableau .tableau .corps { background: transparent; }
:root[data-theme="dark"] .tableau .detail {
  background: rgba(255,255,255,.09);
  box-shadow: 0 -16px 30px -18px rgba(0,0,0,.9), 0 16px 30px -18px rgba(0,0,0,.9);
}
:root[data-theme="dark"] .fermer {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .agrandir { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
  :root:not([data-theme="light"]) .bulle.avous textarea { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
}
:root[data-theme="dark"] .agrandir { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
:root[data-theme="dark"] .bulle.avous textarea { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }

/* ===========================================================
   LE RAIL, ET LA MAIN QUI LE TIRE
   =========================================================== */

/* La barre du système s'efface au bout d'une seconde sur Mac et n'existe
   pas sur téléphone. On la remplace par la nôtre, qui reste — et on
   cache l'autre, pour qu'il n'y en ait jamais deux. */
/* La liste se pose sur le papier, le dossier ouvert reste blanc.

   Onze points de luminance entre les deux — rien qui se remarque tant
   qu'aucun dossier n'est ouvert, et exactement ce qu'il faut pour que
   l'ombre portée ait quelque chose sur quoi tomber. Ce n'est pas griser
   les lignes : c'est lever celle qu'on regarde. */
.zone-tableau .tableau .corps {
  scrollbar-width: none; margin-right: 0; background: var(--p-0);
}
.zone-tableau .tableau .corps::-webkit-scrollbar { width: 0; height: 0; }

.rail {
  position: absolute; right: 5px; width: 12px; z-index: 2;
  border-radius: 8px; background: rgba(120, 112, 96, .1);
  cursor: pointer;
}
.rail > i {
  display: block; width: 8px; margin: 0 2px; border-radius: 6px;
  background: rgba(120, 112, 96, .45);
  transition: background .15s ease, width .15s ease, margin .15s ease;
}
.rail:hover > i { background: rgba(120, 112, 96, .68); }
/* Tenu — par la main de quelqu'un ou par la démonstration : c'est le
   même état, donc la même couleur. */
.rail > i.tenu {
  background: var(--or); width: 10px; margin: 0 1px;
}

/* --- le curseur de la démonstration ---

   Il est posé PAR-DESSUS le tableau et ne prend aucun clic : ce qu'il
   montre, on doit pouvoir le faire soi-même pendant qu'il le montre. */
.souris {
  position: absolute; z-index: 6; pointer-events: none;
  transform: translate(-3px, -4px);
  opacity: 0; transition: opacity .35s ease;
}
.souris.vu { opacity: 1; }
/* La pointe d'une flèche est à son coin haut-gauche ; le bout d'un index
   est au milieu de la main. Les deux doivent tomber sur le pouce du
   rail, donc ils ne se décalent pas de la même façon — sans ça, la main
   débordait du tableau et se faisait couper. */
.souris.doigt { transform: translate(-10px, -3px); }
.so-f { width: 17px; height: 21px; flex: none;
        filter: drop-shadow(0 3px 6px rgba(22,21,15,.4)); }
/* La main est sombre, cernée de blanc.

   Elle était ocre — et elle vient se poser sur le pouce du rail, qui
   est ocre lui aussi au moment où on l'attrape. Les deux se confondaient
   exactement à l'instant qui compte : celui où il faut voir QUI tient
   QUOI. Le curseur de l'ordinateur, lui, est blanc cerné de noir depuis
   toujours, pour la même raison — il doit se lire sur n'importe quel
   fond. Celle-ci fait l'inverse, et tient le même pari. */
.so-m { width: 21px; height: 23px; flex: none; color: #16150F;
        filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff)
                drop-shadow(0 0 1px #fff) drop-shadow(0 3px 6px rgba(22,21,15,.35)); }
/* L'étiquette pend à GAUCHE du curseur, pas à droite.

   Le rail est collé au bord droit du tableau — c'est sa place — et le
   tableau coupe ce qui dépasse. Une étiquette posée à droite du curseur
   était donc invisible : elle existait, elle était correcte, et personne
   ne la voyait jamais. */
.so-t {
  position: absolute; right: 24px; top: 10px; white-space: nowrap;
  padding: 6px 11px; border-radius: 16px;
  font-size: 11.5px; font-weight: 600; color: var(--t-1);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 10px 24px -12px rgba(22,21,15,.5);
}
/* Le clic. Un anneau qui part du point touché — c'est le seul dessin qui
   se lit comme « ça vient d'appuyer là » sans une ligne de texte. */
.souris.clique .so-f, .souris.clique .so-m { transform: scale(.88); }
.souris.clique::before {
  content: ""; position: absolute; left: -7px; top: -7px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--or);
  animation: so-onde .5s ease-out 1;
}
@keyframes so-onde {
  0%   { transform: scale(.35); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Le curseur n'a pas de sens sur un téléphone où le texte du rail est à
   ras du bord : on décale l'étiquette à gauche de la main. */
@media (max-width: 560px) {
  .so-t { font-size: 11px; padding: 5px 9px; right: 26px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rail { background: rgba(255,255,255,.07); }
  :root:not([data-theme="light"]) .rail > i { background: rgba(255,255,255,.28); }
  :root:not([data-theme="light"]) .rail:hover > i { background: rgba(255,255,255,.44); }
  :root:not([data-theme="light"]) .so-t {
    background: rgba(28,28,26,.94); border-color: rgba(255,255,255,.2); }
}
:root[data-theme="dark"] .rail { background: rgba(255,255,255,.07); }
:root[data-theme="dark"] .rail > i { background: rgba(255,255,255,.28); }
:root[data-theme="dark"] .rail:hover > i { background: rgba(255,255,255,.44); }
:root[data-theme="dark"] .so-t {
  background: rgba(28,28,26,.94); border-color: rgba(255,255,255,.2); }

/* La veille, quand elle sert de carte, prend EXACTEMENT les mesures de
   la carte d'en face.

   Elle était plus étroite (620 px bornés) et moins rembourrée (15 px au
   lieu de 22). Conséquence mesurée : le bouton vert faisait 330 px à
   x=14 d'un côté, 312 px à x=23 de l'autre. Dix-huit pixels de largeur
   et neuf de décalage — assez pour que le doigt doive se replacer entre
   les deux essais, et pour qu'on doute qu'il s'agisse du même bouton.

   La borne de largeur reste, mais sur le TEXTE : c'est lui qui a besoin
   d'une longueur de ligne lisible, pas la carte. */
.zone-ex > .veille {
  max-width: none; margin-left: 0; margin-right: 0;
  padding-left: 22px; padding-right: 22px;
}
.zone-ex > .veille .ve-d, .zone-ex > .veille .ve-e3 { max-width: 62ch; }

/* ===========================================================
   LE TÉLÉPHONE

   Ce bloc est le dernier du fichier, et il doit le rester : à
   spécificité égale, c'est la dernière règle écrite qui gagne.
   Placé plus haut, il était annulé par les règles de base sans
   que rien ne le signale.
   =========================================================== */
/* LA BANDE DE DROITE — elle doit rester ici, après tout le reste.

   Ce sont DEUX défilements différents au même endroit de l'écran. Le
   rail fait défiler la LISTE ; la bande est le seul endroit où poser le
   doigt pour faire défiler LA PAGE — partout ailleurs sur le tableau, le
   doigt est happé par la liste et la page paraît bloquée.

/* ===========================================================
   LES CARTES D'EXEMPLES — côté client

   Une carte se lit sans qu'on clique : ce qui arrive, ce que Nown
   fait, ce qui en sort. La couleur dit la conduite, et c'est la
   même couleur que l'état de la ligne dans le tableau — vert il le
   fait seul, ocre il prépare et vous validez, rouge il s'arrête.
   On apprend le code une fois, il sert partout.
   =========================================================== */
.cartes-zone { margin-top: 6px; }

/* La seule consigne de l'écran : la couleur réservée à ce qui demande
   une action, comme la pastille de la bascule d'exemple. */
.cliquez {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; border-radius: 16px; margin-bottom: 14px;
  background: var(--chaud-d); color: var(--t-1);
  border: 1px solid rgba(179, 63, 28, .28);
  box-shadow: 0 10px 24px -18px rgba(179, 63, 28, .55);
  font-size: 14px; line-height: 1.5;
}
.cliquez b { color: var(--chaud); font-weight: 650; }
.cq-i { flex: none; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; background: var(--chaud); color: var(--p-1); }
.cq-i svg { width: 17px; height: 17px; }

/* La légende des trois conduites. */
.issues { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0 2px 22px; font-size: 12.5px; color: var(--t-2); }
/* Un paragraphe, pas une rangée : en flex, le nom et sa phrase
   devenaient deux colonnes sur téléphone, et la phrase partait à
   droite, décollée de ce qu'elle explique. */
.is { display: block; line-height: 1.45; }
.is i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.is b { font-weight: 650; color: var(--t-1); margin-right: 5px; }
.is > span { color: var(--t-3); }
.is-seul i { background: var(--vert); }
.is-accord i { background: var(--or); }
.is-vous i { background: var(--chaud); }
.is-note { color: var(--t-3); font-style: italic; }

.famille { margin-bottom: 26px; }
.fa-t {
  display: flex; align-items: center; gap: 12px; margin: 0 2px 12px;
  font-family: var(--m); font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-2);
}
.fa-t::after { content: ""; flex: 1; height: 1px; background: var(--p-3); }

.cartes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }

.carte-ex {
  --c: var(--or); --cd: var(--or-d);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  text-align: left; padding: 17px 18px 15px; border-radius: 18px; cursor: pointer;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .85); border-top-color: #fff;
  box-shadow: var(--relief), inset 0 1px 0 rgba(255, 255, 255, .9);
  color: var(--t-1); font-family: var(--f);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.carte-ex.i-seul { --c: var(--vert); --cd: var(--vert-d); }
.carte-ex.i-vous { --c: var(--chaud); --cd: var(--chaud-d); }
.carte-ex:hover { transform: translateY(-3px); box-shadow: var(--relief-haut), inset 0 1px 0 #fff; }
.carte-ex:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.carte-ex.on { border-color: var(--c); }
/* Le liseré du haut : la couleur de la conduite, sans tout peindre. */
.carte-ex::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0;
  height: 3px; border-radius: 0 0 3px 3px; background: var(--c); opacity: .85; }

.ce-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ce-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cd); color: var(--c); flex: none; }
.ce-i svg { width: 22px; height: 22px; }
.ce-issue { font-family: var(--m); font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c); background: var(--cd);
  padding: 4px 9px; border-radius: 20px; white-space: nowrap; }
.ce-t { font-size: 16px; font-weight: 650; letter-spacing: -.012em; line-height: 1.25; }

.ce-flux { display: flex; flex-direction: column; gap: 0; position: relative; }
/* Trois étapes numérotées et reliées par un trait : on lit de haut en bas. */
.cf { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px;
  align-items: start; padding: 0 0 10px; font-size: 13.5px; line-height: 1.4; color: var(--t-1); }
.cf::before { content: ""; position: absolute; left: 10.5px; top: 22px; bottom: 0; width: 1px; background: var(--p-3); }
.cf.fin::before { display: none; }
.cf-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--m); font-size: 10.5px; font-weight: 700; background: var(--p-2); color: var(--t-2); }
.cf i { display: block; font-style: normal; font-family: var(--m); font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--t-3); margin-bottom: 1px; }
.cf.fin { padding: 0; }
.cf.fin > span:last-child { background: var(--cd); border-radius: 10px; padding: 7px 10px;
  font-weight: 650; color: var(--t-1); }
.cf.fin i { color: var(--c); }
.cf.fin .cf-n { background: var(--c); color: var(--p-1); }

.ce-go { margin-top: auto; padding-top: 4px; font-size: 12.5px; font-weight: 650; color: var(--c); }
.ce-go span { display: inline-block; transition: transform .16s ease; }
.carte-ex:hover .ce-go span { transform: translateX(4px); }

/* ---- ce qui tient tout ensemble : deux cartes larges ---- */
.tenir { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  margin: 6px 0 22px; }
.tenir-c {
  padding: 20px 22px; border-radius: 20px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(24px) saturate(2); backdrop-filter: blur(24px) saturate(2);
  border: 1px solid rgba(255, 255, 255, .8); border-top-color: #fff;
  box-shadow: var(--relief), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.tc-h { display: flex; align-items: center; gap: 11px; font-size: 16px; line-height: 1.3; }
.tc-h b { font-weight: 650; letter-spacing: -.012em; }
.tc-i { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--bleu-d); color: var(--bleu); }
.tc-i svg { width: 20px; height: 20px; }
.dossier-c .tc-i { background: var(--vert-d); color: var(--vert); }
.tc-x { font-size: 13.5px; line-height: 1.6; color: var(--t-2); margin: 12px 0 14px; }
.tc-x b { color: var(--t-1); font-weight: 600; }

/* La frise du dossier : un agenda qu'on lit de haut en bas. */
.frise { list-style: none; margin: 0; padding: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 93px; top: 12px; bottom: 12px;
  width: 1px; background: var(--p-3); }
.frise li { position: relative; display: grid; grid-template-columns: 78px 30px minmax(0, 1fr);
  gap: 0 8px; align-items: center; padding: 5px 0; font-size: 12.5px; line-height: 1.4; }
.fr-q { font-family: var(--m); font-size: 10px; color: var(--t-3); text-align: right; }
.fr-i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--p-1); border: 1px solid var(--p-3); color: var(--t-2); position: relative; z-index: 1; }
.fr-i svg { width: 15px; height: 15px; }
.fr-x { color: var(--t-2); padding: 4px 8px; border-radius: 8px; }
.frise li.maintenant .fr-i { background: var(--vert); border-color: var(--vert); color: var(--p-1); }
.frise li.maintenant .fr-x { background: var(--vert-d); color: var(--t-1); font-weight: 600; }
.frise li.maintenant .fr-q { color: var(--vert); font-weight: 700; }

/* Deux portes, un dossier. */
.converge { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  align-items: center; gap: 8px 10px; margin: 16px 0 4px; }
.cv-s, .cv-d { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  background: var(--p-1); border: 1px solid var(--p-3); font-size: 12px; font-weight: 600;
  color: var(--t-1); line-height: 1.25; }
.cv-s svg, .cv-d svg { width: 18px; height: 18px; flex: none; color: var(--bleu); }
.cv-s:nth-child(1) { grid-column: 1; grid-row: 1; }
.cv-s:nth-child(2) { grid-column: 1; grid-row: 2; }
.cv-f { grid-column: 2; grid-row: 1 / 3; height: 52px; position: relative; }
/* Deux traits qui se rejoignent, puis une pointe : dessinés en CSS, ils
   restent nets à toutes les tailles. */
.cv-f::before { content: ""; position: absolute; left: 0; right: 8px; top: 25%; bottom: 25%;
  border: 1.5px solid var(--bleu); border-left: 0; border-radius: 0 14px 14px 0; opacity: .55; }
.cv-f::after { content: ""; position: absolute; right: 0; top: 50%; width: 9px; height: 9px;
  border-top: 1.5px solid var(--bleu); border-right: 1.5px solid var(--bleu);
  transform: translateY(-50%) rotate(45deg); opacity: .75; }
.cv-d { grid-column: 3; grid-row: 1 / 3; background: var(--vert-d); border-color: rgba(46,107,79,.3); }
.cv-d svg { color: var(--vert); }

.a-brancher { margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--bleu-d); border: 1px solid rgba(36, 80, 110, .18); }
.ab-t { font-family: var(--m); font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bleu); margin-bottom: 8px; }
.a-brancher ol { margin: 0; padding: 0; list-style: none; counter-reset: br; display: grid; gap: 7px; }
.a-brancher li { counter-increment: br; display: grid; grid-template-columns: 24px minmax(0, 1fr);
  gap: 1px 8px; font-size: 13px; line-height: 1.35; }
.a-brancher li::before { content: counter(br); grid-row: 1 / 3; width: 22px; height: 22px;
  border-radius: 50%; display: grid; place-items: center; background: var(--bleu); color: var(--p-1);
  font-family: var(--m); font-size: 11px; font-weight: 700; }
.a-brancher li b { font-weight: 650; color: var(--t-1); }
.a-brancher li span { color: var(--t-2); font-size: 12.5px; }
.ab-f { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--t-2); }

/* ---- le formulaire du site, dans sa fenêtre de navigateur ---- */
.compose.formulaire { padding: 0; overflow: hidden; }
.fo-barre { display: flex; align-items: center; gap: 12px; padding: 9px 14px;
  background: var(--p-2); border-bottom: 1px solid var(--p-3); }
.fo-pts { display: flex; gap: 5px; }
.fo-pts i { width: 9px; height: 9px; border-radius: 50%; background: var(--p-3); }
.fo-url { flex: 1; min-width: 0; font-family: var(--m); font-size: 11px; color: var(--t-2);
  background: var(--p-1); border-radius: 8px; padding: 4px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-corps { padding: 16px 18px 4px; }
.fo-t { font-size: 17px; font-weight: 650; margin-bottom: 10px; }
.fo-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 14px; }
.compose.formulaire .envoi { padding: 0 18px 16px; }

/* ---- la pièce chiffrée : l'avenant, le devis ---- */
.piece-ch { margin: 14px 0; padding: 16px 18px; border-radius: 16px; background: var(--p-1);
  border: 1px solid var(--p-3); box-shadow: var(--ombre); }
.pz-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pz-t { font-size: 15px; font-weight: 650; }
.pz-n { font-family: var(--m); font-size: 11px; color: var(--t-2); background: var(--p-2);
  padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.pz-tab { display: flex; flex-direction: column; }
.pz-l { display: grid; grid-template-columns: minmax(0, 1fr) 64px 84px 92px; gap: 10px;
  align-items: baseline; padding: 8px 4px; border-top: 1px solid var(--p-2);
  font-size: 13px; line-height: 1.4; }
.pz-l.pz-tete { border-top: 0; padding-top: 0; font-family: var(--m); font-size: 9.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--t-3); }
.pz-q, .pz-pu, .pz-tot { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pz-tot { font-weight: 650; }
.pz-d i { display: block; font-style: normal; font-size: 11.5px; color: var(--t-3); }
.pz-lot { padding: 10px 4px 2px; font-family: var(--m); font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); }
.pz-l.douteuse { background: linear-gradient(90deg, var(--or-d), transparent 70%);
  border-radius: 8px; box-shadow: inset 3px 0 0 var(--or); }
.pz-v { display: block; font-style: normal; font-size: 11.5px; color: var(--or); font-weight: 600; margin-top: 2px; }
.pz-totaux { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px;
  margin-top: 8px; padding-top: 10px; border-top: 1.5px solid var(--t-1); font-size: 13px;
  color: var(--t-2); font-variant-numeric: tabular-nums; }
.pz-totaux b { color: var(--t-1); margin-left: 4px; }
.pz-totaux .ttc { font-size: 15px; color: var(--t-1); }
.pz-avert { margin-top: 10px; padding: 8px 11px; border-radius: 10px; font-size: 12.5px;
  line-height: 1.45; background: var(--or-d); color: var(--t-1); }
.pz-manque { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
  font-size: 12px; color: var(--t-2); }
.pz-manque b { width: 100%; font-weight: 650; color: var(--t-1); font-size: 12.5px; }
.pz-manque span { padding: 3px 9px; border-radius: 20px; background: var(--p-2); }
.pz-src { margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: var(--t-3); }
.pz-src b { color: var(--t-2); }

/* ---- les réserves ---- */
.reserves-l, .fn-res { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.rl-t, .fn-st { font-family: var(--m); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--t-3); margin-bottom: 2px; }
.rl-x { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 12px; background: var(--p-1); border: 1px solid var(--p-3);
  font-size: 13px; line-height: 1.4; }
.rl-x.levee { opacity: .6; }
.rl-x.levee .rl-q b { text-decoration: line-through; text-decoration-color: var(--t-3); }
.rl-g { font-family: var(--m); font-size: 9px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 20px;
  background: var(--or-d); color: var(--or); }
.rl-g.maj { background: var(--chaud-d); color: var(--chaud); }
.rl-q i { display: block; font-style: normal; font-size: 11.5px; color: var(--t-3); }
.rl-e { font-size: 12px; color: var(--t-3); white-space: nowrap; }

/* ---- le client accepte l'avenant ---- */
.signature { margin: 14px 0; padding: 15px 17px; border-radius: 16px;
  background: var(--vert-d); border: 1px solid rgba(46, 107, 79, .28); }
.sg-t { font-weight: 650; font-size: 14.5px; color: var(--vert); }
.sg-x { font-size: 13px; line-height: 1.5; color: var(--t-2); margin: 4px 0 11px; }

/* ---- l'argent du chantier, dans la fiche ---- */
.fin-ch { margin: 18px 0; padding: 18px 20px; border-radius: 20px;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(22px) saturate(1.9); backdrop-filter: blur(22px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, .85); border-top-color: #fff;
  box-shadow: var(--relief), inset 0 1px 0 rgba(255, 255, 255, .9); scroll-margin-top: 96px; }
.fn-h { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; font-size: 16px; }
.fn-h b { display: block; font-weight: 650; letter-spacing: -.012em; }
.fn-s { display: block; font-size: 12.5px; color: var(--t-3); }
.fn-i { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--or-d); color: var(--or); }
.fn-i svg { width: 20px; height: 20px; }
.fn-g { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fn-c { display: flex; flex-direction: column; gap: 3px; padding: 13px 14px; border-radius: 14px;
  background: var(--p-1); border: 1px solid var(--p-3); }
.fn-k { font-family: var(--m); font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--t-3); }
.fn-v { font-size: 18px; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.fn-x { font-size: 12px; line-height: 1.4; color: var(--t-2); }
.fn-c .act { margin-top: 6px; align-self: flex-start; }
.fn-badge { align-self: flex-start; font-family: var(--m); font-size: 9.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
  background: var(--p-2); color: var(--t-2); }
.ret-a_reclamer { border-color: var(--or); box-shadow: inset 0 0 0 1px var(--or); }
.ret-a_reclamer .fn-badge { background: var(--or); color: var(--p-1); }
.ret-bloquee .fn-badge { background: var(--chaud-d); color: var(--chaud); }
.ret-a_venir .fn-badge { background: var(--bleu-d); color: var(--bleu); }
.ret-reclamee .fn-badge { background: var(--vert-d); color: var(--vert); }
.ret-pret { border-color: var(--or); }
.ret-pret .fn-badge { background: var(--or-d); color: var(--or); }
.act.vert { background: var(--vert); border-color: var(--vert); color: var(--p-1); font-weight: 650; }
.act.vert:hover { filter: brightness(1.08); }

.fn-doe { margin-top: 12px; }
.doe-b { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer;
  padding: 11px 13px; border-radius: 14px; background: var(--p-1); border: 1px solid var(--p-3);
  font-family: var(--f); color: var(--t-1); }
.doe-b:hover { border-color: var(--t-3); }
.doe-i { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--bleu-d); color: var(--bleu); }
.doe-i svg { width: 17px; height: 17px; }
.doe-x { flex: 1; min-width: 0; }
.doe-x b { display: block; font-size: 14px; font-weight: 650; }
.doe-x span { font-size: 12px; color: var(--t-3); }
.doe-f { color: var(--t-3); font-size: 12px; }
.doe-l { margin-top: 8px; padding: 6px 14px 10px; border-left: 2px solid var(--bleu-d); }
.doe-s { padding: 6px 0; }
.doe-st { font-size: 12.5px; font-weight: 650; color: var(--t-1); margin-bottom: 3px; }
.doe-st span { font-family: var(--m); font-size: 10px; color: var(--t-3); margin-left: 4px; }
.doe-e { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; line-height: 1.4; padding: 2px 0; }
.doe-e b { font-weight: 600; color: var(--t-2); }
.doe-e span { color: var(--t-3); }
.doe-e.vide { color: var(--t-3); font-style: italic; }
.fn-n { margin: 12px 2px 0; font-size: 12px; line-height: 1.55; color: var(--t-3); }
.fn-n b { color: var(--t-2); }

/* les nouveaux modules, dans le tableau */
.mod.supplement { color: var(--chaud); border-color: rgba(179, 63, 28, .3); }
.mod.chiffrage { color: var(--bleu); border-color: rgba(36, 80, 110, .3); }
.mod.reception { color: var(--vert); border-color: rgba(46, 107, 79, .3); }
.af .mod.supplement { background: var(--chaud-d); }
.af .mod.chiffrage { background: var(--bleu-d); }
.af .mod.reception { background: var(--vert-d); }

/* Un téléphone : la pièce chiffrée passe sur deux lignes — la
   désignation en entier, puis « quantité × prix = total ». Quatre
   colonnes dans 300 px écrasaient la désignation à trois mots par
   ligne. */
@media (max-width: 560px) {
  .pz-l { grid-template-columns: auto auto minmax(0, 1fr); gap: 2px 8px; }
  .pz-l .pz-d { grid-column: 1 / -1; }
  .pz-l .pz-q { text-align: left; color: var(--t-3); }
  .pz-l .pz-pu { text-align: left; color: var(--t-3); }
  .pz-l .pz-pu::before { content: "× "; }
  .pz-l .pz-tot::before { content: "= "; font-weight: 400; color: var(--t-3); }
  .pz-l.pz-tete { display: none; }
  .piece-ch { padding: 14px 13px; }
  .cliquez { font-size: 13.5px; padding: 12px 13px; }
  .issues { flex-direction: column; align-items: flex-start; gap: 5px; }
  .carte-ex { padding: 15px 15px 13px; gap: 9px; }
  .ce-i { width: 36px; height: 36px; }
  .ce-t { font-size: 15.5px; }
  .cf { font-size: 13px; }
  .frise::before { left: 79px; }
  .frise li { grid-template-columns: 64px 30px minmax(0, 1fr); }
  .tenir-c { padding: 17px 15px; }
  .cv-s, .cv-d { font-size: 11.5px; padding: 7px 9px; }
  .rl-x { grid-template-columns: auto minmax(0, 1fr); }
  .rl-x > :last-child { grid-column: 1 / -1; justify-self: start; }
}

/* ---- l'essai gratuit ---- */
.cq-essai { display: inline-block; margin-top: 6px; font-weight: 650; color: var(--vert); }
.essai { margin: 8px 0 24px; padding: 24px; border-radius: 22px; scroll-margin-top: 96px;
  background: linear-gradient(160deg, var(--vert-d), rgba(255,255,255,.7) 55%);
  border: 1px solid rgba(46,107,79,.3); box-shadow: var(--relief); }
.es-badge { display: inline-block; font-family: var(--m); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: var(--vert); color: var(--p-1);
  padding: 4px 11px; border-radius: 20px; }
.es-h h3 { font-size: 21px; letter-spacing: -.015em; margin: 10px 0 6px; text-wrap: balance; }
.es-h p { font-size: 14px; line-height: 1.6; color: var(--t-2); margin: 0 0 16px; max-width: 70ch; }
.es-h b, .es-v b, .es-pied b { color: var(--t-1); }
.es-voies { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.es-v { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 18px 18px 16px;
  border-radius: 18px; background: var(--p-1); border: 1px solid var(--p-3); box-shadow: var(--ombre); }
.es-n { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--m); font-weight: 700; font-size: 12px;
  background: var(--vert-d); color: var(--vert); }
.es-v > b { font-size: 16px; font-weight: 650; padding-right: 30px; }
.es-v p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--t-2); }
.es-adr { align-self: flex-start; font-family: var(--m); font-size: 13px; padding: 6px 11px;
  border-radius: 9px; background: var(--p-2); color: var(--t-1); }
.es-v ol, .es-ok { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--t-2);
  display: grid; gap: 4px; }
.es-ok { list-style: none; padding-left: 0; }
.es-ok li::before { content: "✓ "; color: var(--vert); font-weight: 700; }
.es-x { font-size: 12.5px; color: var(--vert); font-weight: 600; }
.es-go { margin-top: auto; text-align: center; text-decoration: none; }
.es-connect { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 14px; background: var(--bleu); color: var(--p-1);
  border: 0; font-family: var(--f); box-shadow: 0 10px 22px -14px rgba(36,80,110,.8); }
.es-connect:hover { filter: brightness(1.1); }
.es-v .es-connect b { display: block; font-size: 15px; color: var(--p-1); }
.es-connect span span { font-size: 12px; opacity: .85; }
.es-ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); flex: none; }
.es-ci svg { width: 19px; height: 19px; }
.es-choix { display: grid; gap: 6px; }
.es-f { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--p-3); background: var(--p-0); text-decoration: none; color: var(--t-1); font-size: 13.5px; }
.es-f:hover { border-color: var(--bleu); }
.es-f span { color: var(--t-3); font-size: 12px; }
.es-note { font-size: 12px !important; color: var(--t-3) !important; }
.es-pied { margin: 16px 2px 0; font-size: 13.5px; color: var(--t-2); }
@media (max-width: 560px) { .essai { padding: 18px 14px; } .es-h h3 { font-size: 18.5px; } }

/* ---- la connexion ---- */
.connexion { display: grid; justify-items: center; gap: 22px; padding: 56px 0 30px; }
.cx-carte { width: min(100%, 440px); padding: 30px 28px 24px; border-radius: 24px;
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(26px) saturate(2); backdrop-filter: blur(26px) saturate(2);
  border: 1px solid rgba(255,255,255,.9); box-shadow: var(--relief-haut), inset 0 1px 0 #fff; }
.cx-i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--vert-d); color: var(--vert); }
.cx-i svg { width: 24px; height: 24px; }
.cx-carte h1 { font-size: 26px; letter-spacing: -.02em; margin: 14px 0 6px; }
.cx-s { font-size: 14px; line-height: 1.55; color: var(--t-2); margin: 0 0 18px; }
.cx-s b, .cx-pied b, .cx-pts b { color: var(--t-1); }
#cx-form { display: flex; flex-direction: column; gap: 6px; }
#cx-form label { font-size: 12.5px; font-weight: 650; color: var(--t-2); margin-top: 6px; }
#cx-form input { font: 15px var(--f); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--p-3);
  background: var(--p-1); color: var(--t-1); }
#cx-form input:focus { outline: 2px solid var(--vert); outline-offset: 1px; border-color: var(--vert); }
#cx-form .gros { margin-top: 10px; }
.cx-err { min-height: 18px; margin: 4px 0 0; font-size: 13px; color: var(--chaud); font-weight: 600; }
.cx-pied { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--p-3); font-size: 13px;
  line-height: 1.5; color: var(--t-2); }
.cx-pied a { color: var(--vert); font-weight: 650; }
.cx-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: min(100%, 440px);
  font-size: 13.5px; color: var(--t-2); }
.cx-pts li::before { content: "✓ "; color: var(--vert); font-weight: 700; }
.ong.sortir { opacity: .75; }
a.ong.exemples-l { text-decoration: none; }
/* « Exemples » reste visible sur téléphone : c'est le chemin vers les
   cas réels, il ne doit jamais disparaître. Pour lui faire la place, c'est
   le badge du nom de l'entreprise qui cède sous 460 px. */
@media (max-width: 460px) {
  .logo .marque { display: none !important; }
  a.ong.exemples-l .pt { display: none; }
}
.cx-exemples { width: min(100%, 440px); display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: 16px; background: var(--bleu); color: var(--p-1); text-decoration: none; box-shadow: var(--relief); }
.cx-exemples:hover { filter: brightness(1.1); }
.cx-exemples b { display: block; font-size: 15px; }
.cx-exemples span span { font-size: 12.5px; opacity: .85; }
.cx-exemples > span:nth-child(2) { flex: 1; }
.cx-ei { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.18); flex: none; }
.cx-ei svg { width: 19px; height: 19px; }
.cx-creer { background: linear-gradient(160deg, var(--vert-d), rgba(255,255,255,.85) 60%); border-color: rgba(46,107,79,.3); }
.cx-creer h2 { font-size: 20px; letter-spacing: -.015em; margin: 12px 0 6px; text-wrap: balance; }
#cx-creer { display: flex; flex-direction: column; gap: 6px; }
#cx-creer label { font-size: 12.5px; font-weight: 650; color: var(--t-2); }
#cx-creer input { font: 15px var(--f); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--p-3); background: var(--p-1); }
#cx-creer input:focus { outline: 2px solid var(--vert); outline-offset: 1px; }
.cx-pret .cx-k { margin: 14px 0 6px; font-family: var(--m); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-3); }
.cx-pret .es-copie.code { background: var(--bleu); }
.cx-pret .es-copie.fait { background: var(--t-1); }
.cx-etapes { margin: 16px 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--t-2); display: grid; gap: 4px; }
.cx-etapes b { color: var(--t-1); }
.logo .marque { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
@media (max-width: 460px) { .logo .marque { max-width: 9ch; } .ong.sortir { display: none; } }
.pied { flex-wrap: wrap; gap: 8px 18px; }
.ong.sortir:hover { opacity: 1; }

/* ---- l'adresse à copier ---- */
.es-copie { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%;
  cursor: copy; }
.es-copie .gr-t { font-family: var(--m); font-size: 15px; word-break: break-all; }
.es-copie .gr-s { font-size: 12px; opacity: .9; }
.es-copie.fait { background: var(--t-1); }

/* Ce que Nown a fait : deux lignes dans le tableau, le texte entier
   est dans le dossier. Une ligne de quatre lignes poussait la suivante
   hors de la fenêtre. */
.ligne .fait .fq { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ligne .fait > b { display: block; }

/* ===========================================================
   L'ENTRÉE, EN GRAND — ordinateur seulement

   Le bloc d'accueil avait été dessiné pour tenir sur un téléphone, et
   il gardait cette taille sur un écran de 1400 px : deux cartes de
   700 px perdues au milieu, un texte de 12,5 px qu'on lit en se
   penchant. La page a 1016 px de contenu, elle n'en utilisait que les
   deux tiers.

   Ce qui grossit, et dans quel ordre — c'est la hiérarchie, pas une
   mise à l'échelle uniforme :
     · les deux portes vont à 960 px : ce sont elles qu'on vient
       toucher, elles prennent presque toute la page ;
     · la note et la promesse s'arrêtent à 840 px, en retrait des
       portes : elles se lisent, elles ne se cliquent pas. Elles
       étaient à 620 et 640 px — deux largeurs presque égales, ce qui
       se voyait comme un défaut d'alignement ; elles sont désormais
       exactement les mêmes.

   Rien ne change en dessous de 1000 px : le téléphone et la tablette
   gardent leur mise en page au pixel près. */
@media (min-width: 1000px) {
  .entree { padding: 62px 0 48px; }
  .entree .lede { font-size: 18.5px; max-width: 58ch; margin-bottom: 44px; }

  .portes { max-width: 960px; gap: 20px;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
  .porte { padding: 30px 32px; border-radius: 20px; }
  /* L'échelle des textes de l'accueil, sur ordinateur : 22 / 17,5 /
     16 / 11,5. Le titre de la page et son sous-titre n'en font pas
     partie — ils gardent leur taille, et c'est ce qui laisse le reste
     grossir sans que la hiérarchie se referme. */
  .porte b { font-size: 22px; margin-bottom: 9px; }
  .porte span { font-size: 17.5px; line-height: 1.5; }
  .porte .role {
    font-size: 11.5px; padding: 4px 11px; border-radius: 6px; margin-bottom: 14px;
  }

  /* Le texte de la note passe à gauche. Centré sur 840 px, il donnait
     cinq lignes aux deux bords déchiquetés, juste au-dessus d'une
     promesse alignée à gauche : deux blocs de même largeur qui ne
     s'accordaient pas. Aligné, il se lit, et les deux se répondent. */
  .note-demo {
    max-width: 840px; margin-top: 42px; font-size: 16px; line-height: 1.62;
    padding: 24px 30px; border-radius: 14px; text-align: left;
  }

  .promesse {
    max-width: 840px; margin-top: 32px; gap: 9px;
    padding: 26px 30px; border-radius: 22px;
  }
  .promesse b { font-size: 22px; }
  .promesse span { font-size: 17.5px; line-height: 1.5; }
  .promesse .franc { font-size: 16px; margin-top: 7px; padding-top: 13px; }
}

   Elle coûte 40 px de largeur sur un téléphone. C'est cher, et c'est
   moins cher qu'un visiteur qui croit le site cassé. */
@media (max-width: 760px) {
  .zone-tableau .tableau .corps { margin-right: 40px; }
  .deja .apercu .corps { margin-right: 0; }
  .zone-tableau .tableau::before {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
    border-left: 1px solid var(--p-2); pointer-events: none; z-index: 1;
    background: var(--p-0);
  }
  /* Le rail se pose juste à GAUCHE de la bande : le doigt qui tire la
     liste et celui qui pousse la page se touchent, et on comprend en un
     geste qu'ils font deux choses différentes. */
  .zone-tableau .rail { right: 46px; }
}

@media (max-width: 560px) {
  /* Quatre chiffres sur une rangée de 360 px : on serre, on ne coupe pas. */
  .compteurs { gap: 6px; }
  .kpi { padding: 8px 7px; border-radius: 9px; }
  .kpi .n { font-size: 17px; }
  .kpi .k { font-size: 7.5px; letter-spacing: .02em; }
  .kpi { border-radius: 13px; }
  /* La bascule sur un téléphone : les libellés passent à leur forme
     courte. « Attendent votre décision » fait 155 px à lui seul — les
     deux côtés ne tenaient pas dans 320 px, et le nombre se faisait
     couper. « À décider » dit la même chose en trois mots. */
  .cote .nom .long { display: none; }
  .cote .nom .court { display: inline; }
  /* Un peu d'air sur téléphone aussi : 9 px de chaque côté au lieu de 7.
     Le sélecteur passe de 176 à 194 px dans un tableau qui en fait 288
     au pire cas — la place existait, elle n'était pas prise. */
  .cote { padding: 6px 9px; font-size: 10px; gap: 4px; }
  /* Le compteur quitte le téléphone. Trois côtés sur un écran de 320 px
     ne laissent pas la place à deux nombres en plus des trois libellés,
     et le nombre n'est qu'un renfort : le tableau qui s'ouvre dessous le
     dit déjà. Il reste sur ordinateur, où la place existe. */
  .bascule:not(.bascule-ex) .cote .nb { display: none; }
  .mode-emploi { font-size: 12px; margin: 12px 0 0; text-align: left; }
  .galet { padding: 15px 17px; gap: 11px; }
  .galet .gtxt b { font-size: 14px; }
  .galet .gtxt > span { font-size: 11px; }

  /* Refonte doit tenir dans l'écran, sans faire défiler. */
  .refonte { padding-top: 16px; }
  .refonte h2 { font-size: 24px; }
  .refonte .sous { font-size: 13.5px; }
  .rf-tete { margin-bottom: 16px; }
  .rf-pas { gap: 7px; margin-bottom: 14px; }
  .rf-pas li { padding: 13px 14px; gap: 11px; }
  .rf-t b { font-size: 13.5px; }
  .rf-t span { font-size: 12px; }
  .rf-fin { padding: 18px 0 0; gap: 8px; }
  .rf-fin b { font-size: 16px; }
  .rf-ecrire { padding: 15px 16px; font-size: 12.5px; gap: 10px; }

  .legal { padding-top: 16px; }
  .legal h2 { font-size: 24px; }
  .gros-retour { padding: 16px 17px; gap: 12px; }
  .gros-retour .rtxt b { font-size: 15px; }
  .bloc-legal p { font-size: 12.5px; }
  .pied { margin-top: 32px; font-size: 11px; }
  .promesse { padding: 15px 16px; margin-top: 22px; }
  .promesse b { font-size: 15.5px; }

  .donnees { padding-top: 16px; }
  .donnees h2 { font-size: 24px; }
  .bloc-don h3 { font-size: 14px; }
  .bloc-don p { font-size: 12.5px; }
  .vers-donnees, .vers-boite { padding: 12px 13px; gap: 10px; }
  .vers-boite .vd b { font-size: 12.5px; }
  /* Sur un téléphone, Gmail passe l'expéditeur au-dessus et garde
     l'objet coupé sur une ligne. On fait pareil. */
  .ib-l { grid-template-columns: 12px minmax(0, 1fr) auto; gap: 9px; padding: 11px 13px; }
  .ib-de { grid-column: 2; }
  .ib-q { grid-column: 3; grid-row: 1; }
  .ib-o { grid-column: 2 / -1; grid-row: 2; font-size: 12.5px; }
  .ib-l .etat { grid-column: 2 / -1; grid-row: 3; justify-self: start; margin-top: 3px; }
  .ib-tete { padding: 10px 13px; }
  .vers-donnees .vd b { font-size: 12.5px; }
  .liens-ovh a { font-size: 11.5px; padding: 7px 11px; }

  .styles { padding-top: 16px; }
  .styles h2 { font-size: 24px; }
  .ton-unique { padding: 14px 15px; margin-bottom: 22px; }
  .qst { padding: 13px 14px; }
  .qst h4 { font-size: 14px; }
  .qst .rep { font-size: 12px; padding: 11px 12px; }

  .doc { padding: 6px 10px 6px 8px; font-size: 11px; }
  .doc .ic { width: 13px; height: 13px; }
  .doc-page .rf-tete { margin-bottom: 14px; }
  .niveaux { gap: 8px; }
  .niv { padding: 13px 14px; }
  .niv h3 { font-size: 13.5px; margin-bottom: 7px; }
  .niv li { font-size: 12px; }
}

/* À 320 px, avec « Exemples » toujours là, la barre dépassait de
   quelques pixels : on retire les pastilles et on serre les capsules.
   Mesuré par essais/essai-responsive.js. */
@media (max-width: 340px) {
  .barre { padding-left: 8px; gap: 4px; }
  .logo { font-size: 13.5px; }
  .onglets { gap: 3px; }
  .ong { padding: 6px 7px; font-size: 11px; gap: 3px; }
  .ong .pt { display: none; }
}

/* ===========================================================
   L'ÉCRAN « VOUS ÊTES LE CLIENT » — LA CLARTÉ DES EXEMPLES

   Même esprit que nown.fr/exemples : le texte se lit du premier
   coup. Police à taille optique, encre presque noire, corps de
   15 à 17 px, étiquettes lisibles (plus de 9 px en police machine),
   étapes reliées par un fil de la couleur de la conduite, résultat
   posé sur du blanc avec un liseré. Plus d'air, bords d'un
   demi-pixel.
   =========================================================== */
body { font-optical-sizing: auto; text-rendering: optimizeLegibility; }
.ecran h2 { font-size: 30px; font-weight: 750; letter-spacing: -.026em; text-wrap: balance; margin-bottom: 8px; }
.ecran .sous { font-size: 17px; line-height: 1.6; color: #3B3831; text-wrap: pretty; margin-bottom: 26px; }

/* le bandeau : calme, blanc, un liseré au lieu d'un aplat rouge */
.cliquez { padding: 16px 18px; border-radius: 18px; gap: 14px; margin-bottom: 18px;
  background: rgba(255,255,255,.86); border: 0; font-size: 15.5px; line-height: 1.55; color: #3B3831;
  box-shadow: inset 3px 0 0 var(--chaud), 0 0 0 .5px rgba(22,21,15,.08), 0 12px 26px -20px rgba(22,21,15,.45); }
.cliquez b { color: #24221C; }
.cq-i { width: 34px; height: 34px; border-radius: 11px; background: var(--chaud-d); color: var(--chaud); }
.cq-essai { font-weight: 650; }

/* la légende des trois conduites */
.issues { font-size: 14px; gap: 8px 18px; margin-bottom: 30px; color: #3B3831; }
.is b { color: #24221C; }
.is > span { color: #5E594F; }
.is i { width: 10px; height: 10px; }

/* le titre de chaque famille : lisible, plus de 10 px en machine à écrire */
.famille { margin-bottom: 38px; }
.fa-t { font-family: var(--f); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #3B3831; margin-bottom: 16px; }

/* les cartes */
.cartes { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.carte-ex { padding: 24px 22px 20px; border-radius: 22px; gap: 14px; background: rgba(255,255,255,.84);
  border: 0; box-shadow: var(--relief), 0 0 0 .5px rgba(22,21,15,.08), inset 0 1px 0 #fff; }
.carte-ex.on { box-shadow: var(--relief), 0 0 0 2px var(--c), inset 0 1px 0 #fff; }
.carte-ex::before { left: 22px; right: 22px; }
.ce-i { width: 42px; height: 42px; border-radius: 13px; }
.ce-issue { font-family: var(--f); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; }
.ce-t { font-size: 18.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.22; color: #24221C; text-wrap: balance; }

/* les trois étapes, reliées par un fil */
.cf { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; font-size: 15.5px; line-height: 1.45; color: #24221C; text-wrap: pretty; }
.cf::before { left: 13.25px; top: 28px; width: 1.5px; background: linear-gradient(var(--c), transparent); opacity: .4; }
.cf-n { width: 28px; height: 28px; font-family: var(--f); font-size: 13px; background: #fff; color: var(--c);
  box-shadow: 0 0 0 1.5px var(--c), 0 3px 8px -4px rgba(22,21,15,.3); }
.cf i { font-family: var(--f); font-size: 12px; font-weight: 650; letter-spacing: .01em; text-transform: none; color: #6E695E; margin-bottom: 2px; }
.cf.fin > span:last-child { background: #fff; padding: 10px 12px; border-radius: 12px; font-size: 15.5px; font-weight: 650; color: #24221C;
  box-shadow: inset 3px 0 0 var(--c), 0 0 0 .5px rgba(22,21,15,.08), 0 8px 18px -14px rgba(22,21,15,.4); }
.cf.fin i { color: var(--c); }
.cf.fin .cf-n { background: var(--c); color: #fff; }
.ce-go { font-size: 14.5px; padding-top: 6px; }

/* ce qui tient tout ensemble */
.tenir { gap: 20px; margin: 10px 0 30px; }
.tenir-c { padding: 26px 26px; border-radius: 24px; box-shadow: var(--relief), 0 0 0 .5px rgba(22,21,15,.07), inset 0 1px 0 #fff; }
.tc-h { font-size: 18px; } .tc-h b { font-weight: 700; letter-spacing: -.018em; }
.tc-x { font-size: 15.5px; line-height: 1.65; color: #3B3831; text-wrap: pretty; }
.tc-x b { color: #24221C; }
.frise li { font-size: 14px; } .fr-q { font-size: 11px; color: #6E695E; } .fr-x { color: #3B3831; }
.cv-s, .cv-d { font-size: 13px; }
.ab-t { font-family: var(--f); font-size: 12px; letter-spacing: .04em; }
.a-brancher li { font-size: 14.5px; }

/* l'essai gratuit */
.es-h h3 { font-size: 24px; font-weight: 750; letter-spacing: -.022em; }
.es-h p { font-size: 16px; color: #3B3831; }
.es-v > b { font-size: 17.5px; font-weight: 700; }
.es-v p, .es-v ol, .es-ok { font-size: 15px; color: #3B3831; }
.es-pied { font-size: 15px; color: #3B3831; }

@media (max-width: 560px) {
  .ecran h2 { font-size: 25px; }
  .ecran .sous { font-size: 16px; }
  .cliquez { font-size: 15px; padding: 14px 14px; }
  .carte-ex { padding: 20px 18px 18px; }
  .ce-t { font-size: 17.5px; }
  .cf { font-size: 15px; }
  .tenir-c { padding: 20px 18px; }
}

/* ===========================================================
   L'ESSAI : LES DEUX VOIES, RETRAVAILLÉES

   A — l'adresse Nown, en une seule pièce : l'icône, l'adresse en
       grand, et un bouton « Copier » qui dit ce qu'il fait.
   B — brancher sa boîte pour de vrai : l'adresse, la messagerie
       reconnue avec la marche à suivre, le mot de passe, branchée.
   Les deux cartes ont la même hauteur de pièce et le même rang de
   garanties en bas : on compare deux chemins, pas deux pages.
   =========================================================== */
.es-voies { gap: 18px; }
.es-v { padding: 24px 22px 20px; border-radius: 22px; gap: 12px; background: #fff; border: 0;
  box-shadow: var(--relief), 0 0 0 .5px rgba(22,21,15,.08), inset 0 1px 0 #fff; }
.es-v > b { font-size: 19px; letter-spacing: -.02em; }
.es-n { width: 28px; height: 28px; font-size: 12.5px; }

/* A — le bouton d'adresse */
.es-adr-btn { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; text-align: left; cursor: pointer; padding: 12px 12px 12px 12px; border-radius: 16px; border: 0;
  font-family: var(--f); color: #fff; background: linear-gradient(180deg, #34775A, #2A6249);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 24px -14px rgba(46,107,79,.9), 0 0 0 .5px rgba(22,21,15,.2);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.es-adr-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.es-adr-btn:active { transform: translateY(0); }
.ea-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.ea-i svg { width: 22px; height: 22px; }
.ea-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.es-v .ea-t b { color: #fff; font-family: var(--m); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-t span { font-size: 12.5px; opacity: .85; }
.ea-c { font-size: 13.5px; font-weight: 700; padding: 9px 14px; border-radius: 11px; background: #fff; color: var(--vert);
  box-shadow: 0 2px 6px -2px rgba(0,0,0,.25); white-space: nowrap; }
.es-adr-btn.fait { background: linear-gradient(180deg, #24221C, #16150F); }
.es-adr-btn.fait .ea-c { color: #16150F; }

/* B — brancher sa boîte */
.bx-f { display: flex; flex-direction: column; gap: 8px; }
.bx-f label, .bx-av-c label { font-size: 13px; font-weight: 650; color: #3B3831; }
.bx-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.bx input { font: 16px var(--f); padding: 13px 14px; border-radius: 13px; border: 1px solid var(--p-3); background: #FCFBF8;
  color: #24221C; width: 100%; transition: border-color .14s ease, box-shadow .14s ease, background .14s ease; }
.bx input:focus { outline: none; border-color: var(--bleu); background: #fff; box-shadow: 0 0 0 4px rgba(36,80,110,.14); }
.bx-go { font: 650 15px var(--f); padding: 0 20px; border-radius: 13px; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #2C6185, #24506E); box-shadow: 0 10px 20px -12px rgba(36,80,110,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.bx-go:hover { filter: brightness(1.08); }
.bx-go:disabled, .bx-brancher:disabled { opacity: .7; cursor: progress; }
.bx-marques { font-size: 12.5px; color: #6E695E; line-height: 1.45; }

.bx-four { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px; background: #F7F5F0; box-shadow: 0 0 0 .5px rgba(22,21,15,.08) inset; }
.bx-four > div > b { display: block; font-size: 15.5px; color: #24221C; }
.bx-four > div > span { display: block; font-size: 13px; color: #5E594F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 19px;
  color: #fff; background: #5E594F; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.m-gmail { background: linear-gradient(135deg, #EA4335, #C5221F); } .m-yahoo { background: #6001D2; }
.m-icloud { background: linear-gradient(135deg, #5AC8FA, #0A84FF); } .m-icloud::before { content: ""; }
.m-orange { background: #FF7900; } .m-free { background: #CD1E25; } .m-sfr { background: #E2001A; }
.m-laposte { background: #F3D300; color: #003DA5; } .m-gmx { background: #1C449B; } .m-ovh { background: #123F6D; }
.m-ionos { background: #003D8F; } .m-gandi { background: #6640FE; } .m-infomaniak { background: #0098FF; }
.m-zoho { background: #E42527; } .m-microsoft { background: linear-gradient(135deg, #F25022 0 50%, #00A4EF 50%); }
.m-autre { background: var(--bleu); }

.bx-etapes { margin: 4px 0 0; padding-left: 0; list-style: none; counter-reset: bx; display: grid; gap: 8px; }
.bx-etapes li { counter-increment: bx; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; color: #24221C; }
.bx-etapes li::before { content: counter(bx); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: var(--bleu); background: #fff; box-shadow: 0 0 0 1.5px var(--bleu); }
.bx-ext { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 4px; padding: 9px 14px;
  border-radius: 11px; font-size: 14px; font-weight: 650; color: var(--bleu); background: var(--bleu-d); text-decoration: none; }
.bx-ext:hover { filter: brightness(.97); }
.bx-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: #5E594F; }
.bx-av { font-size: 13.5px; color: #5E594F; }
.bx-av summary { cursor: pointer; padding: 4px 0; }
.bx-av-c { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 8px; margin-top: 6px; }
.bx-av-c label { display: flex; flex-direction: column; gap: 4px; }
.bx-av-c input { font-size: 14.5px; padding: 10px 12px; }

.bx-brancher { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 4px; padding: 12px 14px; border: 0; border-radius: 16px;
  cursor: pointer; text-align: left; color: #fff; font-family: var(--f);
  background: linear-gradient(180deg, #2C6185, #1F4760); box-shadow: 0 14px 26px -14px rgba(36,80,110,.95), inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 .5px rgba(22,21,15,.2);
  transition: transform .14s ease, filter .14s ease; }
.bx-brancher:hover { transform: translateY(-1px); filter: brightness(1.07); }
.bx-bi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); flex: none; }
.bx-bi svg { width: 21px; height: 21px; }
.es-v .bx-brancher b { display: block; font-size: 16.5px; color: #fff; }
.bx-brancher span span { font-size: 12.5px; opacity: .85; }
.bx-err { margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; font-weight: 600;
  color: var(--chaud); background: var(--chaud-d); }
.bx-lien { justify-self: end; border: 0; background: none; padding: 6px 8px; border-radius: 9px; cursor: pointer;
  font: 650 13px var(--f); color: var(--bleu); }
.bx-lien:hover { background: var(--bleu-d); }
.bx-msg p, .bx-demo { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #3B3831; }
.bx-demo { padding: 14px 16px; border-radius: 14px; background: var(--or-d); margin: 0; }

.bx-branchee { display: flex; flex-direction: column; gap: 12px; }
.bx-bh { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  background: var(--vert-d); }
.bx-v { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 800;
  color: #fff; background: var(--vert); box-shadow: 0 8px 16px -8px rgba(46,107,79,.9); }
.bx-bh > div > b { display: block; font-size: 15.5px; color: #24221C; overflow: hidden; text-overflow: ellipsis; }
.bx-bh > div > span { font-size: 13px; color: var(--vert); font-weight: 650; }
.bx-ap { border-radius: 14px; box-shadow: 0 0 0 .5px rgba(22,21,15,.1); overflow: hidden; }
.bx-apt { font-size: 12px; font-weight: 650; color: #6E695E; padding: 9px 12px; background: #F7F5F0; }
.bx-m { display: grid; gap: 1px; padding: 9px 12px; border-top: 1px solid var(--p-2); }
.bx-m b { font-size: 14px; font-weight: 600; color: #24221C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-m span { font-size: 12.5px; color: #6E695E; }
.bx-suite { margin: 0; font-size: 14.5px; line-height: 1.55; color: #3B3831; }
.bx-branchee .bx-lien { align-self: flex-start; color: var(--chaud); padding-left: 0; }
.bx-branchee .bx-lien:hover { background: none; text-decoration: underline; }

.bx-ok { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--p-2); display: grid; gap: 9px; }
.bx-ok li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; color: #3B3831; }
.bx-ok li b { color: #24221C; }
.bx-ok i { width: 22px; height: 22px; color: var(--vert); }
.bx-ok i svg { width: 20px; height: 20px; }

@media (max-width: 560px) {
  .bx-ligne { grid-template-columns: 1fr; }
  .bx-go { padding: 13px 20px; }
  .ea-t b { font-size: 15px; }
  .es-adr-btn { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .ea-i { width: 40px; height: 40px; }
}

/* ===========================================================
   VERSION 10× — la carte B en grand, la carte A guidée
   =========================================================== */
.bx.x10 { gap: 14px; }

/* le mur de messageries */
.bx-mur { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.bx-tuile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 9px; border-radius: 14px; cursor: pointer;
  border: 0; background: #F7F5F0; font: 600 12px var(--f); color: #3B3831;
  box-shadow: 0 0 0 .5px rgba(22,21,15,.08) inset; transition: transform .14s ease, box-shadow .14s ease, background .14s ease; }
.bx-tuile:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 0 0 .5px rgba(22,21,15,.1), 0 10px 18px -12px rgba(22,21,15,.45); }
.bx-tuile.on { background: #fff; box-shadow: 0 0 0 2px var(--bleu), 0 10px 18px -12px rgba(36,80,110,.6); }
.bx-tuile .bx-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.bx-logo.petit { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; display: inline-grid; vertical-align: -6px; margin-right: 4px; }

/* la détection en direct */
.bx-direct { min-height: 24px; font-size: 13.5px; color: #5E594F; line-height: 1.5; }
.bx-direct.vu { color: #24221C; animation: bx-entre .35s ease; }
.bx-direct b { color: #24221C; }
.bx-cherche { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 50%;
  border: 2px solid var(--bleu); border-right-color: transparent; animation: bx-tourne .7s linear infinite; }
@keyframes bx-tourne { to { transform: rotate(360deg); } }
@keyframes bx-entre { from { opacity: 0; transform: translateY(4px); } }

/* le mot de passe, avec son œil */
.bx-mdp-l { position: relative; }
.bx-mdp-l input { padding-right: 88px; letter-spacing: .04em; }
.bx-oeil { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; border-radius: 9px; padding: 7px 10px; cursor: pointer;
  font: 650 12.5px var(--f); color: var(--bleu); background: var(--bleu-d); }

/* la connexion racontée */
.bx-progres { list-style: none; margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; background: #F7F5F0; display: grid; gap: 9px;
  box-shadow: 0 0 0 .5px rgba(22,21,15,.08) inset; }
.bx-progres li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; font-size: 14px; color: #8A8479; transition: color .2s ease; }
.bx-progres li i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--p-3) inset; position: relative; }
.bx-progres li.en { color: #24221C; font-weight: 600; }
.bx-progres li.en i { box-shadow: none; border: 2px solid var(--bleu); border-right-color: transparent; animation: bx-tourne .7s linear infinite; }
.bx-progres li.ok { color: #24221C; }
.bx-progres li.ok i { background: var(--vert); box-shadow: none; animation: bx-pop .3s ease; }
.bx-progres li.ok i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; font-style: normal; }
.bx-progres li.ko { color: var(--chaud); font-weight: 600; }
.bx-progres li.ko i { background: var(--chaud); box-shadow: none; }
.bx-progres li.ko i::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; font-style: normal; }
@keyframes bx-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } }
.bx-fl { margin-left: auto; font-size: 20px; opacity: .8; transition: transform .16s ease; }
.bx-brancher:hover .bx-fl { transform: translateX(4px); }

/* branchée : la petite fête, les chiffres, les messages qui arrivent */
.bx-branchee { position: relative; }
.bx-fete { position: absolute; inset: -10px 0 auto 0; height: 0; pointer-events: none; z-index: 2; }
.bx-fete i { position: absolute; left: calc(8% + var(--k) * 5%); top: 30px; width: 7px; height: 11px; border-radius: 2px; opacity: 0;
  background: hsl(calc(var(--k) * 37), 70%, 55%); animation: bx-confetti 1.6s cubic-bezier(.2,.7,.3,1) calc(var(--k) * 30ms) forwards; }
@keyframes bx-confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(calc((var(--k) - 9) * 9px), calc(-60px - var(--k) * 4px)) rotate(calc(var(--k) * 70deg)); } }
.bx-branchee.neuf .bx-v { animation: bx-pop .5s ease; }
.bx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bx-stats div { padding: 12px 10px; border-radius: 14px; background: #F7F5F0; text-align: center; box-shadow: 0 0 0 .5px rgba(22,21,15,.08) inset; }
.bx-stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #24221C; font-variant-numeric: tabular-nums; }
.bx-stats span { font-size: 11.5px; line-height: 1.3; color: #6E695E; }
.bx-stats .bx-compte { color: var(--bleu); }
.bx-m { grid-template-columns: 30px 1fr; display: grid; gap: 10px; align-items: center; }
.bx-branchee.neuf .bx-m { animation: bx-entre .45s ease both; animation-delay: calc(.35s + var(--k) * .15s); }
.bx-m > div { display: grid; gap: 1px; min-width: 0; }
.bx-mi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: var(--bleu); background: var(--bleu-d); }

/* ce que Nown peut / ne peut pas */
.bx-peut { border-radius: 16px; background: #F7F5F0; box-shadow: 0 0 0 .5px rgba(22,21,15,.08) inset; }
.bx-peut summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; font-size: 14.5px; font-weight: 650; color: #24221C; list-style: none; }
.bx-peut summary::-webkit-details-marker { display: none; }
.bx-peut summary::after { content: "+"; margin-left: auto; font-size: 18px; color: #8A8479; }
.bx-peut[open] summary::after { content: "−"; }
.bx-peut summary span { width: 22px; height: 22px; color: var(--vert); }
.bx-peut summary span svg { width: 22px; height: 22px; }
.bx-pv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.bx-pv i { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: #6E695E; margin-bottom: 6px; }
.bx-pv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bx-pv li { font-size: 13.5px; line-height: 1.35; color: #24221C; padding-left: 22px; position: relative; }
.bx-pv .oui li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 800; }
.bx-pv .non li::before { content: "×"; position: absolute; left: 1px; color: var(--chaud); font-weight: 800; font-size: 16px; line-height: 1.1; }
.bx-pv .non li { color: #5E594F; }
.es-v .bx-peut .bx-pn { margin: 12px 14px 14px; font-size: 13px; line-height: 1.5; color: #5E594F; }

/* les questions */
.bx-faq { display: grid; gap: 2px; }
.bx-faq details { border-bottom: 1px solid var(--p-2); }
.bx-faq summary { cursor: pointer; padding: 11px 2px; font-size: 14.5px; font-weight: 600; color: #24221C; list-style: none; display: flex; gap: 10px; }
.bx-faq summary::-webkit-details-marker { display: none; }
.bx-faq summary::after { content: "›"; margin-left: auto; color: #8A8479; transition: transform .16s ease; }
.bx-faq details[open] summary::after { transform: rotate(90deg); }
.bx-faq p { margin: 0 2px 12px; font-size: 14px; line-height: 1.55; color: #3B3831; }

/* carte A : les onglets du transfert automatique */
.tr-onglets { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #F2EFE8; margin-top: 4px; }
.tr-o { flex: 1; border: 0; padding: 8px 6px; border-radius: 9px; cursor: pointer; background: none; font: 650 13px var(--f); color: #5E594F; }
.tr-o.on { background: #fff; color: #24221C; box-shadow: 0 1px 3px rgba(22,21,15,.12); }
.tr-pas { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: tr; display: grid; gap: 8px; }
.tr-pas li { counter-increment: tr; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; color: #3B3831; }
.tr-pas li::before { content: counter(tr); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  color: var(--vert); background: #fff; box-shadow: 0 0 0 1.5px var(--vert); }
.tr-pas b { color: #24221C; }

@media (max-width: 560px) {
  .bx-mur { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bx-pv { grid-template-columns: 1fr; }
  .bx-stats b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .bx-fete, .bx-cherche, .bx-progres li.en i { animation: none !important; }
  .bx-branchee.neuf .bx-m, .bx-direct.vu { animation: none; }
}

/* ===========================================================
   VERSION 10× ÉPURÉE — moins d'objets, plus de tenue

   Une rangée de six logos au lieu d'un mur, un sceau de trois
   garanties d'une ligne, et tout le reste (ce que Nown peut faire,
   les questions) rangé dans un seul pied replié. Les deux cartes
   respirent pareil : 28 px de marge, des blocs espacés de 16 px.
   =========================================================== */
.es-voies { gap: 20px; align-items: stretch; }
.es-v { padding: 28px 26px 22px; gap: 16px; border-radius: 26px;
  box-shadow: 0 1px 1px rgba(22,21,15,.04), 0 18px 40px -26px rgba(22,21,15,.35), 0 0 0 .5px rgba(22,21,15,.07); }
.es-v > b { font-size: 21px; font-weight: 750; letter-spacing: -.025em; }
.es-v > p { font-size: 15.5px; line-height: 1.55; color: #3B3831; margin: -6px 0 0; }
.es-n { background: #F2EFE8; color: #6E695E; }
.es-x { margin-top: auto; padding-top: 6px; font-size: 13.5px; }

/* carte A */
.tr-t { margin: 0; font-size: 15px; color: #3B3831; }
.tr-t b { color: #24221C; }
.tr-onglets { margin-top: -6px; }
.tr-pas { gap: 10px; padding: 2px 2px 0; }
.tr-pas li { font-size: 14.5px; }

/* carte B : la rangée de logos */
.bx-mur { display: flex; gap: 8px; margin: 0 0 4px; flex-wrap: nowrap; }
.bx-tuile { flex: 1; min-width: 0; padding: 9px 2px 8px; gap: 5px; border-radius: 13px; background: #FAF8F4; font-size: 11.5px; font-weight: 600; color: #5E594F; }
.bx-tuile .bx-logo { width: 30px; height: 30px; border-radius: 9px; font-size: 13.5px; }
.bx-tuile:hover { transform: translateY(-1px); }
.bx-f { gap: 10px; }
.bx-f label { margin-top: 2px; }
.bx-direct { font-size: 13px; color: #8A8479; }
.bx input { border-radius: 14px; padding: 14px 15px; }
.bx-go { border-radius: 14px; padding: 0 22px; }

/* le sceau : trois garanties, une ligne */
.bx-sceau { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; border-top: 1px solid #F0EDE6; }
.bx-sceau span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: #3B3831; }
.bx-sceau svg { width: 17px; height: 17px; color: var(--vert); }

/* le pied replié */
.bx-plus { margin-top: -6px; }
.bx-plus > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
  font-size: 13.5px; font-weight: 650; color: var(--bleu); }
.bx-plus > summary::-webkit-details-marker { display: none; }
.bx-plus > summary::after { content: "›"; transition: transform .16s ease; }
.bx-plus[open] > summary::after { transform: rotate(90deg); }
.bx-plus[open] { display: grid; gap: 12px; }
.bx-plus .bx-peut { background: #FAF8F4; }
.bx-plus .bx-peut summary { pointer-events: none; }
.bx-plus .bx-peut summary::after { display: none; }

/* branchée : plus calme */
.bx-bh { padding: 14px; border-radius: 16px; }
.bx-stats div { background: #FAF8F4; border-radius: 14px; padding: 13px 8px; }
.bx-stats b { font-size: 21px; }
.bx-ap { border-radius: 16px; }
.bx-progres { background: #FAF8F4; border-radius: 16px; padding: 14px 16px; gap: 10px; }

@media (max-width: 560px) {
  .es-v { padding: 22px 18px 18px; }
  .bx-mur { flex-wrap: wrap; }
  .bx-tuile { flex: 1 1 calc(33% - 8px); }
}

.es-voies { align-items: start; }
.es-x { margin-top: 4px; }

/* le message d'essai : un bouton discret, en contour */
.bx-essai { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 11px 14px;
  border-radius: 14px; border: 1.5px dashed rgba(36,80,110,.35); background: #FBFCFD; font-family: var(--f); color: #24221C;
  transition: background .14s ease, border-color .14s ease; }
.bx-essai:hover { background: var(--bleu-d); border-color: var(--bleu); }
.bx-essai > span:first-child { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--bleu-d); color: var(--bleu); font-size: 16px; flex: none; }
.es-v .bx-essai b { display: block; font-size: 14.5px; color: #24221C; }
.bx-essai span span { font-size: 12.5px; color: #5E594F; }
.bx-essai:disabled { opacity: .7; cursor: progress; }
