/* La mise en page des maquettes V6 — barre latérale de 248 px, desktop
   d'abord, min-width 1180 px — habillée de la charte « Logo et palette
   Émeraude » (revue du 29 novembre 2026, §3.0) : les maquettes fixent la mise
   en page, la charte fixe le logo, les couleurs et la typographie. Aucune
   couleur hors du bloc des jetons ci-dessous. */
:root {
  /* LA CHARTE « LOGO ET PALETTE ÉMERAUDE » (v2, novembre 2026), copiée à
     l'identique de docs/identite/palette.css, qui fait foi. Ne pas modifier
     ces huit valeurs ici : modifier le kit, puis les recopier. */
  --rb-encre: #0f1e33;
  --rb-emeraude: #0e9f6e;
  --rb-papier: #f6f7f4;
  --rb-emeraude-fonce: #0b7a55;
  --rb-emeraude-sur-sombre: #19c489;
  --rb-emeraude-clair: #e2f3eb;
  --rb-gris-texte: #5a6472;
  --rb-blanc: #ffffff;

  /* LE THÈME, qui ne nomme que des rôles. L'émeraude (#0e9f6e) n'écrit
     jamais de texte : 3,2:1 sur le papier. Le texte et les boutons sur fond
     clair prennent l'émeraude foncé. */
  --accent: var(--rb-emeraude-fonce);
  --accent-weak: var(--rb-emeraude-clair);
  --accent-2: var(--rb-emeraude);
  --accent-fort: #075238;
  --accent-bord: #b5dcc8;
  --accent-pale: #f1f8f4;
  --teal: var(--rb-emeraude-fonce);
  --teal-bg: var(--rb-emeraude-clair);
  --canvas: var(--rb-papier);
  --surface: var(--rb-blanc);
  --sidebar: #fbfcfa;
  --fond-leger: #f9faf8;
  --fond-gris: #f0f2ef;
  --border: #e5e8e4;
  --border-strong: #d3d8d2;
  --text: var(--rb-encre);
  --text-2: var(--rb-gris-texte);
  --text-3: #687280;

  /* LES COULEURS D'ÉTAT restent distinctes de la marque : un badge « Actif »
     ne doit pas se lire comme un bouton principal. */
  --green: #137a3a;
  --green-bg: #e7f6ec;
  --green-bord: #c5e8d1;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --amber-fort: #7a5b12;
  --amber-vif: #d97706;
  --amber-pale: #fdf6e3;
  --amber-bord: #f3dfb5;
  --red: #b91c1c;
  --red-bg: #fdecec;
  --red-fort: #7f1d1d;
  --red-bord: #f3cfcf;
  --blue: #1d4ed8;
  --blue-bg: #e8efff;
  --blue-fort: #123a8f;
  --blue-bord: #cddcfa;
  --blue-pale: #eef5ff;
  --violet: #6d28d9;
  --violet-bg: #f1ebfe;
  --violet-bord: #e6d5f7;
  --linkedin: #0a66c2;

  /* LES PASTILLES (avatars, logos de réseau) : une seule série pour tout le
     produit, lisible en blanc. */
  --teinte-0: var(--rb-emeraude-fonce);
  --teinte-1: #2563a8;
  --teinte-2: var(--rb-encre);
  --teinte-3: #b45309;
  --teinte-4: #6d28d9;
  --teinte-5: #be185d;

  /* LES OMBRES ET LES VOILES, teintés d'encre. */
  --ombre-04: rgba(15, 30, 51, 0.04);
  --ombre-05: rgba(15, 30, 51, 0.05);
  --ombre-06: rgba(15, 30, 51, 0.06);
  --ombre-07: rgba(15, 30, 51, 0.07);
  --ombre-12: rgba(15, 30, 51, 0.12);
  --ombre-14: rgba(15, 30, 51, 0.14);
  --ombre-16: rgba(15, 30, 51, 0.16);
  --ombre-25: rgba(15, 30, 51, 0.25);
  --voile: rgba(15, 30, 51, 0.45);
  --voile-20: rgba(0, 0, 0, 0.2);
  --voile-25: rgba(0, 0, 0, 0.25);
  --anneau-accent: rgba(11, 122, 85, 0.08);
  --anneau-accent-leger: rgba(11, 122, 85, 0.06);

  /* LA TYPOGRAPHIE de la charte : IBM Plex Sans pour l'interface, Plex Mono
     pour les valeurs techniques. Auto-hébergées, jamais Google Fonts (les
     @font-face suivent ce bloc) ; le temps qu'elles arrivent, le navigateur
     prend la police système suivante de la liste. */
  --police: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --police-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 10px;
  --shadow: 0 1px 2px var(--ombre-04), 0 1px 3px var(--ombre-06);
}

/* LES POLICES DE LA CHARTE, auto-hébergées (arbitré par Julien le 30 novembre
   2026) : IBM Plex, licence libre SIL OFL, servie par l'application depuis les
   paquets @fontsource. Jeu « latin », qui couvre le français. « swap » : le
   texte s'affiche tout de suite dans la police système, puis bascule. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/public/polices/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/public/polices/ibm-plex-sans-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/public/polices/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/public/polices/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/public/polices/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/public/polices/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/public/polices/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: var(--police);
  background: var(--canvas);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}

.app {
  display: flex;
  min-height: 100vh;
  min-width: 1180px;
}
.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
}
/* La cloche des notifications, à droite du logo (revue du 29 novembre 2026,
   §3.14). */
.brand .cloche {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-2);
}
.brand .cloche:hover,
.brand .cloche.active {
  background: var(--fond-gris);
  color: var(--accent);
}
.brand .cloche svg {
  width: 18px;
  height: 18px;
}
.brand .cloche .cnt {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
/* Le logo officiel (charte §3.0) : jamais réécrit dans une police, au moins
   96 px de large ; la marge autour vaut la zone de protection du kit. */
.brand .logo {
  display: block;
  width: 150px;
  height: auto;
}
.nav {
  padding: 6px 10px;
  flex: 1;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 1px;
}
.nav-item:hover {
  background: var(--fond-gris);
  color: var(--text);
}
.nav-item.active {
  background: var(--accent-weak);
  color: var(--accent);
}
.nav-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.nav-item.disabled {
  color: var(--text-3);
  cursor: default;
}
.nav-item.disabled:hover {
  background: none;
  color: var(--text-3);
}
.nav-item .soon {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--fond-gris);
  border-radius: 12px;
  padding: 1px 7px;
}
.side-foot {
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
/* Le rond et le nom forment un seul bouton, qui ouvre le menu du profil. */
.side-foot .profil {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 4px;
  margin: -4px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.side-foot .profil:hover {
  background: var(--fond-gris);
}
.side-foot .profil .u-name,
.side-foot .profil .u-role {
  display: block;
}
.menu-profil {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% + 4px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--ombre-12);
  padding: 4px;
  z-index: 30;
}
.menu-profil a,
.menu-profil button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-profil a:hover,
.menu-profil a.active {
  background: var(--fond-gris);
}
.menu-profil button:hover {
  background: var(--red-bg);
  color: var(--red);
}
.side-foot .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-2);
}
.side-foot .u-name {
  font-weight: 600;
  font-size: 12.5px;
}
.side-foot .u-role {
  color: var(--text-3);
  font-size: 11px;
}
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.content {
  /* Les marges des maquettes, reprises à l'identique : 22 px en haut parce que
     la barre haute porte désormais le titre, 30 px de chaque côté.
     Pas de largeur maximale : le contenu occupe toute la place laissée par la
     barre latérale. Plafonné à 1240 px, il laissait une bande vide à droite sur
     tout écran plus large qu'un ordinateur portable. Seule cette règle décide
     de la largeur des écrans ; aucun écran ne la redéfinit. */
  padding: 22px 30px 44px;
  width: 100%;
}

/* ======================================================= LA BARRE HAUTE
   Le titre de l'écran ne vit pas dans le contenu mais dans une barre pleine
   largeur, sur fond blanc, séparée du contenu par un filet. C'est la structure
   de toutes les maquettes, et le produit ne l'avait pas : il posait son titre
   dans le contenu, en 23 px, sans fil d'Ariane ni barre.

   Les valeurs ci-dessous sont celles des maquettes. Là où elles divergent d'un
   écran à l'autre — 30 ou 26 px de marge, 19 ou 18 px de titre — c'est la
   variante majoritaire qui est retenue, et elle est notée. */
