/* SchoolInvest — UNE SEULE MAISON.
   Le système visuel de la maquette des profils (bibliotheque/schoolinvest-profils-
   maquette.html et systeme-visuel-reference.css, livrés le 27/09), intégré à
   l'espace réel : mêmes jetons, mêmes composants, mêmes classes. Clair seulement,
   comme la référence (color-scheme: light).
   Deux blocs ne sont PAS touchés : la connexion (#gate, .visuel, .gate-*) et la
   trame de setting (.trame-*). */
:root {
  --fond: #f3f5f8; --carte: #fff; --doux: #f8fafc; --bord: #dde4ee; --bord2: #edf1f6;
  --encre: #172238; --encre2: #586880; --encre3: #66758c;
  --accent: #234cd0; --accent-fond: #eaf0ff;
  --vert: #27765d; --vert-fond: #e7f4ee; --orange: #94651b; --orange-fond: #fff3dc;
  --rouge: #b04350; --rouge-fond: #fbecee; --neutre-fond: #edf0f4;
  --rail: #101e34; --rail-encre: #bfd0e7; --rail-survol: #253b54; --tuile-nuit: #172d50;
  --serie: #4265d6; --serie-pale: #dce5fc;
  color-scheme: light;
}
* { box-sizing: border-box; }
/* overflow-x: clip, pas hidden : hidden ferait du body un conteneur de défilement,
   et l'en-tête comme la barre basse cesseraient de coller. */