.top-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-head .crumb {
  color: var(--text-3);
  font-weight: 500;
  font-size: 12px;
}
.top-head .crumb a {
  color: inherit;
  text-decoration: none;
}
.top-head .crumb a:hover {
  color: var(--accent);
}
.top-title {
  /* 19 px dans douze maquettes sur quinze. */
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.top-head .sub {
  color: var(--text-3);
  font-size: 12.5px;
}
.top-head .act {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* L'encart du nom d'un projet : les pastilles de l'équipe et « Inviter »,
   poussés à droite comme dans la maquette. Les actions propres à un onglet
   (« Clôturer », par exemple) viennent juste après, sans nouvel écart. */
.entete-projet {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.entete-projet .avatars {
  margin-left: 0;
}
.entete-projet + .act {
  margin-left: 0;
}
/* Le bouton de retour, à gauche du titre sur les écrans de détail. */
.back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  flex: 0 0 32px;
  text-decoration: none;
}
.back:hover {
  background: var(--fond-leger);
  color: var(--text);
}
.back svg {
  width: 16px;
  height: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: all 0.12s;
  font-family: inherit;
}
/* L'ICÔNE D'UN BOUTON, 16 px, une fois pour toutes (revue du 29 novembre
   2026, R1.13 et §3.7). Sans cette règle, une icône SVG sans dimensions prend
   la taille d'une image, 300 × 150 : c'était le « + » géant de « Ajouter un
   critère », « Soumettre un expert » et « Ajouter un expert ». */
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn:hover {
  background: var(--fond-leger);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}
.btn.primary:hover {
  background: var(--accent-fort);
}
.btn.danger {
  color: var(--red);
}
.btn.sm {
  padding: 6px 10px;
  font-size: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card {
  margin-top: 18px;
}
/* « card-head » et « card-body » comme dans les maquettes, et non plus
   « c-head » et « c-body » : le produit avait abrégé de son côté.

   Les maquettes en portent deux variantes, l'une avec filet de séparation et
   l'autre sans. Celle avec filet est la nôtre par défaut — c'est celle qui
   coiffe un tableau, et c'en est l'usage principal ici. La variante nue sert
   au-dessus d'un contenu libre.

   Les écarts de rembourrage entre les deux mondes (14/16 px ici, 15/18 px là)
   seront tranchés écran par écran plutôt que d'un coup : changer le
   rembourrage de toutes les cartes à l'aveugle se verrait partout. */
.card .card-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13.5px;
}
.card .card-head.nu {
  border-bottom: none;
  padding: 15px 18px 4px;
}
.card .card-body {
  padding: 16px;
}

table.liste {
  width: 100%;
  border-collapse: collapse;
}
/* L'en-tete d'un tableau est TEINTE d'indigo dans les maquettes, et les vingt
   quatre le font a l'identique. Le produit la rendait en gris : un detail, mais
   qui se voit sur chaque ecran puisqu'il n'y a pas d'ecran sans tableau. */
table.liste th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 11px 16px;
  border-bottom: 1px solid var(--accent-bord);
}
table.liste td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
table.liste tr:last-child td {
  border-bottom: none;
}
table.liste tr.ligne:hover td {
  background: var(--fond-leger);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
}
.badge .bdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.b-actif {
  background: var(--green-bg);
  color: var(--green);
}
.b-brouillon {
  background: var(--blue-bg);
  color: var(--blue);
}
.b-en_pause {
  background: var(--amber-bg);
  color: var(--amber);
}
.b-cloture,
.b-archive {
  background: var(--fond-gris);
  color: var(--text-2);
}
.b-verifie {
  background: var(--green-bg);
  color: var(--green);
}
.b-inconnu,
.b-expire {
  background: var(--amber-bg);
  color: var(--amber);
}
.b-revoque {
  background: var(--red-bg);
  color: var(--red);
}

.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 5px;
}
.field .aide {
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 4px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  background: var(--surface);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.field.case {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field.case label {
  margin: 0;
  font-weight: 500;
}
.erreur {
  background: var(--red-bg);
  color: var(--red);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 12.5px;
  margin-bottom: 14px;
}
.info {
  background: var(--accent-weak);
  color: var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 500;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.fiche {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.fiche .f-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.fiche .f-item .l {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.fiche .f-item .v {
  font-size: 13px;
  font-weight: 500;
}
.fiche .f-item .v.sensible {
  color: var(--accent);
  font-weight: 600;
}

/* connexion : deux colonnes, comme la maquette */
.porte {
  display: flex;
  min-height: 100vh;
}
.porte .presentation {
  flex: 1;
  background: linear-gradient(160deg, var(--rb-encre) 0%, var(--accent) 100%);
  color: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}
.porte .presentation h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  max-width: 26rem;
  line-height: 1.3;
}
.porte .presentation p {
  margin-top: 14px;
  max-width: 28rem;
  opacity: 0.85;
  font-size: 13.5px;
  line-height: 1.6;
}
.porte .acces {
  flex: 0 0 480px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
}
.porte .acces h1 {
  font-size: 21px;
  font-weight: 700;
  margin: 18px 0 4px;
}
.porte .acces .sous {
  color: var(--text-2);
  margin-bottom: 22px;
}
.porte .etape {
  display: none;
}
.porte .etape.visible {
  display: block;
}

/* ============================================================ LES ONGLETS
   Nommés « tabs » et « tab » comme dans les maquettes, et non plus « onglets »
   et « onglet » : deux vocabulaires pour la même chose garantissent qu'ils
   divergeront. Les règles sont celles des maquettes, variante majoritaire.

   Ce sont des LIENS et non des onglets savants : chaque écran est une page
   qu'on peut mettre en favori et partager. La barre s'attache sous la barre
   haute, pleine largeur, et non dans le contenu. */
.tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 30px;
  display: flex;
  gap: 2px;
}
.tab {
  padding: 12px 14px 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* Le compteur porté par un onglet : messages non lus, pièces à revoir. */
.tab .pip {
  background: var(--border);
  color: var(--text-2);
  border-radius: 20px;
  padding: 0 7px;
  font-size: 10.5px;
  font-weight: 700;
}
.tab.active .pip {
  background: var(--accent-weak);
  color: var(--accent);
}

.vide {
  color: var(--text-3);
  text-align: center;
  padding: 28px 16px;
}
.discret {
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 2px;
}
.chiffre {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.accroche {
  font-weight: 600;
  margin-bottom: 10px;
}

.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  line-height: 1.5;
  background: var(--surface);
  resize: vertical;
}
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.ligne-formulaire {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ligne-formulaire input[type="text"] {
  flex: 1;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
}
.case-en-ligne {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.champs-en-ligne {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
/* Deux et trois colonnes : une rangée de trois champs étirée sur une grille de
   quatre laisse un vide à droite, et le formulaire paraît inachevé. */
.champs-en-ligne.deux {
  grid-template-columns: repeat(2, 1fr);
}
.champs-en-ligne.trois {
  grid-template-columns: repeat(3, 1fr);
}
/* Un champ qui n'a pas à prendre toute sa colonne — un code pays, un nombre. */
.champs-en-ligne .field.court input {
  max-width: 7rem;
}

/* Le bloc d'indicateurs des maquettes (roundbase_accueil.html), repris à
   l'identique. Il n'était pas encore dans la feuille de style : aucun écran
   construit n'en avait eu besoin avant la console d'administration. */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.kpis.cinq {
  grid-template-columns: repeat(5, 1fr);
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  box-shadow: var(--shadow);
}
.kpi .k-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 8px;
}
.kpi .k-val {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.kpi .k-val.teal {
  color: var(--teal);
}
.kpi .k-sub {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}

/* L'étiquette de section des maquettes : elle sépare deux groupes de cartes
   sans ajouter un titre de plus. */
.sec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  margin: 26px 2px 11px;
  display: flex;
  align-items: center;
}

/* L'en-tête d'une carte qui porte aussi une action à droite. */
.card .card-head .a-droite {
  margin-left: auto;
  font-weight: 500;
}

/* La grille des droits : des cases à cocher lisibles plutôt qu'une rangée qui
   déborde. Chaque case porte son libellé en dessous, parce qu'un code seul ne
   dit pas ce qu'il ouvre. */
.grille-droits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin-bottom: 14px;
}
.grille-droits .droit {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.grille-droits .droit input {
  margin-top: 2px;
  flex: none;
}
.grille-droits .droit .d-nom {
  font-weight: 600;
  font-size: 12.5px;
}
.grille-droits .droit .d-quoi {
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 2px;
}
.grille-droits .droit.acquis {
  background: var(--fond-leger);
}

/* Un membre de l'équipe : son identité à gauche, ses droits en dessous. */
.tete-membre {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tete-membre .m-nom {
  font-weight: 700;
  font-size: 13.5px;
}
.tete-membre .m-quand {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 500;
}
/* La pastille d'initiales de la barre latérale, réemployée dans une carte. */
.tete-membre .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--text-2);
  flex: none;
}
.tete-membre .discret {
  margin-top: 0;
}

/* L'aperçu d'un message sortant : ce que le réseau recevra, tel quel. */
.enveloppe {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--canvas);
  margin-bottom: 12px;
}
.enveloppe-ligne {
  font-size: 12.5px;
  margin-bottom: 3px;
}
.enveloppe-ligne:last-child {
  margin-bottom: 0;
}
.enveloppe-ligne .l {
  display: inline-block;
  width: 46px;
  color: var(--text-3);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.corps-message {
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
  color: var(--text);
}
.option-domaine {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-2);
}

.actions-bas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.actions-groupe {
  display: flex;
  gap: 8px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn:disabled:hover {
  background: var(--accent);
}

.b-propose,
.b-nouvelle {
  background: var(--blue-bg);
  color: var(--blue);
}
.b-en_revue,
.b-preselectionnee {
  background: var(--amber-bg);
  color: var(--amber);
}
.b-accepte,
.b-acceptee {
  background: var(--green-bg);
  color: var(--green);
}
.b-refuse,
.b-refusee {
  background: var(--red-bg);
  color: var(--red);
}
.b-faible {
  background: var(--green-bg);
  color: var(--green);
}
.b-moyenne {
  background: var(--amber-bg);
  color: var(--amber);
}
.b-elevee {
  background: var(--red-bg);
  color: var(--red);
}

/* Un panneau qui s'ouvre sous une ligne : on demande la raison d'un refus
   dans la page, jamais dans une boîte de dialogue du navigateur. */
.panneau td {
  background: var(--canvas);
}
.formulaire-refus label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 6px;
}

/* ========================================================== LE MESSAGE BREF
   Le « toast » des maquettes : une confirmation qui apparaît en bas, puis
   s'efface. Les vingt-trois maquettes en portent un, le produit n'en avait
   aucun — il rechargeait la page sans rien dire de ce qui venait de réussir.
   
   Les refus, eux, restent dans la zone d'erreur de l'écran : un refus doit
   pouvoir être relu, un succès non. */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--surface);
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 50;
  box-shadow: 0 8px 30px var(--voile-25);
  max-width: 460px;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Le filet qui sépare deux groupes d'entrées dans la barre latérale, et
   l'adresse sous le nom en pied de barre. Présents dans vingt-deux maquettes. */
.nav-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 12px;
}
.side-foot .u-mail {
  color: var(--text-3);
  font-size: 11px;
}

/* Le compteur d'une ligne de liste : messages non lus d'un fil, pièces à
   revoir. Règle des maquettes, variante majoritaire.
   
   Le produit employait ici une classe « pastille-compteur » qui n'était
   DÉFINIE NULLE PART : les compteurs existaient dans le HTML et ne se voyaient
   pas. Constaté le 10 octobre 2026 en comparant le vocabulaire des maquettes à
   celui de la feuille de style. */
.cnt {
  margin-left: auto;
  background: var(--accent);
  color: var(--surface);
  font-size: 10.5px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ======================================================= LES COMPOSANTS
   Les huit composants interactifs des maquettes, qui manquaient tous. Les
   règles sont celles des maquettes, variante majoritaire quand elles divergent
   d'un écran à l'autre.

   Aucun n'est un ornement : chacun remplace soit un dispositif du navigateur
   qui interrompt — « confirm », « prompt » —, soit une absence : un réglage
   qu'on ne pouvait pas basculer, une liste qu'on ne pouvait pas filtrer. */

/* ------------------------------------------------------------ LA MODALE
   Pour ce qui demande une réponse avant de continuer : une confirmation de
   suppression, un formulaire court. Préférée à la boîte de dialogue du
   navigateur, qui bloque tout et ne se rédige pas. */
.backdrop {
  position: fixed;
  inset: 0;
  background: var(--voile);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 60;
}
.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 440px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 14px;
  z-index: 61;
  box-shadow: 0 20px 60px var(--ombre-25);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
}
/* Une modale large, pour un formulaire : la même, en 640 px. */
.modal.large {
  width: 640px;
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.m-head {
  padding: 18px 22px 6px;
  position: relative;
}
.m-head h3 {
  font-size: 16px;
  font-weight: 700;
  /* La croix de fermeture est posee en absolu dans le coin : sans cette marge,
     un titre un peu long lui passe dessous et se fait couper. Vu le 10 octobre
     sur « Notre relation avec <nom du reseau> ». */
  padding-right: 34px;
  line-height: 1.3;
}
.m-body {
  padding: 12px 22px 18px;
}
.m-body p {
  color: var(--text-2);
  font-size: 12.5px;
  margin-top: 6px;
  line-height: 1.55;
}
.m-foot {
  padding: 0 22px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.m-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
}
.m-close svg {
  width: 15px;
  height: 15px;
}

/* ------------------------------------------------------------ LE TIROIR
   Pour consulter un détail sans quitter la liste : une fiche d'expert, un
   règlement. Il glisse depuis la droite et laisse la liste derrière lui —
   c'est ce qui le distingue d'une page. */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 580px;
  max-width: 94vw;
  background: var(--surface);
  z-index: 61;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 50px var(--ombre-16);
}
.drawer.show {
  transform: translateX(0);
}
.dr-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.dr-head .dr-name {
  font-size: 16px;
  font-weight: 700;
}
.dr-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.dr-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
}
.dr-close svg {
  width: 15px;
  height: 15px;
}

/* ------------------------------------------------------- L'INTERRUPTEUR
   Pour un réglage qui prend effet tout de suite, par opposition à une case à
   cocher dans un formulaire qu'on enregistre ensuite. La distinction compte :
   un interrupteur qui attendrait un bouton « Enregistrer » tromperait. */
.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  cursor: pointer;
  display: inline-block;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 20px;
  transition: 0.18s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--surface);
  border-radius: 50%;
  transition: 0.18s;
  box-shadow: 0 1px 2px var(--voile-20);
}
.switch input:checked + .slider {
  background: var(--accent);
}
.switch input:checked + .slider::before {
  transform: translateX(18px);
}
.switch input:disabled + .slider {
  opacity: 0.5;
  cursor: default;
}

/* ------------------------------------------------ LE CHAMP DE RECHERCHE
   Pour filtrer une liste. Il porte sa loupe à gauche, d'où le décalage de
   l'intérieur du champ. */
.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 340px;
}
.search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

/* -------------------------------------------- LA BARRE D'ENREGISTREMENT
   Elle colle au bas de l'écran pendant qu'on remplit un formulaire long : le
   bouton d'enregistrement reste atteignable sans remonter. */
/* La barre colle au bas de l'écran et cache ce qui passe dessous : un champ
   atteint au clavier ou par un lien s'arrête au-dessus d'elle, et le contenu
   garde une marge avant elle (revue du 29 novembre 2026, 1.13). */
html {
  scroll-padding-bottom: 88px;
}
.savebar {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 13px 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px -30px -44px;
  z-index: 20;
  box-shadow: 0 -4px 16px var(--ombre-05);
}
.savebar .succes {
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
}
.erreur-champ {
  color: var(--red);
  font-size: 12px;
  margin-top: 5px;
}
input[aria-invalid="true"] {
  border-color: var(--red);
}
.savebar .note {
  color: var(--text-2);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.savebar .sp {
  margin-left: auto;
  display: flex;
  gap: 9px;
}

/* -------------------------------------------------- LA SOUS-NAVIGATION
   Les entrées d'un groupe de la barre latérale — les projets récents sous
   « Projets ». Fermée, sa hauteur est nulle ; ouverte, elle se déplie. */
.subnav {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.22s ease;
  margin: 1px 0 2px;
}
.subnav.open {
  max-height: 320px;
}
.sub-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 38px;
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  font-weight: 500;
}
.sub-item:hover {
  background: var(--fond-gris);
  color: var(--text);
}
.sub-item.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 600;
}
.sub-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.sub-item .dot.gray {
  background: var(--text-3);
}

/* Les groupes de projets sous « Projets » : Actifs, Brouillons, En sommeil,
   Clôturés. Ce sont des « details » : ouverts ou repliés sans script. La
   hauteur n'est pas plafonnée — c'est la barre qui défile, pas le groupe. */
.subnav.projets-groupes.open {
  max-height: none;
}
.groupe-projets > summary {
  list-style: none;
}
.groupe-projets > summary::-webkit-details-marker {
  display: none;
}
.sub-groupe {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 38px;
  border-radius: 8px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  user-select: none;
}
.sub-groupe:hover {
  background: var(--fond-gris);
  color: var(--text-2);
}
.sub-groupe .chev {
  width: 12px;
  height: 12px;
}
.groupe-projets[open] > .sub-groupe .chev {
  transform: rotate(90deg);
}
.sub-groupe .pip {
  background: var(--border);
  color: var(--text-2);
  border-radius: 20px;
  padding: 0 7px;
  font-size: 10.5px;
  letter-spacing: 0;
}
.sub-groupe .dossier {
  width: 13px;
  height: 13px;
  flex: none;
}
.groupe-projets .sub-item {
  padding-left: 46px;
}
/* Un projet archivé : il se consulte, il ne se modifie plus. */
.sub-item .lecture-seule {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}

/* --------------------------------------------------------- LES SEGMENTS
   Deux ou trois vues de la même chose, dont une seule est montrée. À ne pas
   confondre avec les onglets, qui changent de page : les segments changent
   l'affichage sans quitter l'écran. */
.seg {
  display: inline-flex;
  background: var(--fond-gris);
  border-radius: 9px;
  padding: 3px;
}
.seg-btn {
  padding: 7px 16px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-2);
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
}
.seg-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
/* Le menu « … » de l'en-tête d'un projet : le cycle de vie, à l'écart des
   gestes courants. Un <details> : il s'ouvre et se ferme sans script. */
.menu-projet {
  position: relative;
}
.menu-projet > summary {
  list-style: none;
  padding: 6px 12px;
  font-weight: 700;
}
.menu-projet > summary::-webkit-details-marker {
  display: none;
}
.menu-projet-liste {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--ombre-12);
  padding: 4px;
  z-index: 30;
}
.menu-projet-liste button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.menu-projet-liste button.danger {
  color: var(--red);
}
.menu-projet-liste button:hover {
  background: var(--fond-gris);
}

/* Les puces de la barre d'outils de Recherche : le tri, les cinq filtres et
   « À valider » (revue du 29 novembre 2026, §3.4). Des menus réels, à
   l'allure des puces de la maquette. */
.toolbar .puce {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  max-width: 190px;
}
.toolbar .puce:hover,
.toolbar .puce.active {
  border-color: var(--accent-bord);
  color: var(--accent);
  background: var(--accent-pale);
}
/* « Nouveau », à côté de la date d'ajout d'un profil de la semaine. */
.tag.nouveau {
  background: var(--accent-weak);
  color: var(--accent);
  border-color: var(--accent-bord);
}

/* Les fonctions ou entreprises à privilégier, sur la demande d'un réseau. */
.a-privilegier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}
.a-privilegier .l {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

/* Demandes, côté réseau (§3.2) : le brief replié à trois lignes, la note
   interne depuis la carte, le lien vers Projets actifs dans les onglets. */
.b-desc.replie {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deplier-brief {
  margin: 4px 0 0;
}
.note-interne {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.note-interne input {
  flex: 1;
}
.tabs .tab-lien {
  margin-left: auto;
  color: var(--text-2);
  font-weight: 500;
}

/* « Hors plateforme », sur la carte d'un réseau absent (§3.11). */
.tag.hors-plateforme {
  background: var(--amber-pale);
  color: var(--amber-fort);
  border-color: var(--amber-bord);
}

/* Projets actifs, côté réseau (§3.3). */
.grille-projets-actifs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.projet-actif .pa-tete {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.projet-actif .pa-nom {
  font-weight: 700;
}
.projet-actif .pa-entonnoir {
  margin: 10px 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.projet-actif .pa-a-faire {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--amber-fort);
  font-size: 12.5px;
}
.projet-actif .pa-actions {
  display: flex;
  gap: 8px;
}
.liste-a-faire {
  margin: 0;
  padding: 8px 18px 14px 34px;
  font-size: 13px;
}

/* Les trois options de l'échantillon par défaut, dans Réseaux d'experts. */
.options-echantillon {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

/* La consommation de jetons par mois, dans Finance (§3.10). */
.conso-totaux {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
  font-size: 13px;
}
.conso-totaux .l {
  color: var(--text-2);
}
.conso-mois {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
}
.conso-mois .cm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.conso-mois .cm-piste {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 90px;
  background: var(--fond-gris);
  border-radius: 4px;
}
.conso-mois .cm-piste i {
  display: block;
  width: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.conso-mois .cm-nom {
  font-size: 10.5px;
  color: var(--text-2);
}

/* « À poser au prochain appel », sous un critère peu couvert d'Analyses. */
.a-poser {
  margin: 6px 0 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--amber-pale);
  border: 1px solid var(--amber-bord);
  color: var(--amber-fort);
  font-size: 12px;
}

/* L'objectif d'appels atteint, sur la carte d'un projet de l'Accueil. */
.objectif-atteint {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
}

/* Les deux filtres de Communication, au-dessus de leur contenu. */
.filtres-communication {
  margin-bottom: 16px;
}
/* Une portée qui est une adresse : le lien prend l'allure du bouton. */
a.seg-btn {
  display: inline-block;
  text-decoration: none;
}

/* ---------------------------------------------------------- L'ÉTIQUETTE
   Une valeur d'une liste : un secteur, une géographie, une langue, une
   exclusion. Distincte du badge, qui porte un ÉTAT et non une valeur. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--fond-gris);
  color: var(--text-2);
}
.tag.accent {
  background: var(--accent-weak);
  color: var(--accent);
}
/* Une exclusion se lit en rouge : c'est un « jamais celui-là ». */
.tag.excl {
  background: var(--red-bg);
  color: var(--red);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* =============================================== LES DERNIERS PARTAGÉS
   Les pièces employées par plusieurs maquettes et qui manquaient encore. Les
   abréviations propres à un seul écran — « .d », « .t », « .c1 » à « .c4 » —
   ne sont volontairement pas reprises : ce sont des raccourcis locaux de
   maquette, pas du design system. */

/* Le badge d'espace, sous la marque dans la barre latérale. Dix maquettes le
   portent et le produit ne l'avait pas : rien ne disait dans quel espace on se
   trouve. Cela comptait peu à deux espaces ; à trois, cela compte. */
.space-tag {
  margin: 0 18px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-bg);
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  width: fit-content;
}
/* L'espace de notre propre équipe se distingue de ceux des clients : on ne
   doit jamais croire qu'on administre alors qu'on utilise, ni l'inverse. */
.space-tag.interne {
  background: var(--accent-weak);
  color: var(--accent);
}

/* Le lien « tout voir » à droite d'une étiquette de section. */
.sec-label .more {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--text-2);
}

/* Un compteur accolé à un libellé : « Demandes 4 ». */
.count {
  color: var(--accent);
  background: var(--accent-weak);
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* L'indication à droite d'un en-tête de carte : une précision, pas une action.
   Distincte de « .aide », qui est la phrase sous un champ de formulaire. */
.hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

/* Une pile de pastilles : les membres d'une équipe projet. Elles se
   chevauchent, d'où la marge négative. */
.avatars {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.avatars .eav + .eav {
  margin-left: -8px;
}
.eav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-weight: 600;
  font-size: 11px;
  background: var(--text-3);
  border: 2px solid var(--surface);
}
/* « +N » : les membres au-delà des quatre premiers, nommés au survol. */
.eav.plus {
  background: var(--fond-gris);
  color: var(--text-2);
}

/* La note moyenne d'un réseau. La couleur manquait aux variables : les
   maquettes l'emploient sous le nom « --gold » sans toujours la déclarer. */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--amber);
}
.stars svg {
  width: 14px;
  height: 14px;
}
.stars .num {
  color: var(--text);
  font-weight: 700;
  margin-left: 5px;
  font-size: 12.5px;
}
/* Pas de note : les cinq étoiles restent blanches et « N/A » prend la place du
   chiffre, en retrait. Zéro étoile se lirait comme une mauvaise note. */
.stars.sans-note .num {
  color: var(--text-3);
  font-weight: 600;
}
.meta-chip.note {
  color: var(--amber);
}

/* Le bouton qui ouvre le tiroir d'une ligne, au bout du tableau de
   l'historique. */
.openb {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.ligne:hover .openb {
  background: var(--accent-weak);
}
.openb svg {
  width: 15px;
  height: 15px;
}

/* L'équipe d'un projet terminé, en pastilles nommées dans le tiroir. */
.team-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px 3px 3px;
  font-size: 11.5px;
  font-weight: 600;
}
.tm .av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-size: 9px;
  font-weight: 600;
  background: var(--text-3);
}

/* Le chevron qui ouvre un groupe de la barre latérale, et l'entrée « ajouter »
   au bas d'une sous-navigation. */
.chev {
  transition: transform 0.2s;
  margin-left: auto;
  color: var(--text-3);
}
.chev.open {
  transform: rotate(90deg);
}
.sub-add {
  color: var(--accent);
  font-weight: 600;
}

/* ================================================ L'ACCUEIL ET SES CARTES
   Les pièces de `maquettes/roundbase_accueil.html` : les projets en cours sous
   forme de cartes plutôt que de lignes de tableau, avec leur avancement, et la
   frise des prochaines échéances. */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px 16px;
  transition: 0.12s;
  display: block;
}
.proj-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 14px var(--ombre-07);
}
.pc-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.pc-name {
  font-weight: 700;
  font-size: 13.5px;
}
.pc-top .badge {
  margin-left: auto;
}
/* La barre d'avancement : appels réalisés sur appels visés. Elle reste à zéro
   tant que les appels n'existent pas — ce qui est exact, et non pas faux. */
.pc-prog {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}
.pbar {
  flex: 1;
  height: 7px;
  border-radius: 5px;
  background: var(--fond-gris);
  overflow: hidden;
}
.pbar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--accent);
}
.pc-prog .pl {
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
}
.pc-meta {
  display: flex;
  align-items: center;
  margin-top: 12px;
}
/* La pile de pastilles de l'équipe projet, en petit format. */
.avs {
  display: flex;
  align-items: center;
}
.avs .av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-3);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 10px;
  border: 2px solid var(--surface);
}
.avs .av + .av {
  margin-left: -7px;
}
/* Les six teintes des pastilles de personne, celles des maquettes. Le filtre
   `teinte` choisit l'une d'elles d'après le nom : une personne garde sa
   couleur d'une ligne à l'autre. */
.av.teinte-0 {
  background: var(--teinte-0);
}
.av.teinte-1 {
  background: var(--teinte-1);
}
.av.teinte-2 {
  background: var(--teinte-2);
}
.av.teinte-3 {
  background: var(--teinte-3);
}
.av.teinte-4 {
  background: var(--teinte-4);
}
.av.teinte-5 {
  background: var(--teinte-5);
}
/* L'étiquette en pilule, comme le secteur dans le tableau de l'historique :
   une valeur, pas un état, mais dessinée comme dans la maquette. */
.tag.pilule {
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  background: var(--fond-gris);
}
.pc-meta .todo {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}

/* La frise des prochains appels et échéances, à l'identique de la maquette :
   une seule carte, des lignes séparées d'un filet. Une date à gauche, un
   pictogramme qui dit « appel » ou « échéance », le libellé, le moment à
   droite. Une échéance dépassée se lit en rouge. */
.tl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tl-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.tl-item:last-child {
  border-bottom: none;
}
.tl-item:hover {
  background: var(--fond-leger);
}
.tl-date {
  flex: 0 0 64px;
  text-align: center;
}
.tl-date .d {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.tl-date .m {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 600;
}
.tl-date.depassee,
.tl-date.depassee .m,
.tl-time.depassee {
  color: var(--red);
}
.tl-ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-ic svg {
  width: 16px;
  height: 16px;
}
.tl-ic.appel {
  background: var(--accent-weak);
  color: var(--accent);
}
.tl-ic.echeance {
  background: var(--amber-bg);
  color: var(--amber);
}
.tl-main .t {
  font-weight: 600;
  font-size: 12.5px;
}
.tl-main .s {
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 1px;
}
.tl-time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
}

/* La pastille d'icône d'un indicateur, avec le pictogramme de la maquette.
   Les écrans qui n'en ont pas encore y mettent une lettre. */
.kpi .k-ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.kpi .k-ic.teal {
  background: var(--teal-bg);
  color: var(--teal);
}
.kpi .k-ic svg {
  width: 15px;
  height: 15px;
}

/* Les deux colonnes de l'accueil : le contenu à gauche, l'assistant dans une
   colonne fixe de 372 px à droite, comme dans la maquette. Les étiquettes de
   section y sont collées au haut de leur bloc : c'est le bloc qui espace. */
.grid-accueil {
  display: grid;
  grid-template-columns: 1fr 372px;
  gap: 18px;
  align-items: start;
}
.grid-accueil .block {
  margin-bottom: 22px;
}
.grid-accueil .sec-label {
  margin-top: 0;
}

/* L'assistant IA en gabarit inactif : l'en-tête de la maquette, puis ce qu'il
   fera. Ni champ, ni suggestion, ni bouton — rien qui ne ferait rien. */