html, body { margin: 0; background: var(--fond); color: var(--encre); max-width: 100%; overflow-x: clip; }
body { font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-variant-numeric: tabular-nums; min-height: 100dvh; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; line-height: 1.18; letter-spacing: -.8px; }
h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.25px; }
h3 { font-size: 15px; line-height: 1.4; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #bb8d25; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
code { font-size: 12px; }

/* ---------- connexion : le montage de SIA ---------- */
/* Trois couches sur le visuel : le voile bleu nuit, la photographie (servie par
   le projet), et un dégradé de secours en dernier — si l'image ne charge pas,
   l'écran reste présentable au lieu de virer au blanc. */
#gate { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100dvh; background: #fff; color: #172333; }
.visuel {
  background:
    linear-gradient(155deg, rgba(17,32,51,.62), rgba(15,76,129,.72)),
    url("../images/connexion.jpg") center/cover no-repeat,
    linear-gradient(155deg, #112033, #0f4c81);
  color: #fff;
}
.visuel-interieur { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 46px 48px; }
.gate-marque { font-weight: 700; font-size: 18px; letter-spacing: .3px; }
.gate-citation { margin: 0 0 18px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.18; letter-spacing: -.5px; font-weight: 500; max-width: 17ch; }
.gate-pour { margin: 0; font-size: 16px; color: #dce5ef; max-width: 40ch; }
.gate-domaines { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: #b8c8da; }
.gate-formulaire { display: flex; align-items: center; justify-content: center; padding: 46px 32px; background: #fff; }
.gate-contenu { width: 100%; max-width: 380px; }
.gate-contenu h1 { margin: 0 0 6px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 34px; font-weight: 500; letter-spacing: -.5px; color: #172333; }
.gate-sous { margin: 0 0 24px; color: #607184; font-size: 15px; }
.gate-contenu label { color: #3c4b5c; font-weight: 600; font-size: 13px; }
.gate-contenu input { background: #fff; color: #172333; border-color: #c9d3df; }
.gate-bouton { display: block; width: 100%; margin-top: 20px; padding: 13px; border: 0; border-radius: 8px; background: #101f32; color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; }
.gate-bouton:hover { background: #1b3150; }
.gate-lien { text-align: center; margin: 16px 0 0; font-size: 14px; }
.gate-lien a { color: #1740c9; }
.gate-filet { border: 0; border-top: 1px solid #e1e6ec; margin: 26px 0 16px; }
.gate-note { margin: 0; color: #607184; font-size: 13px; line-height: 1.6; }
.gate-contenu .message { font-size: 14px; }
@media (max-width: 860px) {
  #gate { grid-template-columns: 1fr; }
  .visuel-interieur { padding: 30px 24px 34px; gap: 44px; }
  .gate-citation { font-size: 30px; }
  .gate-domaines { display: none; }
  .gate-formulaire { padding: 28px 22px 44px; align-items: flex-start; }
}

/* La connexion reste telle qu'elle était : ses jetons et ses champs d'avant
   la maison commune sont figés ici, pour qu'aucune règle générale ne la change. */
#gate { --fond: #f6f7f9; --carte: #ffffff; --bord: #dfe6ed; --encre: #172333; --encre2: #607184; --encre3: #97a6b6;
  --accent: #1740c9; --accent-fond: #eaf0fd; --vert: #168975; --vert-fond: #e8f2ef; --rouge: #b42318; --rouge-fond: #fdeeec;
  line-height: 1.65; }
#gate h1 { line-height: 1.65; }
#gate label { display: block; font-size: 13px; margin: 12px 0 4px; }
#gate input { width: 100%; padding: 11px 12px; border: 1px solid #c9d3df; border-radius: 8px; font-size: 15px; min-height: 0; }
#gate .message { padding: 12px 15px; border-radius: 9px; margin: 10px 0; }
#gate .message.info { color: var(--encre); }

/* ===========================================================================
   LA MAISON — le système de schoolinvest-profils-maquette.html, intégré.
   Source : bibliotheque/systeme-visuel-reference.css (sha256 a4da5d52…), dont
   la portée .si-prototype est levée ici, règle par règle. Mêmes valeurs,
   mêmes classes. Ce qui n'est pas dans la référence (tableaux de Fabrice,
   pointage, graphiques, fonctionnement) est redessiné avec ses jetons.
   =========================================================================== */

/* ---------- ossature bureau (administration, sur ordinateur) ---------- */
.cadre { display: flex; min-height: 100dvh; }
.rail { width: 220px; flex-shrink: 0; background: var(--rail); color: #fff; padding: 28px 19px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.marque { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.marque span { color: #82b6ff; }
.rail .liens { display: grid; gap: 7px; margin: 30px 0; }
.rail .liens a, .rail .liens button { border: 0; text-align: left; background: transparent; color: #bfd0e7; border-radius: 7px; padding: 12px; font-size: 14px; display: block; }
.rail .liens a:hover { background: var(--rail-survol); }
.rail .liens .actif { background: var(--accent); color: #fff; }
.rail .qui { color: #8fa5c2; margin-top: auto; font-size: 12px; font-weight: 400; }
.rail .qui a { color: #bfd0e7; display: block; margin-top: 6px; }
.rail .secondaires { display: grid; gap: 2px; margin: 0 0 18px; }
.rail .secondaires a { color: #8fa5c2; font-size: 12px; padding: 5px 12px; border-radius: 6px; }
.rail .secondaires a.actif { color: #fff; background: var(--rail-survol); }
.colonne { min-width: 0; flex: 1; }
.principal { padding: 26px 30px 36px; max-width: 1800px; margin: auto; }

/* ---------- l'en-tête du métier ---------- */
.haut-mobile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 22px; background: #fff;
  border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 4; min-height: 66px; }
.profil-mobile { display: flex; align-items: center; gap: 9px; }
.profil-mobile b { font-size: 13px; }
.profil-mobile small { display: block; color: var(--encre2); font-size: 11px; }
.avatar { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: #e8eef9; color: #3c5f9d;
  border-radius: 10px; font-size: 12px; font-weight: 750; flex-shrink: 0; }
.haut-droite { display: flex; align-items: center; gap: 8px; }
.lecture-seule { color: #526b8e; background: #edf2fa; border: 1px solid #dce5f2; border-radius: 30px; padding: 4px 9px; font-size: 10px; font-weight: 650; white-space: nowrap; }

/* ---------- l'application des métiers : une colonne de lecture ---------- */
.app { max-width: 500px; margin: 24px auto 38px; background: var(--fond); box-shadow: 0 12px 45px #132c4c12; border: 1px solid #d7e0ed;
  border-radius: 20px; overflow: clip; min-height: 800px; }
.app .principal { padding: 23px 18px 12px; }
.app .grille.deux, .app .grille.trois, .app .grille.graphe { grid-template-columns: 1fr; }
.app .haut-mobile { padding: 14px 17px; }

/* ---------- titres et textes ---------- */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.entete h1 { margin: 0; }
.entete p, .entete .sous { margin-top: 7px; }
.sous, .discret { color: var(--encre2); font-size: 13px; }
.surtitre { font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; font-weight: 750; color: var(--encre2); margin-bottom: 9px; }
.surtitre small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.num, .montant { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- cartes ---------- */
.bloc { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; margin-bottom: 15px; overflow: hidden; }
.bloc > h2 { padding: 18px 19px 0; margin: 0; }
.bloc > h2 small { font-weight: 400; color: var(--encre2); font-size: 12px; margin-left: 6px; letter-spacing: 0; }
.corps { padding: 17px 19px; }
.corps > p + p { margin-top: 10px; }
.bloc-tete { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 18px 19px 0; }
.bloc > .tableau-wrap, .bloc > .lignes, .bloc > .liste { margin-top: 12px; }
.catalogue { border-top: 3px solid #234cd0; }

/* ---------- LE chiffre qui domine : la tuile bleu nuit ---------- */
.dominant { background: var(--tuile-nuit); color: #fff; border-radius: 11px; padding: 23px; margin-bottom: 16px; }
.dominant .surtitre { color: #b4c8e7; }
.dominant b { display: block; font-size: 37px; letter-spacing: -1px; line-height: 1.2; margin: 9px 0; font-variant-numeric: tabular-nums; }
.dominant b:first-child { margin-top: 0; }
.dominant p, .dominant span { color: #c2d1e8; font-size: 13px; display: block; }
.dominant .b { margin-top: 17px; background: #fff; border: 0; color: #213f6a; }

/* ---------- les mesures secondaires ---------- */
.chiffres, .tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 17px; }
.chiffre, .tuile { border: 1px solid var(--bord); border-radius: 8px; background: #fff; padding: 13px; min-width: 0; }
.chiffre span, .tuile span { display: block; color: var(--encre2); font-size: 11px; }
.chiffre b, .tuile b { display: block; font-size: 24px; letter-spacing: -.5px; margin: 4px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chiffre em, .tuile em { display: block; font-style: normal; font-size: 11px; color: var(--encre2); }
.cadre .chiffres { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hausse { color: var(--vert); } .baisse { color: var(--rouge); }

.grille { display: grid; gap: 16px; }
.grille.deux { grid-template-columns: 1fr 1fr; }
.grille.trois { grid-template-columns: repeat(3, 1fr); }
.grille.graphe { grid-template-columns: 3fr 2fr; }

/* ---------- boutons ---------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #fff; color: #344c70; border: 1px solid #cfd9e7;
  border-radius: 7px; padding: 10px 13px; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.b.principal-b { background: var(--accent); color: #fff; border-color: var(--accent); }
.b.large { width: 100%; }
.b.petit { font-size: 12px; padding: 7px 10px; min-height: 0; }
.b.fantome { background: transparent; border-color: transparent; color: var(--accent); }
.b:disabled, .b[disabled] { cursor: not-allowed; opacity: .55; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.cadre .b { min-height: 34px; padding: 7px 12px; }
.cadre .b.large { padding: 10px 13px; }

/* ---------- états : un mot ET une couleur ---------- */
.p { display: inline-block; padding: 3px 7px; font-size: 11px; font-weight: 650; line-height: 1.5; border-radius: 5px; background: var(--neutre-fond); color: var(--encre2); white-space: nowrap; }
.p.ok { background: var(--vert-fond); color: var(--vert); }
.p.att { background: var(--orange-fond); color: var(--orange); }
.p.ko { background: var(--rouge-fond); color: var(--rouge); }
.p.info { background: var(--accent-fond); color: var(--accent); }

/* ---------- filtres ---------- */
.pastilles { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.pastilles .titre { font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; color: var(--encre2); font-weight: 750; margin-right: 4px; min-width: 76px; }
.pastille { background: #fff; border: 1px solid var(--bord); color: var(--encre2); border-radius: 6px; padding: 9px 12px; min-height: 44px; font-size: 12px;
  cursor: pointer; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; text-decoration: none; }
.pastille i { font-style: normal; font-size: 11px; color: var(--encre3); font-variant-numeric: tabular-nums; }
.pastille.allumee { background: #eaf0ff; color: #315ac2; border-color: #cbd8f4; }
.pastille.allumee i { color: #315ac2; }
.cadre .pastille { min-height: 34px; padding: 6px 11px; }
.pastille.mini { padding: 3px 10px; min-height: 30px; font-size: 12px; }
.pastille.defaut { border-style: dashed; border-color: #cbd8f4; color: #315ac2; background: #f5f8ff; }
.pastille[disabled] { cursor: default; opacity: .75; }

/* ---------- cartes dépliables ---------- */
details.ligne { border-top: 1px solid var(--bord2); }
details.ligne > summary { padding: 16px 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; }
details.ligne > summary::-webkit-details-marker { display: none; }
details.ligne > summary::after { content: '+'; font-size: 18px; color: #8292a9; flex-shrink: 0; }
details.ligne[open] > summary::after { content: '−'; }
details.ligne[open] > summary { background: #fafbfd; }
.qui { font-weight: 650; font-size: 14px; min-width: 0; }
.qui small { display: block; color: var(--encre2); font-size: 12px; font-weight: 400; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.detail { padding: 0 19px 19px; }
details.ligne[open] > .detail { padding-top: 14px; }
.quoi { color: var(--encre2); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Sur le bureau de Fabrice, les listes longues gardent leurs colonnes (--gabarit). */
.cadre .lignes[style*="--gabarit"] > details.ligne > summary, .cadre .entetes-lignes { display: grid; grid-template-columns: var(--gabarit) 18px; gap: 14px; }
.cadre .lignes[style*="--gabarit"] > details.ligne > summary .qui { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.entetes-lignes { display: none; padding: 10px 19px 6px; font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; color: var(--encre2); font-weight: 750; }
.entetes-lignes::after { content: ''; }
.app .quoi, .app .masque-mobile { display: none !important; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 15px; font-size: 12px; margin: 13px 0; }
.kv dt { color: var(--encre2); }
.kv dd { margin: 0; text-align: right; }
.cadre .kv { font-size: 13px; }

/* ---------- listes ---------- */
.liste { list-style: none; padding: 0; margin: 0; }
.liste li { padding: 15px 19px; border-top: 1px solid var(--bord2); }
.l1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.l2 { color: var(--encre2); font-size: 12px; margin-top: 5px; }

/* ---------- champs ---------- */
label { display: block; font-size: 13px; color: #4b607b; font-weight: 600; margin: 16px 0 6px; }
input, select, textarea { width: 100%; border: 1px solid #c8d4e3; border-radius: 7px; padding: 12px; background: #fff; color: var(--encre); font-size: 16px; min-height: 46px; }
textarea { resize: vertical; min-height: 150px; line-height: 1.65; }
textarea.longue { min-height: 440px; }
input[type=checkbox], input[type=radio] { width: 19px; height: 19px; min-height: 0; flex-shrink: 0; accent-color: var(--accent); padding: 0; }
input[type=file] { padding: 10px; }
.case { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; line-height: 1.5; }
[aria-invalid=true] { border: 1px solid var(--rouge); background: #fffafb; }
.erreur-champ { color: var(--rouge); font-size: 12px; margin-top: 5px; }
.aide-champ { font-size: 12px; color: var(--encre2); margin-top: 6px; }
.recherche { max-width: 340px; }
.cadre input, .cadre select { font-size: 14px; min-height: 40px; padding: 9px 11px; }

/* ---------- messages, vide, chargement ---------- */
.message { padding: 13px; border-radius: 7px; margin: 13px 0; font-size: 13px; background: #edf2f8; color: var(--encre2); }
.message.ko { color: var(--rouge); background: var(--rouge-fond); }
.message.ok { color: var(--vert); background: var(--vert-fond); }
.message.info { background: var(--accent-fond); color: #385581; }
.vide { padding: 28px 20px; color: var(--encre2); font-size: 13px; text-align: center; }
.vide b { display: block; color: #284468; font-size: 18px; margin: 9px 0; }
.vide .sigle { margin: auto; width: 44px; height: 44px; background: #edf2fa; border-radius: 12px; color: #4f6d94; font-size: 25px; display: grid; place-items: center; }
.chargement { padding: 24px 19px; color: var(--encre2); }
.squelette { background: #e7edf5; border-radius: 6px; height: 14px; margin: 12px 0; }
.squelette.large { height: 110px; }
.non-mesure { color: var(--encre2); font-weight: 600; }
.chiffre b .non-mesure, .tuile b .non-mesure { font-size: 14px; letter-spacing: 0; }
.non-calc { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 8px 18px; font-size: 13px; }
.non-calc b { font-weight: 650; } .non-calc span { color: var(--encre2); }
.app .non-calc { grid-template-columns: 1fr; }

/* ---------- sauvegarde et éditeur ---------- */
.sauvegarde { font-size: 11px; color: var(--vert); display: inline-flex; gap: 5px; align-items: center; min-height: 22px; }
.sauvegarde.ko { color: var(--rouge); } .sauvegarde.att { color: var(--orange); }
.editeur-barre { position: sticky; top: 69px; z-index: 3; background: #f3f5f8ed; backdrop-filter: blur(8px); padding: 9px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- la barre basse ---------- */
.nav-bas { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--bord); padding: 6px 8px calc(7px + env(safe-area-inset-bottom)); }
.nav-bas a, .nav-bas button { background: none; border: 0; color: #72849e; font-size: 11px; min-height: 48px; min-width: 60px; padding: 5px 8px; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; cursor: pointer; }
.nav-bas .actif { color: #234cd0; background: #edf2ff; font-weight: 650; }
.nav-bas .sym { font-size: 19px; line-height: 1.1; }
.pied { font-size: 12px; text-align: center; color: var(--encre2); padding: 21px 13px 26px; }
.pied b { color: #3f5170; }
.pied .version { margin-top: 8px; font-size: 12px; color: var(--encre2); }
.pied .version .lien-discret { font-size: 12px; color: var(--encre2); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 6px; }
/* LES PAGES LÉGALES (08/10) : trois liens, chacun une cible de 44 px. */
.pied-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 4px; margin: 6px 0 2px; }
.pied-legal a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; color: var(--accent); }

/* ---------- divers de la référence ---------- */
.lien-genere { border: 1px dashed #c9d7ea; background: #f5f8fd; padding: 12px; border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; color: #48668f; }
.progression { height: 5px; background: #304768; border-radius: 4px; margin: 17px 0 10px; }
.progression span { height: 5px; background: #b4cdfb; display: block; border-radius: 4px; }
.date-live { border-left: 3px solid #8da9ec; padding-left: 12px; }
.date-live strong { display: block; font-size: 14px; }
.separation { border: 0; border-top: 1px solid var(--bord); margin: 18px 0; }
.manuel h2 { margin: 22px 0 8px; } .manuel h2:first-child { margin-top: 0; }
.manuel ul { padding-left: 20px; font-size: 14px; color: #546b88; } .manuel li { margin: 9px 0; }
.manuel p { font-size: 14px; color: #546b88; }
.notice-source { color: #7d8da4; font-size: 10px; margin: 10px 0 16px; }
.reference { padding: 14px 19px; background: #e9eef5; border: 1px solid #dce3ed; border-radius: 8px; font-size: 12px; margin: 17px 0; color: #586e8e; }
.reference b { color: #294770; }
.lien-discret { border: 0; background: none; color: var(--encre2); font-size: 12px; cursor: pointer; padding: 2px 0; text-decoration: underline; min-height: 0; }

/* ---------- panneau : latéral sur bureau, feuille sur téléphone ---------- */
.panneau-fond { position: fixed; inset: 0; background: #0c1d3d66; z-index: 40; display: flex; justify-content: flex-end; }
.panneau { background: #fff; width: min(520px, 100vw); max-height: 100dvh; overflow: auto; padding: 24px max(20px, env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom));
  box-shadow: -8px 0 30px #0002; position: relative; }
.panneau .fermer { float: right; }
.panneau h2 { margin: 12px 0 20px; }
.panneau p { font-size: 14px; color: #536b87; margin: 13px 0; }

/* ---------- tableaux denses (bureau) ---------- */
table.dense { width: 100%; border-collapse: collapse; font-size: 13px; }
table.dense th { font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .4px; color: #7a8ba3; background: #f8fafc; padding: 11px 15px; border-bottom: 1px solid var(--bord); white-space: nowrap; }
table.dense th.num { text-align: right; }
table.dense td { padding: 12px 15px; border-bottom: 1px solid var(--bord2); vertical-align: top; }
table.dense td.date { white-space: nowrap; }
table.dense tfoot td { font-weight: 700; border-top: 1px solid var(--bord); }
.tableau-wrap { overflow: auto; }
.tableau-pied { padding: 12px 19px 16px; color: var(--encre2); font-size: 12px; }

/* ---------- bandes de Fabrice : ce qui est cassé, ce qui attend ---------- */
.bande { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 19px; border-radius: 10px; margin-bottom: 15px; font-size: 14px; font-weight: 650; border: 1px solid; }
.bande.rouge { background: var(--rouge-fond); color: var(--rouge); border-color: #f1ccd1; cursor: pointer; }
.bande.vert { background: var(--vert-fond); color: var(--vert); border-color: #cfe6dc; }
.bande small { font-weight: 400; }
details.bande-decisions > summary { cursor: pointer; list-style: none; padding: 15px 19px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
details.bande-decisions > summary::-webkit-details-marker { display: none; }
details.bande-decisions > summary::after { content: 'Voir'; margin-left: auto; color: var(--accent); font-size: 13px; }
details.bande-decisions[open] > summary::after { content: 'Replier'; }
.decisions details.ligne.cout1 > summary { box-shadow: inset 3px 0 0 var(--rouge); }
.decisions details.ligne.cout2 > summary { box-shadow: inset 3px 0 0 var(--orange); }
.decisions details.ligne.cout3 > summary { box-shadow: inset 3px 0 0 var(--encre3); }

/* ---------- pointage ---------- */
.pointage-ligne { display: grid; grid-template-columns: 92px minmax(0,1.3fr) minmax(0,1.3fr) auto 150px; gap: 16px; align-items: center; padding: 13px 19px; border-top: 1px solid var(--bord2); }
.pointage-ligne.confirme { background: #fbfdfc; }
.pointage-ligne .qui b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pointage-ligne small { display: block; color: var(--encre2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.pointage-ligne .quoi { font-size: 13px; color: var(--encre); }
.pointage-ligne .roles { display: grid; grid-template-columns: auto auto; gap: 5px 8px; align-items: center; }
.pointage-ligne .role-nom { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--encre2); font-weight: 750; }
.pointage-ligne .choix { display: flex; gap: 4px; flex-wrap: wrap; }
.pointage-ligne .etat { text-align: right; }
.app .pointage-ligne { grid-template-columns: 1fr; gap: 8px; } .app .pointage-ligne .etat { text-align: left; }

/* ---------- graphiques : une série, une teinte ---------- */
.graphe-svg { width: 100%; height: auto; display: block; }
.graphe-svg .grille-axe { stroke: var(--bord2); stroke-width: 1; }
.graphe-svg .axe { fill: var(--encre3); font-size: 11px; }
.graphe-svg .etiq { fill: var(--encre2); font-size: 11px; font-variant-numeric: tabular-nums; }
.graphe-svg .barre { fill: var(--serie); }
.graphe-svg .barre.partiel { fill: url(#hachure); }
.graphe-svg .cible { fill: transparent; }
.graphe-svg g:hover .barre { opacity: .8; }
.bulle { position: fixed; pointer-events: none; background: var(--rail); color: #fff; border-radius: 7px; padding: 7px 10px; font-size: 12px; z-index: 50; display: none; white-space: nowrap; }
.repart .ligne-r { display: grid; grid-template-columns: minmax(120px, 1.3fr) 3fr; gap: 12px; align-items: center; padding: 6px 0; }
.repart .nom { font-size: 13px; line-height: 1.35; }
.repart .nom small { display: block; color: var(--encre2); font-size: 11px; }
.repart .piste { height: 20px; position: relative; }
.repart .rempli { height: 100%; background: var(--serie); border-radius: 0 4px 4px 0; min-width: 2px; }
.repart .val { position: absolute; top: 0; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- fonctionnement ---------- */
.chaine { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: etape; }
.app .chaine { grid-template-columns: 1fr 1fr; }
.etape { background: #fff; border: 1px solid var(--bord); border-radius: 8px; padding: 13px; }
.etape.auto { border-top: 3px solid var(--accent); } .etape.humain { border-top: 3px solid var(--orange); } .etape.mixte { border-top: 3px dashed var(--accent); }
.etape.bloque { border-color: var(--rouge); }
.etape h3 { margin: 0 0 6px; font-size: 13px; }
.etape h3::before { counter-increment: etape; content: counter(etape) ' · '; color: var(--encre3); }
.etape .n { font-size: 24px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.etape .qui { font-size: 12px; color: var(--encre2); font-weight: 400; }
.etape .argent { margin-top: 8px; font-size: 12px; background: var(--vert-fond); color: var(--vert); border-radius: 7px; padding: 6px 8px; }
.etape .p { white-space: normal; }
.legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--encre2); margin: 10px 0 0; }
.legende i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; }
.cadre-doc { width: 100%; height: calc(100dvh - 160px); min-height: 520px; border: 1px solid var(--bord); border-radius: 10px; background: #fff; }
details.plier { margin-top: 4px; }
details.plier > summary { cursor: pointer; color: var(--accent); font-size: 13px; padding: 4px 0; }

/* ---------- téléphone ---------- */
@media (max-width: 860px) {
  .grille.deux, .grille.trois, .grille.graphe { grid-template-columns: 1fr; }
  .pointage-ligne { grid-template-columns: 1fr; gap: 8px; } .pointage-ligne .etat { text-align: left; }
}
@media (max-width: 640px) {
  .app { max-width: none; border: 0; border-radius: 0; box-shadow: none; min-height: 100dvh; margin: 0;
    padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .app.sans-barre { padding-bottom: 0; }
  .app .haut-mobile { padding-top: max(13px, env(safe-area-inset-top)); padding-left: max(17px, env(safe-area-inset-left)); padding-right: max(17px, env(safe-area-inset-right)); }
  .app .principal { padding-left: max(17px, env(safe-area-inset-left)); padding-right: max(17px, env(safe-area-inset-right)); padding-bottom: 24px; }
  h1 { font-size: 27px; }
  .panneau-fond { align-items: flex-end; }
  .panneau { width: 100%; max-height: 91dvh; border-radius: 18px 18px 0 0; padding-top: 16px; }
  .editeur-barre { top: 72px; }
  .app .nav-bas { position: fixed; left: 0; right: 0; bottom: 0; }
  .app:has(textarea:focus) .nav-bas { display: none; }
  .app:has(textarea:focus) { padding-bottom: 0; }
}
/* ---------- téléphone : reprise du 06/10/2026 (mise en page seule) ----------
   L'iPhone de Fabrice affichait l'espace coupé à droite (« Aide », bandes, cartes,
   « Fermer »). Mesuré : rien ne dépasse, ni dans Chromium ni dans WebKit, à 375,
   390 et 402 px. La page était ZOOMÉE ×1,07 : Safari agrandit tout seul quand on
   touche un champ écrit en moins de 16 px (les deux champs de la connexion sont en
   15 px : 16/15 = 1,067) et ne dézoome pas après la connexion. Un champ en 16 px
   n'est jamais zoomé. Le reste : libellé des filtres au-dessus de ses boutons, menu
   « Toutes les vues » sur deux colonnes, tableau de la feuille de route en fiches. */
@media (max-width: 860px) {
  #gate input { font-size: 16px; }
  /* « Élèves et coachs » pose sa grille en ligne : sur téléphone, une colonne comme les autres. */
  .pointage-ligne[style] { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .app .trame-texte { font-size: 16px; }
  .app .pastilles .titre { flex-basis: 100%; min-width: 0; margin: 0 0 -1px; }
  /* filtres en menus déroulants (noyau.js) : les boutons restent, cachés */
  .pastilles > .pastille.sous-menu, .pastilles[data-deroulant="1"] > span:not(.titre) { display: none; }
  .pastilles > select.deroulant { flex: 1 1 100%; min-width: 0; min-height: 44px; padding: 9px 34px 9px 12px; -webkit-appearance: none; appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23315ac2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center;
    border: 1px solid #cbd8f4; border-radius: 6px; color: #315ac2; }
  .pastilles:has(select.deroulant ~ select.deroulant) > select.deroulant { flex: 2 1 0; }
  .pastilles:has(select.deroulant ~ select.deroulant) > select.deroulant:first-of-type { flex-grow: 3; }
  .pastilles:has(select.deroulant ~ select.deroulant) > select.deroulant { padding-left: 10px; padding-right: 28px; background-position: right 10px center; }
  .panneau .menu-vues { grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .panneau .menu-vues .b { padding: 8px 10px; text-align: center; }
  .panneau .menu-vues + p { margin-bottom: 0; }
  /* revue de toutes les pages (06/10, nuit) */
  .app .recherche { max-width: none; }
  .app details.ligne > summary > .qui { flex: 1 1 auto; }          /* le montant et le « + » se rangent à droite */
  .app details.ligne[data-lead] > summary { flex-wrap: wrap; row-gap: 10px; }
  .app details.ligne[data-lead] > summary::after { order: 2; }
  .app details.ligne[data-lead] > summary > .actions { order: 3; flex: 1 1 100%; justify-content: flex-start !important; }
  .app table.dense th, .app table.dense td { padding-left: 9px; padding-right: 9px; }
  .app input[type=datetime-local], .app input[type=date], .app input[type=time] { -webkit-appearance: none; appearance: none;
    display: block; min-width: 0; max-width: 100%; text-align: left; }
  .app input::-webkit-date-and-time-value { text-align: left; }
  .app .pointage-ligne .etat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  table.dense.fiches thead { display: none; }
  table.dense.fiches, table.dense.fiches tbody, table.dense.fiches tr, table.dense.fiches td { display: block; width: auto; }
  table.dense.fiches tr { padding: 11px 13px; border-bottom: 1px solid var(--bord2); }
  table.dense.fiches td { padding: 2px 0; border: 0; }
  table.dense.fiches td:first-child { margin-bottom: 3px; }
  table.dense.fiches td:nth-child(2)::before { content: 'Ça veut dire : '; }
  table.dense.fiches td:nth-child(3)::before { content: 'Je fais : '; font-weight: 400; color: var(--encre2); }
}
@media (max-width: 379px) {
  /* trop étroit pour deux menus côte à côte : l'un sous l'autre */
  .pastilles:has(select.deroulant ~ select.deroulant) > select.deroulant { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  .rail, .nav-bas, .haut-mobile, .panneau-fond, .actions, .ne-pas-imprimer, .pastilles { display: none !important; }
  .app { max-width: none; border: 0; box-shadow: none; margin: 0; } .principal { padding: 0; } .bloc { break-inside: avoid; } body { background: #fff; }
}

/* ---------- la nouvelle version (07/10) : une ligne en haut, au-dessus de tout ---------- */
.nouvelle-version { position: fixed; left: 0; right: 0; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: calc(9px + env(safe-area-inset-top)) 16px 9px; background: var(--rail); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 4px 18px #0003; }
.nouvelle-version .b { background: #fff; color: var(--rail); border-color: #fff; min-height: 34px; }

/* ---------- le rendez-vous (sql/0123) : classes neuves seulement ---------- */
.controle { border: 1px solid var(--bord); border-radius: 10px; padding: 16px; background: var(--doux); margin-top: 6px; }
.controle.ok { border-color: #cfe6dc; background: var(--vert-fond); }
.controle.ko { border-color: #f1ccd1; background: var(--rouge-fond); }
.controle.att { border-color: #f0dfb6; background: var(--orange-fond); }
.controle-duree span { display: block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 750; color: var(--encre2); }
.controle-duree b { display: block; font-size: 34px; line-height: 1.15; letter-spacing: -.8px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.controle.ko .controle-duree b, .controle.ko .controle-duree em { color: var(--rouge); }
.controle.ok .controle-duree b { color: var(--vert); }
.controle-duree em { font-style: normal; font-size: 13px; color: var(--encre2); font-weight: 650; }
.controle-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
.controle-chiffres div { background: #fff; border: 1px solid var(--bord); border-radius: 8px; padding: 9px 10px; }
.controle-chiffres b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.controle-chiffres span { font-size: 11px; color: var(--encre2); }
.controle-qui { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--encre2); }
.controle-qui li { padding: 3px 0; }
.depot { border: 2px dashed #c9d7ea; border-radius: 10px; padding: 22px 16px; text-align: center; background: #f8fafd; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.depot span { font-size: 13px; color: var(--encre2); }
.depot.survol { border-color: var(--accent); background: var(--accent-fond); }
.apercu-texte { white-space: pre-wrap; font-size: 13px; line-height: 1.55; max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--bord); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.feuille-texte { white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.ligne-lien { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 19px; border-top: 1px solid var(--bord2); color: var(--encre); text-decoration: none; }
.ligne-lien:first-child { border-top: 0; }
.ligne-lien:hover { background: #fafbfd; }

/* ---------- la trame de setting ---------- */
.trame-bloc { border: 1px solid var(--bord); border-radius: 11px; margin: 0 0 12px; overflow: hidden; background: var(--carte); }
.trame-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--bord2); background: var(--doux); flex-wrap: wrap; }
.trame-droite { display: flex; gap: 6px; align-items: center; }
.trame-texte { padding: 12px 14px; white-space: pre-wrap; font-size: 15px; line-height: 1.55; outline: none; word-break: break-word; }
.trame-texte:focus { box-shadow: inset 0 0 0 2px var(--accent-fond); }
.trame-pied { display: flex; gap: 10px; align-items: center; padding: 0 14px 12px; flex-wrap: wrap; }
.trame-captures { padding: 0 14px 14px; }
.trame-captures img { width: 100%; border: 1px solid var(--bord); border-radius: 8px; max-height: 420px; object-fit: contain; background: var(--doux); display: block; }
.trame-note { color: var(--encre2); font-size: 13px; margin: -4px 0 12px; padding-left: 10px; border-left: 2px solid var(--bord); }
.trame-pas { justify-content: space-between; border-top: 1px solid var(--bord2); padding-top: 14px; margin-top: 18px; }
/* 26/10/2026 : les flèches de l'étape EN HAUT, le titre entre elles (setting.js) ; 44 px au doigt. Sur téléphone, la rangée
   des étapes est repliée derrière « Toutes les étapes » (jamais un menu déroulant, jamais une barre à faire glisser). */
.trame-nav { display: flex; align-items: center; gap: 10px; margin: 6px 0 6px; scroll-margin-top: 12px; }
.trame-nav-titre { flex: 1 1 auto; min-width: 0; text-align: center; }
.trame-nav-titre .surtitre { margin: 0; }
.trame-nav-titre h2 { margin: 2px 0 0; font-size: 22px; }
.trame-nav .fleche, .trame-nav .fleche-vide { flex: 0 0 auto; min-width: 48px; min-height: 48px; }
.trame-nav .fleche { font-size: 26px; line-height: 1; padding: 0 14px; justify-content: center; }
.trame-nav .fleche[disabled] { opacity: .35; cursor: default; }
/* le bloc des offres du Setting, replié (26/10/2026) : on voit qu'il y a quelque chose dessous, « Afficher » / « Masquer » */
.repli-offres > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 19px 16px 0; cursor: pointer; list-style: none; }
.repli-offres > summary::-webkit-details-marker { display: none; }
.repli-offres > summary h2 { padding: 18px 19px 0; margin: 0; }
.repli-offres > summary h2 small { font-weight: 400; color: var(--encre2); font-size: 12px; margin-left: 6px; letter-spacing: 0; }
.repli-indice { flex: 0 0 auto; margin-top: 16px; color: var(--accent, #315ac2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.repli-indice .ri-ouvert, .repli-offres[open] .repli-indice .ri-ferme { display: none; }
.repli-offres[open] .repli-indice .ri-ouvert { display: inline; }
/* l'exemple de setting complet (sql/0243) : un fil de messages privés — le prospect à gauche, le setter à droite,
   les étapes en séparateurs discrets, les annotations à part (ce n'est pas un message envoyé) */
.trame-exemple { border: 1px solid var(--bord); border-radius: 11px; padding: 12px; margin: 0 0 12px; background: var(--doux); }
.conv { display: flex; flex-direction: column; gap: 8px; }
.conv-ligne { display: flex; }
.conv-ligne.setter { justify-content: flex-end; }
.conv-ligne.prospect { justify-content: flex-start; }
.conv-bulle { max-width: 78%; min-width: 0; padding: 9px 13px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.conv-ligne.setter .conv-bulle { background: #315ac2; color: #fff; border-bottom-right-radius: 5px; }
.conv-ligne.prospect .conv-bulle { background: #fff; color: var(--encre, #1d2939); border: 1px solid var(--bord); border-bottom-left-radius: 5px; }
.conv-qui { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .75; margin-bottom: 2px; }
.conv-sep { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; color: var(--encre2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.conv-sep::before, .conv-sep::after { content: ''; flex: 1 1 0; height: 1px; background: var(--bord); }
.conv-sep span { flex: 0 1 auto; text-align: center; min-width: 0; overflow-wrap: anywhere; }
.conv-capture { align-self: flex-end; font-size: 12px; color: var(--encre2); font-style: italic; padding: 0 6px; }
.conv-capture::before { content: '📎 '; font-style: normal; }
.conv-annot { margin: 2px 0; padding: 8px 12px; border-left: 3px solid #d9a400; background: #fff8e1; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.45; color: #5c4400; overflow-wrap: anywhere; }
.conv-texte { margin: 0; white-space: pre-wrap; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .conv-bulle { max-width: 88%; } }
/* la fiche client : Instagram et TikTok (sql/0246) — les deux lignes s'insèrent dans la grille .kv sans la casser */
.reseaux-lignes { display: contents; }
.reseaux-edit { margin-top: 8px; }
.reseaux-form { margin-top: 8px; max-width: 420px; }
.reseaux-form input { width: 100%; }
/* l'en-tête du Setting (26/10/2026) : une seule rangée de boutons (« Ouvrir Meta » compris), et dessous, discret,
   « Voir un setting complet » qui ouvre l'exemple dans le panneau */
.entete-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; max-width: 100%; }
.entete-droite > .actions { justify-content: flex-end; }
.voir-exemple { font-size: 14px; color: var(--accent, #315ac2); padding: 4px 2px; }
.panneau .trame-exemple { margin-top: 12px; }
.lien-etapes { display: none; }
@media (max-width: 640px) {
  .entete-droite { align-items: stretch; width: 100%; }
  .entete-droite > .actions { justify-content: flex-start; }
  .entete-droite > .actions > .b { flex: 1 1 auto; white-space: normal; text-align: center; }
  .voir-exemple { align-self: flex-start; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
  .repli-offres > summary h2 small { font-size: 15px; display: block; margin: 4px 0 0; white-space: normal; }
  .repli-indice { font-size: 15px; }
  .b.petit.lien-etapes { display: inline-flex; min-height: 44px; margin-bottom: 10px; font-size: 15px; }
  #etapes { display: none; }
  #etapes.ouvert { display: flex; }
  .trame-nav-titre h2 { font-size: 19px; }
}

/* LES TABLEAUX DE BORD (sql/0134, 08/10) : deux cases, côte à côte sur ordinateur. */
.grille-tdb { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 860px) { .grille-tdb { grid-template-columns: 1fr 1fr; } }
.chiffre-tdb { font-size: 30px; font-weight: 700; line-height: 1.15; margin-bottom: 6px; }
.chiffre-tdb small { font-size: 14px; font-weight: 600; color: var(--texte-2, #475467); }

/* ---------- l'espace élève, point 7 (08/10) ---------- */
/* CIBLES AU DOIGT : 44 px partout sur téléphone (avant : « Aide » 47 × 35, « Ouvrir » 56 × 35,
   « Mot de passe oublié ? » 136 × 19, « Retour à la connexion » 134 × 19). */
.haut-mobile .b.aide { min-height: 44px; min-width: 44px; padding: 10px 14px; font-size: 13px; }
.app .b.petit { min-height: 44px; }
#gate .gate-lien a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
/* Un écran tactile large (tablette à l'horizontale) prend la version PC : ses boutons gardent 44 px. */
@media (pointer: coarse) { .cadre .b, .cadre .pastille { min-height: 44px; } }
/* L'ÉLÈVE SUR ORDINATEUR : le rail porte ses rubriques, la page se lit sur une largeur confortable,
   la bibliothèque prend toute cette largeur. */
.colonne-eleve .principal { max-width: 1000px; }
.bloc > h2 small { white-space: nowrap; }
/* Le Discord et le dépôt de questions avant les lives */
.discord-etat { margin-bottom: 14px; }
.discord-etat .sous { margin-top: 6px; }
.discord-etat .b { margin-top: 10px; }
.questions-live { margin-top: 12px; padding: 10px 12px; background: var(--doux); border: 1px solid var(--bord2); border-radius: 8px; font-size: 14px; }
.questions-live p { margin-top: 6px; color: var(--encre); }
details.depot-live { margin-top: 10px; }
details.depot-live > summary { display: flex; align-items: center; min-height: 44px; font-weight: 600; }

/* 10/10/2026 — LA RELANCE SUR TÉLÉPHONE (défauts R et S) : filtres repliables, sélection, fiche pour le pouce. */
details.filtres > summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
details.filtres > summary::-webkit-details-marker { display: none; }
details.filtres > summary::after { content: '▾'; margin-left: auto; color: #8292a9; }
details.filtres[open] > summary::after { content: '▴'; }
.sel { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -10px 0 -10px -10px; flex-shrink: 0; cursor: pointer; }
.sel input { width: 22px; height: 22px; margin: 0; accent-color: #234cd0; }
.barre-selection { position: sticky; bottom: 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: #fff;
  border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px; margin: 0 0 15px; box-shadow: 0 -4px 14px rgba(16,30,52,.08); }
.barre-selection[hidden] { display: none; }
.barre-selection select { flex: 1 1 160px; min-height: 44px; }
.app .barre-selection { bottom: calc(68px + env(safe-area-inset-bottom)); }
.fiche-tete { display: flex; flex-direction: column; gap: 10px; }
.fiche-nom { font-size: 18px; }
.fiche-appel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fiche-appel .b { min-height: 48px; font-size: 15px; }
.bloc-script { border: 1px solid var(--bord); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; background: var(--carte); }
.bloc-script-tete { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.bloc-script-texte { white-space: pre-wrap; font-size: 15px; line-height: 1.5; margin-top: 4px; }
details.fiche-sec { border-top: 1px solid var(--bord2); }
details.fiche-sec > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 14px 0; min-height: 48px; font-weight: 650; }
details.fiche-sec > summary::-webkit-details-marker { display: none; }
details.fiche-sec > summary::after { content: '+'; color: #8292a9; font-size: 18px; }
details.fiche-sec[open] > summary::after { content: '−'; }
details.fiche-sec > summary small { margin-left: auto; font-weight: 400; text-align: right; }
.fiche-sec-corps { padding-bottom: 14px; }
/* 12/10/2026 : la fiche client — l'en-tête visible sans déplier, et les rubriques qui AGISSENT (ouvrir un accès, prolonger,
   générer un lien), marquées « action » et bordées à gauche : on ne tombe pas par accident sur un bouton qui ouvre un accès. */
.fiche-client-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 14px; padding: 2px 0 12px; text-align: left; }
details.fiche-sec > summary > .p { margin-left: 4px; margin-right: auto; }
details.fiche-sec > summary > .p + small { margin-left: 0; }
details.fiche-sec.agit { border-left: 3px solid #e6b45a; padding-left: 12px; }
.pv-ligne td { border-top: 0 !important; padding-top: 0 !important; }
.pv-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.envoi-offre .bloc-script-texte { overflow-wrap: anywhere; margin-top: 10px; }   /* l'aperçu du message : l'adresse longue va à la ligne */
.ligne-champ { display: flex; gap: 6px; margin-top: 8px; }
.ligne-champ input { flex: 1; }
.hist { padding: 8px 0; border-bottom: 1px solid var(--bord2); }
.hist-texte { white-space: pre-wrap; font-size: 14px; }

/* 10/10/2026 — trames éditables (Trames · Setting / Closing) et onglets du script dans la fiche. */
.liste-edit { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.element-edit { border: 1px solid var(--bord); border-radius: 9px; padding: 10px 12px; background: var(--doux); }
.element-edit.chaine { padding: 6px 8px; background: #fff; }
.element-tete { margin-bottom: 6px; }
.element-gestes { display: flex; gap: 12px; justify-content: flex-end; margin-top: 4px; }
.champ-edit { margin-bottom: 8px; }
.champ-edit > label { font-size: 12px; color: var(--encre2); font-weight: 650; }
.bloc-script-texte.variante { border-top: 1px dashed var(--bord2); padding-top: 6px; }

/* Le comparatif des offres (« Aller plus loin », sql/0176) */
.comparatif table.dense td:first-child { white-space: normal; }
.comparatif tr.a-toi td { background: #f0fdf4; }
.comparatif-offre summary { font-weight: 700; padding: 12px 0; min-height: 44px; cursor: pointer; }
.comparatif-offre h3 { font-size: 14px; margin: 12px 0 4px; }
.comparatif-offre ul { margin: 0; padding-left: 18px; }
.comparatif-offre li { margin: 4px 0; }
@media (max-width: 560px) { .comparatif table.dense th, .comparatif table.dense td { padding: 10px 8px; } }

/* L’écran Closing (10/10) */
#clEtape .trame-bloc > .surtitre { margin: 12px 16px 0; }
#clEtape .trame-bloc > .b.petit { margin: 0 16px 12px; }

/* La boîte Messages : le compteur sur l’entrée de menu (10/10) */
.compteur-msg { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: #c0262d; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: middle; }
.compteur-msg[hidden] { display: none; }

/* 11/10/2026 (nuit) — LE TÉLÉPHONE PASSE AVANT TOUT (mesure : outils/banc/qualite_telephone.py).
   Sur un écran étroit ou tactile : plus de texte de 10-12 px (surtitres, libellés des chiffres, aides, badges) et
   des zones à toucher faites pour un doigt (pastilles « mini », volets repliables). */
@media (max-width: 640px), (pointer: coarse) {
  .surtitre, .entetes-lignes { font-size: 13px; letter-spacing: 1px; }
  .chiffre span, .tuile span, .chiffre em, .tuile em { font-size: 13px; }
  .p { font-size: 13px; }
  .aide-champ { font-size: 14px; line-height: 1.5; }
  small { font-size: 13px; }
  .pastille { font-size: 14px; }
  .pastille.mini { min-height: 40px; padding: 6px 12px; font-size: 14px; }
  h2 small, h3 small, .bloc h2 small { font-size: 13px; }
  .b.petit, a.b.petit, button.b.petit { font-size: 14px; min-height: 44px; }   /* 11/10 : 40 → 44 px (règle du téléphone) */
  table.dense th, .dense th, table th { font-size: 12px; }
  .pastilles .titre { font-size: 13px; }
  .l2 { font-size: 13px; }
  .qui small, .quoi small, .ligne small, .pointage-ligne small, dl.kv dt, dl.kv dd, .kv dt, .kv dd, label, .lien-genere, div.qui { font-size: 13px; }
  .lien-discret, button.lien-discret { min-height: 40px; padding: 8px 6px; }
  summary.sous, summary.discret { min-height: 44px; display: flex; align-items: center; }   /* 11/10 : 40 → 44 px */
  input[type=checkbox], input[type=radio] { width: 24px; height: 24px; }
  details.plier > summary, .fiche-sec > summary, .bande-decisions > summary, #rdvSetters summary, .bloc > details > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
}

/* 11/10/2026 — Closing par écrit : le titre d'étape et son « Copier toute l'étape » ; le retour « Copié ». */
.trame-titre-etape { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.b.copie-ok { border-color: #1f7a4d; color: #1f7a4d; }
@media (max-width: 640px), (pointer: coarse) { [data-copier-bloc], [data-copier-etape] { min-height: 44px; } }

/* 11/10/2026 — un sélecteur vide se voit au premier coup d'œil (Offres, Closing) : bordure marquée, libellé « à choisir ». */
.pastilles.choix-vide { border: 2px dashed #d97706; border-radius: 10px; padding: 8px; background: #fffbeb; }
.pastilles.choix-vide > .titre { color: #b45309; }
.manque-lien { font-weight: 650; }

/* 11/10/2026 — Messages : le fil d'un client. */
.msg-fil { padding: 12px 0; border-top: 1px solid var(--bord2); }
.msg-fil:first-child { border-top: 0; }
.msg-texte { margin: 6px 0; line-height: 1.5; overflow-wrap: anywhere; }
.msg-reponse { margin: 8px 0 0 14px; padding: 8px 12px; border-left: 3px solid #1f7a4d; background: #f6fbf8; border-radius: 6px; }
#bandeauMsg .message { margin-bottom: 10px; }
/* 11/10/2026 (0197) : Relance — une personne qui a payé est marquée « devenu client », avec la date et l'offre. */
.qui .p.devenu { margin-left: 6px; vertical-align: 1px; }
.qui small.devenu-detail { color: var(--vert); font-weight: 600; }
/* 11/10/2026 (0198) : « Le fonctionnement » — les chemins d'arrivée d'un client. */
.chemins-arrivee .ligne-simple { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--bord); }
.chemins-arrivee .ligne-simple:first-child { border-top: 0; }
.chemins-arrivee .qui small { white-space: normal; overflow: visible; }
.chemins-arrivee .num { text-align: right; flex: 0 0 auto; }
.chemins-arrivee .num small { display: block; }
/* 11/10/2026 (0199) : les liens des outils — l'écran et les deux blocs de Réglages. */
.liens-outils { display: grid; gap: 10px; }
.liens-outils .b.large, .lien-outil { min-height: 44px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.champ-lien { margin-bottom: 16px; }
.champ-lien .ligne-champ { display: flex; gap: 8px; align-items: stretch; }
.champ-lien .ligne-champ input { flex: 1 1 auto; min-width: 0; }
.champ-lien .valeur-lien { margin: 4px 0; overflow-wrap: anywhere; }
.champ-lien .aide-champ.visible-eleves { color: var(--orange); font-weight: 600; }
@media (max-width: 640px) {
  .champ-lien .ligne-champ { flex-wrap: wrap; }
  .champ-lien .ligne-champ input { flex-basis: 100%; font-size: 16px; min-height: 44px; }
  .champ-lien .ligne-champ .b { min-height: 44px; }
}
/* 11/10/2026 (point 7) : le menu en six ensembles repliables — rail du PC et panneau « Plus » du téléphone. */
.rail .groupes-rail { display: grid; gap: 4px; margin: 24px 0 18px; }
.groupe-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px;
  padding: 8px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.groupe-menu > summary::-webkit-details-marker { display: none; }
.groupe-menu > summary::after { content: '▸'; font-size: 11px; transition: transform .15s; }
.groupe-menu[open] > summary::after { transform: rotate(90deg); }
.rail .groupe-menu > summary { color: #8fa5c2; }
.rail .groupe-menu > summary:hover { background: var(--rail-survol); color: #fff; }
.rail .groupe-liens { display: grid; gap: 3px; padding: 2px 0 8px; }
.rail .groupe-liens a { color: #bfd0e7; border-radius: 7px; padding: 9px 12px; font-size: 14px; display: block; }
.rail .groupe-liens a:hover { background: var(--rail-survol); }
.rail .groupe-liens a.actif { background: var(--accent); color: #fff; }
.menu-groupes { display: grid; gap: 6px; }
.menu-groupes .groupe-menu > summary { min-height: 44px; color: var(--encre2); background: var(--doux); }
.menu-groupes .groupe-liens { display: grid; gap: 9px; padding: 9px 0 6px; }
/* 12/10/2026 (Fabrice, 5.c) : LE TITRE D'ENSEMBLE ET L'ENTRÉE NE SE RESSEMBLENT PLUS — même traitement sur PC et sur
   téléphone. Le titre : petites capitales espacées, couleur effacée, un filet au-dessus (une assise de dossier).
   L'entrée : casse normale, plus grande, plus claire, décalée vers la droite le long d'un trait vertical (une page). */
.rail .groupes-rail { gap: 0; }
.rail .groupe-menu { border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 4px; margin-top: 4px; }
.rail .groupe-menu:first-child { border-top: 0; }
.rail .groupe-menu > summary { color: #7489a8; font-size: 11px; letter-spacing: .12em; font-weight: 800; }
.rail .groupe-liens { margin-left: 12px; padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, .14); }
.rail .groupe-liens a { color: #e8eef8; font-size: 14.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.menu-groupes .groupe-menu > summary { color: var(--encre3); letter-spacing: .12em; font-weight: 800; }
.panneau .menu-groupes .groupe-liens { margin-left: 16px; border-left: 3px solid var(--bord2); }
.panneau .menu-groupes .groupe-liens .b { font-weight: 600; color: var(--encre); text-transform: none; letter-spacing: 0; }
.panneau .menu-groupes .groupe-liens .b.principal-b { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 11/10/2026 (point 8) : ce que crée le paiement d'essai, dit avant le bouton. */
.message.essai-effets { color: #8a4b00; background: var(--orange-fond); }
/* 11/10/2026 (chantier SOLDE) : l'écran « Soldes à régler ». */
.ligne-solde { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--bord); }
.ligne-solde:first-child { border-top: 0; }
.ligne-solde .qui { flex: 1 1 200px; min-width: 0; }
.ligne-solde .num { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ligne-solde .res-solde { flex-basis: 100%; }
.ligne-solde .res-solde .lien-genere { overflow-wrap: anywhere; }
.confirme-solde { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 8px; }
@media (max-width: 640px) { .ligne-solde .b.petit, #basculeSolde { min-height: 44px; } }
/* 11/10/2026 (point B) : choisir une personne (Clients « Élève », Relance « Contact »). 44 px, 16 px, jamais hors de l'écran. */
.choix-personne-hote { margin: 4px 0 10px; }
.choix-personne-hote .titre-choix { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--encre2); margin-bottom: 6px; }
.choix-personne { display: flex; gap: 8px; align-items: stretch; }
.choix-personne select, .choix-personne input { flex: 1 1 auto; min-width: 0; max-width: 100%; min-height: 44px; font-size: 16px; }
.choix-personne .efface-choix { min-width: 44px; min-height: 44px; font-size: 20px; line-height: 1; padding: 0 12px; }
.suggestions-personne { list-style: none; margin: 6px 0 0; padding: 0; max-height: 50vh; overflow-y: auto; border: 1px solid var(--bord); border-radius: 8px; background: var(--carte); }
.suggestions-personne li { padding: 10px 12px; min-height: 44px; border-top: 1px solid var(--bord); cursor: pointer; overflow-wrap: anywhere; }
.suggestions-personne li:first-child { border-top: 0; }
.suggestions-personne li small { display: block; color: var(--encre2); font-size: 13px; }
.suggestions-personne li[data-id]:hover { background: var(--doux); }
/* 11/10/2026 (0202) : le volet « Sans téléphone », replié, hors du chemin de travail. */
.bloc.sans-telephone > summary { cursor: pointer; min-height: 44px; }
#bandeauSansTel { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
#bandeauSansTel .b, #voirSansTel, #razR { min-height: 44px; }

/* ==== LES RÈGLES DU TÉLÉPHONE (11/10/2026, ZIP n° 5 — Fabrice : « que ce soit très beau sur smartphone ») ====
   Une passe de MISE EN PAGE pour tous les écrans et tous les rôles, posée ici une fois pour toutes : un écran futur les
   respecte sans que personne y pense. Le texte (aucun texte sous 15 px) est assuré par le PLANCHER généré en fin de feuille.
   Contrôle bloquant : outils/banc/regles_telephone.py (un écran hors règle est un ÉCHEC). Rien ne change sur PC. */
.texte-brut { white-space: pre-wrap; font-size: 12px; }
.texte-version { white-space: pre-wrap; margin-top: 8px; font-size: 14px; }
.panneau .fermer-bas { display: none; }   /* le « Fermer » du bas du panneau « Plus » : téléphone seulement */
@media (max-width: 640px) {
  /* les feuilles que le code injecte lui-même (formulaire « Ajouter un prospect », tableau des rendez-vous) */
  :root { --taille-libelle-champ: 15px; --taille-tableau-rdv: 15px; }

  /* CIBLES : rien qu'on touche sous 44 px, de haut comme de large (bouton, pastille, lien-bouton, liste, résumé, case, croix) */
  button, .b, a.b, .pastille, select, [role=button], .lien-discret { min-height: 44px; min-width: 44px; }
  summary { min-height: 44px; min-width: 44px; }
  details > summary.sous, details > summary.discret, details.plier > summary { display: flex; align-items: center; }
  label.case, label.sel { min-height: 44px; display: flex; align-items: center; gap: 10px; }
  .pastille.mini { min-width: 44px; min-height: 44px; }
  .panneau .fermer { min-height: 44px; }
  .lien-discret { display: inline-flex; align-items: center; }

  /* LES BLOCS DE CHIFFRES DU HAUT : compacts, pour qu'on voie la suite sans défiler des écrans entiers */
  .dominant { padding: 16px 18px; margin-bottom: 12px; }
  .dominant b { font-size: 32px; margin: 4px 0; }
  .chiffres, .tuiles { gap: 8px; margin-bottom: 14px; }
  .chiffre, .tuile { padding: 10px 12px; }
  .chiffre b, .tuile b { font-size: 21px; margin: 2px 0; overflow-wrap: normal; }

  /* LE HAUT DE CHAQUE ÉCRAN, compact et identique partout : on voit vite le contenu */
  .app .principal { padding-top: 14px; }
  .entete { margin-bottom: 14px; gap: 10px; }
  .surtitre { letter-spacing: .05em; margin-bottom: 4px; line-height: 1.35; }
  h1 { font-size: 26px; line-height: 1.15; }
  .entete .b, .entete > .actions .b { margin: 0; }
  details.bande-decisions > summary { padding: 12px 14px; gap: 6px 12px; }
  .bande-decisions { margin-bottom: 12px; }
  .dominant p { margin-top: 2px; line-height: 1.4; }

  /* LES TABLEAUX : sur téléphone, une fiche par ligne, chaque valeur sous son en-tête (data-l, posé par noyau.js) —
     jamais un tableau qu'il faut faire glisser, jamais une colonne écrasée */
  table.a-fiches { width: 100%; border-collapse: collapse; }
  table.a-fiches thead { display: none; }
  table.a-fiches tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; padding: 10px 0; border-top: 1px solid var(--bord); }
  table.a-fiches tbody td:first-child, table.a-fiches tbody td[data-l=""], table.a-fiches tbody td[colspan] { grid-column: 1 / -1; }
  table.a-fiches tbody td:first-child { font-weight: 650; }
  table.a-fiches tbody tr:first-child { border-top: 0; }
  table.a-fiches tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 4px 0 !important; border: 0 !important;
    text-align: right !important; white-space: normal !important; min-width: 0; overflow-wrap: normal; }
  table.a-fiches tbody td::before { content: attr(data-l); flex: 0 0 auto; max-width: 48%; text-align: left; color: var(--encre2); font-weight: 600; overflow-wrap: normal; }
  table.a-fiches tbody td[data-l=""]::before, table.a-fiches tbody td:first-child::before { content: none; }
  table.a-fiches tbody td:first-child { justify-content: flex-start; text-align: left !important; }
  table.a-fiches tbody td.cellule-longue { grid-column: 1 / -1; display: block; text-align: left !important; }
  table.a-fiches tbody td.cellule-longue::before { display: block; max-width: none; margin-bottom: 2px; }
  .l1 > b:last-child:not(:first-child), .l1 > span:last-child:not(:first-child), .num { white-space: nowrap; }   /* seul sur sa ligne : il va à la ligne */
  /* … mais le libellé n'est jamais écrasé : s'il ne garde pas 12 caractères de large à côté, la fin de ligne (nombre,
     étiquettes) passe dessous, alignée à gauche (Réglages : « Lancer ton business… » + deux étiquettes, 12/10) */
  .l1 { flex-wrap: wrap; row-gap: 4px; }
  .l1 > :first-child:not(:last-child) { flex: 1 1 12em; min-width: 0; }
  .l1 > span:last-child:has(.pastille) { white-space: normal; }
  /* les lignes repliables : même règle — le nom garde sa largeur, l'étiquette ou le montant passe dessous s'il le faut */
  .app details.ligne > summary { flex-wrap: wrap; row-gap: 8px; }
  .app details.ligne > summary > .qui { flex: 1 1 12em; min-width: 0; }
  /* les listes « clé : valeur » : le libellé garde 40 % de la largeur ; une valeur longue (adresse) va à la ligne,
     jamais coupée par le bord du bloc */
  .kv { grid-template-columns: minmax(40%, 1fr) minmax(0, auto); }
  .kv dd { min-width: 0; overflow-wrap: anywhere; }
  .kv dt:has(+ dd.valeur-longue), .kv dd.valeur-longue { grid-column: 1 / -1; text-align: left; }
  .kv dt:has(+ dd.valeur-longue) { margin-bottom: -6px; }
  .app code { overflow-wrap: anywhere; }   /* un identifiant d'un seul tenant va à la ligne plutôt que d'être coupé */
  /* 12/10 : une rubrique repliable (fiche client, fiche d'un lead) : le titre et son « + » sur la première ligne, la
     précision dessous, à gauche — jamais le « + » seul sur une ligne */
  details.fiche-sec > summary > small { order: 3; flex: 1 1 100%; text-align: left; margin-left: 0; }
  details.fiche-sec > summary::after { order: 2; margin-left: auto; }
  .menu-groupes .groupe-menu > summary { letter-spacing: .07em; }
  .app p, .app li { overflow-wrap: break-word; }   /* une adresse plus longue que la ligne se coupe au lieu de déborder */
  table.a-fiches tbody td { flex-wrap: wrap; }      /* une valeur qui ne tient pas à côté de son libellé passe dessous */
  table.a-fiches tbody td[data-l=""] { justify-content: flex-start; text-align: left !important; }
  table.a-fiches tfoot td { display: block; padding: 6px 0; }
  .tableau-wrap { overflow-x: visible; }
  .tableau-wrap > table.a-fiches tbody tr, .bloc > table.a-fiches tbody tr { padding-left: 16px; padding-right: 16px; }

  /* LES SOUS-TITRES D'UN BLOC passent à la ligne au lieu d'être coupés net */
  .bloc > h2 small, h2 small, h3 small { white-space: normal; display: block; margin: 4px 0 0 !important; }

  /* LES PASTILLES DE FILTRES passent à la ligne (jamais une barre qu'il faut faire glisser à l'aveugle) */
  .pastilles { flex-wrap: wrap; overflow-x: visible; }
  /* … et une pastille plus longue que l'écran va à la ligne DANS sa case (Offres : « … zéro · 299 € », 12/10) */
  .pastille { white-space: normal; max-width: 100%; text-align: left; }

  /* LES TITRES ne se coupent pas au milieu d'un mot ; un nombre reste collé à son libellé */
  h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .pastille i, .chiffre b, .dominant b { white-space: nowrap; }

  /* LE PANNEAU « PLUS » : UNE seule colonne, pleine largeur ; chaque ensemble est un bloc, ses entrées se touchent,
     les ensembles respirent ; l'entrée de l'écran ouvert ressort ; « Fermer » aussi en bas. */
  .panneau .menu-vues.menu-groupes { display: grid; grid-template-columns: 1fr !important; gap: 14px !important; }
  .menu-groupes .groupe-menu { border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; background: #fff; }
  .menu-groupes .groupe-menu > summary { min-height: 48px; padding: 10px 14px; border-radius: 0; background: var(--doux); }
  .menu-groupes .groupe-liens { display: grid; gap: 0 !important; padding: 0 !important; }
  .panneau .menu-groupes .groupe-liens .b { display: flex; align-items: center; justify-content: flex-start; text-align: left; width: 100%;
    min-height: 48px; padding: 10px 14px; border: 0; border-top: 1px solid var(--bord); border-radius: 0; white-space: normal; line-height: 1.3; }
  .panneau .menu-groupes .groupe-liens .b.principal-b { border-top-color: var(--accent); }
  .panneau .pied-plus { margin: 18px 0 12px; }
  .panneau .fermer-bas { display: block; width: 100%; }

  /* LA LISTE DES PERSONNES : jamais plus large que l'écran */
  .choix-personne select { width: 100%; }
}



/* 12/10/2026 — le filtre de période (E.periodeFiltre) : deux dates sous la rangée de pastilles. Cibles de 44 px,
   texte de 16 px (aucun zoom sur iPhone), passage à la ligne plutôt qu'un débordement. */
.periode-dates{display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0 4px}
.periode-dates label{display:flex;align-items:center;gap:8px;font-size:15px}
.periode-dates input[type=date]{min-height:44px;font-size:16px;padding:6px 10px;border:1px solid var(--bord);border-radius:8px;background:var(--carte);color:inherit;max-width:100%}
.periode-libelle b{font-weight:650}



/* 12/10/2026 — Pointage filtré sur une personne : les lignes non confirmées affichent le DÉFAUT (Brad), pas une attribution. */
.message.avert-defaut{color:#8a4b00;background:var(--orange-fond)}
#totalSelection .corps{font-size:15px;line-height:1.5}

/* 12/10/2026 — Pointage des ventes au téléphone (règles bloquantes, mesurées sur l'onglet filtré) :
   « revenir par défaut » faisait 40 px (button.lien-discret l'emportait sur les 44 px) ; la carte d'un associé
   (« associé · aucune commission ») était coupée net par le nowrap des chiffres. */
@media (max-width: 640px) {
  button.lien-discret { min-height: 44px; }
  .chiffre b .non-mesure { white-space: normal; display: inline-block; }
}



/* 12/10/2026 — « L'espace sur ton écran d'accueil » (installer.js) : trois lignes et un geste, lisibles au pouce. */
.installer-proc h3{margin:14px 0 6px;font-size:16px}
.installer-proc ol{margin:0;padding-left:22px;line-height:1.6;font-size:16px}
.installer-proc li{margin:2px 0}
#installerUnGeste{min-height:48px;margin:4px 0 10px}
.installer-lien .corps{padding:10px 16px}
.installer-lien .b{min-height:44px}



/* 13/10/2026 — Mes ventes : le client sur la ligne (passe à la ligne, jamais coupé) ; « Signaler une erreur » au pouce. */
.client-vente{font-weight:700;overflow-wrap:anywhere}
.offre-vente{font-weight:500;overflow-wrap:anywhere}
.signaler{margin-top:10px}
.signaler textarea{width:100%;min-height:88px;font-size:16px;margin-top:6px}
@media (max-width: 640px) { .signaler .lien-discret{min-height:44px;font-size:15px} .signaler label{font-size:15px} }



/* 13/10/2026 — la décision « Discord » : coller l'identifiant et rattacher, sur place, au pouce. */
.decision-discord{width:100%}
.decision-discord label{display:block;margin-bottom:6px}
.decision-discord .ligne-champ{display:flex;flex-wrap:wrap;gap:8px}
.decision-discord input{flex:1 1 220px;min-height:44px;font-size:16px}

/* 13/10/2026 — UN ÉCRAN S'OUVRE SUR TOUT : la barre des filtres posés (E.filtresPoses), au-dessus de la liste, hors de tout
   panneau replié ; chaque filtre a sa croix, « Tout afficher » les retire tous. */
.filtres-poses { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; padding: 10px 12px; border-radius: 8px;
  background: var(--orange-fond, #fff4e5); color: #7a4300; border: 1px solid #f1c48a; font-size: 14px; }
.filtres-poses .fp-texte { flex: 1 1 260px; }
.filtres-poses .fp-filtre { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: 22px;
  border: 1px solid #e3a554; background: #fff; color: #7a4300; font: inherit; font-weight: 650; cursor: pointer; }
.filtres-poses .fp-filtre span { font-size: 15px; line-height: 1; }
.filtres-poses .fp-filtre:hover, .filtres-poses .fp-filtre:focus-visible { background: #ffe9cc; }
.filtres-poses .fp-tout { min-height: 44px; }
.regle-vue { margin: 6px 0 12px; font-size: 14px; color: var(--encre2); }
@media (max-width: 640px) { .filtres-poses, .regle-vue { font-size: 15px; } .filtres-poses .fp-texte { flex-basis: 100%; } }

/* 14/10/2026 — la feuille de route découpée à l'affichage (E.feuilleDecoupee) : sommaire, rubriques repliables. Mêmes
   jetons de couleur que le reste de l'espace ; le texte garde ses retours à la ligne (pre-wrap), comme avant. */
.feuille-decoupee { font-size: 15px; line-height: 1.6; }
.feuille-decoupee .fl-l { white-space: pre-wrap; min-height: 1.6em; overflow-wrap: anywhere; }
.feuille-decoupee .fl-titre, .feuille-decoupee .fl-titre2 { display: inline; min-height: 0; }
.fl-sommaire { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.fl-sommaire .surtitre { flex-basis: 100%; }
.fl-sommaire .fl-aller { min-height: 44px; padding: 6px 12px; border: 1px solid var(--bord); border-radius: 6px; background: var(--carte); color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.fl-rub { border-top: 1px solid var(--bord); }
.fl-rub > summary { cursor: pointer; padding: 10px 0; min-height: 44px; font-weight: 750; color: var(--encre); }
.fl-rub > .fl-corps { padding: 0 0 12px; }
.fl-bloc { margin: 6px 0; border: 1px solid var(--bord2); border-radius: 6px; padding: 0 10px; background: var(--doux); }
.fl-bloc > summary { cursor: pointer; padding: 10px 0; min-height: 44px; font-weight: 650; }
.fl-bloc > .fl-corps { padding: 0 0 10px; }
.feuille-decoupee .fl-etiquette { font-weight: 700; margin-top: 8px; }
.feuille-decoupee .fl-semaine { font-weight: 750; margin: 14px 0 6px; color: var(--encre2); }
@media (max-width: 640px) { .fl-sommaire .fl-aller { font-size: 15px; } }
/* L'ÉDITEUR DE LA FEUILLE (14/10/2026) : chercher et sommaire au-dessus de la zone de saisie ; la zone plus haute sur
   ordinateur seulement (téléphone : 440 px, comme avant). */
.editeur-nav { margin: 4px 0 10px; }
.editeur-chercher { display: flex; gap: 8px; align-items: center; }
.editeur-chercher input { flex: 1 1 auto; min-width: 0; }
.editeur-chercher .b { flex: 0 0 auto; }
#fTrouve { margin: 6px 0 0; overflow-wrap: anywhere; }
#fTrouve:empty { display: none; }
#fTrouve mark { background: #fff1a8; color: inherit; padding: 0 1px; }
.editeur-sommaire { max-height: 232px; overflow: auto; margin: 10px 0 0; padding: 2px; }
.editeur-sommaire .fl-aller.n2 { color: var(--encre2); }
@media (min-width: 900px) { textarea.longue#fTexte { min-height: 72vh; } }

/* 14/10/2026 — la bibliothèque sur ordinateur : le document en plein écran, avec « Fermer » (E.ouvrirDocument, ≥ 900 px).
   Le cadre de la colonne (.cadre-doc ci-dessus) reste celui du téléphone. */
.doc-plein-ecran { position: fixed; inset: 0; z-index: 3000; background: var(--fond); display: flex; flex-direction: column; }
.doc-plein-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--carte); border-bottom: 1px solid var(--bord); }
.doc-plein-ecran .cadre-doc { flex: 1 1 auto; width: 100%; height: auto; min-height: 0; border: 0; border-radius: 0; }


/* 20/10/2026 (0236) : messages Instagram sortants — la jauge du jour et le trait du seuil ; un jour au-delà est marqué. */
.jauge-sortants{position:relative;display:inline-block;vertical-align:middle;width:110px;height:8px;border-radius:4px;background:var(--neutre-fond)}
.jauge-sortants i{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--serie)}
.jauge-sortants s{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--rouge);text-decoration:none}
tr.au-dela-seuil td{background:var(--rouge-fond)}
/* 20/10/2026 (0237) : le tableau de bord des messages sortants — quatre cases sur ordinateur, deux sur téléphone ; la journée ouverte. */
@media (min-width: 1100px) { .tdb-sortants { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tdb-sortants b small { font-size: 14px; font-weight: 600; color: var(--encre2); letter-spacing: 0; }
.tdb-sortants .chiffre.etat-proche { border-color: var(--orange); }
.tdb-sortants .chiffre.etat-au-dela { border-color: var(--rouge); background: var(--rouge-fond); }
.tdb-sortants .graphe-svg { margin-top: 6px; }
.jauge-sortants.large { display: block; width: 100%; margin-top: 8px; }
details.ligne.au-dela-seuil > summary { background: var(--rouge-fond); }
.detail-sortants { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 860px) { .detail-sortants { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.detail-sortants h3 { font-size: 13px; margin: 0 0 6px; } .detail-sortants h3 small { color: var(--encre2); font-weight: 500; }
.conv-sortants { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.conv-sortants li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 44px; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; }
.conv-sortants li i { display: block; height: 8px; border-radius: 4px; background: var(--serie); }
.conv-sortants li b { text-align: right; font-variant-numeric: tabular-nums; }


/* 20/10/2026 : Relance et Clients — téléphone ET courriel sous le nom. La ligne de coordonnées passe à la ligne au lieu
   d'être coupée (sur ordinateur, la case du nom coupait la fin : le statut du lead disparaissait derrière le courriel). */
.qui small.coord, .cadre .lignes[style*="--gabarit"] > details.ligne > summary .qui small.coord { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }

/* 28/10/2026 (sql/0247) — L'ÉCRAN « APPELS ». Ordinateur : une ligne par personne (--gabarit). Téléphone et tablette (.app) : le
   tableau retourné, une ligne par jour et une colonne par personne (--colonnes), chiffres en 15 px, sans défilement de côté. */
.semaine-nav { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: nowrap; }
.semaine-nav .fleche { min-width: 44px; min-height: 44px; font-size: 22px; line-height: 1; padding: 0 12px; justify-content: center; }
.semaine-nav .fleche[disabled] { opacity: .35; cursor: default; }
.semaine-titre { font-size: 15px; white-space: nowrap; }
.cadre .appels-tel, .app .appels-pc { display: none; }
.appels-grille > details.ligne > summary .num, .appels-total .num { font-variant-numeric: tabular-nums; }
.cadre .appels-total { display: grid; grid-template-columns: var(--gabarit) 18px; gap: 14px; padding: 14px 19px; border-top: 2px solid var(--bord); font-weight: 700; }
.appels-tete, .app details.ligne.appels-jour > summary, .appels-tel .appels-total { display: grid; grid-template-columns: var(--colonnes) 18px; gap: 6px; align-items: center; }
.appels-tete { padding: 10px 12px 6px; font-size: 15px; font-weight: 700; color: var(--encre2); }
.appels-tete span { overflow-wrap: anywhere; line-height: 1.2; }
/* 29/10/2026 : .num (ligne 137) interdit le retour à la ligne : les NOMS de l'en-tête le retrouvent (pas les chiffres). */
.appels-tete span.nom-court { white-space: normal; text-align: right; }
.appels-legende { padding: 4px 12px 12px; margin: 0; }
.app details.ligne.appels-jour > summary { padding: 12px; min-height: 48px; font-size: 15px; }
.appels-tel .appels-total { padding: 12px; border-top: 2px solid var(--bord); font-weight: 700; font-size: 15px; }
.appels-tel .appels-total::after { content: ''; }
.appels-pc .detail, .appels-tel .detail { padding: 0 19px 12px; }

/* 28/10/2026 — RELANCE : les quatre pastilles d'intérêt, hors du repli des filtres ; la fiche en quatre groupes, une case à la fois. */
.interets-relance { margin: 0 0 12px; }
/* 28/10/2026 (soir) : les rangées « Intérêt » (Relance, en haut et dans les Filtres ; écran Appels) ont l'allure d'un BOUTON — bord et
   texte bleus, fond teinté ; l'active est pleine (bleu, texte blanc). Elles ne ressemblent plus aux cases de chiffres. */
.filtre-interet .pastille { border-color: #9fb6ea; color: #234cd0; background: #f5f8ff; font-weight: 650; box-shadow: 0 1px 0 rgba(35, 76, 208, .18); cursor: pointer; }
.filtre-interet .pastille i { color: #315ac2; font-weight: 700; }
.filtre-interet .pastille.allumee { background: #234cd0; color: #fff; border-color: #234cd0; }
.filtre-interet .pastille.allumee i { color: #fff; }
#interetsR { margin: 0 0 12px; }
.qualifier { margin: 14px 0 0; }
/* 29/10/2026 : le dernier appel sous le nom — sur téléphone seulement (sur PC, il est dans la colonne « Dernière action »). */
.cadre .appel-recent { display: none; }
.app .appel-recent { display: block; color: var(--encre2); }   /* 28/10 : qualifier sans appel en attente (étape seule) */
.qualifier .pastilles { margin-bottom: 6px; }
.fiche-groupes { margin-top: 14px; border-top: 1px solid var(--bord); }
details.fiche-groupe { border-bottom: 1px solid var(--bord); }
details.fiche-groupe > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 14px 0; min-height: 48px; }
details.fiche-groupe > summary::-webkit-details-marker { display: none; }
details.fiche-groupe > summary::after { content: '+'; color: #8292a9; font-size: 18px; margin-left: auto; }
details.fiche-groupe[open] > summary::after { content: '−'; }
.fiche-groupe-titre { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 800; color: var(--encre); }
details.fiche-groupe > summary small { font-weight: 400; }
.fiche-groupe-corps { padding: 0 0 14px 14px; border-left: 3px solid #cbd8f4; margin-bottom: 12px; }
.fiche-groupe-corps > details.fiche-sec:first-child { border-top: 0; }
.fiche-groupe-corps > details.fiche-sec { background: #fafbfd; border: 1px solid var(--bord2); border-radius: 6px; padding: 0 12px; margin-top: 8px; }
@media (max-width: 640px), (pointer: coarse) {
  details.fiche-groupe > summary { min-height: 48px; flex-wrap: wrap; align-items: center; }
  details.fiche-groupe > summary small { order: 3; flex: 1 1 100%; }
  details.fiche-groupe > summary::after { order: 2; }
  .fiche-groupe-titre { font-size: 15px; letter-spacing: .8px; }
  .fiche-groupe-corps { padding-left: 10px; }
}

/* ==== PLANCHER TÉLÉPHONE — GÉNÉRÉ par outils/plancher-telephone.py : ne pas modifier à la main ==== */
/* Sur téléphone, aucun texte sous 15 px : chaque règle ci-dessous déclarait une taille plus petite ailleurs dans cette
   feuille (135 sélecteurs). Une règle ajoutée demain avec une petite taille est reprise à la prochaine génération ;
   le constructeur de ZIP refuse de construire tant que ce bloc n’est pas à jour. */
@media (max-width: 640px) {
  code,
  .gate-domaines,
  .gate-contenu label,
  .gate-lien,
  .gate-note,
  .gate-contenu .message,
  #gate label,
  .rail .liens a,
  .rail .liens button,
  .rail .qui,
  .rail .secondaires a,
  .profil-mobile b,
  .profil-mobile small,
  .avatar,
  .lecture-seule,
  .sous,
  .discret,
  .surtitre,
  .bloc > h2 small,
  .dominant p,
  .dominant span,
  .chiffre span,
  .tuile span,
  .chiffre em,
  .tuile em,
  .b,
  .b.petit,
  .p,
  .pastilles .titre,
  .pastille,
  .pastille i,
  .pastille.mini,
  .qui,
  .qui small,
  .quoi,
  .entetes-lignes,
  .kv,
  .cadre .kv,
  .l2,
  label,
  .case,
  .erreur-champ,
  .aide-champ,
  .cadre input,
  .cadre select,
  .message,
  .vide,
  .chiffre b .non-mesure,
  .tuile b .non-mesure,
  .non-calc,
  .sauvegarde,
  .nav-bas a,
  .nav-bas button,
  .pied,
  .pied .version,
  .pied .version .lien-discret,
  .lien-genere,
  .date-live strong,
  .manuel ul,
  .manuel p,
  .notice-source,
  .reference,
  .lien-discret,
  .panneau p,
  table.dense,
  table.dense th,
  .tableau-pied,
  .bande,
  details.bande-decisions > summary::after,
  .pointage-ligne small,
  .pointage-ligne .quoi,
  .pointage-ligne .role-nom,
  .graphe-svg .axe,
  .graphe-svg .etiq,
  .bulle,
  .repart .nom,
  .repart .nom small,
  .repart .val,
  .etape h3,
  .etape .qui,
  .etape .argent,
  .legende,
  details.plier > summary,
  .nouvelle-version,
  .controle-duree span,
  .controle-duree em,
  .controle-chiffres span,
  .controle-qui,
  .depot span,
  .apercu-texte,
  .trame-note,
  .repli-offres > summary h2 small,
  .repli-indice,
  .conv-qui,
  .conv-sep,
  .conv-capture,
  .conv-annot,
  .voir-exemple,
  .chiffre-tdb small,
  .haut-mobile .b.aide,
  .questions-live,
  .hist-texte,
  .champ-edit > label,
  .comparatif-offre h3,
  .compteur-msg,
  small,
  h2 small,
  h3 small,
  .bloc h2 small,
  a.b.petit,
  button.b.petit,
  .dense th,
  table th,
  .quoi small,
  .ligne small,
  dl.kv dt,
  dl.kv dd,
  .kv dt,
  .kv dd,
  div.qui,
  .groupe-menu > summary,
  .groupe-menu > summary::after,
  .rail .groupe-liens a,
  .rail .groupe-menu > summary,
  .choix-personne-hote .titre-choix,
  .suggestions-personne li small,
  .texte-brut,
  .texte-version,
  .filtres-poses,
  .regle-vue,
  .fl-sommaire .fl-aller,
  .tdb-sortants b small,
  .detail-sortants h3,
  .conv-sortants li,
  .fiche-groupe-titre { font-size: 15px; }
}
/* ==== FIN DU PLANCHER TÉLÉPHONE ==== */