.assistant-inactif .ai-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
}
.assistant-inactif .ai-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Atténué : la carte annonce, elle ne fonctionne pas encore. */
  opacity: 0.55;
}
.assistant-inactif .ai-ic svg {
  width: 16px;
  height: 16px;
}
.assistant-inactif h3 {
  font-size: 13.5px;
  font-weight: 700;
}
.assistant-inactif .st {
  color: var(--text-3);
  font-size: 11px;
}
.assistant-inactif .ai-corps {
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.assistant-inactif .ai-corps p + p {
  margin-top: 8px;
}

/* « À traiter », sous l'assistant : une ligne par compteur, reprise de la
   maquette. L'orange des relances n'a pas de variable au thème ; il est posé
   ici avec les valeurs de la maquette. */
.todos {
  padding: 7px;
}
.todo-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
}
a.todo-item:hover {
  background: var(--fond-gris);
}
.todo-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.todo-ic svg {
  width: 15px;
  height: 15px;
}
.ti-rev {
  background: var(--accent-weak);
  color: var(--accent);
}
.ti-av {
  background: var(--amber-bg);
  color: var(--amber);
}
.ti-en {
  background: var(--amber-pale);
  color: var(--amber);
}
.ti-brief {
  background: var(--teal-bg);
  color: var(--teal);
}
.todo-main .t {
  font-weight: 600;
  font-size: 12.5px;
}
.todo-main .s {
  color: var(--text-3);
  font-size: 11px;
}
.todo-item .cnt {
  margin-left: auto;
  background: var(--text);
  color: var(--surface);
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
/* Un zéro ne réclame rien : la pastille s'efface au lieu de s'imposer. */
.todo-item .cnt.zero {
  background: var(--fond-gris);
  color: var(--text-3);
}

/* La pastille numérotée d'une section de formulaire, reprise des maquettes :
   elle dit où l'on en est dans un formulaire long. */
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

/* ======================================================= L'ÉCRAN DE RECHERCHE
   Les composants que l'écran de recherche d'experts a demandés
   (`maquettes/roundbase_recherche.html`). Ils sont écrits ici, et non dans la
   page, parce qu'aucun d'eux ne lui est propre : une barre d'outils, une
   sélection multiple, une grille de prix au survol et un tiroir de détail
   serviront aussi à la planification, à l'annuaire et à la finance. */

/* La barre d'outils d'une liste : la recherche à gauche, le reste à droite. */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

/* Le rappel du filtre en cours. Il est cliquable, parce qu'un filtre dont on ne
   voit pas comment sortir enferme. */
.filtre-actif {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 20px;
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 600;
  font-size: 11.5px;
  cursor: pointer;
  border: 1px solid var(--accent-bord);
}
.filtre-actif:hover {
  background: var(--accent-bord);
}

/* Un indicateur qui filtre le tableau au clic. La bible le demande à la
   première phrase de la section 8.4 : on lit « 12 présélectionnés » et on veut
   voir lesquels. Le curseur et la bordure haute le disent avant le clic. */
.kpi.filtre {
  cursor: pointer;
  border-top: 2px solid transparent;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.kpi.filtre:hover {
  border-top-color: var(--border-strong);
}
.kpi.filtre.active {
  border-top-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-weak),
    var(--shadow);
}

/* La barre de sélection : elle n'existe que lorsque quelque chose est
   sélectionné, et porte les décisions du lot. */
.selbar {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--accent-weak);
  border: 1px solid var(--accent-bord);
  border-radius: 9px;
  padding: 9px 14px;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 12.5px;
}
.selbar.show {
  display: flex;
}
.selbar .sb-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* La case à cocher des maquettes. Ce n'est pas un `input` : il n'y a pas de
   formulaire derrière, la sélection ne s'envoie pas, elle se décide. Le rôle
   ARIA et la touche d'espace rétablissent ce que le `input` donnait. */
.ck {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  flex: 0 0 16px;
}
.ck.on {
  background: var(--accent);
  border-color: var(--accent);
}
.ck svg {
  width: 11px;
  height: 11px;
  color: var(--surface);
  display: none;
}
.ck.on svg {
  display: block;
}
.col-ck {
  width: 38px;
  text-align: center;
}
table.liste tr.sel td {
  background: var(--accent-weak);
}

/* L'identité d'un expert sur une ligne : pastille, nom cliquable, fonction,
   ancienneté. Le nom est un bouton — il ouvre le tiroir, il ne navigue pas. */
.exp {
  display: flex;
  align-items: center;
  gap: 10px;
}
.exp .eav {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  font-size: 12px;
  border: none;
}
.e-name {
  font-weight: 600;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.e-name:hover {
  color: var(--accent);
  text-decoration: underline;
}
.e-role {
  color: var(--text-2);
  font-size: 11.5px;
}
.e-yrs {
  color: var(--text-3);
  font-size: 11px;
}

/* ------------------------------------------- LA GRILLE DE TARIFICATION
   Le tarif de référence se lit, la grille complète apparaît au survol. Ce
   n'est pas une coquetterie : la tarification n'est PAS proportionnelle à la
   durée, et un seul prix affiché laisserait croire qu'on peut la diviser. */
.cout {
  position: relative;
  white-space: nowrap;
}
/* Elle est POSITIONNEE PAR RAPPORT A LA FENETRE, et non par rapport a sa
   cellule : le tableau defile horizontalement dans sa carte, et un conteneur
   qui defile rogne ce qui en deborde. Le script pose le haut et la gauche au
   survol ; la feuille de style ne fait que le cadre. */
.grille-prix {
  position: fixed;
  z-index: 70;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--accent-bord);
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--ombre-14);
  padding: 10px 12px;
  display: none;
}
.grille-prix .gp-head {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--accent);
  margin-bottom: 7px;
}
.grille-prix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.grille-prix td {
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.grille-prix tr:last-child td {
  border-bottom: none;
}
.grille-prix td:last-child {
  text-align: right;
  font-weight: 600;
}
.grille-prix tr.reference td {
  color: var(--accent);
}
.grille-prix .gp-foot {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 7px;
  line-height: 1.45;
  white-space: normal;
}

/* Le marqueur de régime. Deux prix ne se comparent pas sans lui : en
   contractualisé aucun jeton n'est consommé, le réseau facture directement. */
.tag.regime-contractualise {
  background: var(--teal-bg);
  color: var(--teal);
}
.tag.regime-ouvert {
  background: var(--accent-weak);
  color: var(--accent);
}

/* Le commentaire d'une ligne : tronqué, le texte entier en infobulle. */
.cmt {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
  vertical-align: bottom;
}
.cmt.ajouter {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-3);
  cursor: pointer;
}
.cmt.ajouter:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Les deux états de profil qui manquaient aux badges : un profil planifié et un
   profil dont l'appel a eu lieu. */
.b-planifie {
  background: var(--amber-bg);
  color: var(--amber);
}
.b-realise {
  background: var(--green-bg);
  color: var(--green);
}

/* ---------------------------------------- LE TIROIR, SUITE : L'IDENTITÉ
   Le tiroir existait pour un détail court. Une fiche d'expert en demande
   davantage : une identité en tête, des actions, et deux volets. */
.dr-id {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-right: 34px;
}
.dr-av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-weight: 700;
  font-size: 17px;
  background: var(--text-3);
}
.dr-role {
  color: var(--text-2);
  font-weight: 500;
  margin-top: 1px;
  font-size: 12.5px;
}
.dr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
  align-items: center;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--fond-gris);
  color: var(--text-2);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 500;
}
.meta-chip b {
  color: var(--text);
  font-weight: 600;
}
.dr-cta {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  align-items: center;
}
.dr-cta .btn {
  flex: 1;
  justify-content: center;
}
.dr-tabs {
  display: flex;
  gap: 4px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dr-tab {
  padding: 12px 4px;
  margin-right: 18px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.dr-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.dr-pane {
  display: none;
}
.dr-pane.show {
  display: block;
}
.dr-sec {
  margin-bottom: 22px;
}
.dr-sec h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 10px;
}
.dr-bio {
  color: var(--text-2);
  line-height: 1.6;
  font-size: 12.5px;
  white-space: pre-wrap;
}
table.grille-tiroir {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
}
table.grille-tiroir th,
table.grille-tiroir td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.grille-tiroir th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-3);
}
table.grille-tiroir td:last-child,
table.grille-tiroir th:last-child {
  text-align: right;
}

/* -------------------------------------- LES RÉPONSES DE QUALIFICATION
   Une question, sa réponse. La réponse est décalée et portée par un filet :
   on doit voir d'un coup d'oeil ce que l'expert a répondu et ce que le projet
   avait demandé. */
.scr-item {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px;
  margin-bottom: 11px;
  background: var(--canvas);
}
.scr-q {
  display: flex;
  gap: 10px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
}
.scr-num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.scr-a {
  margin: 9px 0 0 32px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.6;
  border-left: 2px solid var(--teal);
  padding-left: 12px;
  white-space: pre-wrap;
}
.scr-a.sans-reponse {
  border-left-color: var(--border-strong);
  color: var(--text-3);
  font-style: italic;
}

/* ========================================================= LA MESSAGERIE
   L'écran de communication d'un projet
   (`maquettes/roundbase_communication.html`) : la liste des fils à gauche, la
   conversation à droite. La forme compte ici plus qu'ailleurs — une messagerie
   où lire le fil suivant demande de recharger la page n'est pas une
   messagerie. */

/* Le bandeau qui explique l'adresse du projet. Il est en tête et non en aide
   de bas de page : c'est le mécanisme central de l'écran, pas une note. */
.bandeau-adresse {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--accent-weak);
  border: 1px solid var(--accent-bord);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.bandeau-adresse b {
  color: var(--text);
}
.bandeau-adresse .ba-ic {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.bandeau-adresse .ba-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex: none;
}

/* Les deux volets. La hauteur est fixe : c'est elle qui permet aux deux
   colonnes de défiler séparément, et donc de garder la liste sous les yeux. */
.messagerie {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  height: 620px;
  margin-bottom: 18px;
}
.volet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.volet-tete {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.volet-corps {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.volet-pied {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  flex: none;
  background: var(--canvas);
}
.volet-pied .field {
  margin-bottom: 9px;
}
.volet-pied textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  background: var(--surface);
  resize: vertical;
}

/* Les jetons de filtre de la maquette : quatre vues de la même liste. */
.jetons-filtre {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.jeton {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
}
.jeton:hover {
  background: var(--fond-leger);
  color: var(--text);
}
.jeton.actif {
  background: var(--accent-weak);
  border-color: var(--accent-bord);
  color: var(--accent);
}

/* Une ligne de fil. C'est un bouton : il ouvre la conversation à droite, il ne
   navigue pas — c'est tout l'intérêt des deux volets. */
.fil-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
}
.fil-item:hover {
  background: var(--fond-leger);
}
.fil-item.actif {
  background: var(--accent-weak);
  box-shadow: inset 2px 0 0 var(--accent);
}
.fil-item .fi-milieu {
  display: block;
  flex: 1;
  min-width: 0;
}
.fil-item .fi-tete {
  display: flex;
  align-items: center;
  gap: 7px;
}
.fil-item .fi-reseau {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
}
.fil-item .fi-date {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
  flex: none;
}
.fil-item .fi-reseau {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fil-item .fi-date {
  font-size: 10.5px;
  white-space: nowrap;
}
/* Le nom du projet, sous le réseau : la ligne d'objet de la maquette. */
.fil-item .fi-projet {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fil-item .fi-bas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

/* Les petites étiquettes de la maquette (`.mini`). Le canal a ses deux
   couleurs : indigo pour le mail, violet pour la messagerie — on reconnaît un
   fil e-mail sans lire. */
.mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.mini.canal-mail {
  background: var(--accent-weak);
  color: var(--accent);
}
.mini.canal-message {
  background: var(--violet-bg);
  color: var(--violet);
}
.mini.mini-neutre {
  background: var(--fond-gris);
  color: var(--text-2);
}
.mini.mini-traite {
  background: var(--teal-bg);
  color: var(--teal);
}

/* La ligne qui dit d'où part la réponse, au-dessus de la saisie. */
.cmp-from {
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.cmp-from b {
  color: var(--accent);
}

/* Un libellé que seul un lecteur d'écran lit : la maquette n'en montre pas
   au-dessus de la zone de réponse, mais le champ doit rester nommé. */
.lecteur-ecran {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* L'en-tête de la conversation : le réseau, le canal, et l'action de clôture. */
.conversation-tete {
  display: flex;
  align-items: center;
  gap: 12px;
}
.conversation-tete .ct-reseau {
  font-weight: 700;
  font-size: 14px;
}
.conversation-tete .btn {
  margin-left: auto;
  flex: none;
}
/* Sous le réseau : l'étiquette du canal puis sa phrase, comme la maquette. */
.conversation-tete .ct-sous {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-3);
}
/* La zone de réponse sur fond blanc, comme le compositeur de la maquette.
   Limité à la messagerie : les autres écrans à volets gardent leur pied. */
.messagerie .volet-pied {
  background: var(--surface);
  padding: 12px 16px;
}
.messagerie .volet-pied textarea {
  border-radius: 9px;
  min-height: 74px;
}
.messagerie .volet-pied .actions-bas {
  justify-content: flex-end;
  margin-top: 9px;
}

/* Un message, comme dans la maquette : une rangée par message, l'auteur en
   tête. Dans une conversation, savoir qui parle prime sur tout le reste — d'où
   la pastille, le nom, et la mention du sens. */
.msg {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.msg:last-of-type {
  border-bottom: none;
}
.msg.sortant {
  background: var(--fond-leger);
}
.msg .m-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.msg .m-qui {
  min-width: 0;
}
.msg .m-who {
  font-weight: 600;
  font-size: 12.5px;
}
.msg .m-adr {
  color: var(--text-3);
  font-size: 11px;
  margin-top: 1px;
}
.msg .m-dt {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
  text-align: right;
  flex: 0 0 auto;
}
.msg .m-dir {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: 1px;
}
.msg .d-in {
  background: var(--accent-weak);
  color: var(--accent);
}
.msg .d-out {
  background: var(--fond-gris);
  color: var(--text-2);
}
.msg .m-cc {
  padding-left: 42px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
}
.msg .msg-objet {
  padding-left: 42px;
  font-weight: 700;
  font-size: 12.5px;
  margin: 9px 0 0;
}
.msg .msg-corps {
  padding-left: 42px;
  white-space: pre-wrap;
  font-size: 12.5px;
  line-height: 1.65;
  margin-top: 9px;
  color: var(--text);
}
.msg .erreur,
.msg .msg-produits {
  margin-left: 42px;
}

/* L'identité de l'expéditeur. Ronde pour une personne — pastille ou photo —,
   carrée pour une organisation, comme un logo. Sortant en indigo, entrant en
   sarcelle : la couleur redit le sens. */
.m-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-weight: 700;
  font-size: 11px;
  background: var(--accent);
  object-fit: cover;
}
.m-av.logo {
  border-radius: 8px;
}
.m-av.entrant {
  background: var(--teal);
}

/* ============================================================== LA FINANCE
   Le porte-monnaie de jetons et les diagrammes en barres de
   `maquettes/roundbase_finance.html`. */

/* Deux colonnes de cartes, comme la maquette : les chiffres et le registre à
   gauche, les répartitions à droite. Elles se replient en une seule colonne
   quand la place manque — les maquettes sont dessinées pour 1180 px, mais rien
   n'interdit de consulter plus étroit. */
.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.deux-colonnes > div > .sec-label:first-child {
  margin-top: 0;
}
@media (max-width: 1080px) {
  .deux-colonnes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* La parité, rappelée à côté du titre du porte-monnaie. Ce n'est pas une
   décoration : un jeton n'est PAS une monnaie, et la parité stricte est l'une
   des trois conditions qui le maintiennent hors du champ des services de
   paiement. */
.parite {
  background: var(--teal-bg);
  color: var(--teal);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* Le porte-monnaie : trois cases, puis une barre qui dit quelle part du solde
   est déjà promise. Un total seul ne le dirait pas. */
.porte-monnaie {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.pm-case {
  flex: 1 1 150px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--canvas);
}
.pm-case.dispo {
  border-color: var(--green-bord);
  background: var(--green-bg);
}
.pm-case.reserve {
  border-color: var(--amber-bord);
  background: var(--amber-bg);
}
.pm-case .pm-l {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-3);
}
.pm-case.dispo .pm-l {
  color: var(--green);
}
.pm-case.reserve .pm-l {
  color: var(--amber);
}
.pm-case .pm-v {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.pm-case .pm-s {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
  line-height: 1.4;
}
.pm-barre {
  height: 8px;
  border-radius: 20px;
  background: var(--green-bg);
  overflow: hidden;
  margin-top: 14px;
}
.pm-barre i {
  display: block;
  height: 100%;
  background: var(--amber);
}
.pm-pied {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 13px;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
}
.pm-pied .btn {
  margin-left: auto;
  flex: none;
}

/* Un diagramme en barres. Il n'y a pas de bibliothèque de graphiques dans ce
   dépôt et il n'en faut pas : une barre est une largeur en pourcentage. */
.barres {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.barre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.barre .b-nom {
  flex: 0 0 38%;
  color: var(--text-2);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.barre .b-piste {
  flex: 1;
  height: 9px;
  border-radius: 20px;
  background: var(--fond-gris);
  overflow: hidden;
}
.barre .b-piste i {
  display: block;
  height: 100%;
  background: var(--accent);
  min-width: 2px;
}
.barre .b-piste i.teal {
  background: var(--teal);
}
.barre .b-val {
  flex: 0 0 30px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* La même idée à la verticale, pour une série jour par jour : une colonne est
   une hauteur en pourcentage. Le survol d'une colonne donne le jour et la
   valeur ; la piste couvre toute la hauteur pour que la cible soit large. */
.usage-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.usage-grille .card {
  margin-bottom: 0;
}
.colonnes {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 120px;
  border-bottom: 1px solid var(--border);
}
.colonnes .col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-width: 2px;
}
.colonnes .col:hover {
  background: var(--fond-gris);
}
.colonnes .col i {
  display: block;
  width: 100%;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.colonnes-axe {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 6px;
}

/* La nature d'un mouvement du registre. Un achat, une réservation, une
   libération et une consommation ne se lisent pas de la même façon, et la
   couleur le dit avant le libellé. */
.b-mv-achat,
.b-mv-liberation {
  background: var(--green-bg);
  color: var(--green);
}
.b-mv-reservation {
  background: var(--amber-bg);
  color: var(--amber);
}
.b-mv-consommation {
  background: var(--accent-weak);
  color: var(--accent);
}
.b-mv-credit_reseau,
.b-mv-reversement {
  background: var(--fond-gris);
  color: var(--text-2);
}

/* Ce qui entre et ce qui sort. Le vert ne marque que l'entrée : une sortie
   n'est pas une erreur, elle n'a donc pas à être rouge. */
.chiffre.entree {
  color: var(--green);
  font-weight: 700;
}
.chiffre.sortie {
  font-weight: 700;
}

/* Un champ posé directement dans une cellule de tableau : la grille tarifaire
   s'edite ligne a ligne, et chaque cellule porte sa saisie. */
table.liste td input[type="number"],
table.liste td input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  font-size: 12.5px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
table.liste td input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}

/* L'attribut « hidden » du HTML doit l'emporter sur toute regle de classe qui
   pose un « display ». Sans cela, un element masque par le script reste
   visible des lors qu'une classe lui donne un display — ce qui etait le cas du
   rappel de filtre, affiche en permanence alors qu'il portait « hidden ».
   Constate le 10 octobre en regardant l'ecran, invisible des tests. */
[hidden] {
  display: none !important;
}

/* Une barre d'enregistrement COLLE AU BAS DE L'ECRAN quand elle est la seule
   de la page. Dans une carte, elle est le pied de cette carte : trois barres
   collantes sur un meme ecran se superposeraient et on ne saurait plus
   laquelle enregistre quoi. */
.card .savebar {
  position: static;
  bottom: auto;
}

/* Un tableau trop large defile DANS sa carte, et non en poussant la page
   entiere : la barre laterale et la barre d'onglets doivent rester en place.
   C'est ce que font les maquettes avec « tablewrap ». */
.tablewrap {
  overflow-x: auto;
}
.tablewrap::-webkit-scrollbar {
  height: 10px;
}
.tablewrap::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 6px;
  border: 2px solid var(--surface);
}
.tablewrap::-webkit-scrollbar-track {
  background: var(--fond-gris);
  border-radius: 6px;
}
table.liste.large {
  min-width: 1080px;
}
table.liste.large th,
table.liste.large td {
  white-space: nowrap;
}
table.liste.large td .e-role,
table.liste.large td .cmt {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

/* ================================================= LA CRÉATION D'UN PROJET
   Les pièces du formulaire de `maquettes/roundbase_nouveau_projet.html` qui
   n'existaient pas encore. Elles servent ailleurs dès qu'un formulaire compose
   une liste au clavier. */

/* Le sous-titre d'un en-tête de carte : ce que la section décide, en une
   phrase. L'en-tête passe alors en colonne. */
.card .card-head.titre-et-sous {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.card .card-head .sous {
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 500;
}
.card .card-head .titre-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* La marque d'un champ obligatoire. */
.req {
  color: var(--red);
  margin-left: 2px;
}

/* Un interrupteur suivi de son libellé et de sa conséquence. */
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.switch-row .sw-titre {
  font-weight: 600;
  font-size: 12.5px;
}
/* Hors d'un « .field », l'aide n'héritait pas de son gris. */
.switch-row .aide {
  color: var(--text-3);
  font-size: 11.5px;
}

/* Une liste qui se saisit au clavier : chaque valeur devient une étiquette à
   l'Entrée. Distincte de « .tags » seule, qui ne fait qu'afficher. */
.tags.saisie {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px;
  min-height: 40px;
  align-items: center;
  cursor: text;
}
.tags.saisie:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.tags.saisie input {
  border: none;
  outline: none;
  box-shadow: none;
  flex: 1;
  min-width: 130px;
  width: auto;
  padding: 3px;
  font-size: 12.5px;
}
.tags .tag button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  opacity: 0.7;
  padding: 0;
}
.tags .tag button:hover {
  opacity: 1;
}

/* Les lignes de l'équipe du projet : une personne, son adresse, sa présence
   attendue aux appels, et de quoi la retirer. L'en-tête reprend les mêmes
   colonnes, celles de la maquette. */
.mhead,
.member {
  display: grid;
  grid-template-columns: 1fr 1fr 188px 32px;
  gap: 10px;
  align-items: center;
}
.mhead {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 7px;
}
.member {
  margin-bottom: 9px;
}
.member .x {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
}
.member .x:hover {
  background: var(--red-bg);
  color: var(--red);
}
.member .x:disabled {
  visibility: hidden;
}
/* L'adresse se lit et ne se saisit pas : du texte, et non un champ grisé
   qui inviterait à cliquer. */
.member .adresse-membre {
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------- L'ÉQUIPE EN LISTE COMPACTE
   Une ligne courte par personne, l'adresse sous le nom, pour qu'une équipe
   nombreuse reste lisible sans occuper la largeur du cadre. Les mêmes règles
   que la création d'un projet (fiche de convergence de novembre 2026), pour
   que les deux écrans composent une équipe de la même façon. */
.equipe-compacte {
  /* La largeur de la création d'un projet, écran de référence pour les deux. */
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.equipe-compacte .member {
  grid-template-columns: 1fr 150px 28px;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.equipe-compacte .member:last-child {
  border-bottom: none;
}
.equipe-compacte .member select {
  padding: 4px 6px;
  font-size: 12px;
}
.equipe-compacte .member .x {
  width: 26px;
  height: 26px;
}
.equipe-compacte .adresse-membre {
  display: block;
  font-size: 11px;
  color: var(--text-3);
}
/* Un membre marqué pour être retiré, tant que rien n'est enregistré. */
.equipe-compacte .member.a-retirer > span {
  opacity: 0.5;
  text-decoration: line-through;
}

/* La fenêtre d'ajout : les favoris en tête, puis la recherche et la liste. */
.favoris {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.favoris-titre {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 7px;
}
.liste-ajout {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 8px;
}
.liste-ajout .ligne-ajout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.liste-ajout .ligne-ajout:last-child {
  border-bottom: none;
}
.liste-ajout .ligne-ajout .qui {
  flex: 1;
  min-width: 0;
}
.liste-ajout .ligne-ajout .qui .discret {
  display: block;
  font-size: 11px;
}

/* Le brief déjà envoyé : grisé, lisible, non modifiable. */
.brief-fige input[readonly],
.brief-fige textarea[readonly] {
  background: var(--canvas);
  color: var(--text-2);
  cursor: default;
}
.brief-fige input[readonly]:focus,
.brief-fige textarea[readonly]:focus {
  border-color: var(--border-strong);
  box-shadow: none;
}

/* Le récapitulatif avant enregistrement : en rouge, ce que liront les
   réseaux d'experts. */
.recap {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.6;
}
.recap-reseau {
  color: var(--red);
  font-weight: 600;
}
.recap-legende {
  font-size: 12px;
  color: var(--text-2);
}

/* Un critère suivi, tel qu'il deviendra une ligne du tableau des analyses. */
.crit {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 7px;
  background: var(--canvas);
}
.crit .ci {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.crit .cn {
  font-weight: 600;
  font-size: 12.5px;
  flex: 1;
}
.crit button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-3);
  font-weight: 700;
}
.crit button:hover {
  color: var(--red);
}
.kpi-zone {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Un choix exclusif présenté en cartes : le mode de diffusion. Ce sont de
   vrais boutons radio, masqués — le clavier et les lecteurs d'écran les
   trouvent ; la carte cochée se reconnaît à « :has ». */
.opt {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 9px;
  cursor: pointer;
  position: relative;
}
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt:hover,
.opt:has(input:focus-visible) {
  border-color: var(--accent);
}
.opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-weak);
}
.opt .rad {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex: 0 0 18px;
  margin-top: 1px;
  position: relative;
}
.opt:has(input:checked) .rad {
  border-color: var(--accent);
}
.opt:has(input:checked) .rad::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.opt .ot {
  font-weight: 600;
  font-size: 12.5px;
}
.opt .od {
  color: var(--text-2);
  font-size: 11.5px;
  margin-top: 2px;
}
.opt .tagrec {
  background: var(--green-bg);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 7px;
}

/* La liste des réseaux à cocher, quand la diffusion va à une sélection. */
.netpick {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--canvas);
}
.np-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 10px;
}
.np-count {
  background: var(--accent-weak);
  color: var(--accent);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 10.5px;
}
.np-act {
  color: var(--accent);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
}
.np-act:first-of-type {
  margin-left: auto;
}
.np-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 8px;
}
.np-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
}
.np-item:hover {
  border-color: var(--accent);
}
.np-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-weak);
}
.np-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}
.np-n {
  display: block;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
}
.np-r {
  display: block;
  font-size: 10px;
  margin-top: 1px;
  font-weight: 700;
}
.np-r.ctr {
  color: var(--teal);
}
.np-r.opn {
  color: var(--accent);
}

/* Ce que la diffusion engage, par régime : qui facture, et si des jetons
   seront consommés. */
.regime-recap {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.rrbox {
  flex: 1 1 220px;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 11.5px;
  line-height: 1.55;
}
.rrbox .rt {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 3px;
}
.rr-ctr {
  background: var(--teal-bg);
  color: var(--accent-fort);
}
.rr-opn {
  background: var(--accent-weak);
  color: var(--accent-fort);
}

/* Deux actions côte à côte dans la barre d'enregistrement : un libellé coupé
   sur deux lignes se lit mal, c'est la note qui cède la place. */
.savebar .sp .btn {
  white-space: nowrap;
}

/* Une rubrique secondaire à l'intérieur d'une section. */
.subfield {
  border-top: 1px dashed var(--border);
  margin-top: 15px;
  padding-top: 14px;
}

/* ================================================= LA SEMAINE EN CALENDRIER
   Le haut de `maquettes/roundbase_planification.html` : une semaine d'une
   heure par ligne, et à côté les réseaux actifs du projet. */
/* Nommée pour cet écran et non « top-grid » comme dans la maquette : l'onglet
   Analyses emploie ce nom-là avec d'autres colonnes, et deux règles du même
   nom dans une feuille commune se seraient écrasées en silence. */
.grille-semaine {
  display: grid;
  grid-template-columns: 1fr 304px;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}
.cal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}
.legend {
  margin-left: auto;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
}
.lg .sw {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}
.sw.prevu {
  background: var(--accent);
}
.sw.realise {
  background: var(--green);
}
/* Le nombre de colonnes est posé par le gabarit : cinq jours, ou sept quand
   un entretien tombe le week-end. */
.cal {
  display: grid;
}
.cal .ch {
  padding: 9px 6px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  color: var(--text-2);
}
.cal .ch .dnum {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}
.cal .ch.coin {
  border-left: none;
}
.cal .ct {
  padding: 4px 6px;
  font-size: 10.5px;
  color: var(--text-3);
  text-align: right;
  border-top: 1px solid var(--border);
  min-height: 38px;
}
.cal .cell {
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  min-height: 38px;
  padding: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ev {
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 10.5px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ev.prevu {
  background: var(--accent-weak);
  color: var(--accent);
  border: 1px solid var(--accent-bord);
}
.ev.realise {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-bord);
}
.cal-pied {
  padding: 8px 14px;
  color: var(--text-3);
  font-size: 11px;
  border-top: 1px solid var(--border);
}
.en-card {
  padding: 15px 16px;
}
.en-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.en-head h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}
.en-count {
  background: var(--teal-bg);
  color: var(--teal);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}
.en-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.en-item:last-of-type {
  border-bottom: none;
}
.en-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--surface);
  background: var(--accent);
}
.en-name {
  font-weight: 600;
  font-size: 12.5px;
}
.en-sub {
  color: var(--text-3);
  font-size: 11px;
}
.en-acts {
  margin-left: auto;
}
/* Les boutons d'une ligne de la planification, côte à côte. Limité à la carte
   de la planification : l'Historique emploie aussi .en-acts, pour les étoiles
   de la note, qu'un écart de 6 px disjoindrait. */
.en-card .en-acts {
  display: flex;
  gap: 6px;
}
/* Quatre teintes, reprises de la maquette, qui ne servent qu'à distinguer les
   lignes de la carte entre elles. */
.en-logo.c0 {
  background: var(--teinte-0);
}
.en-logo.c1 {
  background: var(--accent);
}
.en-logo.c2 {
  background: var(--teinte-3);
}
.en-logo.c3 {
  background: var(--teinte-4);
}
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}
.icon-btn:hover {
  background: var(--accent-weak);
  color: var(--accent);
  border-color: var(--accent-bord);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
}

/* L'état vide de la planification : tant qu'aucun créneau n'est arrivé, il
   tient la place de la semaine et dit à quoi sert l'onglet. */
.planif-vide {
  padding: 22px 22px 16px;
}
.planif-vide .pv-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-weak);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.planif-vide .pv-ic svg {
  width: 19px;
  height: 19px;
}
.planif-vide h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}
.planif-vide .pv-texte {
  color: var(--text-2);
  max-width: 72ch;
  margin: 0 0 16px;
}
.planif-vide .etapes {
  margin-bottom: 14px;
}
.planif-vide .pv-suite {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--canvas);
  font-weight: 500;
}
.planif-vide .pv-suite .btn {
  margin-left: auto;
}
.planif-vide .pv-note {
  margin: 12px 0 0;
  max-width: 72ch;
}

/* Les créneaux proposés, en pastilles sur la ligne de l'expert. Une pastille
   à retenir est un bouton ; une pastille déjà retenue n'en est plus un. */
.slots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.slot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  white-space: nowrap;
}
button.slot {
  cursor: pointer;
}
.slot svg {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--text-3);
}
.slot .s-quand,
.slot .s-det {
  display: block;
}
.slot .s-det {
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 500;
}
button.slot:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-weak);
}
button.slot:hover svg {
  color: var(--accent);
}
.slot.retenu {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-bord);
}
.slot.retenu svg,
.slot.retenu .s-det {
  color: var(--green);
}
.via {
  display: block;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 500;
  margin-top: 5px;
}

/* Les étapes d'un parcours, en bandeau : ce qui se passe, dans l'ordre, et qui
   le fait. Reprises de `maquettes/roundbase_en_planification.html`. */
.etapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.etape {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 13px;
}
.etape .sn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.etape .st {
  font-weight: 600;
  font-size: 12.5px;
}
.etape .sd {
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 2px;
}

/* Une ligne qui s'ouvre au clic : le curseur le dit avant le survol. */
tr.cliquable {
  cursor: pointer;
}

/* ================================================= LES ÉQUIPES ET LES DROITS
   L'écran des équipes d'un réseau
   (`maquettes/roundbase_en_equipes.html`) : la carte d'une équipe, les règles
   d'arrivée des demandes, et le tiroir où l'on accorde les vingt-quatre
   droits. */

/* Une règle d'arrivée, par nature de demande. Elle est encadrée parce qu'elle
   forme un tout : changer le comportement sans regarder le délai d'alerte
   n'aurait pas de sens. */
.regle {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px 2px;
  margin-bottom: 12px;
  background: var(--canvas);
}
.regle .r-titre {
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 11px;
}

/* Une ligne de droit : sa case, son libellé, et ce qu'il faut savoir avant de
   l'accorder. Un droit acquis d'office n'a pas de case active — on le montre
   quand même, sans quoi on croirait qu'un membre sans attribution ne peut
   rien faire. */
.ligne-droit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.ligne-droit:last-child {
  border-bottom: none;
}
.ligne-droit.office {
  color: var(--text-3);
}
.ligne-droit input[type="checkbox"] {
  margin-top: 2px;
  flex: none;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

/* L'avertissement porté par un droit sensible. Il est à l'endroit où l'on
   accorde, et non dans une note de bas de page que personne ne lit. */
.aide.alerte {
  color: var(--amber);
  font-weight: 600;
}

/* La carte d'une équipe réutilise celle d'un projet ; ses compteurs tiennent
   sur une ligne et se séparent à l'œil. */
.proj-card .pc-meta span + span {
  margin-left: 14px;
}

/* Une ligne de fiche dans un tiroir : un libellé à gauche, sa valeur à droite.
   Reprise des maquettes, où elle sert aux profils comme aux réseaux. */
.pstat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-2);
}
.pstat:last-child {
  border-bottom: none;
}
.pstat b {
  color: var(--text);
  text-align: right;
}

/* Ce qu'un message a produit, et de quoi en produire encore. Posé au pied du
   message, parce que c'est son texte qu'on recopie. */
.msg-produits {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.msg-produits .btn {
  margin-left: auto;
}

/* ------------------------------------------------- LA RESTITUTION
   Les transcripts, reprise de `maquettes/roundbase_transcription.html`. Trois
   vues du même entretien, sous un sélecteur segmenté : mise en forme, document
   anonymisé, brut.

   POURQUOI UN DOCUMENT ET NON UN TABLEAU. Un transcript se LIT, en continu, sur
   une colonne étroite. C'est le seul endroit du produit où la mesure utile est
   la longueur de ligne et non la densité d'information — d'où les 880 px de la
   maquette, qui ne sont pas un caprice mais la largeur au-delà de laquelle
   l'œil perd sa ligne. */
.trans-bar {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}
.trans-bar .bar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fond-gris);
  color: var(--text-2);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
}
.lang-chip svg {
  width: 13px;
  height: 13px;
}
.doc-wrap {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.doc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 12px;
  margin-bottom: 2px;
}
.doc-title b {
  color: var(--text);
  font-size: 13px;
}

/* Un transcript mis en forme, un par entretien. */
.tdoc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px 28px;
}
.tdoc-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}
.tdoc-head .eav {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  font-size: 16px;
}
.tdoc-head .h-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.tdoc-head .h-role {
  color: var(--text-2);
  font-size: 12.5px;
  margin-top: 1px;
}
.tdoc-head .h-meta {
  margin-left: auto;
  text-align: right;
  color: var(--text-2);
  font-size: 12px;
}
.tdoc-head .h-meta .d {
  font-weight: 700;
  color: var(--text);
  font-size: 12.5px;
}
.tdoc-head .h-meta .dur {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 11.5px;
}
.tdoc-sum {
  background: var(--accent-weak);
  border: 1px solid var(--accent-bord);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0 6px;
}
.tdoc-sum h4 {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}
.tdoc-sum ul {
  margin: 0;
  padding-left: 18px;
}
.tdoc-sum li {
  margin: 5px 0;
  font-size: 12.5px;
  line-height: 1.5;
}
.tsec {
  margin-top: 17px;
}
.tsec h5 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.tsec h5::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--accent);
  border-radius: 3px;
  display: inline-block;
}
.tsec p {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 8px;
}

/* L'avertissement du document anonymisé.
   IL RESTE AFFICHÉ, toujours, et ce n'est pas une précaution d'écriture : une
   anonymisation ratée NE SE VOIT PAS. Un nom oublié dans un document de trente
   pages passe inaperçu jusqu'au jour où il ne passe plus. */
.anon-warn {
  display: flex;
  gap: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-bord);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--amber-fort);
  line-height: 1.6;
}
.anon-warn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--amber);
}

/* La vue brute : la liste des entretiens à gauche, les tours de parole à
   droite. Deux volets, comme la messagerie. */
.raw-grid {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 16px;
  align-items: start;
}
.raw-list {
  padding: 7px;
}
.raw-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.raw-item:hover {
  background: var(--fond-gris);
}
.raw-item.active {
  background: var(--accent-weak);
}
.raw-item .eav {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 11px;
}
.raw-item .ri-name {
  font-weight: 600;
  font-size: 12.5px;
}
.raw-item.active .ri-name {
  color: var(--accent);
}
.raw-item .ri-date {
  color: var(--text-3);
  font-size: 11px;
}
.raw-panel {
  padding: 18px 22px;
}
.raw-phead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.raw-phead .pn {
  font-size: 14.5px;
  font-weight: 700;
}
.raw-phead .pr {
  color: var(--text-2);
  font-size: 12px;
}
.raw-phead .pm {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11.5px;
  text-align: right;
}

/* Un tour de parole. L'horodatage est en chiffres à largeur fixe : sans cela
   les minutes dansent d'une ligne à l'autre. */
.turn {
  display: flex;
  gap: 13px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.turn:last-child {
  border-bottom: none;
}
.turn .ts {
  flex: 0 0 44px;
  color: var(--text-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.turn .corps {
  flex: 1;
}
.turn .spk {
  font-weight: 700;
  font-size: 11.5px;
  margin-bottom: 2px;
  color: var(--text-2);
}
.turn.expert .spk {
  color: var(--accent);
}
.turn .tx {
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* La seconde ligne de la barre : la recherche à gauche, la langue à droite.
   Sur une seule ligne avec les trois sous-onglets et les trois boutons, la
   barre déborderait à 1180 px. */
.trans-outils {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 18px;
}
.trans-outils .lang-chip {
  margin-left: auto;
}
.trans-compte {
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.hors-recherche {
  display: none !important;
}

/* Les avatars des experts, teintés comme dans la maquette. La teinte suit
   l'ordre d'affichage, pas l'identité : elle aide l'œil à suivre un même
   entretien d'une vue à l'autre, sans rien signifier. */
.eav.teinte-1 {
  background: var(--teinte-1);
}
.eav.teinte-2 {
  background: var(--teinte-2);
}
.eav.teinte-3 {
  background: var(--teinte-3);
}
.eav.teinte-4 {
  background: var(--teinte-4);
}

/* Le document anonymisé : un seul document, avec sa page de garde. */
.tdoc.anon {
  padding: 34px 40px;
}
.anon-cover {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 6px;
}
.anon-cover .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.anon-cover h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 6px;
}
.anon-cover .sub {
  color: var(--text-2);
  font-size: 12.5px;
  margin-top: 6px;
}
.anon-block {
  padding-top: 22px;
}
.anon-role {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.anon-co {
  color: var(--text-2);
  font-size: 12.5px;
  margin-top: 1px;
}
.anon-meta {
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 3px;
}

/* L'EXEMPLE, tant qu'aucun transcript n'existe. Grisé et non cliquable : il
   doit se lire comme une illustration, jamais comme une donnée. L'étiquette
   « Exemple » le redit pour qui ne remarquerait pas la teinte. */
.exemple-bandeau {
  display: flex;
  gap: 10px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-bord);
  border-radius: var(--radius);
  padding: 12px 15px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--blue-fort);
  line-height: 1.6;
}
.exemple-bandeau svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--blue);
}
.exemple {
  opacity: 0.55;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
}
.exemple-etiquette {
  margin-left: auto;
  background: var(--border);
  color: var(--text-2);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ------------------------------------------------------ L'ANNUAIRE
   Le bandeau qui dit à l'utilisateur ce qu'il a le droit de faire, repris de
   `maquettes/roundbase_en_annuaire.html`.

   POURQUOI IL EXISTE : vingt-quatre droits accordables se répartissent entre
   les membres d'un réseau. Sans ce bandeau, on découvre ce qu'on ne peut pas
   faire en essayant — et un refus sans explication se lit comme une panne. */
.rights {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent-weak);
  border: 1px solid var(--accent-bord);
  border-radius: var(--radius);
  padding: 12px 15px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}
.rights svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--accent);
}

/* Un expert dans une cellule : l'avatar, puis le nom et la fonction. La
   fonction sous le nom plutôt qu'en colonne propre — c'est ce que font les
   maquettes, et cela économise une colonne dans un tableau déjà large. */
.cellule-expert {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cellule-expert .eav {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 11px;
}

/* --------------------------------------------- L'ANNUAIRE PUBLIC (CLIENT)
   Repris de l'onglet « Annuaire public » de `maquettes/roundbase_reseaux.html`.
   Des cartes et non un tableau : un tableau sert à comparer des valeurs
   alignées ; ici il n'y a qu'un texte à lire, et une colonne de descriptif se
   tronque — ce qui reste ne dit rien. */
.anon-note {
  display: flex;
  gap: 10px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-bord);
  border-radius: var(--radius);
  padding: 12px 15px;
  font-size: 12px;
  color: var(--blue-fort);
  line-height: 1.6;
  margin-bottom: 16px;
}
.anon-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--blue);
}
.abar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}
.abar .search {
  max-width: 360px;
}
.afilter {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
}
.afilter:hover {
  background: var(--fond-leger);
  color: var(--text);
}
.afilter.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}
.acount {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}
.agrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.ecard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: 0.14s;
}
.ecard:hover {
  border-color: var(--accent-weak);
  box-shadow: 0 4px 16px var(--anneau-accent);
}
.ecard .e-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ecard .e-av {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  background: var(--fond-gris);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecard .e-av svg {
  width: 19px;
  height: 19px;
}
.ecard .e-id {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.1px;
}
.ecard .e-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
}

/* -------------------------------------------- LES RÉSEAUX PARTENAIRES
   Un bandeau par réseau, repris de `maquettes/roundbase_reseaux.html` : ce
   qu'est le réseau à gauche, ce que le client en a décidé dans la colonne de
   droite. Un réseau écarté reste visible, mais estompé. */
.block {
  margin-bottom: 24px;
}
.platcard {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 13px;
}
.platcard.excl {
  opacity: 0.6;
  background: var(--fond-leger);
}
.platcard .pc-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--surface);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platcard .pc-body {
  flex: 1;
  min-width: 0;
}
.platcard .pc-top {
  flex-wrap: wrap;
  margin-bottom: 8px;
}
/* Le nom ouvre la fiche : un bouton, pour le clavier, qui a l'allure d'un
   titre. */
.platcard .pc-name {
  font-size: 15px;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}
.platcard .pc-name:hover,
.platcard .pc-name:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.platcard .pc-name .info {
  width: 13px;
  height: 13px;
  color: var(--accent);
  opacity: 0;
  transition: 0.12s;
}
.platcard .pc-name:hover .info,
.platcard .pc-name:focus-visible .info {
  opacity: 1;
}
.platcard .stars svg {
  width: 14px;
  height: 14px;
}
.platcard .stars .num {
  color: var(--text);
  font-weight: 700;
  margin-left: 4px;
  font-size: 12px;
}
.platcard .pc-meta {
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 9px;
}
.mchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--fond-gris);
  color: var(--text-2);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 500;
}
.mchip b {
  color: var(--text);
  font-weight: 600;
}
.platcard .pc-exp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.platcard .pc-right {
  flex: 0 0 210px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platcard .pc-right .rr {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}
.platcard .pc-right .rv {
  font-size: 12px;
  font-weight: 600;
}
.platcard .pc-right .btn {
  align-self: flex-start;
}

/* ---------------------------------------------------------- LES ANALYSES
   Reprise de `maquettes/roundbase_analyses.html`. Deux cartes en haut — la
   couverture des critères et la boîte à citations — puis la matrice.

   POURQUOI UN TABLEAU ICI, alors que le transcript est un document : parce
   qu'on COMPARE. Ce qu'un expert a dit sur la taille du marché n'a d'intérêt
   qu'à côté de ce que les quatre autres en ont dit. C'est exactement ce qu'un
   tableau sait faire, et ce qu'une suite de documents ne sait pas. */
.top-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}
/* La règle commune « .card + .card » décale la seconde carte d'une pile ; dans
   la grille, elle décrocherait la boîte à citations de l'encart voisin. */
.top-grid > .card + .card {
  margin-top: 0;
}
.summary {
  padding: 16px;
}
.summary .sum-top {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}
.summary .stat {
  flex: 0 0 auto;
}
.summary .stat .v {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.summary .stat .v small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}
.summary .stat .l {
  color: var(--text-2);
  font-size: 11.5px;
  margin-top: 2px;
}

/* Un critère et sa couverture. Le mot « confiance » de la maquette est tenu
   pour ce qu'il est : une mesure de COUVERTURE — combien d'entretiens ont
   parlé de ce point — et non un jugement sur la qualité des réponses. Deux
   avis concordants valent mieux qu'un, c'est tout ce que cela dit. */
.hyp {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.hyp-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hyp-name {
  font-size: 12.5px;
  font-weight: 600;
  flex: 0 0 168px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar {
  flex: 1;
  height: 7px;
  border-radius: 5px;
  background: var(--fond-gris);
  overflow: hidden;
}
.bar i,
.covbar i {
  display: block;
  height: 100%;
  border-radius: 5px;
}
/* Pas encore de données : une barre hachurée grise, qui ne se lit ni comme
   vide (0 %) ni comme pleine. Le rouge de « Faible » serait un jugement. */
.bar.sans-donnees,
.covbar.sans-donnees {
  background: repeating-linear-gradient(
    -45deg,
    var(--fond-gris) 0,
    var(--fond-gris) 4px,
    var(--border) 4px,
    var(--border) 8px
  );
}
.cov.sans-donnees {
  color: var(--text-3);
}
.hyp-attente {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.55;
  margin-bottom: 10px;
}
.hyp-in {
  flex: 0 0 64px;
  text-align: right;
  color: var(--text-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.conf {
  flex: 0 0 76px;
  text-align: right;
}
.cpill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
}
.c-attente {
  background: var(--fond-gris);
  color: var(--text-3);
}
.c-high {
  background: var(--green-bg);
  color: var(--green);
}
.c-mid {
  background: var(--amber-bg);
  color: var(--amber);
}
.c-low {
  background: var(--red-bg);
  color: var(--red);
}
.bar i.c-high,
.covbar i.c-high {
  background: var(--green);
}
.bar i.c-mid,
.covbar i.c-mid {
  background: var(--amber);
}
.bar i.c-low,
.covbar i.c-low {
  background: var(--red);
}

/* La boîte à citations. Un encadré volontairement distinct : ce qui s'y dit
   vient d'une machine, et l'écran ne doit pas le confondre avec le reste. */
.ai {
  display: flex;
  flex-direction: column;
}
.ai .ai-body {
  padding: 15px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ai-hero {
  background: linear-gradient(135deg, var(--accent-pale), var(--blue-pale));
  border: 1px solid var(--accent-bord);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.ai-hero .t {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
}
.ai-hero .t svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.ai-hero .d {
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.5;
  margin-top: 4px;
}
.ai-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ai-input input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
}
.ai-input input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.ai-input button {
  flex: 0 0 auto;
  width: 38px;
  justify-content: center;
  padding: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.qchip {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--fond-gris);
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
}
.qchip:hover {
  background: var(--accent-weak);
  color: var(--accent);
}
/* L'emplacement des citations, vide tant qu'aucune n'est trouvée : un cadre en
   pointillé et une phrase qui dit ce qui viendra s'y ranger. */
.quotes {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  max-height: 182px;
}
.quotes-vide {
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  padding: 11px 12px;
  background: var(--canvas);
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.55;
}
.ai-note {
  margin-top: 11px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-3);
}
.sub-head {
  margin-left: 8px;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text-3);
}

/* La matrice. Elle défile horizontalement quand les experts sont nombreux, et
   la colonne des critères reste en place — sans quoi on perd la ligne qu'on
   lit dès le troisième expert. */
.matwrap {
  overflow-x: auto;
}
table.mat {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.mat th,
table.mat td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
table.mat tbody tr:last-child td {
  border-bottom: none;
}
table.mat tbody tr:hover td {
  background: var(--fond-leger);
}
table.mat thead th {
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border-bottom-color: var(--accent-bord);
}
table.mat .crit-col {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  background: var(--fond-leger);
  color: var(--text);
  font-weight: 700;
  min-width: 178px;
  box-shadow: 1px 0 0 var(--border);
}
table.mat thead .crit-col {
  background: var(--accent-pale);
}
table.mat tbody tr:hover td.crit-col {
  background: var(--fond-gris);
}
table.mat .exp-col {
  min-width: 130px;
}
.exphead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-transform: none;
  letter-spacing: 0;
}
.exphead .eav {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  font-size: 10px;
}
.exphead .en {
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
}

/* L'expert fictif : grisé de bout en bout, et étiqueté. Il montre la forme du
   tableau sans qu'on puisse le prendre pour un entretien réel. */
.col-exemple .eav {
  background: var(--border-strong);
  color: var(--text-2);
}
.col-exemple .en {
  color: var(--text-3);
}
.tag-exemple {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-3);
  border: 1px dashed var(--border-strong);
  border-radius: 5px;
  padding: 0 5px;
}
td.cell-exemple {
  color: var(--text-3);
  font-style: italic;
  font-size: 12px;
}
td.mat-vide {
  color: var(--text-3);
  text-align: center;
  padding: 28px 16px;
}
.mat-note {
  max-width: 75ch;
  line-height: 1.55;
}

/* Une case renseignée est un BOUTON : on l'ouvre pour lire la citation avant
   de retenir. Valider depuis la matrice serait valider à l'aveugle. */
button.cellv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-family: inherit;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
button.cellv:hover {
  background: var(--accent-weak);
  border-color: var(--accent-bord);
}
.srcdot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--text-3);
}
/* Vert : un humain a retenu cette information. C'est la seule différence
   visible entre une proposition et un fait, et elle doit se voir. */
.srcdot.retenue {
  background: var(--green);
}
.cell-empty {
  color: var(--border-strong);
}
.cov {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.covbar {
  flex: 0 0 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--fond-gris);
  overflow: hidden;
}

/* ================================================ LES DEMANDES DU RÉSEAU
   Les bandeaux de `maquettes/roundbase_en_requests.html` : une demande par
   carte, son brief lisible sans l'ouvrir. La classe s'appelle « bandeau » et
   non « req » comme dans la maquette : « .req » marque déjà ici un champ
   obligatoire. Les teintes or et violette de la maquette sont reprises en
   valeurs, la palette commune ne les portant pas. */
.bandeau {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 11px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 13px;
}
.bandeau.preselection {
  border-left-color: var(--amber-vif);
  background: linear-gradient(90deg, var(--amber-pale), var(--surface) 55%);
}
.bandeau.refusee {
  opacity: 0.75;
  border-left-color: var(--text-3);
}
/* Une cotation porte sur un seul expert : elle se distingue d'un coup d'œil. */
.bandeau.cotation {
  border-color: var(--violet-bord);
  border-left-color: var(--violet);
  background: linear-gradient(180deg, var(--violet-bg), var(--surface) 70px);
}
.b-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}
.b-nom {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  text-decoration: none;
}
.b-nom:hover {
  color: var(--accent);
}
.tag.t-cotation {
  background: var(--violet-bg);
  color: var(--violet);
}
.tag.t-preselection {
  background: var(--amber-pale);
  color: var(--amber);
}
/* Le niveau de concurrence, poussé à droite du titre. Il est calculé par la
   plateforme ; le détail est dans la bulle du survol. */
.comp {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: help;
}
.comp .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.comp.c-faible {
  color: var(--green);
}
.comp.c-faible .dot {
  background: var(--green);
}
.comp.c-moyenne {
  color: var(--amber);
}
.comp.c-moyenne .dot {
  background: var(--amber);
}
.comp.c-elevee {
  color: var(--red);
}
.comp.c-elevee .dot {
  background: var(--red);
}
.b-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.b-meta .mi {
  display: flex;
  flex-direction: column;
}
.b-meta .mi .l {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-3);
  font-weight: 700;
}
.b-meta .mi .v {
  font-weight: 600;
  font-size: 12.5px;
  margin-top: 1px;
}
.b-meta .mi .v.dl {
  color: var(--amber);
}
/* Le brief, coupé à quatre lignes : il se lit en entier dans la demande. */
.b-desc {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  margin-bottom: 11px;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b-outils {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.assign {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fond-leger);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 11px;
}
.assign .a-l {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-3);
  font-weight: 700;
}
.assign .a-v {
  font-weight: 600;
  font-size: 12px;
}
.b-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.btn.presel {
  color: var(--amber);
  border-color: var(--amber-bord);
}
.btn.presel:hover {
  background: var(--amber-pale);
}
/* Un refus inactif tant qu'aucun motif n'est coché : au survol, il ne doit
   pas prendre le fond plein d'un bouton principal. */
.btn.danger:disabled:hover {
  background: var(--surface);
}
.toolbar select {
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.toolbar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.kpi .k-ic.gold {
  background: var(--amber-pale);
  color: var(--amber);
}
/* Un indicateur qui attend une brique non construite : il dit ce qui viendra
   plutôt que d'afficher un zéro qui tromperait. */
.kpi.inactif {
  background: var(--canvas);
  box-shadow: none;
}
.kpi.inactif .k-val {
  color: var(--text-3);
}
/* ================================================ LA DEMANDE, CÔTÉ RÉSEAU
   `maquettes/roundbase_en_projet.html`. Les valeurs sont celles de la
   maquette ; les noms de classes aussi, quand ils ne heurtent rien d'existant. */

/* La barre haute : le client, le secteur, puis l'échéance à droite. */
.b-cli {
  background: var(--accent-weak);
  color: var(--accent);
}
.b-sec {
  background: var(--fond-gris);
  color: var(--text-2);
}
.echeance-haut {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: right;
  line-height: 1.35;
}
.echeance-haut b {
  color: var(--amber);
}
.m-head p {
  color: var(--text-2);
  font-size: 12px;
  margin-top: 3px;
}
.mo-lab {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 8px;
}
.note-s {
  padding: 11px 12px;
  background: var(--amber-pale);
  border: 1px solid var(--amber-bord);
  border-radius: 9px;
  color: var(--amber-fort);
  font-size: 11.5px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.mo-note {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 12px;
}
.qsug {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}
.qs {
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
}
.qs:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Le haut de l'onglet : indicateurs et actions côte à côte. */
.topgrid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 15px;
  margin-bottom: 15px;
  align-items: start;
}
.blk {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.blk-h {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blk-h .blk-note {
  margin-left: 12px;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-3);
}
.blk-b {
  padding: 11px 14px;
}
/* Un gabarit inactif : il tient sa place dans la page et dit ce qui viendra.
   Plus pâle que le reste, pour qu'on ne le prenne pas pour un bloc vide par
   erreur. */
.blk.inactif {
  background: var(--canvas);
  border-style: dashed;
  box-shadow: none;
}
.blk.inactif .blk-h {
  color: var(--text-2);
}
.blk.inactif p {
  margin: 0;
  line-height: 1.55;
}
.kgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.kbox {
  background: var(--canvas);
  border-radius: 8px;
  padding: 7px 8px;
}
.kbox .l {
  font-size: 9px;
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
}
.kbox .v {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-top: 1px;
}
.kbox.tl .v {
  color: var(--teal);
}
.kbox.rd .v {
  color: var(--red);
}
.prog {
  margin-top: 9px;
}
.prog .pl {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 4px;
}
.prog .pbar {
  display: block;
  height: 6px;
}

/* Le fil avec le client, pleine largeur, comme dans la maquette. */
.convblk {
  margin-bottom: 22px;
  border-color: var(--accent-bord);
  box-shadow:
    0 2px 6px var(--anneau-accent-leger),
    0 1px 3px var(--ombre-06);
}
.conv-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--accent-pale), var(--surface));
  border-radius: 12px 12px 0 0;
}
.conv-av {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: 0 0 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.conv-n {
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.2px;
}
.conv-s {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 1px;
}
.conv-msgs {
  height: 340px;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm {
  max-width: 72%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
}
.cm.them {
  background: var(--canvas);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.cm.me {
  background: var(--accent);
  color: var(--surface);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.cm .who {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cm .cm-objet {
  font-weight: 600;
  margin-bottom: 2px;
}
/* Un message garde ses retours à la ligne : c'est souvent un e-mail. */
.cm .cm-corps {
  white-space: pre-wrap;
}
.cm .t {
  font-size: 9.5px;
  opacity: 0.7;
  margin-top: 4px;
}
.conv-in {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0 0 12px 12px;
}
.conv-in input {
  flex: 1;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-size: 12.5px;
  font-family: inherit;
}
.conv-in input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}

/* Les experts soumis : le lien vers le parcours, le commentaire du client. */
button.lien {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
button.lien:hover {
  text-decoration: underline;
}
.cmt-cli {
  max-width: 250px;
  background: var(--amber-pale);
  border: 1px solid var(--amber-bord);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--amber-fort);
  line-height: 1.5;
}
.cmt-cli b {
  display: block;
  color: var(--amber-fort);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}
.cmt-cli.neg {
  background: var(--red-bg);
  border-color: var(--red-bord);
  color: var(--red-fort);
}
.cmt-cli.neg b {
  color: var(--red-fort);
}
.cmt-none {
  color: var(--text-3);
  font-style: italic;
  font-size: 11.5px;
}

/* La modale de soumission : la source du profil, puis les questions. */
.pick {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
}
.pick button {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer;
  background: var(--surface);
  font-family: inherit;
  text-align: left;
}
.pick button:hover {
  border-color: var(--accent);
}
.pick button.on {
  border-color: var(--accent);
  background: var(--accent-weak);
}
.pick .pt {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
}
.pick .pd {
  display: block;
  color: var(--text-2);
  font-size: 11px;
  margin-top: 2px;
}
.qbox {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  margin-bottom: 9px;
}
.qbox .q {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
}
.qbox .num {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 19px;
}
.qbox textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
}
.note-soumission {
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.55;
  margin: 12px 0 0;
}

/* La prospection : un bandeau qui rappelle que tout cela reste interne. */
.bandeau-info {
  padding: 11px 12px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-bord);
  border-radius: 9px;
  color: var(--blue-fort);
  font-size: 11.5px;
  line-height: 1.55;
  margin-bottom: 14px;
  max-width: 920px;
}
.kpi .k-val.vert {
  color: var(--green);
}
.kpi .k-val.ambre {
  color: var(--amber);
}
.chan {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.c-li {
  background: var(--blue-pale);
  color: var(--linkedin);
}
.c-mail {
  background: var(--accent-weak);
  color: var(--accent);
}
.c-tel {
  background: var(--teal-bg);
  color: var(--teal);
}
.c-net {
  background: var(--fond-gris);
  color: var(--text-2);
}
.rep {
  font-size: 11.5px;
  font-weight: 600;
}
.rep.y {
  color: var(--green);
}
.rep.w {
  color: var(--amber);
}
.rep.n {
  color: var(--text-3);
}
.doublon {
  display: inline-block;
  margin-top: 3px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
}
/* ------------------------------------------------------------ LE PROFIL
   Les deux écrans de `maquettes/roundbase_en_profil.html` : le profil d'un
   membre de réseau, et la fiche du réseau telle qu'un client la voit. */

/* L'en-tête d'identité : un monogramme, le nom, une ligne de contexte et des
   pastilles. Commun aux deux écrans, qui présentent chacun une identité. */
.prof-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.prof-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.prof-hero .ph-corps {
  flex: 1;
  min-width: 0;
}
.ph-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ph-badge {
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ph-sub {
  color: var(--text-2);
  font-size: 12.5px;
  margin-top: 2px;
}
.ph-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fond-gris);
  color: var(--text-2);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
}
/* Les chiffres de l'en-tête de la fiche réseau : ceux qu'un client lit. */
.ph-stats {
  display: flex;
  gap: 26px;
  margin-top: 14px;
}
.ph-stats .pv {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.ph-stats .pl {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Une équipe dans « Mes équipes » : son nom, ma place, et une pastille qui
   distingue celle que je dirige de celles où je suis membre. */
.myteam {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.myteam:first-child {
  border-top: none;
}
.myteam .mt-n {
  font-weight: 600;
  font-size: 12.5px;
}
.myteam .mt-r {
  color: var(--text-3);
  font-size: 11px;
}
.myteam .mt-b {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.mt-lead {
  background: var(--accent-weak);
  color: var(--accent);
}
.mt-mem {
  background: var(--fond-gris);
  color: var(--text-2);
}

/* Des valeurs en pastilles : secteurs, clients suivis. */
.pillset {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pillc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-weak);
  color: var(--accent);
}
.pillc.teal {
  background: var(--teal-bg);
  color: var(--teal);
}
.pillc.gray {
  background: var(--fond-gris);
  color: var(--text-2);
}

/* Ce que la maquette montre et que le modèle ne porte pas encore. Une carte
   en pointillés, lisible mais sans champ : elle dit ce qui viendra au lieu de
   montrer un formulaire qui n'enregistrerait rien, ou un chiffre inventé. */
.a-venir {
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
}
.a-venir b {
  color: var(--text-2);
  font-weight: 600;
}
.a-venir + .a-venir {
  margin-top: 8px;
}

/* « Aperçu côté client » : rappelle, dans la barre haute, que ce qu'on lit
   est ce qui quitte le serveur vers un client. */
.preview-note {
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 600;
  margin-left: auto;
}
.tab .adm {
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============================================ LES RÉGLAGES DE L'ORGANISATION
   Les pièces de `maquettes/roundbase_reglages.html` : une carte par sujet, son
   pictogramme dans l'en-tête, et une ligne par option — le libellé et sa
   conséquence à gauche, la commande à droite. */
.card .card-head .hi {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-weak);
  color: var(--accent);
}
.card .card-head .hi svg {
  width: 16px;
  height: 16px;
}
.card .card-body.options {
  padding: 8px 18px 16px;
}
.opt-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.opt-row:first-child {
  border-top: none;
}
.opt-row .lbl {
  flex: 1;
}
.opt-row .t {
  font-weight: 600;
  font-size: 12.5px;
}
.opt-row .d {
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 2px;
  max-width: 70ch;
}
/* Une option qui ne se règle pas : elle se montre, avec la raison pour
   laquelle elle est fixe, plutôt qu'un interrupteur qui ne ferait rien. */
.lock {
  font-size: 11px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.lock svg {
  width: 12px;
  height: 12px;
}

/* Les profils issus de l'extraction (Recherche). L'état « non confirmé » se
   voit sans crier : le profil est utilisable pour comparer, il attend un
   geste, il n'est pas en faute. */
.tag.non-confirme {
  background: var(--amber-pale);
  border-color: var(--amber-bord);
  color: var(--amber-fort);
}
.valeurs-citees {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.valeurs-citees td {
  padding: 5px 8px;
  border-top: 1px solid var(--line, var(--border));
  vertical-align: top;
}
.valeurs-citees .vc-cle {
  font-family: var(--police-mono);
  color: var(--muted, var(--text-2));
  white-space: nowrap;
}
.valeurs-citees .vc-citation {
  color: var(--muted, var(--text-2));
  font-style: italic;
}
.trancher {
  padding: 12px 18px;
  border-top: 1px solid var(--line, var(--border));
}
.trancher .tr-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.trancher .tr-candidats {
  margin: 6px 0;
  font-size: 12.5px;
}

/* ================================================ LA CRÉATION D'UN PROJET
   Les pièces propres à l'écran « Nouveau projet » (fiche de convergence de
   novembre 2026). */

/* Les pastilles des trois modes de diffusion : la verte recommande, la bleue
   décrit, la grise prévient. */
.opt .tagrec.info {
  background: var(--accent-weak);
  color: var(--accent);
}
.opt .tagrec.neutre {
  background: var(--canvas);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* Les boutons au-dessus du brief, et celui du ciblage. */
.brief-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.btn.ai {
  color: var(--accent);
  border-color: var(--accent-bord);
  background: var(--accent-weak);
}

/* L'équipe en liste compacte et la fenêtre d'ajout sont décrites une seule
   fois, plus haut (« L'ÉQUIPE EN LISTE COMPACTE ») : la création d'un projet et
   ses paramètres composent une équipe de la même façon. */

/* Le menu déroulant d'une option, tel que la maquette le dessine : il tient
   à droite de sa ligne, à la taille de son contenu. */
.opt-row select {
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 12.5px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  min-width: 220px;
  cursor: pointer;
}
.opt-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
/* Une valeur en lecture, à droite de sa ligne. */
.opt-row .valeur {
  font-weight: 500;
  font-size: 12.5px;
  text-align: right;
}
.opt-row .t .badge {
  margin-left: 6px;
  vertical-align: 1px;
}
/* Les lignes d'appareil sont plus serrées que les options : elles sont
   secondaires. */
.opt-row.appareil {
  padding: 8px 0;
}
.card-body.options .sec-label {
  margin: 14px 0 2px;
}
/* La place de la photo de profil : les initiales, à la taille du rond de la
   barre latérale. */
.av-profil {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-2);
  flex: none;
}
/* Le pied d'une carte-formulaire : son bouton d'enregistrement. */
.card-pied {
  border-top: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
}
/* Trois indicateurs sur une ligne. */
.kpis.trois {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}
/* Un encart d'avertissement dans une carte. Son pictogramme est borné : sans
   taille, un dessin vectoriel prend toute la largeur disponible. */
.encart {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-bord);
  border-radius: 9px;
  padding: 11px 13px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--amber-fort);
  line-height: 1.5;
  max-width: 75ch;
}
.encart svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: var(--amber);
}

/* Le bandeau d'un brouillon, sous le nom du projet, sur chacun de ses onglets
   (revue du 29 novembre 2026, 0.7). */
.bandeau-brouillon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text-2);
}
.bandeau-brouillon .btn {
  margin-left: auto;
}

/* Le brief public d'un réseau absent : une page seule, sans barre latérale. */
.brief-public {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 16px;
}
.brief-public .brand {
  margin-bottom: 18px;
}
