/* L'écran de la commerciale.
 *
 * Dans un fichier, et pas dans une balise <style> : la politique de sécurité
 * de la page est `default-src 'self'`, qui interdit le style en ligne. Le
 * 21/09/2026, la page est partie en production avec son CSS en ligne et
 * s'est affichée en HTML brut — sans la moindre erreur visible ailleurs que
 * dans la console du navigateur.
 *
 * Assouplir la politique avec 'unsafe-inline' aurait été le réflexe rapide.
 * Mais cet écran affiche des noms de personnes, et 'unsafe-inline' rouvre
 * exactement la porte que la politique ferme.
 *
 * 🎨 LA V3 du 26/10/2026 (Léo : « trop vibe coder », puis la maquette
 * « Onglet Suivi · vue Liste »). Elle remplace la refonte « Maison » du
 * 24/10 (noir, ivoire, doré, serif, menu noir à gauche) : une page BLANCHE,
 * des gris neutres, UN accent vert (#0F7B5F), des filets fins, presque pas
 * d'ombre, IBM Plex partout, les onglets EN HAUT. Les couleurs d'ÉTAT gardent
 * leur sens (vert en ligne, ambre « ça sonne », rouge, violet de l'écoute).
 * Chaque couple texte/fond est MESURÉ, pas regardé (`test_luxcall_mise_en_page`).
 * Les icônes restent des SVG en `data:` (`img-src 'self' data:`), jamais des
 * émojis. Aucun identifiant, aucune classe lue par app.js n'a changé.
 */

/* 🎨 IBM Plex, la police des maquettes (Léo, 01/10/2026), servie par la
   console (`console.FICHIERS`) : Plex Sans pour tout l'écran — une police
   VARIABLE, toutes les graisses dans un fichier —, Plex Mono pour ce qu'on lit
   chiffre par chiffre (le numéro, le RPPS). Sous-ensemble latin : tout le
   français. `swap` : le texte s'affiche tout de suite, dans la police du
   système, le temps qu'elle arrive. Licence OFL 1.1 (`PLEX-LICENCE.txt`). */
@font-face { font-family: "IBM Plex Sans"; src: url("plex-sans.woff2") format("woff2");
  font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("plex-mono.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }
/* 🧱 Les titres du néo-brutalisme (Léo, 23/11/2026 : « Oui, télécharge-la ») :
   Archivo Black, servie ICI comme Plex (`default-src 'self'`), sous-ensemble
   latin de Google Fonts (9,8 Ko), licence OFL 1.1 (`ARCHIVO-LICENCE.txt`).
   Une seule graisse : déclarée de 100 à 900, pour que les titres demandés en
   600 ou 900 la prennent TELLE QUELLE — sans quoi Chrome l'épaissirait encore
   d'un faux gras. Le néomorphisme ne la demande pas : elle ne s'y charge pas. */
@font-face { font-family: "Archivo Black"; src: url("archivo-black.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* 🎨 LA V3 (Léo, 26/10/2026 : « trop vibe coder », puis la maquette choisie,
     « Onglet Suivi · vue Liste ») : un outil, plus une vitrine. Blanc, gris
     neutres (zinc), UN accent vert, des filets fins, presque pas d'ombre, la
     même police partout. Le noir, l'ivoire et le doré de la refonte
     « Maison » du 24/10 sont partis. Les NOMS restent (app.js et les autres
     feuilles les lisent) : `--vert*` est l'ACCENT (« agis », « positif »),
     plus une couleur. Chaque couple texte/fond tient 4,5:1 (mesuré). */
  /* 🧱 LA V4 NÉO-BRUTALISTE (Léo, 22/11/2026, devant deux esquisses :
     « Néo-brutalisme ») : fond CRÈME, trait NOIR de 3 px, ombre DURE décalée
     de 6 px sans flou, titres très gras, boutons qui s'enfoncent au survol.
     Les valeurs changent ici ; la forme des composants, dans `brutalisme.css`,
     chargée en DERNIER. L'accent n'est plus vert : c'est l'ENCRE (noir), et
     son fond pâle un JAUNE de surligneur. Les états gardent leurs couleurs. */
  --encre: #111111;
  --encre-douce: #2d2a24;
  --libelle: #4d493f;          /* 8,1:1 sur le crème */
  /* Les lignes « faites » et les textes indicatifs : plus clairs qu'un
     libellé, 4,8:1 au moins sur chaque fond pâle. */
  --gris: #6b665b;
  /* Les filets : NOIRS. Seul le filet doux, entre deux lignes d'un tableau,
     reste un trait chaud. */
  --trait: #111111;
  --trait-doux: #e5d6b4;
  --trait-fort: #111111;
  --fond: #fffdf6;
  --fond-doux: #fff8e7;
  --fond-gris: #f7ecd2;
  --fond-page: #fff3dc;
  /* ⚫ L'ACCENT : l'encre. Il porte le texte, les traits ET les aplats, sous
     du texte BLANC (18:1). Son fond pâle est le jaune du surligneur. */
  --vert: #111111;
  --vert-fonce: #000000;
  --vert-vif: #111111;
  --vert-anneau: #111111;
  --vert-clair: #fff1b8;
  --vert-trait: #111111;
  --or-survol: #000000;
  --or-voile: rgba(255, 216, 77, .45);
  /* L'AMBRE, « ça sonne », « en retard » : l'orange de la maquette. */
  --ambre: #b4430c;
  --ambre-vif: #ea580c;
  --ambre-clair: #fff1e6;
  --ambre-trait: #fdd5b4;
  --ambre-sombre: #fdba8c;
  --ambre-voile: rgba(234, 88, 12, .16);
  --jaune-clair: #fefce8;
  --jaune-trait: #fde68a;
  --cyan: #0e7490;
  --cyan-vif: #0891b2;
  --cyan-clair: #ecfeff;
  --cyan-trait: #a5f3fc;
  --rouge: #b91c1c;
  --rouge-vif: #dc2626;
  --rouge-clair: #fef2f2;
  --rouge-trait: #fecaca;
  /* Le vert de « en ligne », « nouveau » : un vert plus franc que l'accent. */
  --succes: #15803d;
  --succes-vif: #16a34a;
  --succes-clair: #eaf7ee;
  --succes-trait: #bbe5c8;
  --violet: #4338ca;
  --violet-vif: #6366f1;
  --violet-clair: #eef2ff;
  --violet-trait: #c7d2fe;
  /* Le NOIR des boutons principaux et du bandeau d'appel : le zinc 900. */
  --sombre: #18181b;
  --sombre-bandeau: #18181b;
  --sombre-encre: #fafafa;
  --sombre-doux: #a1a1aa;
  --sombre-trait: rgba(255, 255, 255, .10);
  --sombre-bouton: rgba(255, 255, 255, .06);
  --sombre-survol: rgba(255, 255, 255, .12);
  --sombre-actif: rgba(255, 255, 255, .08);
  --sombre-bord: rgba(255, 255, 255, .16);
  --noir-survol: #27272a;
  /* 🧱 Des ombres DURES : décalées, sans flou, noires. */
  --ombre: 6px 6px 0 #111111;
  --ombre-survol: 3px 3px 0 #111111;
  --ombre-haute: 8px 8px 0 #111111;
  /* ♿ Le bord de ce qu'on touche : noir (18:1). Le survol va au noir pur. */
  --bordure-bouton: #111111;
  --bordure-bouton-forte: #000000;
  --bordure-champ: #111111;
  --ombre-bouton: 4px 4px 0 #111111;
  /* Une liste qui défile à l'horizontale le dit : une ombre au bord. */
  --ombre-defilement: rgba(0, 0, 0, .14);
  --indice-defilement:
    linear-gradient(90deg, var(--fond) 45%, transparent) left center / 2.25rem 100% no-repeat local,
    linear-gradient(270deg, var(--fond) 45%, transparent) right center / 2.25rem 100% no-repeat local,
    linear-gradient(90deg, var(--ombre-defilement), transparent) left center / .9rem 100% no-repeat scroll,
    linear-gradient(270deg, var(--ombre-defilement), transparent) right center / .9rem 100% no-repeat scroll;
  --rayon: 7px;
  --rayon-carte: 10px;
  --duree: .14s;
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --navigation: 0px;
  --police: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
  --police-chiffres: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* 🧱 Les titres : TRÈS gras. Archivo Black, servie par LuxCall
     (23/11/2026) : la même sur Mac, Windows, Android et iPhone. Arial Black
     ne sert plus que si la police n'arrive pas. */
  --police-titres: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --monogramme: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font: 14px/1.5 var(--police);
  color: var(--encre);
  background: var(--fond-page);
  -webkit-font-smoothing: antialiased;
}
/* La sélection de texte, aux couleurs de la maison. */
::selection { background: var(--vert-trait); color: var(--encre); }

/* ── Les boutons ─────────────────────────────────────────────────────────── */

/* Le secondaire : blanc à filet chaud ; le survol le fonce et pose l'ombre.
   ♿ Le filet tient 3:1 depuis le 25/10/2026 (`--bordure-bouton`) : à 1,45:1,
   un bouton posé sur une carte blanche n'avait plus de bord. */
button {
  font: inherit; font-weight: 500; cursor: pointer; border-radius: var(--rayon);
  border: 1px solid var(--bordure-bouton); background: var(--fond);
  color: var(--encre); padding: .45rem .9rem; box-shadow: var(--ombre-bouton);
  transition: background var(--duree) ease, border-color var(--duree) ease,
              color var(--duree) ease, box-shadow var(--duree) ease;
}
button:hover:not(:disabled) { background: var(--fond-doux); border-color: var(--bordure-bouton-forte); }
button:active:not(:disabled) { background: var(--fond-gris); box-shadow: none; }
/* 🟡 Le focus clavier : un anneau DORÉ, décollé du bouton. `--vert` (5,5:1
   sur le blanc) : un anneau doux ne se verrait pas. */
/* (Pas les `tabindex="-1"` : le tiroir de la fiche reçoit le focus par le
   script, et un cadre doré autour du tiroir entier ne dirait rien.) */
button:focus-visible, a:focus-visible, summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
/* ⚫ Le PRINCIPAL est NOIR, texte ivoire (15:1) ; au survol, un liseré doré
   et un reflet — l'or dit « c'est ici ». */
button.primaire { background: var(--encre); border-color: var(--encre); color: var(--sombre-encre);
  font-weight: 600; letter-spacing: .01em; }
button.primaire:hover:not(:disabled) { background: var(--noir-survol); border-color: var(--vert-vif);
  box-shadow: inset 0 1px 0 rgba(243, 238, 228, .08), 0 6px 18px -8px rgba(0, 0, 0, .55); }
button.primaire:active:not(:disabled) { background: #000; box-shadow: none; }
/* ♿ Le bord rouge VIF (5:1), plus le rouge pâle (1,55:1) : 25/10/2026. */
button.danger { color: var(--rouge); border-color: var(--rouge-vif); background: var(--fond); font-weight: 600; }
button.danger:hover:not(:disabled) { background: var(--rouge-clair); border-color: var(--rouge); }
/* La campagne tourne : « Suspendre » se voit comme l'état en cours. */
button.attention { color: var(--ambre); border-color: var(--ambre-vif); background: var(--ambre-clair);
                   font-weight: 600; }
button.attention:hover:not(:disabled) { background: #fbe4d2; border-color: var(--ambre); }

/* ── Les champs ──────────────────────────────────────────────────────────── */

/* Le bord d'un champ se VOIT (3:1, `--bordure-champ`) : sans lui, un champ
   vide sur une carte blanche n'est plus qu'un blanc dans le blanc. */
select, input[type=text], input[type=password], input[type=search], input[type=tel],
input[type=url], input[type=date], input[type=time] {
  font: inherit; min-height: 2.35rem; padding: .4rem .7rem; border-radius: var(--rayon);
  border: 1px solid var(--bordure-champ); background-color: var(--fond); color: var(--encre);
  max-width: 16rem; transition: border-color var(--duree) ease, box-shadow var(--duree) ease;
}
/* Un chevron dessiné : le menu natif de macOS a l'allure d'un autre logiciel. */
select { appearance: none; -webkit-appearance: none; padding-right: 2.1rem;
  background: var(--fond) no-repeat right .65rem center / .95rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  text-overflow: ellipsis; cursor: pointer; }
select:disabled { cursor: not-allowed; opacity: .6; }
select option { color: var(--encre); background: var(--fond); }
select:hover:not(:disabled) { border-color: var(--encre-douce); }
/* Le focus d'un champ — zones de texte comprises : le bord passe au doré de
   texte, un trait du même doré l'épaissit, et le halo champagne autour.
   ♿ 25/10/2026 (revue du 24/10) : le halo seul faisait 1,45:1 et le bord ne
   fonçait que d'un facteur 1,7 — au clavier, on ne voyait plus où l'on
   était. Le repère est désormais ce trait de 2 px en `--vert` (5,5:1 sur le
   blanc) ; le halo n'est qu'un adoucissement. Le contour transparent reste
   pour le contraste élevé de Windows, qui efface les ombres. */
select:focus, input:focus, textarea:focus { outline: 2px solid transparent; outline-offset: 0;
  border-color: var(--vert); box-shadow: 0 0 0 1px var(--vert), 0 0 0 4px var(--vert-trait); }
input::placeholder, textarea::placeholder { color: var(--gris); }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* ⌨️ Le champ « fichier » est invisible (1 px) : c'est son bouton, le
   `<label>` qui le précède, qui montre le focus clavier (25/10/2026 : « Choisir
   le fichier .csv » restait sans repère, le focus tombait dans le vide). */
.bouton-fichier:has(+ input[type=file]:focus-visible) { outline: 2px solid var(--vert);
  outline-offset: 2px; }
.cache { display: none !important; }

/* 🧑‍💼 Le LuxCall COMMERCIAL (Léo, 24/09/2026) : « moins complet et avec peu
   d'informations dessus ». Ces deux règles ne font que CACHER — ce qu'un
   commercial ne doit pas voir n'est déjà plus envoyé par le serveur. L'écran
   s'ouvre replié (`class="commercial"` dans index.html) et ne s'élargit que
   quand l'inventaire dit « administrateur ».
   ⚠️ `!important` pour la même raison que `.cache` : une règle `display` sur
   un identifiant (`#depot.visible`, `#lignes`…) battrait la classe. */
#ecran.commercial .admin-seul { display: none !important; }
#ecran:not(.commercial) .commercial-seul { display: none !important; }
/* Le repli de « Copier » quand le presse-papiers est refusé : un champ qu'on
   sélectionne sans qu'il se voie. */
.hors-ecran { position: fixed; left: -9999px; top: 0; opacity: 0; }
/* Lu par les lecteurs d'écran, invisible à l'œil. */
.pour-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 🔑 Connexion (v3, 26/10/2026) ─────────────────────────────────────────
   Une page gris très clair, une carte blanche au centre, à filet fin : la
   même sobriété que l'écran. Le noir et le reflet doré de la « vitrine » du
   24/10 sont partis. */
#connexion { position: fixed; inset: 0; z-index: 10; overflow: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.75rem; padding: 2rem 1rem; background: var(--fond-doux); }
#connexion form { position: relative; width: min(25rem, 100%); display: flex; flex-direction: column;
  gap: .9rem; padding: 2.25rem 2rem 2rem; border-radius: var(--rayon-carte); background: var(--fond);
  border: 1px solid var(--trait-fort); box-shadow: var(--ombre-haute);
  animation: vitrine .5s var(--courbe) both; }
@keyframes vitrine { from { opacity: 0; transform: translateY(.75rem); } }
.connexion-tete { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .35rem; padding-bottom: 1.35rem; margin-bottom: .35rem; position: relative; }
/* Plus de monogramme ni de filet doré (v3) : la marque en gras suffit. */
.connexion-tete { border-bottom: 1px solid var(--trait); }
.connexion-monogramme { display: none; }
#connexion h1.connexion-marque { margin: 0; font: 700 1.75rem/1.1 var(--police-titres);
  letter-spacing: -.03em; color: var(--encre); }
#connexion .connexion-accroche { font: 400 .95rem/1.4 var(--police); color: var(--libelle); }
#connexion .connexion-adresse { margin: 0; font-size: .8rem; color: var(--libelle); }
#connexion p { margin: 0; color: var(--libelle); }
#par-mot-de-passe { display: flex; flex-direction: column; gap: .7rem; }
#par-mot-de-passe > p { font-size: .9rem; text-align: center; }
#connexion input { width: 100%; max-width: none; min-height: 2.5rem; padding: .5rem .85rem;
  border-radius: var(--rayon); }
#connexion button { width: 100%; min-height: 2.6rem; font-size: .92rem; border-radius: var(--rayon); }
#connexion button.primaire { margin-top: .3rem; }
#connexion button.lien { min-height: 0; width: auto; align-self: center; }
#erreur-connexion { display: block; align-self: stretch; white-space: normal; }
#erreur-connexion.cache { display: none !important; }
@media (prefers-reduced-motion: reduce) { #connexion form { animation: none; } }

/* 🔑 Entrer avec son compte Google (Léo, 24/09/2026). Un lien qui a l'air
 * d'un bouton : c'est une navigation, pas une requête de fond. */
.entrer-google {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  width: 100%; min-height: 2.6rem; padding: .5rem; border: 1px solid var(--bordure-bouton);
  border-radius: var(--rayon); background: var(--fond); color: var(--encre);
  font-weight: 600; font-size: .95rem; text-decoration: none; box-shadow: var(--ombre);
  transition: border-color var(--duree) ease, box-shadow var(--duree) ease;
}
.entrer-google:hover { border-color: var(--vert-vif); box-shadow: var(--ombre-survol); }
/* ⚠️ Pas le logo officiel : il ne s'intègre pas dans une page servie sans
 * image extérieure (`img-src 'self'`), et le charger depuis Google dirait à
 * Google qui ouvre notre écran de connexion, avant même qu'on ait cliqué. */
.logo-google {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; border: 1px solid var(--trait); color: var(--encre-douce);
  font-weight: 700; font-size: .8rem; line-height: 1;
}
#connexion .discret { font-size: .82rem; text-align: center; }
@media (max-width: 600px) {
  #connexion form { padding: 2rem 1.35rem 1.75rem; }
  #connexion h1.connexion-marque { font-size: 2.1rem; }
}

/* ── 🔒 L'onglet qui n'a pas la ligne (Léo, 27/09/2026) ──────────────────── */

/* Par-dessus tout l'ÉCRAN, bulles et menus compris : ce n'est pas cet onglet
 * qui sonne. Caché par `.cache` (le `!important` bat le `display: grid`). */
.voile-onglet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
                padding: 1rem; background: rgba(18, 18, 18, .62); }
/* ⚠️ Mais jamais sur l'écran de CONNEXION (27/09/2026). Une session perdue
 * dans l'onglet voilé (douze heures, une déconnexion ailleurs, un compte
 * retiré) le montre, avec sa phrase. Posé par-dessus, le voile empêchait de
 * s'y reconnecter et cachait « Ce compte a été retiré » : ce n'était pas
 * demandé. L'écran de connexion n'est jamais montré EN MÊME TEMPS que
 * `#ecran` (`montrerConnexion`) : il n'y a rien d'autre à couvrir. */
#connexion:not(.cache) ~ .voile-onglet { display: none; }
.voile-onglet p { margin: 0; max-width: 30rem; padding: 1.5rem 1.75rem; border-radius: var(--rayon-carte);
                  background: var(--fond); color: var(--encre); font: 500 1.15rem/1.45 var(--police-titres);
                  text-align: center; box-shadow: var(--ombre-haute);
                  border: 1px solid var(--vert-trait); }

/* ── 📅 Le retour de « Connecter mon agenda Google » (28/09/2026) ─────────── */

/* L'onglet que le lien a ouvert : une carte, et rien d'autre — ni écran, ni
 * softphone. Caché par `.cache` (le `!important` bat le `display: grid`). */
.retour-agenda { position: fixed; inset: 0; display: grid; place-items: center;
                 padding: 1rem; background: var(--fond-page); z-index: 10; }
.retour-agenda-carte { width: min(26rem, 92vw); background: var(--fond); padding: 1.8rem 1.75rem;
  border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre); }
.retour-agenda p { margin: 0 0 .8rem; font: 500 1.15rem/1.4 var(--police-titres); }
.retour-agenda .discret { margin: 0; font-size: .88rem; font-weight: 400;
                          color: var(--encre-douce); }

/* ── Ossature ────────────────────────────────────────────────────────────── */

#ecran { display: none; height: 100%; flex-direction: column; background: var(--fond-page);
  /* 🚨 Sans ça, une seule commande trop longue dans l'en-tête fait apparaître
     une barre de défilement horizontale sur TOUTE la page, et « Se déconnecter »
     sort de l'écran. */
  overflow-x: hidden; }
#ecran.visible { display: flex; }

header {
  display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap;
  min-height: 3.75rem; padding: .5rem 1.5rem; background: var(--fond);
  border-bottom: 1px solid var(--trait); min-width: 0;
}
header > * { min-width: 0; }
#listes { max-width: 17rem; }
/* La marque : « LuxCall » en gras, sans monogramme (v3, 26/10/2026). */
.marque { display: inline-flex; align-items: center; flex: none;
  font: 700 1rem/1 var(--police); letter-spacing: -.02em; color: var(--encre);
  padding: .2rem 0; }

/* 🗂️ Les onglets (Léo, 23/09/2026) : ils ont remplacé le tiroir de gauche.
   Une icône devant chaque vue ; sur un écran large, ils deviennent la colonne
   de navigation de gauche (plus bas). */
.onglets { display: flex; gap: .15rem; }
.onglet { display: inline-flex; align-items: center; gap: .55rem; background: none; border: 0;
  box-shadow: none; padding: .45rem .7rem; border-radius: var(--rayon);
  color: var(--encre-douce); font-weight: 500; }
.onglet::before { content: ""; width: 1.05rem; height: 1.05rem; flex: none;
  background: currentColor; -webkit-mask: var(--icone) no-repeat center / contain;
  mask: var(--icone) no-repeat center / contain; opacity: .85; }
.onglet[data-vue="campagne"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.onglet[data-vue="suivi"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E"); }
/* 🔎 « Find my leads » (22/11/2026) : sans sa propre icône, le masque n'avait rien à découper — un carré noir sur téléphone. Une loupe et une étincelle : l'IA qui cherche. */
.onglet[data-vue="find-my-leads"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='m21 21-5.5-5.5'/%3E%3Cpath d='M10.5 7v7M7 10.5h7'/%3E%3C/svg%3E"); }
.onglet[data-vue="direct"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E"); }
.onglet[data-vue="contacts"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
.onglet[data-vue="statistiques"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 17v-5M13 17V8M18 17v-9'/%3E%3C/svg%3E"); }
.onglet[data-vue="parametres"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E"); }
.onglet:hover:not(:disabled) { background: var(--fond-doux); border-color: transparent; color: var(--encre); }
.onglet.actif { background: var(--fond-gris); color: var(--encre); font-weight: 600; }
.onglet.actif::before { opacity: 1; }

/* ⚙️ Les réglages : des blocs titrés, pas une barre de commandes de plus. */
.reglage { padding: .2rem 0 1.25rem; }
.reglage + .reglage { border-top: 1px solid var(--trait-doux); padding-top: 1.25rem; }
.reglage h3 { font: 600 1.15rem/1.3 var(--police-titres); color: var(--encre); margin: 0 0 .8rem; }
.reglage-ligne { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.reglage-note { margin: 0 0 .7rem; color: var(--libelle); font-size: .88rem; }
.reglage-note:empty { display: none; }

/* 🚨 Hors de la campagne, l'écran d'appel DISPARAÎT : la barre de commande,
   la ligne et le tableau. Empilés sous une autre vue, ils donnaient deux
   barres de recherche et deux tableaux visibles en même temps. L'en-tête et
   ses onglets restent : c'est par eux qu'on revient. */
/* 🟰 Chez un administrateur, campagne à l'ARRÊT, la barre d'appel ne disait
   que « Campagne à l'arrêt · Aucune liste chargée » — la carte de campagne,
   juste dessous, le dit déjà — et deux boutons grisés (revue du 22/11/2026).
   Elle revient dès que la campagne tourne ou qu'un appel à la main part.
   🚨 Jamais EN CONVERSATION (`.en-ligne`) : un appel à la main se parle
   campagne arrêtée, le ton reste « arret », et la barre porte le bloc de
   l'appel en cours — « Raccrocher » compris. */
#ecran:not(.commercial):not(.en-ligne) .barre-appel:has(#dock-etat[data-ton="arret"]) { display: none; }
#ecran.hors-campagne .barre-campagne,
#ecran.hors-campagne .barre-poste,
#ecran.hors-campagne .barre-appel,
#ecran.hors-campagne > main { display: none; }
#ecran.hors-campagne > section.visible { flex: 1; min-height: 0; overflow: auto; }

/* 🗂️ Les panneaux de l'administrateur : une page, un titre, des cartes. */
#historique, #analytics, #parametres, #direct, #suivi-client { display: none; padding: 1.5rem; }
#historique.visible, #analytics.visible, #parametres.visible, #direct.visible,
#suivi-client.visible { display: block; }
#historique, #analytics, #parametres, #direct, #suivi-client { padding: 1.6rem 1.75rem; }
#historique > *:not(.comptes-entete), #analytics > #stats-corps > .stats-bloc,
#parametres > .reglage, #direct > .defilant-stats { background: var(--fond);
  border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre); }
#parametres > .reglage, #analytics > #stats-corps > .stats-bloc { padding: 1.4rem 1.6rem;
  margin-bottom: 1.1rem; }
#parametres > .reglage + .reglage, #analytics .stats-bloc + .stats-bloc { border-top: 1px solid var(--trait); }
/* 🧹 25/10/2026 : la liste sans fin d'avant l'annuaire (`#historique-gens`,
   `.historique-barre`, une personne dépliable par ligne) n'existe plus — ses
   règles sont parties. Les `.hist-*` qui restent dessinent la réponse de
   l'IA de Contacts et la frise de la fiche (app.js). */
#historique > #historique-retour { border: 0; background: none; box-shadow: none; }
#historique > #historique-retour:empty { display: none; }
#historique-recherche { flex: 1 1 22rem; max-width: 34rem; }
.hist-personne { border-top: 1px solid var(--trait-doux); }
.hist-personne:first-child { border-top: 0; }
.hist-tete { display: flex; gap: .8rem; align-items: baseline; width: 100%;
  background: none; border: 0; box-shadow: none; padding: .7rem .2rem; cursor: pointer;
  font-family: inherit; font-size: .95rem; color: var(--encre); text-align: left; }
.hist-tete:hover:not(:disabled) { background: var(--fond-doux); }
.hist-nom { font-weight: 600; }
.hist-appel { border-left: 2px solid var(--trait); padding: .4rem 0 .4rem .85rem;
  margin-bottom: .45rem; font-size: .9rem; }
.hist-quand { color: var(--libelle); }
.hist-resume { white-space: pre-line; margin: .3rem 0; }
/* 💬 Le commentaire du commercial, sous le résumé IA (30/09/2026). */
.hist-commentaire { white-space: pre-line; margin: .35rem 0; padding: .4rem .65rem;
  border-radius: 8px; background: var(--fond-doux); border: 1px solid var(--trait-doux);
  overflow-wrap: anywhere; }
.hist-appel audio { width: min(28rem, 100%); height: 2rem; margin-top: .3rem; }
.hist-transcription { white-space: pre-line; font-size: .85rem; color: var(--encre-douce);
  max-height: 16rem; overflow: auto; margin-top: .3rem; }
/* 🔎 La question à l'IA dans les appels de suivi (administrateurs, 19/10/2026) :
   une carte comme la barre de recherche, une étincelle devant la question. */
#historique > .historique-ia { padding: .75rem 1rem; margin-bottom: 1rem; }
.historique-ia { display: flex; gap: .5rem; align-items: center; margin: .2rem 0 .3rem; }
/* 📱 L'exemple de question, sous le champ, sur un téléphone seulement (son
   invite y est raccourcie : `poserLesInvites`, 26/10/2026). */
.invite-telephone { display: none; font-size: .82rem; line-height: 1.35; color: var(--libelle); }
#historique-question { flex: 1 1 22rem; max-width: 34rem; padding-left: 2.2rem;
  background: var(--fond) no-repeat left .7rem center / 1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7B5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9zM19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }
#historique > #historique-ia-retour { border: 0; background: none; box-shadow: none; }
#historique > #historique-ia-retour:empty, #historique > #historique-ia-appels:empty { display: none; }
#historique > #historique-ia-appels { padding: .25rem 1rem; }
#historique-ia-appels:not(:empty) { margin-bottom: 1rem; max-height: 26rem; overflow: auto; }
.hist-ia .hist-tete { cursor: default; flex-wrap: wrap; }
.hist-ia .hist-tete:hover { background: none; }
.hist-pourquoi { color: var(--encre-douce); font-size: .88rem; }

/* ── 📊 Les statistiques (Léo, 24/09/2026) ───────────────────────────────── */

/* La période : trois préréglages en un sélecteur segmenté. */
#analytics .comptes-entete { justify-content: flex-start; gap: 1.1rem; flex-wrap: wrap; }
.periodes { display: inline-flex; gap: .15rem; padding: .2rem; border-radius: 11px;
  background: var(--fond-gris); border: 1px solid var(--trait); }
.periode { border: 0; box-shadow: none; background: none; padding: .32rem .8rem;
  font-size: .86rem; color: var(--encre-douce); border-radius: 8px; }
.periode:hover:not(:disabled) { background: rgba(255, 255, 255, .6); border-color: transparent; }
.periode.actif { background: var(--fond); color: var(--encre); font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 1px var(--trait); }
/* Pendant qu'on recharge, le rendu d'avant reste, estompé : ni squelette ni
   saut de mise en page. */
#stats-corps { transition: opacity .15s ease; }
#stats-corps.recharge { opacity: .55; }
.stats-bloc { padding: .3rem 0 1.2rem; }
.stats-bloc h3 { font: 600 1.15rem/1.3 var(--police-titres); color: var(--encre); margin: 0 0 .95rem; }

/* Les tuiles : un libellé, une valeur. Chiffres PROPORTIONNELS sur une grande
   valeur isolée — `tabular-nums` donne à chaque chiffre la largeur d'un 0,
   et « 121 » paraît lâche. En serif, alignés (la fonte, plus haut). */
.tuiles-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: .75rem; }
.tuile-stat { border: 1px solid var(--trait-doux); border-radius: 12px; padding: .9rem 1.05rem;
  background: var(--fond-doux); min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.tuile-stat .valeur { order: 2; display: block; font: 600 1.9rem/1.15 var(--police-titres); white-space: nowrap; }
.tuile-stat .libelle { order: 1; display: block; color: var(--libelle); font-size: .82rem;
  font-weight: 500; }
.tuile-stat .precision { order: 3; display: block; color: var(--libelle); font-size: .76rem; }
.tuile-stat .precision:empty { display: none; }

/* Le graphique par jour : une colonne par jour, sa hauteur = les appels, sa
   part dorée = les conversations (la forme « mise en avant » : une série dans
   la couleur de la maison, le reste en gris). Pas de bibliothèque : des
   `div` dont la hauteur est une variable, comme l'anneau de la campagne.
   🚨 Le gris ne tient pas 3:1 sur le blanc : l'infobulle ET le tableau
   jumeau donnent chaque valeur — aucune ne dépend de la couleur. */
.graphique { margin: 1.25rem 0 0; }
.graphique figcaption { font: 600 1.02rem/1.3 var(--police-titres); margin-bottom: .35rem; }
.legende { display: flex; gap: 1.1rem; font-size: .8rem; color: var(--libelle);
  margin-bottom: .6rem; }
.legende .cle::before { content: ""; display: inline-block; width: .7rem; height: .7rem;
  border-radius: 3px; margin-right: .35rem; vertical-align: -.08rem; background: var(--c); }
.cle-conversations { --c: var(--vert-anneau); }
.cle-autres { --c: var(--trait-fort); }
.trace { position: relative; height: 10rem; margin-left: 2.6rem;
  border-bottom: 1px solid var(--trait-fort); display: flex; align-items: stretch; gap: 3px; }
.grille { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--trait);
  pointer-events: none; }
.grille span { position: absolute; right: 100%; top: 0; transform: translateY(-50%);
  padding-right: .45rem; font-size: .72rem; color: var(--libelle);
  font-variant-numeric: tabular-nums; }
.colonne-jour { flex: 1 1 0; min-width: 0; position: relative; display: flex;
  flex-direction: column; justify-content: flex-end; align-items: center; outline: none;
  border-radius: 6px; }
.colonne-jour:hover, .colonne-jour:focus-visible { background: var(--fond-doux); }
.colonne-jour:focus-visible { box-shadow: 0 0 0 2px var(--vert); }
.barre { width: min(24px, 72%); height: var(--h, 0%); display: flex; flex-direction: column;
  gap: 2px; position: relative; z-index: 1; }
.barre > span { display: block; min-height: 0; }
/* Le bout de la donnée arrondi, la base carrée : c'est la première part qui
   porte l'arrondi, quelle qu'elle soit. */
.barre > span:first-child { border-radius: 5px 5px 0 0; }
.part-autres { background: var(--trait-fort); flex: var(--n) 1 0; }
/* Les conversations : le doré des données (3,7:1 sur le blanc), un reflet
   vers le doré vif au sommet. */
.part-conversations { background: linear-gradient(180deg, var(--vert-vif), var(--vert-anneau) 70%);
  flex: var(--n) 1 0; }
.colonne-jour:hover .barre, .colonne-jour:focus-visible .barre { filter: brightness(.95); }
.jours { display: flex; gap: 3px; margin-left: 2.6rem; margin-top: .35rem; }
.jours span { flex: 1 1 0; min-width: 0; text-align: center; font-size: .7rem;
  color: var(--libelle); white-space: nowrap; overflow: visible; }
.bulle { position: fixed; z-index: 30; pointer-events: none; min-width: 10rem;
  background: var(--sombre); color: var(--sombre-encre); border-radius: 10px;
  box-shadow: var(--ombre-haute); padding: .55rem .7rem; font-size: .82rem; }
.bulle .bulle-jour { color: var(--sombre-doux); margin-bottom: .2rem; }
.bulle .bulle-ligne { display: flex; align-items: center; gap: .45rem; }
.bulle .bulle-ligne b { font-variant-numeric: tabular-nums; }
.bulle .bulle-ligne i { display: inline-block; width: .8rem; height: 2px; background: var(--c); }
.tableau-jumeau { margin-top: .8rem; font-size: .85rem; }
.tableau-jumeau summary { cursor: pointer; color: var(--vert); font-weight: 600; }
.tableau-jumeau table { margin-top: .4rem; }

.stats-table { border-collapse: collapse; font-size: .88rem; min-width: 22rem; }
.stats-table th, .stats-table td { text-align: right; padding: .55rem .9rem;
  border-bottom: 1px solid var(--trait-doux); white-space: nowrap; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; padding-left: 0; }
.stats-table th { color: var(--libelle); font-weight: 500; font-size: .8rem; }
.stats-table td { font-variant-numeric: tabular-nums; }
.stats-table tfoot td { font-weight: 600; border-bottom: 0; }
/* ↔️ Un tableau des statistiques ou d'En direct défile DANS sa carte, avec
   l'ombre qui le dit (`--indice-defilement`, 25/10/2026). Conformité et le
   tableau jumeau y sont aussi : sur un téléphone, Conformité (433 px) sortait
   de sa carte et faisait glisser toute la vue de côté. */
.defilant-stats { overflow-x: auto; background: var(--indice-defilement);
  overscroll-behavior-x: contain; }
.stats-abandon { margin: 0 0 .8rem; display: flex; gap: .6rem; align-items: center;
  flex-wrap: wrap; font-size: .92rem; }

/* ── 🎧 En direct, et la double écoute (Léo, 24/09/2026) ─────────────────── */

#direct .comptes-entete { justify-content: flex-start; gap: 1.1rem; flex-wrap: wrap; }
.direct-resume { color: var(--libelle); font-size: .88rem; }
/* La carte EST la boîte qui défile : son fond reprend l'indice (la règle des
   cartes, plus haut, le remettait à plat). */
#direct > .defilant-stats { padding: .25rem 1.25rem; background: var(--indice-defilement), var(--fond); }
/* Le tableau : une ligne par personne, dans un ordre qui ne bouge pas. L'état
   et la liste sont du texte (à gauche), le reste des nombres (à droite). */
.direct-table { width: 100%; }
.direct-table th:nth-child(2), .direct-table td:nth-child(2),
.direct-table th:nth-child(5), .direct-table td:nth-child(5) { text-align: left; }
.direct-table td { vertical-align: middle; padding-block: .7rem; }
.direct-table td:nth-child(2) { white-space: normal; min-width: 15rem; }
.direct-table td:nth-child(5) { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.direct-table tbody tr:last-child td { border-bottom: 0; }
/* ♿ Hors ligne : le texte gris suffit (5,2:1 sur la carte), la pastille
   n'est plus estompée (elle tombait à 3,8:1) — 25/10/2026. */
.direct-table tr.hors-ligne td { color: var(--gris); }
.qui-nom { font-weight: 600; }
.qui-role { margin-left: .45rem; color: var(--libelle); font-size: .76rem; font-weight: 500;
  background: var(--fond-gris); border-radius: 6px; padding: .05rem .4rem; }
.direct-table .avec { margin-left: .45rem; color: var(--encre-douce); white-space: nowrap; }
.direct-table .ecoute-par { margin-left: .45rem; color: var(--violet); font-weight: 600;
  font-size: .82rem; white-space: nowrap; }
.direct-table th { white-space: normal; }
/* 🎧 Au clic, « Écouter » devient « Votre ligne sonne… » puis « Vous
   écoutez » : plus large. Sur une seule ligne, il poussait le tableau hors
   de sa carte, la boîte défilait jusqu'au bouton qui a le focus, et les noms
   se lisaient « co », « rbu (vous) » (26/10/2026). Le libellé passe à la
   ligne plutôt que de pousser. */
.direct-table td:last-child button { white-space: normal; text-wrap: balance; }
/* À l'étroit, le bouton « Écouter » passe avant les chiffres du jour : ce
   sont eux qui sortent, pas lui. Ils restent dans Statistiques.
   ↔️ Mesuré sur la place de la CARTE, plus sur la fenêtre (25/10/2026) : à
   1 440 px, la colonne de navigation en prend 232 et rien ne sortait — le
   tableau (1 218 px) débordait de sa carte (1 112) et « Écouter » se lisait
   « Éco ». Neuf colonnes tiennent à partir de 1 230 px, sept à partir de
   930 ; en dessous (un téléphone), le tableau défile, ombre au bord. */
#direct > .defilant-stats { container-type: inline-size; }
@container (max-width: 1230px) {
  .direct-table th:nth-child(5), .direct-table td:nth-child(5),
  .direct-table th:nth-child(8), .direct-table td:nth-child(8) { display: none; }
}
@container (max-width: 930px) {
  .direct-table th:nth-child(6), .direct-table td:nth-child(6),
  .direct-table th:nth-child(7), .direct-table td:nth-child(7) { display: none; }
  .direct-table td:nth-child(2) { min-width: 11rem; }
}
/* Quelqu'un de connecté qui n'envoie plus rien depuis un quart d'heure : ça
   se voit, sans crier. */
.direct-table td.long { color: var(--ambre); font-weight: 600; }
.direct-note { margin-top: .9rem; }

/* Le point qui respire : une écoute en cours, ici et chez celui qu'on écoute.
   Immobile pour qui a demandé moins de mouvement. */
.ecoute-point { flex: none; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--violet-vif); animation: pouls 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ecoute-point { animation: none; } }

/* Le panneau de SON écoute, au-dessus du tableau : violet, la couleur de
   l'écoute. */
.ecoute-panneau { display: flex; align-items: center; gap: .9rem 1.25rem; flex-wrap: wrap;
  padding: 1rem 1.15rem; margin-bottom: 1rem; border-radius: var(--rayon-carte);
  border: 1px solid var(--violet-trait); background: var(--violet-clair); }
.ecoute-quoi { display: flex; align-items: center; gap: .8rem; flex: 1 1 18rem; min-width: 0; }
.ecoute-titre { font-weight: 600; font-size: 1.02rem; color: var(--encre); }
.ecoute-detail { color: var(--encre-douce); font-size: .87rem; font-variant-numeric: tabular-nums; }
.ecoute-detail:empty { display: none; }
/* Un seul mode à la fois, posé comme les périodes des statistiques. Le mode
   choisi porte du TEXTE BLANC : le violet ou le doré de texte, jamais un clair.
   Et « Parler aux deux » en ambre : la personne appelée l'entend. */
.modes { display: inline-flex; gap: .15rem; padding: .2rem; border-radius: 11px;
  border: 1px solid var(--violet-trait); background: var(--fond); flex-wrap: wrap; }
.mode { border: 0; box-shadow: none; background: none; padding: .38rem .85rem;
  font-size: .88rem; color: var(--encre-douce); border-radius: 8px; }
.mode:hover:not(:disabled) { background: var(--violet-clair); border-color: transparent; }
.mode[aria-pressed="true"] { background: var(--violet); color: #fff; font-weight: 600; }
.mode[data-mode="conseil"][aria-pressed="true"] { background: var(--vert); color: #fff; }
.mode[data-mode="intervention"][aria-pressed="true"] { background: var(--ambre); }
.mode[aria-pressed="true"]:hover:not(:disabled) { background: var(--violet); }
.mode[data-mode="conseil"][aria-pressed="true"]:hover:not(:disabled) { background: var(--vert); }
.mode[data-mode="intervention"][aria-pressed="true"]:hover:not(:disabled) { background: var(--ambre); }
/* L'onglet dit qu'une écoute tourne, depuis n'importe quel onglet. */
#onglet-direct.ecoute-active::after { content: ""; display: inline-block; width: .5rem;
  height: .5rem; margin-left: auto; border-radius: 50%; background: var(--violet-vif); }

/* 🚨 « Pablo écoute » : chez la personne écoutée, TOUJOURS, sur toute la
   largeur, sous la barre d'appel. Violet quand il écoute ; doré quand il lui
   parle ; ambre quand la personne appelée l'entend aussi. */
.ecoute-bandeau { display: flex; align-items: center; gap: .65rem; margin: .75rem 1.5rem 0;
  padding: .65rem 1rem; border-radius: 12px; background: var(--violet-clair); color: var(--violet);
  font-weight: 600; font-size: .92rem; border: 1px solid var(--violet-trait); }
.ecoute-bandeau::after { content: ""; order: -1; width: 1.05rem; height: 1.05rem; flex: none;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E") no-repeat center / contain; }
.ecoute-bandeau.conseil { background: var(--vert-clair); color: var(--vert);
  border-color: var(--vert-trait); }
.ecoute-bandeau.conseil .ecoute-point { background: var(--vert-anneau); }
.ecoute-bandeau.intervention { background: var(--ambre-clair); color: var(--ambre);
  border-color: var(--ambre-trait); }
.ecoute-bandeau.intervention .ecoute-point { background: var(--ambre); }
#ecran.commercial .ecoute-bandeau { justify-content: center; font-size: 1rem; }

/* ── L'en-tête et la barre du softphone ──────────────────────────────────── */

.pousse { margin-left: auto; display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap; }
.separateur { width: 1px; height: 1.4rem; background: var(--trait); }
/* Qui on est : un nom, posé comme un compte. */
.qui { display: inline-flex; align-items: center; gap: .5rem; color: var(--encre);
  font-size: .88rem; font-weight: 500; }
.qui:empty { display: none; }
.qui::before { content: ""; width: 1.85rem; height: 1.85rem; flex: none; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--vert-vif);
  background: var(--fond-page) no-repeat center / 1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7B5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
.etiquette { color: var(--libelle); font-size: .82rem; font-weight: 500; }
#lignes { max-width: 6rem; }
.groupe { display: inline-flex; align-items: center; gap: .45rem; }
#presente { max-width: 11rem; font-variant-numeric: tabular-nums; }
.lien { background: none; border: 0; padding: 0; color: var(--libelle); box-shadow: none;
        text-decoration: underline; text-underline-offset: .15em; font-size: .84rem; }
.lien:hover:not(:disabled) { color: var(--encre); background: none; }

/* « Déposer une liste » est un <label> : il doit ressembler aux boutons. */
.bouton-fichier {
  display: inline-flex; align-items: center; min-height: 2.35rem; padding: .4rem .9rem;
  font-weight: 500; border-radius: var(--rayon); border: 1px solid var(--bordure-bouton);
  background: var(--fond); color: var(--encre); cursor: pointer; box-shadow: var(--ombre-bouton);
}
.bouton-fichier:hover { background: var(--fond-doux); border-color: var(--bordure-bouton-forte); }

/* La barre de campagne vit DANS la carte de campagne (maquettes du
   01/10/2026) : la liste et le bouton à côté de ce qu'ils pilotent. */
.barre-campagne {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; min-width: 0;
}
.barre-campagne > * { min-width: 0; }

/* 🎨 La barre du softphone dans l'EN-TÊTE : la ligne, le son, « Tester mon
   son ». Une bande de moins sous les yeux toute la journée. */
.barre-poste {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; min-width: 0;
}
.barre-poste label { color: var(--libelle); font-size: .8rem; font-weight: 500; }
/* L'état de la ligne : un point et un mot, sans bordure — comme sur les
   croquis (« Ligne prête », « En ligne »). */
.barre-poste .pastille { padding: .3rem .1rem; font-size: .85rem; font-weight: 500;
  background: none; border: 0; color: var(--encre-douce); }
.barre-poste .pastille::before { width: .5rem; height: .5rem; opacity: 1;
  background: var(--gris); }
.barre-poste .pastille.vert::before { background: var(--succes-vif);
  box-shadow: 0 0 0 3px var(--succes-trait); }
.barre-poste .pastille.cyan::before { background: var(--cyan-vif); box-shadow: 0 0 0 3px var(--cyan-clair); }
.barre-poste .pastille.ambre::before { background: var(--ambre-vif); box-shadow: 0 0 0 3px var(--ambre-clair); }
.barre-poste .pastille.rouge::before { background: var(--rouge-vif); box-shadow: 0 0 0 3px var(--rouge-clair); }
.barre-poste .pastille.vert, .barre-poste .pastille.cyan, .barre-poste .pastille.ambre {
  background: none; border: 0; color: var(--encre-douce); }
.barre-poste .pastille.rouge { background: none; border: 0; color: var(--rouge); }
header .separateur { display: none; }
.barre-poste button { font-size: .86rem; min-height: 2.25rem; padding: .3rem .8rem; }
/* « Tester mon son » : primaire, comme « Prendre la ligne » avant lui (le
   27/09/2026 : renommé, pas restylé) — dans l'en-tête, la version douce de
   l'aplat, pour ne pas disputer la barre d'appel : champagne, texte doré.
   ♿ Son bord, le doré des données (3,7:1), plus le champagne (1,45:1) :
   25/10/2026. */
.barre-poste #prendre-ligne.primaire { background: var(--vert-clair); color: var(--vert);
  border-color: var(--vert-anneau); box-shadow: none; }
.barre-poste #prendre-ligne.primaire:hover:not(:disabled) { background: #f2e7d0;
  border-color: var(--vert); }
.barre-poste #prendre-ligne.danger { background: var(--rouge-clair); }
/* 🎧 Le micro et le haut-parleur : dans cette barre pour un commercial, dans
   Paramètres pour un administrateur — le même groupe, déplacé par app.js. Ici,
   deux menus compacts, une icône devant (le micro, le casque) : le libellé
   reste pour les lecteurs d'écran. */
.groupe-son { display: inline-flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.groupe-son select { max-width: 14rem; }
.barre-poste .groupe-son label { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
.barre-poste .groupe-son select { width: auto; max-width: 11.5rem; min-height: 2.25rem;
  font-size: .86rem; text-align: left; color: var(--encre-douce); padding-left: 2.1rem;
  background: var(--icone) left .7rem center / 1rem no-repeat,
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .6rem center / .9rem no-repeat var(--fond); }
.barre-poste #micros { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348423a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M19 10v1a7 7 0 0 1-14 0v-1M12 18v4'/%3E%3C/svg%3E"); }
.barre-poste #hauts-parleurs { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348423a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E"); }
#reglage-son .groupe-son { gap: .6rem 1rem; }
/* 🎧 Le conseil du son : un micro Bluetooth ou « par défaut » se dit, en ambre,
   à côté des menus. ⚠️ Son `display` a son pendant `[hidden]`. */
.conseil-son { display: inline-flex; align-items: center; gap: .45rem;
  padding: .25rem .7rem; border-radius: .9rem; font-size: .8rem; line-height: 1.35;
  color: var(--ambre); background: var(--ambre-clair); border: 1px solid var(--ambre-trait);
  max-width: 34rem; }
.conseil-son::before { content: ""; flex: none; width: .5rem; height: .5rem;
  border-radius: 50%; background: var(--ambre-vif); }
.conseil-son[hidden] { display: none; }
/* Le numéro que la personne voit s'afficher : « Affiché 06 39 98 12 34 ». */
.presente-texte { color: var(--libelle); font-size: .86rem; white-space: nowrap; }
.presente-texte b { font: 500 .9rem var(--police-chiffres); color: var(--encre);
  word-spacing: -.3em; margin-left: .3rem; }
.presente-texte:empty { display: none; }

/* 🧑‍💼 L'en-tête d'un COMMERCIAL : UNE rangée sur un écran large (croquis du
   20/10/2026) — la marque, la ligne, le son, « Tester mon son », le numéro
   affiché, puis le compte au bout. Il en prenait deux depuis le 12/10 : les
   deux menus du son, en entier, ne tenaient pas à côté. Compacts, ils
   tiennent. Rien ne bouge dans le DOM : l'ordre est visuel (`order`), le son
   reste DANS la barre (`placerLeSon`). En dessous de 901 px (LuxCall dans une
   moitié d'écran), la marque et le compte se partagent la première rangée et
   la barre passe dessous. */
#ecran.commercial .barre-poste .pastille { order: 1; }
#ecran.commercial .barre-poste .groupe-son { order: 2; }
#ecran.commercial .barre-poste #prendre-ligne { order: 3; }
#ecran.commercial .barre-poste .presente-texte { order: 4; }
#ecran.commercial .barre-poste .conseil-son { max-width: none; }
/* 🎨 Refonte « Maison » (24/10/2026) : le conseil du son (un micro « par
   défaut », Bluetooth) passe SOUS les commandes, à droite, au lieu de couper
   la rangée en deux et d'envoyer « Tester mon son » seul en bas. Le groupe du
   son s'efface (`display: contents`) le temps de l'en-tête : ses menus et son
   conseil deviennent des cases de la barre. Rien ne bouge dans le DOM. */
@media (min-width: 901px) {
  #ecran.commercial .barre-poste .groupe-son { display: contents; }
  #ecran.commercial .barre-poste .groupe-son > select { order: 2; }
  #ecran.commercial .barre-poste .conseil-son { order: 5; }
  #ecran.commercial .barre-poste .conseil-son[hidden] { display: none; }
}
@media (min-width: 901px) {
  #ecran.commercial header .marque,
  #ecran.commercial header .pousse { flex: none; }
  #ecran.commercial header .pousse { flex-wrap: nowrap; }
  #ecran.commercial header .barre-poste { flex: 1 1 0; row-gap: .45rem;
    justify-content: flex-end; }
}
@media (max-width: 900px) {
  #ecran.commercial header { padding-block: .5rem; }
  #ecran.commercial header .marque { order: 1; }
  #ecran.commercial header .pousse { order: 2; }
  #ecran.commercial header .barre-poste { order: 3; flex: 1 1 100%; row-gap: .45rem; }
}

/* ── 📴 La BARRE D'APPEL : le bandeau sombre ─────────────────────────────────
   Léo, 12/10/2026 : « suspendre la campagne et raccroché doivent être en haut
   de l'écran et plus visibles ». Sous l'en-tête, sur toute la largeur, et
   TOUJOURS là dans la vue Campagne — grisés quand ils ne servent pas, jamais
   cachés : un bouton qui apparaît et disparaît à chaque salve se cherche.
   🎨 Croquis du 20/10/2026 : un bandeau SOMBRE, l'état de l'appel à gauche
   (`#dock-etat`), les gestes de l'appel, puis la campagne au bout.
   « Raccrocher » en aplat rouge. L'ordre est visuel (`order`) : dans le DOM,
   « Lancer » reste suivi du nombre de lignes. */
/* 🎨 Refonte « Maison » (24/10/2026) : le NOIR de la maison, un filet doré à
   peine visible en haut (un reflet, pas un cadre), et l'ombre douce des
   cartes. */
/* ☀️ L'écran v3 (Léo, 27/10/2026 : « règle ce problème de carte serrée et
   ancien design ») : le bandeau n'est plus NOIR. Une carte BLANCHE comme les
   autres, filet fin, presque pas d'ombre. Les jetons `--sombre-*` sont
   redéfinis ICI seulement — les règles d'en dessous les lisent toujours,
   donc les mêmes boutons, à la même place, simplement sur du clair. */
.barre-appel { --sombre-bandeau: var(--fond); --sombre-encre: var(--encre);
  --sombre-doux: var(--libelle); --sombre-trait: var(--trait); --sombre-bouton: var(--fond);
  --sombre-survol: var(--fond-gris); --sombre-bord: var(--bordure-bouton);
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin: 1rem 1.5rem 0; padding: .6rem .75rem .6rem 1.1rem;
  background: var(--sombre-bandeau);
  color: var(--sombre-encre); border-radius: var(--rayon-carte);
  border: 1px solid var(--sombre-trait); box-shadow: var(--ombre);
  min-width: 0; }
.barre-appel > * { min-width: 0; }
.barre-appel button { display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; min-height: 2.6rem; font-size: .92rem; font-weight: 500; padding: 0 .95rem;
  border-radius: var(--rayon); color: var(--sombre-encre); background: var(--sombre-bouton);
  border: 1px solid var(--sombre-bord); box-shadow: none; }
.barre-appel button:hover:not(:disabled) { background: var(--sombre-survol);
  border-color: var(--bordure-bouton-forte); }
.barre-appel button:active:not(:disabled) { background: var(--trait-fort); }
.barre-appel button:disabled { opacity: .4; }
.barre-appel button:focus-visible { outline-color: var(--vert-vif); }
/* L'icône de chaque geste : un masque teint de la couleur du texte — grisée
   avec lui. */
.barre-appel #bouton-raccrocher::before, .barre-appel #bouton-repondeur::before,
.barre-appel #couper-micro::before, .barre-appel #bouton-campagne::before {
  content: ""; width: 1.1rem; height: 1.1rem; flex: none;
  background: currentColor; -webkit-mask: var(--icone) no-repeat center / contain;
  mask: var(--icone) no-repeat center / contain; }
#bouton-raccrocher { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(12 12) rotate(135) scale(.78) translate(-12 -12)'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/g%3E%3C/svg%3E"); }
#bouton-repondeur { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='4'/%3E%3Ccircle cx='18' cy='12' r='4'/%3E%3Cpath d='M6 16h12'/%3E%3C/svg%3E"); }
#couper-micro { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M19 10v1a7 7 0 0 1-14 0v-1M12 18v4'/%3E%3C/svg%3E"); }
#couper-micro[aria-pressed="true"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2l20 20M9 9v2a3 3 0 0 0 5.1 2.1M15 9.3V5a3 3 0 0 0-5.9-.6'/%3E%3Cpath d='M17 16.9A7 7 0 0 1 5 11v-1M19 10v1a7 7 0 0 1-.1 1.2M12 18v4'/%3E%3C/svg%3E"); }
#bouton-campagne { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 4.5v15l12-7.5z' fill='%23000000'/%3E%3C/svg%3E"); }
#bouton-campagne.attention { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5v14M16 5v14'/%3E%3C/svg%3E"); }
/* L'ordre des croquis : l'état, le micro, la messagerie, « Raccrocher » ; au
   bout, les lignes, la campagne et « Mes appels du jour ». */
.dock-etat { order: 0; }
.barre-appel #couper-micro { order: 1; }
.barre-appel #bouton-repondeur { order: 2; }
.barre-appel #bouton-raccrocher { order: 3; }
.barre-appel .choix-lignes { order: 4; margin-left: auto; }
.barre-appel #bouton-campagne { order: 5; }
.barre-appel .mes-appels-bouton { order: 6; }
/* Blanc sur le rouge (#c2443b, 5,0:1). */
.barre-appel button.raccrocher { color: #fff; background: var(--rouge-vif);
  border-color: var(--rouge-vif); padding-inline: 1.15rem; font-weight: 600; }
.barre-appel button.raccrocher:hover:not(:disabled) { background: var(--rouge); border-color: var(--rouge); }
.barre-appel button.raccrocher:active:not(:disabled) { background: #842822; }
.barre-appel #couper-micro[aria-pressed="true"] { color: var(--ambre); background: var(--ambre-clair);
  border-color: var(--ambre-vif); font-weight: 600; }
/* 🟡 La campagne : lancée, c'est LE geste — l'aplat doré vif sous une encre
   foncée (7,5:1), le seul du bandeau ; suspendue, l'ambre sur le noir. */
.barre-appel #bouton-campagne { font-weight: 600; padding-inline: 1.1rem; }
.barre-appel #bouton-campagne.primaire { color: #fff; background: var(--vert-vif);
  border-color: var(--vert-vif); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.barre-appel #bouton-campagne.primaire:hover:not(:disabled) { background: var(--or-survol);
  border-color: var(--or-survol); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3),
    0 0 0 3px rgba(15, 123, 95, .2); }
.barre-appel #bouton-campagne.attention { color: var(--ambre); background: var(--ambre-clair);
  border-color: var(--ambre-vif); }
.barre-appel #bouton-campagne.attention:hover:not(:disabled) { background: #ffe4cf;
  border-color: var(--ambre); }
/* 🔌 Pourquoi « Lancer » est gris (26/10/2026) : la phrase, jamais coupée.
   Dans la barre, elle passe SOUS les boutons, sur toute la largeur (27/10) :
   coincée entre « Lancer » et la loupe, elle poussait « Suivi client » sur
   une seconde rangée, seul. */
.raison-campagne { flex: 1 1 16rem; max-width: 30rem; font-size: .85rem; line-height: 1.35;
  color: var(--libelle); }
.barre-appel .raison-campagne { order: 9; flex: 1 1 100%; max-width: none; margin: .1rem 0 0;
  padding-top: .5rem; border-top: 1px solid var(--trait-doux); color: var(--sombre-doux); }
.barre-appel .raison-campagne:empty, .barre-appel .raison-campagne.cache { display: none; }
/* 📶 Le nombre de lignes, juste après « Lancer » dans le DOM (12/10/2026) ; à
   l'écran, juste avant. */
.choix-lignes { display: inline-flex; align-items: center; gap: .45rem; }
.barre-appel .choix-lignes .etiquette { color: var(--sombre-doux); font-size: .86rem; }
.barre-appel .choix-lignes select { min-height: 2.6rem; font-size: .95rem; font-weight: 600;
  border-radius: var(--rayon); color: var(--sombre-encre); border-color: var(--sombre-bord);
  background: var(--sombre-bouton) no-repeat right .6rem center / .9rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.barre-appel .choix-lignes select:hover:not(:disabled) { border-color: var(--bordure-bouton-forte); }
/* Le repère des champs, en doré VIF : sur le noir, c'est lui qui tient
   (6,8 à 7,5:1 selon le reflet doré de la barre). */
.barre-appel .choix-lignes select:focus { box-shadow: 0 0 0 1px var(--vert-vif),
  0 0 0 4px rgba(15, 123, 95, .35); border-color: var(--vert-vif); }
.barre-appel .choix-lignes select:disabled { opacity: .55; }
.barre-appel .choix-lignes select option { color: var(--encre); background: var(--fond); }
/* 📋 « Mes appels du jour » et « Suivi client », au bout de la barre (Léo,
   12/10/2026 : « en bleu, en haut, avec une loupe ») : la couleur de la
   maison, en VOILE doré sous le texte ivoire — ils se voient sans disputer
   « Lancer la campagne », le seul aplat doré. Ouvert, le panneau les
   ENFONCE : l'ivoire, texte noir — choisi, comme le nombre de lignes. */
.barre-appel .mes-appels-bouton { color: var(--vert); background: var(--vert-clair);
  border-color: var(--vert); font-weight: 600; }
.barre-appel .mes-appels-bouton:hover:not(:disabled) { background: #dcefe8;
  border-color: var(--vert-fonce); }
.barre-appel .mes-appels-bouton[aria-pressed="true"],
.barre-appel .mes-appels-bouton[aria-pressed="true"]:hover:not(:disabled) { color: #fff;
  background: var(--vert); border-color: var(--vert); }
/* La loupe : une IMAGE (pas un masque), ivoire ; noire quand le bouton est
   enfoncé, sur l'ivoire. */
.barre-appel .mes-appels-bouton::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem;
  -webkit-mask: none; mask: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7B5F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }
.barre-appel .mes-appels-bouton[aria-pressed="true"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }

/* 🔎 La loupe : un bouton rond à côté de « Mes appels du jour », et un petit
   panneau clair posé dessous (pas de page, pas de liste). */
.barre-appel .loupe { position: relative; order: 6; display: inline-flex; }
.barre-appel .loupe-bouton { width: 2.6rem; padding: 0;
  background: no-repeat center / 1.2rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }
.loupe-panneau { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 30; width: min(22rem, 90vw);
  padding: .7rem; color: var(--encre); background: var(--fond); border: 1px solid var(--trait);
  border-radius: 12px; box-shadow: var(--ombre-haute); }
.loupe-panneau.cache { display: none; }
.loupe-panneau input { width: 100%; max-width: none; box-sizing: border-box; color: var(--encre);
  background: var(--fond); }
.loupe-resultats { list-style: none; margin: .4rem 0 0; padding: 0; }
.loupe-resultats li { padding: .5rem .3rem; border-top: 1px solid var(--trait-doux); display: grid; gap: .1rem; }
.loupe-resultats .loupe-nom { font-weight: 600; }
.loupe-resultats .loupe-num, .loupe-resultats .loupe-raison { font-size: .9rem; color: var(--libelle); }
.loupe-vide { margin: .5rem .2rem 0; font-size: .9rem; color: var(--libelle); }
.loupe-vide.cache { display: none; }
/* Ses réponses qui s'ouvrent sont les cartes CLAIRES de la réponse de l'IA
   (25/10/2026) : sans ce rappel, les boutons de la barre sombre qui entoure le
   panneau les repeignaient — le nom ivoire sur blanc, la carte étalée en ligne. */
.barre-appel .loupe-panneau .suivi-ia-personne { display: grid; justify-content: normal; gap: .15rem .7rem;
  min-height: 0; padding: .6rem .75rem; font-size: inherit; color: var(--encre); background: var(--fond);
  border-color: var(--trait); }
.barre-appel .loupe-panneau .suivi-ia-personne:hover:not(:disabled) { background: var(--fond);
  border-color: var(--bordure-bouton); }
/* L'état de l'appel, en tête du bandeau : un point, ce qui se passe, et
   dessous à qui ou combien. Le point dit la phase d'un coup d'œil : gris à
   l'arrêt, doré qui respire quand ça sonne, vert en ligne. */
.dock-etat { display: flex; align-items: center; gap: .8rem; min-width: 12.5rem;
  padding-right: 1rem; margin-right: .25rem; border-right: 1px solid var(--sombre-trait); }
.dock-point { width: .65rem; height: .65rem; border-radius: 50%; flex: none;
  background: var(--sombre-doux); }
.dock-etat[data-ton="sonne"] .dock-point,
.dock-etat[data-ton="attente"] .dock-point { background: var(--vert-vif); }
.dock-etat[data-ton="sonne"] .dock-point { animation: pouls 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(15, 123, 95, .2); }
.dock-etat[data-ton="ligne"] .dock-point { background: #5fb383;
  box-shadow: 0 0 0 4px rgba(95, 179, 131, .22); }
.dock-etat[data-ton="coupee"] .dock-point { background: var(--ambre-vif); }
@media (prefers-reduced-motion: reduce) { .dock-etat .dock-point { animation: none; } }
.dock-textes { min-width: 0; line-height: 1.3; }
.dock-titre { font: 600 1.08rem/1.25 var(--police-titres); letter-spacing: .01em; white-space: nowrap; }
.dock-duree { font: 500 .95rem var(--police-chiffres); margin-left: .35rem; }
.dock-duree:empty { display: none; }
.dock-etat[data-ton="fini"] .dock-duree { color: var(--sombre-doux); }
.dock-detail { font-size: .84rem; color: var(--sombre-doux); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 18rem; }
.dock-detail:empty { display: none; }
@media (max-width: 1400px) {
  .barre-appel { gap: .5rem; }
  .barre-appel button { padding: 0 .75rem; }
  .barre-appel .choix-lignes .etiquette { position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dock-etat { min-width: 10rem; padding-right: .8rem; }
  .dock-detail { max-width: 12rem; }
}
@media (max-width: 1200px) {
  /* Une rangée à 960 px, campagne lancée et « Couper mon micro » compris
     (six commandes, mesurées à 941 px pour 928 avant ce resserrage). */
  .barre-appel { margin: .75rem 1rem 0; padding: .5rem .55rem; gap: .35rem; }
  .barre-appel .dock-etat { display: none; }
  .barre-appel button { min-height: 2.5rem; font-size: .86rem; padding: 0 .55rem; gap: .35rem; }
  .barre-appel .choix-lignes select { min-height: 2.5rem; font-size: .86rem; }
}
@media (max-width: 900px) {
  .barre-appel { margin: .6rem .75rem 0; padding: .55rem .6rem .55rem .9rem; }
  .barre-appel button { padding: 0 .75rem; font-size: .92rem; }
  .dock-etat { flex: 1 1 100%; border-right: 0; padding-right: 0; min-width: 0; }
  .barre-appel .choix-lignes { margin-left: 0; }
}

/* ── 📞 EN LIGNE : les trois boutons de l'appel, en bas à droite ─────────────
   Croquis 10, validé par Léo le 20/10/2026 (« les réglages restent en haut, en
   bas c'est juste raccrocher direct en rouge, raccrocher puis passer à l'autre
   en bleu, et mute »). Pendant une CONVERSATION (`#ecran.en-ligne`, posé par
   `rendreDock`) — chez un commercial, et chez l'administrateur depuis le
   21/10/2026 (« fais-le aussi pour l'admin ») : qui est en ligne, puis
   « Couper mon micro », « Raccrocher » (rouge) et « Répondeur » (doré depuis
   la refonte « Maison », bleu avant :
   raccroche et la campagne continue, sans statut). Les MÊMES boutons, jamais
   des copies : `#appel-flottant` est une boîte effacée (`display: contents`)
   dans la barre du haut, et devient le bloc flottant pendant l'appel. Hors
   conversation, ils restent en haut, grisés quand ils ne servent pas —
   « Raccrocher » coupe la sonnerie (12/10/2026). Le libellé se lit au survol
   (`data-bulle`) ; le texte reste le nom du bouton. */
.appel-flottant { display: contents; }
.appel-qui { display: none; }
#ecran.en-ligne .appel-flottant { position: fixed; right: 1.5rem; bottom: 1.5rem;
  z-index: 25; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  width: min(30rem, calc(100vw - 2rem)); box-sizing: border-box; padding: 1rem 1.1rem;
  border-radius: 16px; color: var(--sombre-encre);
  background: var(--sombre-bandeau); border: 1px solid var(--trait-fort);
  box-shadow: var(--ombre-haute);
  animation: flottant-entre .22s var(--courbe); }
@keyframes flottant-entre { from { opacity: 0; transform: translateY(.75rem); } }
@media (prefers-reduced-motion: reduce) { #ecran.en-ligne .appel-flottant { animation: none; } }
#ecran.en-ligne .appel-qui { display: flex; align-items: center; gap: .85rem;
  flex: 1 1 8rem; min-width: 0; order: 0; }
.appel-point { width: .6rem; height: .6rem; flex: none; border-radius: 50%;
  background: #5fb383; box-shadow: 0 0 0 4px rgba(95, 179, 131, .22); }
.appel-textes { min-width: 0; line-height: 1.35; }
.appel-nom { font: 600 1.12rem/1.3 var(--police-titres); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.appel-numero { font: 500 .82rem var(--police-chiffres); color: var(--libelle); }
.appel-duree { font: 500 .82rem var(--police-chiffres); color: var(--sombre-doux);
  font-variant-numeric: tabular-nums; }
.appel-nom:empty, .appel-numero:empty, .appel-duree:empty { display: none; }
/* Des ronds de 52 px, sans texte à l'écran : l'icône dit le geste, la bulle
   le nomme. */
#ecran.en-ligne .appel-flottant button { position: relative; flex: none;
  width: 3.25rem; height: 3.25rem; min-height: 0; padding: 0; gap: 0; border-radius: 50%;
  border: 0; font-size: 0; box-shadow: none; }
#ecran.en-ligne .appel-flottant button::before { width: 1.4rem; height: 1.4rem; }
#ecran.en-ligne .appel-flottant #couper-micro { order: 1; color: var(--encre);
  background: var(--fond-gris); box-shadow: inset 0 0 0 1px var(--bordure-bouton); }
#ecran.en-ligne .appel-flottant #couper-micro:hover:not(:disabled) {
  background: var(--trait-fort); }
#ecran.en-ligne .appel-flottant #couper-micro[aria-pressed="true"] {
  color: var(--rouge); background: #f6dcd8; }
#ecran.en-ligne .appel-flottant #bouton-raccrocher { order: 2; color: #fff;
  background: var(--rouge-vif); }
#ecran.en-ligne .appel-flottant #bouton-raccrocher:hover:not(:disabled) {
  background: var(--rouge); }
/* Le doré vif en APLAT sous une encre foncée (7,5:1) : le geste qui
   enchaîne. Une pilule plus large que les ronds, avec sa double flèche. */
#ecran.en-ligne .appel-flottant #bouton-repondeur { order: 3; width: 5rem;
  border-radius: 1.625rem; color: #fff; background: var(--vert-vif);
  --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(11 12) rotate(135) scale(.78) translate(-12 -12)'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/g%3E%3Cpath d='M25 7.5l4.5 4.5-4.5 4.5M31.5 7.5l4.5 4.5-4.5 4.5'/%3E%3C/g%3E%3C/svg%3E"); }
#ecran.en-ligne .appel-flottant #bouton-repondeur:hover:not(:disabled) {
  background: var(--or-survol); }
#ecran.en-ligne .appel-flottant #bouton-repondeur::before { width: 2.3rem; }
#ecran.en-ligne .appel-flottant #bouton-repondeur.suggere {
  box-shadow: 0 0 0 3px rgba(208, 106, 34, .7); }
#ecran.en-ligne .appel-flottant button:focus-visible { outline: 2px solid var(--vert-vif);
  outline-offset: 3px; }
/* Micro coupé : le bloc le dit aussi, sous les boutons (la fiche le dit déjà). */
#ecran.en-ligne .appel-flottant:has(#couper-micro[aria-pressed="true"])::after {
  content: "Micro coupé — la personne ne vous entend pas."; order: 9; flex: 1 1 100%;
  padding: .45rem .65rem; border-radius: 10px; background: var(--ambre-voile);
  color: var(--ambre-sombre); font-size: .82rem; font-weight: 500; }
/* La bulle : le nom du bouton, au-dessus de lui, au survol et au clavier. */
#ecran.en-ligne .appel-flottant button[data-bulle]::after {
  content: attr(data-bulle); position: absolute; bottom: calc(100% + .6rem); left: 50%;
  transform: translateX(-50%); padding: .35rem .6rem; border-radius: 8px;
  background: var(--sombre); color: #fafafa; font-size: .8rem; font-weight: 500;
  line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity var(--duree); box-shadow: 0 6px 16px rgba(18, 18, 18, .3); }
#ecran.en-ligne .appel-flottant #bouton-repondeur[data-bulle]::after {
  left: auto; right: 0; transform: none; }
#ecran.en-ligne .appel-flottant button[data-bulle]:hover::after,
#ecran.en-ligne .appel-flottant button[data-bulle]:focus-visible::after {
  opacity: 1; }
/* « Répondeur » ne sert que PENDANT une conversation (12/10/2026) : chez un
   commercial, il n'est plus que dans le bloc du bas. « Raccrocher » reste en
   haut hors conversation — pendant la sonnerie, il coupe toute la salve. */
#ecran.commercial:not(.en-ligne) .barre-appel #bouton-repondeur { display: none; }
/* Le bas de l'écran ne passe jamais sous le bloc : la grille, « Valider » et
   le commentaire restent atteignables en défilant. */
#ecran.commercial.en-ligne main { padding-bottom: 8rem; }
/* Chez l'administrateur, c'est la colonne de la fiche qui défile : sa fin
   remonte au-dessus du bloc. */
#ecran.en-ligne:not(.commercial) .colonne-fiche { padding-bottom: 8rem; }
/* La bande « Ma journée / Appel manuel » sous la fiche s'en va le temps de
   la conversation (Léo, 21/10/2026) : le bandeau du haut dit déjà la
   campagne, et on ne lance pas d'appel à la main pendant un appel. */
#ecran.commercial.en-ligne .tableau-de-bord { display: none; }
/* 📋 Les « Informations » de la personne, déplacées à droite pendant la
   conversation (`placerLesInfos`), au-dessus d'un commentaire plus grand :
   la colonne de droite ne reste plus presque vide. */
#ecran.commercial.en-ligne #commentaire-appel { min-height: 11rem; }
@media (max-width: 900px) {
  #ecran.en-ligne .appel-flottant { left: .75rem; right: .75rem; bottom: .75rem;
    width: auto; }
}

/* 📶 Le nombre de lignes d'un commercial : cinq boutons côte à côte (croquis 10),
   qui pilotent le menu `#lignes` resté dans le DOM (`rendreLignesBoutons`) —
   le même `change`, le même envoi au « Lancer ». L'administrateur garde son
   menu, qui a « Canal ». */
.lignes-boutons { display: none; }
#ecran.commercial .choix-lignes select { display: none; }
#ecran.commercial .lignes-boutons { display: inline-flex; gap: 2px; padding: 3px;
  border-radius: var(--rayon); background: var(--fond-gris); border: 1px solid var(--sombre-bord); }
#ecran.commercial .barre-appel .lignes-boutons button { min-height: 0; width: 2.25rem;
  height: 2.25rem; padding: 0; border: 0; border-radius: 6px; background: transparent;
  font-weight: 600; font-variant-numeric: tabular-nums; }
#ecran.commercial .barre-appel .lignes-boutons button:hover:not(:disabled) {
  background: var(--sombre-survol); }
/* Le nombre choisi : l'IVOIRE, pas le doré — un réglage, pas un geste. Le
   doré du bandeau reste à « Lancer la campagne ». */
#ecran.commercial .barre-appel .lignes-boutons button[aria-pressed="true"] { color: #fff;
  background: var(--encre); }
#ecran.commercial .barre-appel .lignes-boutons button:disabled { opacity: .45; }
#ecran.commercial .barre-appel .lignes-boutons button[aria-pressed="true"]:disabled {
  opacity: .7; }
@media (max-width: 1200px) {
  /* Une rangée à 960 px avec les cinq boutons des lignes : en haut, le micro
     et « Raccrocher » d'un commercial ne gardent que leur icône (leur nom
     reste celui du bouton, pour le lecteur d'écran et l'infobulle). */
  #ecran.commercial:not(.en-ligne) .barre-appel #couper-micro,
  #ecran.commercial:not(.en-ligne) .barre-appel #bouton-raccrocher { font-size: 0; gap: 0;
    width: 2.5rem; padding: 0; }
  #ecran.commercial:not(.en-ligne) .barre-appel #couper-micro::before,
  #ecran.commercial:not(.en-ligne) .barre-appel #bouton-raccrocher::before { width: 1.15rem;
    height: 1.15rem; }
  #ecran.commercial:not(.en-ligne) .barre-appel #couper-micro,
  #ecran.commercial:not(.en-ligne) .barre-appel #bouton-raccrocher { position: relative; }
  #ecran.commercial:not(.en-ligne) .barre-appel #couper-micro::after,
  #ecran.commercial:not(.en-ligne) .barre-appel #bouton-raccrocher::after {
    content: attr(data-bulle); position: absolute; top: calc(100% + .5rem); left: 0;
    z-index: 2; padding: .35rem .6rem; border-radius: 8px; background: var(--sombre);
    color: #fafafa; font-size: .8rem; font-weight: 500; line-height: 1.3;
    white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
  #ecran.commercial:not(.en-ligne) .barre-appel #couper-micro:is(:hover, :focus-visible)::after,
  #ecran.commercial:not(.en-ligne) .barre-appel #bouton-raccrocher:is(:hover, :focus-visible)::after {
    opacity: 1; }
  #ecran.commercial .barre-appel .lignes-boutons button { width: 2rem; height: 2rem; }
}

/* 📊 Statistiques sans aucun appel sur la période : un seul message, à la
   place des tuiles à zéro et des tableaux vides (21/10/2026). */
/* 🎨 Un état vide SOIGNÉ (refonte « Maison ») : la phrase en serif, un
   losange doré au-dessus — la page n'a pas l'air cassée, elle attend. */
#stats-retour.stats-vide { margin-top: .75rem; padding: 3.5rem 1.5rem; text-align: center;
  font: 400 1.25rem/1.45 var(--police-titres); color: var(--encre-douce); background: var(--fond);
  border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre); }
#stats-retour.stats-vide::before, .suivi-etape-vide::before, .mes-appels-vide::before {
  content: ""; display: block; width: .55rem; height: .55rem; margin: 0 auto .9rem;
  background: var(--vert-vif); transform: rotate(45deg); }

/* ── Le corps de l'écran ─────────────────────────────────────────────────── */

main { flex: 1; display: flex; min-height: 0; gap: 0; }
/* 📞 Chez un administrateur, la fiche s'ÉLARGIT pendant l'appel et la note
   (30/09/2026) : le tableau reste, la personne au bout du fil prend la place,
   bordée de cyan. */
#ecran.en-appel:not(.commercial) .colonne-fiche { width: 30rem; flex-basis: 30rem;
  border-left-color: var(--cyan-trait); box-shadow: -8px 0 24px rgba(0, 0, 0, .06); }
#ecran.en-appel:not(.commercial) .tableau-de-bord { opacity: .72; }
.colonne-liste { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* 📊 Le tableau de bord : l'état de la campagne, ses commandes, ses chiffres.
   Chez un administrateur, une carte au-dessus du tableau ; chez un
   commercial, une carte dans la colonne (plus bas). */
.tableau-de-bord {
  display: flex; gap: 1rem 1.25rem; align-items: center; flex-wrap: wrap;
  margin: 1rem 1.25rem 0; padding: 1rem 1.25rem; background: var(--fond);
  border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre);
}
#ecran:not(.commercial) .tableau-de-bord { display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "carte chiffres" "barre barre"; }
#ecran:not(.commercial) .carte-campagne { grid-area: carte; }
#ecran:not(.commercial) .compteurs { grid-area: chiffres; }
#ecran:not(.commercial) .compteur { flex: 1 1 5.5rem; min-width: 0; }
#ecran:not(.commercial) .barre-campagne { grid-area: barre; padding-top: 1rem;
  border-top: 1px solid var(--trait-doux); }
#ecran:not(.commercial) .barre-campagne #listes { order: 1; max-width: 22rem; }
#ecran:not(.commercial) .barre-campagne .choix-lignes { order: 2; }
#ecran:not(.commercial) .barre-campagne #bouton-campagne { order: 3; }
/* 🧱 « Appel manuel » et « Déposer une liste » : un bloc, rangé à droite, qui
   va à la ligne EN ENTIER (23/11/2026 : « Déposer une liste » tombait seul
   sous la barre pendant un appel, à 1 280 px). */
#ecran:not(.commercial) .barre-campagne .outils-campagne { order: 4; margin-left: auto;
  display: flex; align-items: center; gap: .6rem; }
#ecran.commercial .outils-campagne { display: contents; }
/* Pourquoi « Lancer » est gris : sur sa propre ligne, sous les commandes
   (27/10/2026) — en tête de la rangée, il s'écrasait sur quatre lignes à
   gauche du menu des listes. */
#ecran:not(.commercial) .barre-campagne .raison-campagne { order: 9; flex: 1 1 100%; max-width: none; }
.carte-campagne { display: flex; align-items: center; gap: .95rem; padding-right: 1.25rem;
  border-right: 1px solid var(--trait-doux); }
/* L'anneau : un dégradé conique piloté par --part (0 à 100). Pas de SVG, pas
   de canevas — une seule variable à écrire, et rien à reconstruire. */
.anneau { --part: 0; width: 3.25rem; height: 3.25rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--vert-anneau) calc(var(--part) * 1%), var(--trait-doux) 0); }
.anneau::after { content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: var(--fond); }
.anneau-signe { position: relative; z-index: 1; color: var(--encre); font-size: .74rem;
  font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* La campagne qui tourne : l'anneau s'entoure d'un halo doré. */
.carte-campagne.active .anneau { box-shadow: 0 0 0 4px var(--vert-clair); }
.carte-etat { color: var(--libelle); font-weight: 500; font-size: .86rem; }
/* Une campagne qui TOURNE se voit : le libellé prend la couleur de la maison
   et l'anneau son plein. À l'arrêt, tout reste gris — sinon « active » et
   « à l'arrêt » se ressemblent, et c'est la seule chose qu'on vérifie d'un
   coup d'œil avant de partir déjeuner. */
.carte-campagne.active .carte-etat { color: var(--vert); font-weight: 600; }
.carte-campagne.active .anneau-signe { color: var(--vert); }
.carte-reste { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.carte-etat { transition: color var(--duree) ease; }
/* Les chiffres de la liste : des tuiles, le libellé au-dessus du nombre. */
.compteurs { display: flex; gap: .75rem; flex-wrap: wrap; flex: 1; }
.compteur { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .1rem;
  padding: .55rem .9rem; border-radius: 12px; background: var(--fond-doux);
  border: 1px solid var(--trait-doux); min-width: 6.5rem; }
.compteur b { font: 600 1.45rem/1.15 var(--police-titres); }
.compteur span { color: var(--libelle); font-size: .8rem; font-weight: 500; }

/* ── La recherche ────────────────────────────────────────────────────────── */

/* 🔎 La recherche est REMONTÉE dans l'en-tête (Léo, 23/09/2026). Ce qui reste
   ici n'est plus qu'une ligne de retour (« 3 personnes trouvées »), et elle
   disparaît quand elle est vide. */
.recherche {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: 0 1.25rem;
}
/* 🗓️ Elle porte aussi les filtres du suivi (07/10/2026) : visible tant qu'ils
   sont là, la ligne de retour vide ne la cache plus. */
.recherche:not(:has(> .filtres-liste)):has(> :empty) { display: none; }
.recherche:has(> .filtres-liste) { padding: .75rem 1.25rem 0; }
.filtres-liste { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtres-liste select { font-size: .86rem; min-height: 2.15rem; padding-block: .3rem; }
.filtres-liste select.filtre-actif { border-color: var(--vert); color: var(--vert); font-weight: 600;
  background-color: var(--vert-clair); }
.recherche-globale { position: relative; display: inline-flex; align-items: center; }
/* ♿ Le bord des champs (`--bordure-champ`, 3,6:1), plus le filet décoratif
   (1,3:1 sur le blanc de l'en-tête) : 25/10/2026. */
.recherche-globale input { width: 20rem; max-width: 34vw; padding-left: 2.2rem; padding-right: 3rem;
  background: var(--fond-doux) no-repeat left .7rem center / 1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }
.recherche-globale input:focus { background-color: var(--fond); }
.raccourci { position: absolute; right: .6rem; font: 500 .7rem var(--police-chiffres);
  color: var(--libelle); border: 1px solid var(--trait-fort); border-radius: 5px;
  padding: 0 .3rem; background: var(--fond); pointer-events: none; }
.recherche-compte { color: var(--libelle); font-size: .82rem; }
.recherche-retour { color: var(--encre-douce); font-size: .84rem; }
.recherche-retour.rouge { color: var(--rouge); }

button.petit { padding: .15rem .55rem; font-size: .78rem; border-radius: 7px; min-height: 0; }

/* Le nom mène à sa fiche DiffFetch. La flèche dit qu'on change d'onglet. */
a.nom-lien { color: inherit; text-decoration: none; }
a.nom-lien[href]:hover { text-decoration: underline; color: var(--vert); }
a.nom-lien[href]::after { content: " ↗"; color: var(--gris); font-size: .8em; }
.cellule-nom { white-space: nowrap; font-weight: 500; }
.cellule-nom .copier { margin-left: .4rem; }
.cellule-action { text-align: right; white-space: nowrap; }

/* Les gestes d'une ligne n'encombrent pas cent lignes : ils paraissent au
   survol, au clavier, pendant une recherche, et toujours sur une personne en
   sommeil — sinon on ne saurait plus où la réactiver. `opacity` et non
   `display` : le bouton garde sa place, la ligne ne saute pas sous la souris. */
.copier, .action-ligne { opacity: 0; transition: opacity .12s ease; }
tbody tr:hover .copier, tbody tr:hover .action-ligne,
tbody tr:focus-within .copier, tbody tr:focus-within .action-ligne,
table.en-recherche .copier, table.en-recherche .action-ligne,
tr.dort .action-ligne { opacity: 1; }
tr.dort td { color: var(--gris); }

.menu-sommeil {
  position: fixed; z-index: 20; min-width: 15rem; display: flex;
  flex-direction: column; gap: .25rem; padding: .5rem;
  background: var(--fond); border: 1px solid var(--trait);
  border-radius: 12px; box-shadow: var(--ombre-haute);
}
.menu-sommeil button { text-align: left; border-color: transparent; box-shadow: none; }
.menu-sommeil button:hover:not(:disabled) { background: var(--fond-gris); border-color: transparent; }
.menu-titre { font-size: .82rem; color: var(--libelle); padding: .2rem .5rem .35rem; }
/* 🗓️ « Jusqu'au … » : le jour, puis OK (07/10/2026). */
.menu-date { display: flex; align-items: center; gap: .4rem; padding: .45rem .3rem .15rem;
  margin-top: .1rem; border-top: 1px solid var(--trait-doux); }
.menu-date label { font-size: .85rem; color: var(--encre-douce); }
.menu-date input { font-size: .9rem; min-height: 2.1rem; padding: .25rem .45rem; }
.menu-date button { border-color: var(--bordure-bouton); }

/* ↔️ Le tableau de la liste défile DANS sa carte, et l'ombre au bord le dit
   (`--indice-defilement`, 25/10/2026) : à 1 440 px, il fait 1 046 px pour
   une carte de 778, et « Dernier appel » comme « Ne pas appeler… » restaient
   derrière un défilement invisible. `overscroll-behavior-x` : arrivé au
   bord, le geste du pavé tactile ne passe pas à la page — sur un Mac, il
   ferait « Précédent », et quitter LuxCall coupe la ligne. */
.defilant { overflow: auto; flex: 1; background: var(--indice-defilement), var(--fond);
  overscroll-behavior-x: contain; }
/* La raison de l'appel garde de quoi tenir sur deux lignes : serrée contre
   ses voisines, « Guide gratuit téléchargé » en prenait trois, et chaque
   ligne du tableau 85 px de haut. */
#tableau-liste td:nth-child(3) { min-width: 12rem; }
/* 📞 Le numéro sur UNE ligne (20/11/2026, « super simple, belle et
   agréable ») : de 1 100 à 1 440 px, « 06 00 00 / 00 03 » se lisait en deux
   morceaux. Les marges des cellules, un peu resserrées, rendent la place : le
   tableau ne déborde plus qu'avant à aucune largeur (mesuré dans Chrome,
   `test_luxcall_ecran_soigne.py`). */
#tableau-liste td:nth-child(4) { white-space: nowrap; }
#tableau-liste th, #tableau-liste td { padding-inline: .9rem; }
/* 🎨 Le tableau dans une carte posée sur la page. */
#ecran:not(.commercial) .defilant { margin: 1rem 1.25rem 1.25rem; border: 1px solid var(--trait);
  border-radius: var(--rayon-carte); box-shadow: var(--ombre); }
/* La personne en ligne : la pastille pleine, la seule de son espèce. */
tr.gagnante .pastille.vert { background: var(--succes); color: #fff; }
tr.gagnante .pastille.vert::before { background: #fff; opacity: .9; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: .8rem; color: var(--libelle); font-weight: 500;
  padding: .65rem 1.1rem; border-bottom: 1px solid var(--trait-doux); position: sticky; top: 0;
  background: var(--fond-doux); z-index: 1;
}
td { padding: .65rem 1.1rem; border-bottom: 1px solid var(--trait-doux); }
tbody tr:hover { background: var(--fond-doux); }
/* 🔔 Ce qui sonne maintenant : un liseré à gauche, visible du coin de l'œil
   pendant qu'on lit la fiche à droite. Ambre : la seule couleur qui ne veuille
   dire QUE « ça sonne, en ce moment » (depuis le 23/09/2026). */
tr.sonne { background: var(--ambre-clair); box-shadow: inset 3px 0 0 var(--ambre-vif); }
tr.gagnante { box-shadow: inset 3px 0 0 var(--succes-vif); }
tr.faite td { color: var(--gris); }
/* Elle a répondu : la ligne entière en champagne, et elle n'est plus appelée
   aujourd'hui. Le filet à gauche la distingue de la gagnante en cours. */
tr.repondu { background: #fcf9f2; box-shadow: inset 3px 0 0 var(--vert-vif); }
tr.repondu:hover { background: var(--vert-clair); }
/* ♿ La pastille d'une ligne faite n'est plus estompée (25/10/2026) : à
   75 %, « Répondu » tombait à 3,1:1. La ligne se lit faite par son texte
   gris (`--gris`). */
tr.sonne:hover { background: #fbe4d2; }
tr.gagnante { background: var(--succes-clair); }
tr.gagnante:hover { background: #e3efe6; }
.sourd { color: var(--gris); }
.tabulaire { font-variant-numeric: tabular-nums; }
.vide { text-align: center; padding: 3rem 1.25rem; color: var(--libelle); }

.pastille {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .14rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  white-space: nowrap; background: var(--fond-gris); color: var(--encre-douce);
  border: 1px solid transparent;
}
.pastille::before {
  content: ""; width: .42rem; height: .42rem; border-radius: 50%;
  background: currentColor; opacity: .6;
}
.pastille.vert  { background: var(--vert-clair);  color: var(--vert); }
.pastille.ambre { background: var(--ambre-clair); color: var(--ambre); }
.pastille.cyan  { background: var(--cyan-clair);  color: var(--cyan); }
.pastille.rouge { background: var(--rouge-clair); color: var(--rouge); }

/* ── La fiche ────────────────────────────────────────────────────────────── */

.colonne-fiche {
  width: 23rem; flex: 0 0 23rem; border-left: 1px solid var(--trait);
  padding: 1.5rem 1.25rem; overflow: auto; background: var(--fond);
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 901px) {
  #ecran:not(.commercial) .colonne-fiche { margin: 1rem 1.25rem 1.25rem 0;
    border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre); }
}
/* 🖥️ De 901 à 1 439 px (une tablette, un portable de 13 pouces), la fiche
   VIDE de l'administrateur (« Personne en ligne. ») gardait ses 23rem : 370 px
   pour une phrase, et le tableau de la campagne coupé à côté — à « Télé… » à
   1 024 px, sans « Dernier appel » à 1 280 (24/11/2026). Elle se resserre tant
   qu'elle est vide ; une personne en ligne la rouvre. */
@media (min-width: 901px) and (max-width: 1439px) {
  #ecran:not(.commercial):not(.en-appel) .colonne-fiche:has(> #fiche-vide:not(.cache)) {
    width: 15rem; flex-basis: 15rem; }
}

/* 🧑‍💼 L'écran d'un COMMERCIAL : des CARTES posées sur la page. Fait pour
   rester sous les yeux toute la journée (Léo, 24/09/2026 : « beau et agréable
   à garder devant les yeux ») : peu de traits, de l'air, et une seule chose en
   grand à la fois — la personne en ligne.
   🎨 Croquis du 20/10/2026 : entre deux appels, DEUX colonnes sur un écran
   large — à gauche, ce qui se passe (la campagne à l'arrêt, ce qui sonne, le
   dernier appel) ; à droite, la campagne et la journée, puis les rendez-vous.
   ⚠️ `flex: none` sur la colonne de gauche quand tout est empilé : elle ne
   porte plus que le tableau de bord, et en colonne elle s'étirerait jusqu'en
   bas, repoussant la fiche hors de l'écran. */
#ecran.commercial main { flex-direction: column; align-items: center; gap: 1.25rem;
  overflow: auto; padding: 1.25rem 1.5rem 2rem; }
#ecran.commercial .colonne-liste,
#ecran.commercial .colonne-fiche { flex: none; width: min(52rem, 100%); }
#ecran.commercial.en-appel .colonne-liste,
#ecran.commercial.en-appel .colonne-fiche { width: min(58rem, 100%); }
#ecran.commercial .colonne-fiche { border: 0; padding: 0; background: none;
  overflow: visible; margin: 0; gap: 1.25rem; }
#ecran.commercial .colonne-liste { gap: 1.25rem; }
#ecran.commercial #fiche-personne,
#ecran.commercial .fiche-vide { background: var(--fond); border: 1px solid var(--trait);
  border-radius: var(--rayon-carte); padding: 1.6rem 1.75rem; box-shadow: var(--ombre); }
/* ☀️ Entre deux appels, sur un écran large (27/10/2026 : « cartes serrées ») :
   une GRILLE. À gauche, ce qui se passe, puis « Mes rendez-vous » sur toute
   la largeur — une ligne par rendez-vous, le nom jamais coupé en deux. À
   droite, la campagne et la journée. Avant, les rendez-vous s'entassaient
   dans la colonne étroite de droite pendant que la gauche restait vide.
   `.colonne-liste` s'efface (`display: contents`) : ses cartes deviennent
   des cases de la grille, sans rien changer au DOM ni au script. */
@media (min-width: 1100px) {
  #ecran.commercial:not(.en-appel) main { display: grid; align-items: start;
    align-content: start; grid-template-columns: minmax(0, 1fr) 24rem;
    grid-template-areas: "fiche bord" "rdv bord"; grid-template-rows: auto 1fr;
    gap: 1.25rem; padding-inline: max(1.5rem, calc((100% - 84rem) / 2)); }
  #ecran.commercial:not(.en-appel) .colonne-liste { display: contents; }
  #ecran.commercial:not(.en-appel) .colonne-fiche { grid-area: fiche; width: auto;
    min-width: 0; }
  #ecran.commercial:not(.en-appel) .tableau-de-bord { grid-area: bord; width: auto; }
  #ecran.commercial:not(.en-appel) .mes-rdv { grid-area: rdv; min-width: 0; }
  /* 🚨 La grille ne doit jamais RALLUMER l'écran d'appel caché : sa règle
     (`#ecran.commercial:not(.en-appel) main`) pèse plus lourd que celles qui
     le cachent hors de la vue Campagne et sous « Mes appels du jour » — le
     Suivi d'un commercial avait l'écran de campagne sous sa liste. */
  #ecran.commercial.hors-campagne > main,
  #ecran.commercial.vue-mes-appels > main { display: none; }
  /* La barre d'appel prend la MÊME largeur que la grille dessous. 84 rem
     depuis « Find my leads » (20/11/2026) : à 78, avec « Reprendre la
     campagne », le bouton de plus tombait SEUL sur une seconde rangée
     (`test_luxcall_find_my_leads.py`, chaque libellé du bouton de campagne). */
  #ecran.commercial .barre-appel { margin-inline: max(1.5rem, calc((100% - 84rem) / 2)); }
}

/* La carte de campagne : l'anneau, l'état, la liste et son bouton ; dessous,
   « Ma journée » en tuiles. */
#ecran.commercial .tableau-de-bord { display: grid; margin: 0;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas:
  "carte barre" "chiffres chiffres"; align-items: center; gap: 1.1rem 1.25rem;
  padding: 1.35rem 1.5rem; }
#ecran.commercial .carte-campagne { grid-area: carte; border-right: 0; padding-right: 0; gap: 1.1rem; }
#ecran.commercial .barre-campagne { grid-area: barre; justify-content: flex-end; }
#ecran.commercial .compteurs { grid-area: chiffres; }
#ecran.commercial .anneau { width: 3.75rem; height: 3.75rem; }
#ecran.commercial .anneau::after { inset: 12%; }
#ecran.commercial .carte-etat { font-size: 1.05rem; font-weight: 600; color: var(--encre); }
#ecran.commercial .carte-reste { font-size: .9rem; font-weight: 400; color: var(--libelle);
  letter-spacing: 0; }
/* À droite, la carte est étroite : la liste passe sous l'état. */
@media (min-width: 1100px) {
  #ecran.commercial:not(.en-appel) .tableau-de-bord { grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "carte" "barre" "chiffres"; }
  #ecran.commercial:not(.en-appel) .barre-campagne { justify-content: stretch; }
  #ecran.commercial:not(.en-appel) .barre-campagne #listes { flex: 1 1 auto; max-width: none; }
  #ecran.commercial:not(.en-appel) .compteurs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #ecran.commercial:not(.en-appel) .compteurs-titre { margin-bottom: .3rem; }
  #ecran.commercial:not(.en-appel) .compteur { flex-direction: row-reverse;
    justify-content: space-between; align-items: baseline; padding: .55rem 0; border: 0;
    border-top: 1px solid var(--trait-doux); border-radius: 0; background: none; }
  #ecran.commercial:not(.en-appel) .compteur span { font-size: .9rem; }
  #ecran.commercial:not(.en-appel) .compteur b { font-size: 1.25rem; }
}
/* « Ma journée » : ses appels, pas ceux de la liste — trois tuiles, le libellé
   au-dessus du chiffre. */
#ecran.commercial .compteurs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--trait-doux); }
.compteurs-titre { grid-column: 1 / -1; font: 600 1.1rem/1.3 var(--police-titres); color: var(--encre); }
#ecran.commercial .compteur { min-width: 0; padding: .7rem .85rem; }
#ecran.commercial .compteur b { font-size: 1.7rem; }
#ecran.commercial #listes { max-width: 20rem; }

/* 📅 « Mes rendez-vous » (Léo, 02/10/2026) : une carte, une ligne par
   rendez-vous — le jour, la personne, le statut, « Rappeler ». */
.mes-rdv { padding: 1.25rem 1.4rem; border: 1px solid var(--trait);
  border-radius: var(--rayon-carte); background: var(--fond); box-shadow: var(--ombre); }
.mes-rdv-titre { display: flex; align-items: center; gap: .55rem; margin: 0 0 .75rem;
  font: 600 1.15rem/1.3 var(--police-titres); color: var(--encre); }
.mes-rdv-titre::before { content: ""; width: 1.05rem; height: 1.05rem; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.mes-rdv-lignes { list-style: none; margin: 0; padding: 0; }
/* 🗂️ Passés, aujourd'hui, à venir (maquette de Pablo, 07/10/2026). */
.mes-rdv-groupe { margin: .9rem 0 .15rem; font-size: .84rem; font-weight: 600; color: var(--encre-douce); }
.mes-rdv-groupe:first-child { margin-top: 0; }
.mes-rdv-groupe[data-groupe="aujourdhui"] { color: var(--vert); }
.mes-rdv-ligne { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto auto;
  align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--trait-doux); }
.mes-rdv-ligne:first-child { border-top: 0; }
.mes-rdv-quand { color: var(--encre-douce); font: 500 .82rem var(--police-chiffres); }
.mes-rdv-qui { font-weight: 500; overflow-wrap: anywhere; }
.mes-rdv-ligne button { font-size: .84rem; padding: .3rem .7rem; }
@media (max-width: 900px) {
  .mes-rdv-ligne { grid-template-columns: minmax(0, 1fr) auto auto; }
  .mes-rdv-quand { grid-column: 1 / -1; }
}
/* 📋 « Mes appels du jour » (maquette de Pablo ; Léo, 08/10/2026 ; 12/10/2026 :
   « type nouveau menu ») : un PANNEAU, à la place de l'écran d'appel. La
   barre d'appel et l'en-tête restent — « Raccrocher » ne se cherche pas. */
#mes-appels { display: none; margin: 1.25rem 1.5rem 1.5rem; padding: 1.5rem 1.6rem;
  background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-carte);
  box-shadow: var(--ombre); }
#mes-appels.visible { display: block; }
#ecran.vue-mes-appels > main { display: none; }
#ecran.vue-mes-appels > #mes-appels.visible,
#ecran.vue-mes-appels > #suivi-client.visible { flex: 1; min-height: 0; overflow: auto; }
.mes-appels-barre { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  margin-bottom: 1rem; }
.mes-appels-titre { margin: 0; font: 600 1.55rem/1.2 var(--police-titres); letter-spacing: .005em; }
/* L'identifiant : la règle de base des champs (input[type=search]) l'emporterait
   sur une classe seule, et la loupe passerait sous le texte. */
#mes-appels .mes-appels-filtre { flex: 1 1 16rem; max-width: 28rem; padding-left: 2.2rem;
  background: var(--fond-doux) no-repeat left .7rem center / 1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }
#fermer-mes-appels { margin-left: auto; }
.mes-appels-vide { margin: .4rem 0; color: var(--libelle); }
.mes-appels-liste { list-style: none; margin: 0; padding: 0; }
.mes-appels-ligne { display: flex; flex-direction: column; gap: .35rem; padding: .8rem 0;
  border-top: 1px solid var(--trait-doux); }
.mes-appels-ligne:first-child { border-top: 0; }
.mes-appels-entete { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }
.mes-appels-quand, .mes-appels-numero, .mes-appels-duree { color: var(--libelle); font-size: .88rem; }
.mes-appels-quand, .mes-appels-numero { font-family: var(--police-chiffres); word-spacing: -.3em; }
.mes-appels-qui { font-weight: 600; overflow-wrap: anywhere; }
.mes-appels-detail { font-size: .88rem; color: var(--encre-douce); }
.mes-appels-resume { font-size: .9rem; white-space: pre-line; padding: .6rem .8rem;
  border-radius: 10px; background: var(--fond-doux); border: 1px solid var(--trait-doux); }
.mes-appels-ligne audio { width: 100%; max-width: 28rem; }
.mes-appels-note { margin-top: .7rem; font-size: .8rem; color: var(--libelle); }

/* La fiche vide EST l'écran entre deux appels : elle dit où on en est et ce
   qu'il y a à faire, au centre, sans crier. Une icône au-dessus : le combiné
   gris à l'arrêt ; quand ça sonne, des ondes dorées et une ligne par personne. */
#ecran.commercial .fiche-vide { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .6rem; min-height: 19rem; text-align: center; }
#ecran .fiche-vide::before { content: ""; width: 3.75rem; height: 3.75rem;
  margin-bottom: .5rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--vert-trait),
    0 0 0 6px var(--fond-doux);
  background: var(--fond-page) no-repeat center / 1.5rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
#ecran .fiche-vide.sonne::before { width: 4.9rem; height: 2.25rem; border-radius: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78 36'%3E%3Cg fill='%230F7B5F'%3E%3Crect x='0' y='22' width='6' height='14' rx='3' opacity='.5'/%3E%3Crect x='12' y='6' width='6' height='30' rx='3' opacity='.7'/%3E%3Crect x='24' y='14' width='6' height='22' rx='3'/%3E%3Crect x='36' y='0' width='6' height='36' rx='3'/%3E%3Crect x='48' y='10' width='6' height='26' rx='3' opacity='.8'/%3E%3Crect x='60' y='4' width='6' height='32' rx='3' opacity='.6'/%3E%3Crect x='72' y='18' width='6' height='18' rx='3' opacity='.4'/%3E%3C/g%3E%3C/svg%3E");
  animation: ondes 1.4s ease-in-out infinite; }
@keyframes ondes { 50% { transform: scaleY(.72); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { #ecran .fiche-vide.sonne::before { animation: none; } }
/* ☀️ Chez l'administrateur aussi (27/10/2026), la fiche vide est centrée sous
   son icône — elle n'est plus une phrase seule en haut à gauche. */
#ecran:not(.commercial) .fiche-vide { display: flex; flex-direction: column; align-items: center;
  gap: .5rem; padding-top: 3.5rem; text-align: center; }
#ecran:not(.commercial) .fiche-vide-titre { font-weight: 600; color: var(--encre); }
.fiche-vide-titre { display: inline-flex; align-items: center; gap: .75rem; }
#ecran.commercial .fiche-vide-titre { font: 600 1.85rem/1.2 var(--police-titres); color: var(--encre);
  letter-spacing: .005em; }
.fiche-vide-detail { color: var(--libelle); line-height: 1.6; white-space: pre-line; max-width: 32rem; }
.fiche-vide-detail:empty { display: none; }
/* 👥 Les noms qui sonnent : une ligne par personne, ses initiales devant —
   jamais son numéro (`app.js`, `rendreQuiSonne`). */
.fiche-vide-detail.qui-sonne { width: min(32rem, 100%); max-width: none; white-space: normal;
  display: flex; flex-direction: column; gap: .55rem; margin-top: .9rem; text-align: left; }
.sonne-ligne { display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem;
  border: 1px solid var(--trait); border-radius: 14px; background: var(--fond); box-shadow: var(--ombre);
  color: var(--encre); font-weight: 500; font-size: .98rem; }
.sonne-ligne::before { content: attr(data-initiales); display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; background: var(--fond-page);
  box-shadow: inset 0 0 0 1px var(--vert-vif); color: var(--encre);
  font: 600 .95rem/1 var(--police-titres);
  animation: appel 1.6s ease-out infinite; }
.sonne-ligne:nth-child(2)::before { animation-delay: .4s; }
.sonne-ligne:nth-child(3)::before { animation-delay: .8s; }
.sonne-ligne::after { content: "sonne…"; margin-left: auto; font-size: .82rem; color: var(--libelle);
  font-weight: 400; }
@keyframes appel { 0% { box-shadow: inset 0 0 0 1px var(--vert-vif), 0 0 0 0 rgba(15, 123, 95, .5); }
                   70%, 100% { box-shadow: inset 0 0 0 1px var(--vert-vif), 0 0 0 10px rgba(15, 123, 95, 0); } }
@media (prefers-reduced-motion: reduce) { .sonne-ligne::before { animation: none; } }
/* « Ça sonne » sans dire chez qui (avant le 12/10) : un point qui respire, pas
   un clignotement — et immobile pour qui a demandé moins de mouvement. */
.fiche-vide.sonne .fiche-vide-titre { color: var(--encre); }
@keyframes pouls { 50% { opacity: .3; transform: scale(.7); } }

/* 📞 Quelqu'un a décroché : la FICHE passe devant (retour du terrain, 30/09/2026 :
   « comme sur Minari »), en grand ; la campagne et « Ma journée » derrière, en
   une ligne — jusqu'à « Appel suivant ». */
#ecran.commercial.en-appel .colonne-fiche { order: -1; }
#ecran.commercial.en-appel #fiche-personne { border-color: var(--trait); }
#ecran.commercial.en-appel .tableau-de-bord { grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "carte chiffres barre"; padding: .55rem 1.1rem; gap: .5rem 1.2rem;
  border-radius: 12px; font-size: .9rem; background: var(--fond-doux); }
#ecran.commercial.en-appel .carte-campagne { gap: .65rem; }
#ecran.commercial.en-appel .anneau { width: 1.8rem; height: 1.8rem; }
#ecran.commercial.en-appel .anneau::after { inset: 18%; }
#ecran.commercial.en-appel .anneau-signe,
#ecran.commercial.en-appel #listes { display: none; }
#ecran.commercial.en-appel .carte-campagne > div:last-child { display: flex; gap: .45rem;
  flex-wrap: wrap; align-items: baseline; }
/* En ligne, « Suspendre » dit déjà que la campagne tourne : il reste ce qui
   reste à appeler. */
#ecran.commercial.en-appel .carte-etat { display: none; }
#ecran.commercial.en-appel .carte-reste { font-size: .86rem; white-space: nowrap; }
#ecran.commercial.en-appel .compteurs { display: flex; flex-wrap: wrap; gap: .2rem .9rem;
  justify-content: flex-end; color: var(--libelle); padding-top: 0; border-top: 0; }
#ecran.commercial.en-appel .compteurs-titre { font-size: .86rem; font-weight: 500;
  color: var(--encre-douce); }
#ecran.commercial.en-appel .compteur { flex-direction: row-reverse; align-items: baseline;
  gap: .25rem; padding: 0; border: 0; background: none; white-space: nowrap; min-width: 0; }
#ecran.commercial.en-appel .compteur b { font-size: .86rem; font-weight: 600; color: var(--encre); }
#ecran.commercial.en-appel .compteur span { font-size: .86rem; font-weight: 400; }
#ecran.commercial.en-appel .barre-campagne button { font-size: .85rem; min-height: 2rem;
  padding: .25rem .75rem; }

/* 📝 Après le raccroché, le RÉSUMÉ IA de CET appel à côté de la fiche
   (maquettes du 01/10/2026) : on le lit en choisissant le statut. */
#ecran.commercial.resume-a-cote .colonne-liste,
#ecran.commercial.resume-a-cote .colonne-fiche { width: min(64rem, 100%); }
#ecran.commercial.resume-a-cote .colonne-fiche { display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
#ecran.commercial.resume-a-cote .fiche-saisie { grid-template-columns: minmax(0, 1fr); }
/* Le résumé d'un AUTRE appel (celui d'avant) ne se pose jamais à côté d'une
   personne en ligne : il se lirait comme le sien. */
#ecran.en-appel .resume-appel.autre { display: none; }

.fiche-vide { color: var(--libelle); padding-top: 2rem; }
.fiche-vide-titre { font: 400 1.2rem/1.35 var(--police-titres); color: var(--encre-douce); }

/* La fiche : une colonne, de l'air entre chaque bloc. */
#fiche-personne { display: flex; flex-direction: column; gap: 1.15rem; }
#fiche-details:empty { display: none; }
.fiche-entete { display: flex; align-items: flex-start; gap: .9rem 1rem; flex-wrap: wrap; }
.fiche-identite { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column;
  gap: .45rem; align-items: flex-start; }
.fiche-nom-ligne { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fiche-nom-ligne button { flex: none; }
/* L'avatar : les initiales en serif, sur l'IVOIRE, cerclées d'un filet doré
   fin (refonte « Maison ») — un rond, comme les cartes du suivi. */
.fiche-avatar { flex: none; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--fond-page);
  box-shadow: inset 0 0 0 1px var(--vert-vif), 0 0 0 4px var(--fond-doux);
  color: var(--encre); font: 600 1.12rem/1 var(--police-titres); letter-spacing: .02em; }
#ecran.commercial .fiche-avatar { width: 3.5rem; height: 3.5rem; font-size: 1.3rem; }
.fiche-nom { font: 600 1.6rem/1.15 var(--police-titres); letter-spacing: .005em;
             color: inherit; text-decoration: none; overflow-wrap: anywhere; }
#ecran.commercial .fiche-nom { font-size: 2rem; line-height: 1.1; }
a.fiche-nom[href]:hover { text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .12em; color: var(--vert); }
a.fiche-nom[href]::after { content: ""; display: inline-block; width: .5em; height: .5em;
  margin-left: .3em; vertical-align: .25em; background: var(--gris);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") no-repeat center / contain; }
/* La raison de l'appel : une étiquette, comme sur les croquis — chaude et
   neutre : elle informe, elle ne demande rien (le doré, c'est « agis »). */
.fiche-raison { font-size: .92rem; color: var(--encre-douce); font-weight: 500; background: var(--fond-gris);
  border: 1px solid var(--trait); border-radius: 999px; padding: .12rem .7rem; }
.fiche-raison:empty { display: none; }
#ecran.commercial .fiche-raison { font-size: .95rem; }
/* Dans la colonne d'un administrateur, la pastille passe sous le nom : à côté,
   elle repoussait « Copier » à la ligne. */
#ecran:not(.commercial) .fiche-identite { flex-basis: calc(100% - 4rem); }
#ecran:not(.commercial) .fiche-duree { margin-left: 4rem; }
/* La durée en pastille : verte tant qu'on est en ligne, grise après. */
.fiche-duree { flex: none; display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--encre-douce); background: var(--fond-gris); }
.fiche-duree.en-ligne { color: var(--succes); background: var(--succes-clair); }
.fiche-duree.en-ligne::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--succes-vif); }
.fiche-duree:empty { display: none; }

/* Le numéro et le RPPS, dans un encart : ce qu'on lit, dicte ou copie. */
.fiche-coordonnees { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.4rem;
  padding: .8rem 1rem; background: var(--fond-doux); border: 1px solid var(--trait-doux);
  border-radius: 12px; color: var(--encre-douce); }
.fiche-numero { display: inline-flex; align-items: center; gap: .6rem; color: var(--encre);
  font: 500 1.08rem/1.4 var(--police-chiffres); word-spacing: -.3em; letter-spacing: .01em; }
/* Le combiné : une image, pas un caractère (les émojis changent d'un système à
   l'autre). `img-src data:` le permet. */
.fiche-numero::before { content: ""; flex: none; width: 1rem; height: 1rem; background: no-repeat
  center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
#ecran.commercial .fiche-numero { font-size: 1.15rem; }
/* 🪪 Le RPPS (30/09/2026) : lisible, et « Copier » à côté. */
.fiche-rpps { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--libelle); }
.fiche-rpps b { color: var(--encre); font: 500 .95rem var(--police-chiffres); margin-left: .25rem; }
/* Le numéro dans le tableau : la même police que sur la fiche. */
/* (Une espace à chasse fixe est aussi large qu'un chiffre : resserrée.) */
#tableau-liste td:nth-child(4) { font-family: var(--police-chiffres); font-weight: 500;
  font-size: .88rem; word-spacing: -.3em; }

/* 📴 La personne a raccroché (30/09/2026) : rouge, sans crier — la marque reste
   jusqu'au prochain appel, le signal sonore, lui, ne passe qu'une fois. */
.fiche-raccroche { align-self: stretch; display: flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem; border-radius: 10px; font-size: .9rem; font-weight: 600;
  color: var(--rouge); background: var(--rouge-clair); }
.fiche-raccroche::before { content: ""; width: 1rem; height: 1rem; flex: none;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(12 12) rotate(135) scale(.78) translate(-12 -12)'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(12 12) rotate(135) scale(.78) translate(-12 -12)'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
#fiche-personne.raccroche { animation: raccroche .9s ease-out 2; }
@keyframes raccroche { 0% { box-shadow: 0 0 0 0 var(--rouge-trait); }
                       60% { box-shadow: 0 0 0 10px rgba(254, 205, 202, 0); } }
@media (prefers-reduced-motion: reduce) { #fiche-personne.raccroche { animation: none; } }

/* 🎙️ Micro coupé (07/10/2026) : la même marque que le raccroché, en ambre —
   ce n'est pas une fin d'appel, c'est un état à ne pas oublier. */
.fiche-micro-coupe { align-self: stretch; display: flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem; border-radius: 10px; font-size: .9rem; font-weight: 600;
  color: var(--ambre); background: var(--ambre-clair); border: 1px solid var(--ambre-trait); }
.fiche-micro-coupe::before { content: ""; width: 1rem; height: 1rem; flex: none;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2l20 20M9 9v2a3 3 0 0 0 5.1 2.1M15 9.3V5a3 3 0 0 0-5.9-.6'/%3E%3Cpath d='M17 16.9A7 7 0 0 1 5 11v-1M19 10v1a7 7 0 0 1-.1 1.2M12 18v4'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2l20 20M9 9v2a3 3 0 0 0 5.1 2.1M15 9.3V5a3 3 0 0 0-5.9-.6'/%3E%3Cpath d='M17 16.9A7 7 0 0 1 5 11v-1M19 10v1a7 7 0 0 1-.1 1.2M12 18v4'/%3E%3C/svg%3E") no-repeat center / contain; }

/* Trois tuiles : ce que NOTRE pile sait d'elle. Vides tant qu'on ne l'a
   jamais appelée — trois « 0 » n'apprennent rien. */
.fiche-tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.fiche-tuiles:empty { display: none; }
.tuile { border: 1px solid var(--trait-doux); border-radius: 10px; padding: .5rem .7rem;
  background: var(--fond-doux); min-width: 0; display: flex; flex-direction: column-reverse; }
.tuile b { display: block; font-size: .95rem; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tuile span { display: block; color: var(--libelle); font-size: .78rem; font-weight: 500; }
.fiche-titre { margin: .3rem 0 .2rem; font: 600 1.02rem/1.3 var(--police-titres); color: var(--encre); }
.fiche-infos { margin: .25rem 0 0; padding: 0; list-style: none; }
.fiche-infos li { display: grid; grid-template-columns: minmax(7rem, 2fr) minmax(0, 3fr); gap: 1rem;
                  padding: .45rem 0; font-size: .9rem; }
.fiche-infos li + li { border-top: 1px solid var(--trait-doux); }
.fiche-infos li > span:last-child { overflow-wrap: anywhere; }
.fiche-infos .cle { color: var(--libelle); }

/* Ce que la détection de répondeur a entendu. */
.fiche-amd { padding: .65rem .9rem; border-radius: 10px; font-size: .9rem;
             background: var(--fond-doux); color: var(--encre-douce); border: 1px solid var(--trait-doux); }
.fiche-amd.ambre { background: var(--ambre-clair); color: var(--ambre); border-color: var(--ambre-trait); }
.fiche-amd.vert  { background: var(--vert-clair);  color: var(--vert);  border-color: var(--vert-trait); }

/* La détection propose, il clique : « Répondeur », dans la barre d'appel,
   s'allume ; il ne s'enfonce pas tout seul. */
#bouton-repondeur.suggere { box-shadow: 0 0 0 3px rgba(208, 106, 34, .6);
                            animation: suggere 1.2s ease-in-out infinite; }
@keyframes suggere { 50% { box-shadow: 0 0 0 6px rgba(208, 106, 34, .35); } }
@media (prefers-reduced-motion: reduce) { #bouton-repondeur.suggere { animation: none; } }

/* 🏷️ Le statut et 💬 le commentaire CÔTE À CÔTE (maquettes du 01/10/2026) :
   les deux choses à faire après une conversation. L'un sans l'autre (un
   administrateur n'a pas de statut) : pleine largeur. */
.fiche-saisie { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.1rem 1.25rem; align-items: start; }
.fiche-saisie:has(> .cache) { grid-template-columns: minmax(0, 1fr); }
.fiche-saisie:not(:has(> :not(.cache))) { display: none; }
.fiche-statut, .fiche-commentaire { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.fiche-statut label, .fiche-commentaire label { font-size: .88rem; color: var(--encre-douce);
  font-weight: 500; }
.fiche-statut select { max-width: none; width: 100%; font-size: .98rem; min-height: 2.6rem; }
/* 🎨 La GRILLE de fin d'appel (Léo, 02/10/2026) : les statuts, une fois
   raccroché — et seulement alors (12/10/2026). La saisie passe sur une
   colonne : la grille en entier, le commentaire dessous, puis « Valider ». */
/* 🗂️ En grille, un titre, la personne jointe, les sept tuiles, les cases de
   « Déjà fait », puis le menu, discret : les onze autres statuts (« Autre
   statut »). */
#fiche-statut.en-grille { display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: .65rem .9rem; }
#fiche-statut.en-grille > * { grid-column: 1 / -1; }
#fiche-statut.en-grille > #libelle-statut { grid-column: 1; }
#fiche-statut.en-grille > select { grid-column: 2; }
#fiche-statut.en-grille::before { content: "Statut de l'appel"; order: -2; grid-column: 1 / -1;
  font: 600 1.3rem/1.25 var(--police-titres); color: var(--encre); }
#fiche-statut.en-grille > .personne-jointe { display: grid; grid-template-columns: subgrid;
  align-items: center; }
#fiche-statut.en-grille > .personne-jointe > select { max-width: none; }
#fiche-statut.en-grille > .personne-jointe { order: -1; }
#fiche-statut.en-grille > .grille-statuts { order: 1; }
#fiche-statut.en-grille > .fiche-deja-fait { order: 2; }
#fiche-statut.en-grille > #libelle-statut,
#fiche-statut.en-grille > select { order: 3; }
#fiche-statut.en-grille > #libelle-statut { margin-top: 0; }
#fiche-statut.en-grille > select { font-size: .92rem; color: var(--encre-douce);
  min-height: 2.4rem; border-style: dashed; background-color: var(--fond-doux); }
.fiche-saisie:has(> .en-grille) { grid-template-columns: minmax(0, 1fr); }
.grille-statuts { display: flex; flex-direction: column; gap: .6rem; }
/* 🤖 Ce que l'IA a entendu (24/10/2026), au-dessus des tuiles : la teinte
   douce de la marque, la marque des suggestions de l'IA devant — jamais le
   violet, qui ne veut dire que « on vous écoute ». Rien que des variables de
   `:root` : le thème de l'écran les repeint, le bandeau suit. L'étoile est un
   MASQUE peint de `--vert` (une couleur écrite dans le SVG ne suivrait pas).
   Le bouton est le bouton de l'écran ; il passe dessous quand la phrase prend
   la largeur. */
.rappel-ia { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem .9rem; padding: .65rem .8rem; border-radius: var(--rayon);
  background: var(--vert-clair); border: 1px solid var(--vert-trait); }
.rappel-ia-texte { display: flex; align-items: center; gap: .45rem; margin: 0; flex: 1 1 14rem;
  font-size: .94rem; font-weight: 600; line-height: 1.3; color: var(--encre); }
.rappel-ia-texte::before { content: ""; width: 1rem; height: 1rem; flex: none;
  background-color: var(--vert);
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9zM19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9zM19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }
.rappel-ia button { flex: none; }
/* « Rappel posé ✓ » se LIT : gris, pas effacé (comme « Valider »). */
.rappel-ia button:disabled { opacity: 1; color: var(--libelle); }
.rappel-ia button:focus-visible { outline-color: var(--vert); }
.grille-aide { font-size: .9rem; color: var(--libelle); }
.grille-aide:empty { display: none; }
.grille-tuiles { display: grid; gap: .55rem; counter-reset: tuile; container-type: inline-size;
  grid-template-columns: repeat(auto-fill, minmax(min(10.5rem, calc(33.3% - .4rem)), 1fr)); }
@container (max-width: 30rem) {
  .grille-tuiles .tuile-statut { min-height: 2.75rem; padding-block: .45rem; } }
/* Le chiffre du clavier s'efface quand trois tuiles par rangée n'ont plus la
   place pour lui ET le libellé (« Remplaçante » se coupait à 960 px). */
@container (max-width: 34rem) { .tuile-statut::after { display: none; } }
/* 📱 Un statut se lit d'un coup d'œil (20/11/2026) : sur un téléphone, trois
   tuiles par rangée coupaient les mots en deux (« Conver-ti VIP »,
   « rappe-ler », « inté-ressé ») ; à 768 px, quatre coupaient
   « présenta-tion ». Sous 900 px (une colonne), trois par rangée ; sous
   540 px, deux, un peu plus serrées, et plus aucun mot coupé. Au-dessus de
   900 px, rien ne change (`test_LE_CLIQUET_a_960_px_…`). Deux classes : la
   règle de la tuile vient APRÈS, et la même force la battrait. */
@media (max-width: 900px) { .grille-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .grille-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .grille-tuiles .tuile-statut { hyphens: manual; overflow-wrap: normal; gap: .45rem;
    padding-inline: .65rem .55rem; } }
/* 🗂️ Une tuile : SOBRE (croquis du 20/10/2026, Léo : « tout me va ») — le
   blanc, un point de la couleur du statut, le libellé en encre ; choisie,
   elle prend la teinte douce et un filet de sa couleur, et le point devient
   une coche : jamais la couleur seule. Les familles sont celles de Pablo
   (08/10/2026) : Done vert, PI rouge (12/10), Mort noir, RA jaune, R1 bleu,
   Déjà fait orange, Remplaçante gris. Le chiffre à droite est la touche du
   clavier (1 à 7, `app.js`) : un compteur CSS, hors du `textContent`. */
.tuile-statut { --t-point: #a0978a; --t-doux: #f1ede6; --t-filet: #7a7266;
  position: relative; display: flex; align-items: center; gap: .55rem;
  min-height: 3rem; padding: .55rem .7rem .55rem .85rem; border-radius: 12px; text-align: left;
  font-size: .94rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere;
  /* Coupé à la française quand la tuile est étroite (« Rempla-çante »),
     plus « Remplaçant / e » ; `anywhere` ne reste qu'en dernier recours. */
  hyphens: auto;
  color: var(--encre); background: var(--fond); border: 2px solid var(--trait);
  box-shadow: none; counter-increment: tuile;
  transition: background var(--duree) ease, border-color var(--duree) ease,
              box-shadow var(--duree) ease, transform var(--duree) var(--courbe); }
.tuile-statut::before { content: ""; width: .7rem; height: .7rem; flex: none; border-radius: 50%;
  background: var(--t-point) no-repeat center / 0; }
.tuile-statut::after { content: counter(tuile); margin-left: auto; flex: none; min-width: 1.15rem;
  padding: 0 .25rem; border: 1px solid var(--trait-fort); border-radius: 5px; text-align: center;
  font: 500 .68rem/1.15rem var(--police-chiffres); color: var(--libelle); }
.tuile-statut:nth-child(n+10)::after { display: none; }
.tuile-statut:hover:not(:disabled) { background: var(--fond-doux); border-color: var(--t-filet);
  box-shadow: var(--ombre-survol); transform: translateY(-1px); }
.tuile-statut:active:not(:disabled) { background: var(--t-doux); }
.tuile-statut[aria-pressed="true"],
.tuile-statut[aria-pressed="true"]:hover:not(:disabled) { background: var(--t-doux);
  border-color: var(--t-filet); box-shadow: none; transform: none; }
.tuile-statut[aria-pressed="true"]::before { width: 1.05rem; height: 1.05rem;
  background-size: .7rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
/* 🎨 Refonte « Maison » (24/10/2026) : les mêmes six familles, un peu
   désaturées pour l'ivoire, et toujours distinctes entre elles — le jaune
   tire vers le citron, l'orange vers la brique, pour ne se confondre ni l'un
   avec l'autre, ni avec le doré d'action. Le filet de la tuile choisie tient
   3:1 sur le blanc (mesuré) ; le libellé, en encre, 4,5:1 sur la teinte
   douce. */
[data-teinte="vert"]   { --t-point: #3f8a5e; --t-doux: #eef5f0; --t-filet: #3f8a5e; }
[data-teinte="orange"] { --t-point: #d06a22; --t-doux: #fcefe4; --t-filet: #b85a1c; }
[data-teinte="noir"]   { --t-point: var(--encre); --t-doux: var(--fond-gris); --t-filet: var(--encre); }
[data-teinte="jaune"]  { --t-point: #dcb12a; --t-doux: #fbf5e0; --t-filet: #94711a; }
[data-teinte="bleu"]   { --t-point: #3d62b3; --t-doux: #eef2fa; --t-filet: #3d62b3; }
[data-teinte="gris"]   { --t-point: #a0978a; --t-doux: #f1ede6; --t-filet: #7a7266; }
[data-teinte="rouge"]  { --t-point: #c2443b; --t-doux: #fbf1ef; --t-filet: #c2443b; }
/* Le cliquet de la feuille cherche une règle par teinte, sur la tuile. Le
   point jaune (#dcb12a) n'a pas de coche blanche lisible : elle est foncée. */
.tuile-statut[data-teinte="vert"], .tuile-statut[data-teinte="orange"],
.tuile-statut[data-teinte="noir"], .tuile-statut[data-teinte="bleu"],
.tuile-statut[data-teinte="gris"], .tuile-statut[data-teinte="rouge"] { color: var(--encre); }
.tuile-statut[data-teinte="jaune"] { color: var(--encre); }
.tuile-statut[data-teinte="jaune"][aria-pressed="true"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b2f00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
/* 🗂️ « Déjà fait » : deux cases, DPC et FIF-PL (maquette de Pablo). */
.fiche-deja-fait { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .75rem .9rem; border: 1px solid var(--ambre-trait); border-radius: 12px; background: var(--ambre-clair); }
.deja-fait-titre { font-weight: 600; color: var(--ambre); }
.fiche-statut label.deja-fait-case { display: inline-flex; align-items: center; gap: .45rem;
  font-size: .95rem; color: var(--encre); font-weight: 500; cursor: pointer; padding: .3rem .8rem;
  border: 1px solid var(--trait-fort); border-radius: 999px; background: var(--fond); }
.fiche-statut label.deja-fait-case:has(input:checked) { border-color: var(--ambre-vif); }
.deja-fait-case input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--ambre-vif); }
.deja-fait-aide { flex-basis: 100%; font-size: .82rem; color: var(--libelle); }
/* 🗂️ « Personne jointe » : au-dessus du statut, pré-rempli avec la fiche. */
.personne-jointe { display: flex; flex-direction: column; gap: .3rem; }
.personne-jointe select { font-size: .95rem; }
/* 📅 Le jour et l'heure d'un « RA » / « R1 » (28/09/2026), sous le menu :
   côte à côte, le jour d'abord — c'est lui qui est obligatoire. Caché par
   `.cache` (le `!important` bat le `display: flex`). Teinté du jaune des
   rendez-vous, comme sur les croquis. */
.fiche-rdv { display: flex; flex-direction: column; gap: .5rem; margin-top: .25rem; }
.fiche-rdv-champs { display: flex; gap: .7rem; flex-wrap: wrap; }
.fiche-rdv-champs > div { display: flex; flex-direction: column; gap: .3rem; flex: 1 1 8rem; }
.fiche-rdv label { font-size: .84rem; font-weight: 500; color: var(--encre-douce); }
.fiche-rdv input { font-size: .98rem; max-width: none; }
.lien-agenda { font-size: .88rem; color: var(--vert); font-weight: 600; }
/* ✅ « Valider » (12/10/2026) : le dernier geste de la saisie, sur toute sa
   largeur, gros — c'est lui qui enregistre et lance l'appel suivant. */
.fiche-valider { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .35rem; }
.fiche-valider button { width: 100%; min-height: 3.25rem; font-size: 1.05rem; padding: .8rem 1.4rem;
  border-radius: 14px; font-weight: 600; }
.fiche-valider button:disabled { opacity: 1; color: var(--libelle); background: var(--fond-gris);
  border-color: var(--trait); }
/* ⚫ La confirmation de « Mort » : ouverte seulement (`[open]`) — l'état fermé
   reste celui du navigateur. */
.confirmer { border: 1px solid var(--trait); border-radius: 20px; padding: 1.75rem 1.9rem;
  max-width: min(30rem, 92vw); box-shadow: var(--ombre-haute); color: var(--encre);
  background: var(--fond); }
.confirmer[open] { display: flex; flex-direction: column; gap: .8rem; }
.confirmer::backdrop { background: rgba(18, 18, 18, .5); }
.confirmer h2 { margin: 0; font: 600 1.45rem/1.25 var(--police-titres); }
.confirmer p { margin: 0; line-height: 1.5; color: var(--encre-douce); }
.confirmer-boutons { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap;
  margin-top: .4rem; }
.confirmer-boutons button { font-size: .98rem; min-height: 2.75rem; padding: .55rem 1.2rem;
  border-radius: 12px; }
.confirmer-boutons button.mort { color: var(--sombre-encre); background: var(--encre); border-color: var(--encre);
  font-weight: 600; }
.confirmer-boutons button.mort:hover:not(:disabled) { background: #000; border-color: var(--vert-vif); }
.fiche-commentaire textarea { font: inherit; font-size: .95rem; line-height: 1.55;
  padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--bordure-champ);
  background: var(--fond); color: var(--encre); resize: vertical; min-height: 6rem;
  transition: border-color var(--duree) ease, box-shadow var(--duree) ease; }
/* Son focus : celui de tous les champs, plus haut. Le bord posé ici (même
   précision, plus loin dans la feuille) l'emporterait : il se redit. */
.fiche-commentaire textarea:focus { border-color: var(--vert); }
.commentaire-etat { font-size: .8rem; color: var(--succes); min-height: 1em; }
.commentaire-etat:empty { display: none; }
/* 🤖 Le commentaire proposé par l'IA, pas encore parti (24/10/2026). */
.commentaire-etat.ia { color: var(--vert); }
.fiche-plus { display: flex; gap: .5rem; flex-wrap: wrap; }
.fiche-plus:not(:has(button:not(.cache))) { display: none; }
.fiche-plus button.petit { font-size: .84rem; padding: .35rem .75rem; border-radius: 9px; }
.fiche-retour { font-size: .9rem; color: var(--encre-douce); min-height: 1.2em; }
.fiche-retour:empty { display: none; }

/* Le résumé IA du dernier appel : lisible pendant qu'on note. Une carte
   blanche, une étincelle devant son titre. */
.resume-appel { padding: 1rem 1.1rem; border: 1px solid var(--trait);
  border-radius: 12px; background: var(--fond); box-shadow: var(--ombre); }
#ecran.commercial .resume-appel { padding: 1.25rem 1.4rem; border-radius: var(--rayon-carte); }
.resume-entete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }
.resume-titre { display: inline-flex; align-items: center; gap: .45rem; align-self: center;
  font: 600 1.1rem/1.3 var(--police-titres); color: var(--encre); }
.resume-titre::before { content: ""; width: 1.05rem; height: 1.05rem; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7B5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9zM19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }
.resume-nom { font-weight: 500; color: var(--encre-douce); }
.resume-nom:not([href]) { text-decoration: none; }
.resume-heure { color: var(--libelle); font-size: .85rem; }
.resume-etat { margin-top: .45rem; font-size: .9rem; color: var(--libelle); font-style: italic; }
.resume-etat:empty { display: none; }
.resume-texte { margin-top: .6rem; white-space: pre-line; line-height: 1.6; color: var(--encre-douce); overflow-wrap: anywhere; }
.resume-texte:empty { display: none; }
.resume-citations { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .9rem; color: var(--encre-douce); }
.resume-citations:empty { display: none; }
.resume-note { margin-top: .7rem; font-size: .8rem; color: var(--libelle); }
/* 🕙 Réécouter l'appel, dix minutes (maquette de Pablo, 07/10/2026). */
.resume-ecoute { display: flex; flex-direction: column; gap: .35rem; margin-top: .8rem;
  padding: .6rem .7rem; border-radius: 12px; background: var(--fond-doux); border: 1px solid var(--trait-doux); }
.resume-ecoute-titre { font-size: .84rem; font-weight: 600; color: var(--encre-douce); }
.resume-ecoute audio { width: 100%; height: 2.25rem; }
.resume-ecoute-note { font-size: .78rem; color: var(--libelle); }
/* 🤖 Les suggestions de l'IA, sous le résumé d'un appel de suivi
   (administrateurs, 19/10/2026) : chacune une petite carte, chacune attend
   son clic. */
.suggestions-ia { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--trait-doux);
  display: flex; flex-direction: column; gap: .55rem; }
.suggestions-titre { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-size: .9rem; font-weight: 600; color: var(--encre); }
.suggestions-titre::before { content: ""; width: .95rem; height: .95rem; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7B5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9zM19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }
.suggestions-etat { font-weight: 400; font-size: .84rem; font-style: italic; color: var(--libelle); }
.suggestion { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem;
  padding: .7rem .8rem; border-radius: 12px; background: var(--fond-doux);
  border: 1px solid var(--trait-doux); }
.suggestion-texte { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--encre); }
.suggestion-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.suggestion label { font-size: .86rem; color: var(--encre-douce); }
/* ♿ Le bord des champs (3,6:1) et leur focus (25/10/2026). */
.suggestion textarea { width: 100%; box-sizing: border-box; font: inherit; resize: vertical;
  padding: .5rem .65rem; border-radius: var(--rayon); border: 1px solid var(--bordure-champ);
  background: var(--fond); color: var(--encre); }
.suggestion textarea:focus { border-color: var(--vert); }
.suggestion-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem; width: 100%; }
.suggestion-compte { font-size: .8rem; color: var(--libelle); font-variant-numeric: tabular-nums; }
.suggestion-retour { font-size: .86rem; color: var(--encre-douce); }
.suggestion-retour:empty { display: none; }

/* L'interrupteur des messageries : visible d'un coup d'œil, parce
   qu'allumé, il raccroche des gens tout seul. */
.interrupteur { display: inline-flex; align-items: center; gap: .45rem;
                font-size: .88rem; color: var(--encre-douce); cursor: pointer;
                padding: .4rem .75rem; border-radius: var(--rayon); border: 1px solid var(--trait-fort); }
.interrupteur.allume { background: var(--ambre-clair); color: var(--ambre); border-color: var(--ambre-trait); }
.interrupteur input { margin: 0; }

/* ── Le dépôt d'une liste ────────────────────────────────────────────────── */

#depot { margin: .75rem 1.5rem 0; padding: .8rem 1.1rem; background: var(--vert-clair);
         border: 1px solid var(--vert-trait); border-radius: 12px;
         display: none; align-items: center; gap: .6rem; flex-wrap: wrap; }
#depot.visible { display: flex; }
/* 📞 La page Manuel : le même bandeau que le dépôt de liste. */
#manuel { margin: .75rem 1.5rem 0; padding: .8rem 1.1rem; background: var(--fond);
          border: 1px solid var(--trait); border-radius: 12px;
          display: none; align-items: center; gap: .6rem; flex-wrap: wrap; }
#manuel.visible { display: flex; }
#manuel label { color: var(--encre-douce); font-size: .88rem; font-weight: 500; }
#manuel input { width: 13rem; font-family: var(--police-chiffres); }
.manuel-qui { font-size: .88rem; color: var(--libelle); }
.manuel-qui.rouge { color: var(--rouge); }

/* 👥 Les comptes de l'équipe et les listes déposées (Paramètres). Les
   panneaux d'avant, `#comptes` et `#listes-panneau`, sont partis avec leurs
   règles (25/10/2026) : ils vivent dans les sections des Paramètres. */
.liste-archivee td { color: var(--libelle); }
.liste-active td { font-weight: 600; }
.comptes-entete { display: flex; align-items: center; justify-content: space-between;
                  padding-bottom: 1rem; margin-bottom: .25rem; }
/* Le titre d'une page : la serif d'affichage, grande — c'est elle qui dit
   « vous êtes ici ». */
.comptes-entete strong { font: 600 2rem/1.15 var(--police-titres); letter-spacing: .005em; }
.comptes-liste { border-collapse: collapse; font-size: .9rem; margin-bottom: .8rem; }
.comptes-liste th, .comptes-liste td { text-align: left; padding: .5rem 1rem .5rem 0;
                                        border-bottom: 1px solid var(--trait-doux); }
.comptes-liste th { color: var(--libelle); font-weight: 500; font-size: .8rem; background: none;
  position: static; }
#comptes-poser { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
#comptes-poser input[type=text], #comptes-poser input[type=password] { width: 15rem; }
.comptes-admin { font-size: .88rem; color: var(--encre-douce); display: flex; gap: .3rem;
                 align-items: center; }
.comptes-retour { margin-top: .4rem; font-size: .88rem; color: var(--libelle); min-height: 1.1em; }
.comptes-retour.rouge { color: var(--rouge); }
#depot span { color: var(--encre-douce); font-size: .88rem; }
#depot .etiquette { color: var(--encre-douce); font-size: .88rem; }
#depot-remplacer { max-width: 18rem; }
#depot strong { font-weight: 600; }

/* ── La consigne : ce qu'elle doit faire MAINTENANT ──────────────────────── */

/* Elle n'apparaît que quand la journée attend vraiment. Une consigne affichée
   en permanence n'est plus lue au bout d'une heure.
   🎨 En BAS de l'écran (maquettes du 01/10/2026) : sous la fiche qu'on
   remplit, là où le regard finit. `order` la range après `main` — toujours
   visible, même quand la fiche défile. */
.consigne {
  order: 10; display: none; align-items: center; justify-content: center;
  gap: .9rem 1.25rem; flex-wrap: wrap; padding: .85rem 1.5rem; background: var(--fond);
  border-top: 1px solid var(--trait); box-shadow: 0 -10px 28px -8px rgba(0, 0, 0, .1);
}
.consigne.visible { display: flex; }
.consigne-texte { color: var(--encre-douce); font: 400 1.05rem/1.4 var(--police-titres); }
.consigne button { font-size: 1.02rem; min-height: 3rem; padding: .7rem 2.2rem; border-radius: 14px; }

/* ── L'alerte : ce qui est cassé, en rouge, au-dessus de tout ────────────── */

.alerte {
  display: none; margin: .75rem 1.5rem 0; padding: .75rem 1rem; background: var(--rouge-clair);
  color: var(--rouge); font-weight: 600; font-size: .9rem;
  border: 1px solid var(--rouge-trait); border-radius: 12px;
}
.alerte.visible { display: block; }

/* ── Les avis ────────────────────────────────────────────────────────────── */

.avis { margin: .75rem 1.5rem 0; padding: .65rem 1rem; background: var(--ambre-clair);
        color: var(--ambre); font-size: .88rem; border-radius: 12px;
        border: 1px solid var(--ambre-trait); }
.avis:empty { display: none; }
/* 🎨 La NATURE du message, que `montrerAvis` pose en classe depuis le 25/09
   (12/10/2026) : une réussite dans le doré de la maison, un refus ou une alerte en
   rouge ; l'ambre reste ce qui est à SAVOIR (une fin, un créneau, une
   nouvelle version). Le texte tient 4,5:1 sur chaque fond. */
.avis.info { background: var(--vert-clair); color: var(--vert); border-color: var(--vert-trait); }
.avis.erreur { background: var(--rouge-clair); color: var(--rouge); border-color: var(--rouge-trait); }

/* 📞 Le clic pour appeler (02/12/2026) : sous les avis, ou dans la fiche de la
   personne. Le bouton passe dessous plutôt que de se couper. */
.appel-lien { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem;
  margin: .75rem 1.5rem 0; padding: .75rem 1rem; background: var(--vert-clair); color: var(--encre);
  border: 1px solid var(--vert-trait); border-radius: 12px; font-size: .88rem; }
.appel-lien-texte { flex: 1 1 14rem; min-width: 0; display: grid; gap: .15rem;
  overflow-wrap: anywhere; }
.appel-lien-texte strong { font-size: .95rem; }
.appel-lien .appel-lien-fermer { font-size: 1.1rem; line-height: 1; }
.suivi-fiche .appel-lien { margin: .6rem 1rem 1rem; }

@media (max-width: 1000px) {
  /* Le son tient sur la ligne de l'en-tête : les menus se serrent, leurs
     libellés restent pour les lecteurs d'écran (et dans l'infobulle). */
  .barre-poste select { max-width: 9.5rem; }
  .barre-poste label { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 1200px) {
  /* L'en-tête porte huit commandes : à l'étroit, elles se serrent avant de
     passer à la ligne, et la barre reste sur une seule hauteur plus longtemps. */
  header { gap: .5rem .7rem; padding: .5rem 1rem; }
  .barre-poste, .compteurs, .defilant table { font-size: .93rem; }
  #presente { max-width: 9.5rem; }
  .barre-poste .groupe-son select { max-width: 10.5rem; }
  /* 🔎 20rem, pas 14 (revue du 22/11/2026) : à 14rem, moins la loupe et le
     rappel ⌘K, l'invite n'avait que 139 px pour ses 209 — « Rechercher un
     no » de 601 à 1 200 px. Sous 1 280 px la recherche a sa propre rangée :
     la place y est. */
  .recherche-globale input { width: 20rem; max-width: 100%; }
  /* Les chiffres de la carte de l'administrateur passent SOUS la carte
     (25/10/2026) : peints de nouveau, ils s'entassaient à sa droite — 3 px
     pour quatre tuiles à 1 000 px (le menu et la fiche à côté), « Répondus »
     coupé sur un téléphone. */
  #ecran:not(.commercial) .tableau-de-bord { grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "carte" "chiffres" "barre"; }
  #ecran:not(.commercial) .carte-campagne { border-right: 0; padding-right: 0; }
}

@media (max-width: 900px) {
  main { flex-direction: column; }
  header { padding: .5rem .75rem; }
  .marque::after { display: none; }
  /* À l'étroit, une seule colonne partout : la saisie, le résumé, la carte. */
  #ecran.commercial.resume-a-cote .colonne-fiche,
  .fiche-saisie { grid-template-columns: minmax(0, 1fr); }
  #ecran.commercial main { padding: .9rem .75rem 1.5rem; }
  #ecran.commercial .tableau-de-bord { grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "carte" "barre" "chiffres"; }
  #ecran.commercial .barre-campagne { justify-content: flex-start; }
  #ecran.commercial.en-appel .tableau-de-bord { grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "carte barre" "chiffres chiffres"; }
  #ecran.commercial .fiche-nom { font-size: 1.7rem; }
  #ecran.commercial #fiche-personne, #ecran.commercial .fiche-vide { padding: 1.3rem 1.2rem; }
  .colonne-fiche { width: auto; flex: none; border-left: 0; border-top: 1px solid var(--trait); }
  /* Empilées : la fiche devant pendant l'appel, chez tout le monde. */
  #ecran.en-appel .colonne-fiche,
  #ecran.en-appel:not(.commercial) .colonne-fiche { order: -1; width: auto; flex-basis: auto; }
  .compteurs { gap: .6rem; }
  .tableau-de-bord, #ecran:not(.commercial) .defilant { margin-inline: .75rem; }
  .avis, .alerte, .ecoute-bandeau, #depot, #manuel, .appel-lien { margin-inline: .75rem; }
  #mes-appels { margin: .75rem; padding: 1rem; }
}

/* ── 🗂️ Les ONGLETS EN HAUT (v3, 26/10/2026) ───────────────────────────────
   La maquette choisie par Léo : une barre blanche de 56 px, la marque, les
   onglets soulignés de noir sous celui qui est ouvert. La colonne noire de
   gauche (croquis du 20/10, refonte « Maison » du 24/10) est partie. Le
   commercial n'a toujours pas d'onglets. */
@media (min-width: 1000px) {
  #ecran:not(.commercial) header { min-height: 3.5rem; }
  #ecran:not(.commercial) .barre-poste { white-space: nowrap; }
}
/* Une seule ligne dès qu'elle tient : sous 1 280 px, la recherche et la
   cloche passent dessous plutôt que de sortir de l'écran. */
@media (min-width: 1280px) {
  #ecran:not(.commercial) header { padding-block: 0; flex-wrap: nowrap; }
  #ecran:not(.commercial) header .pousse { flex-wrap: nowrap; flex: none; }
  /* La barre du poste ne se COMPRIME jamais (27/10/2026) : comprimée, ses
     boutons débordaient sous la recherche — « Tester mon son » à moitié
     caché à 1 440 px. C'est la recherche qui cède sa place. */
  #ecran:not(.commercial) .barre-poste { flex-wrap: nowrap; flex: none; }
  #ecran:not(.commercial) header .pousse { min-width: 0; flex: 0 1 auto; }
  #ecran:not(.commercial) .recherche-globale { min-width: 0; flex: 0 1 auto; }
  #ecran:not(.commercial) .recherche-globale input { flex: 0 1 20rem; width: 20rem; min-width: 10rem; max-width: none; }
  #ecran:not(.commercial) .onglets { align-self: stretch; gap: 1.25rem; margin-left: .5rem; flex: none; }
  #ecran:not(.commercial) .onglet { padding: 0 .1rem; border-radius: 0; font-size: .875rem; white-space: nowrap;
    color: var(--libelle); border-bottom: 2px solid transparent; }
  #ecran:not(.commercial) .onglet::before { display: none; }
  #ecran:not(.commercial) .onglet:hover:not(:disabled) { background: none; color: var(--encre); }
  #ecran:not(.commercial) .onglet.actif,
  #ecran:not(.commercial) .onglet.actif:hover:not(:disabled) { background: none; box-shadow: none;
    color: var(--encre); font-weight: 600; border-bottom-color: var(--encre); }
}
/* De 1 280 à 1 399 px, onglets + poste + recherche ne tiennent pas sur UNE
   ligne (mesuré le 27/10/2026 : la recherche tombait à 90 px, sous la
   cloche). La recherche, la cloche et le compte passent sur une seconde
   ligne, à droite, à leur taille. */
@media (min-width: 1280px) and (max-width: 1399px) {
  #ecran:not(.commercial) header { flex-wrap: wrap; padding-block: .4rem; row-gap: .4rem; }
  #ecran:not(.commercial) header .pousse { flex: 1 1 100%; justify-content: flex-end; }
  #ecran:not(.commercial) .recherche-globale input { flex-basis: 20rem; width: 20rem; }
}

/* 🔎 Sur la vue CAMPAGNE, la barre du poste s'ajoute aux sept onglets (« Find
   my leads » depuis le 20/11/2026) : de 1 400 à 1 679 px, la recherche tombait
   à 160 px et on lisait « Recherc » (revue du 22/11/2026). Elle passe sur la
   seconde ligne, comme de 1 280 à 1 399 px ; les autres vues tiennent sur une. */
@media (min-width: 1400px) and (max-width: 1679px) {
  #ecran:not(.commercial):not(.hors-campagne) header { flex-wrap: wrap; padding-block: .4rem; row-gap: .4rem; }
  #ecran:not(.commercial):not(.hors-campagne) header .pousse { flex: 1 1 100%; justify-content: flex-end; }
  #ecran:not(.commercial):not(.hors-campagne) .recherche-globale input { flex-basis: 20rem; width: 20rem; }
}

/* ── 🗂️ La fiche façon maquette de Pablo (07/10/2026) ─────────────────────────
   « Fiche contact · LuxCall » : la personne à gauche (« la partie gauche reste
   dédiée à la fiche »), le résumé IA en haut à droite, le statut et le
   rendez-vous dessous, chacun sa carte. Chez un COMMERCIAL en ligne, dès que
   deux colonnes tiennent (901 px) : en dessous, et chez un administrateur, la
   fiche reste la colonne d'avant (`.fiche-carte` s'y efface). Aucun
   identifiant ne change : seule la disposition.
   🚨 901 px, plus 1100 (12/10/2026) : de 901 à 1099 px — LuxCall à côté de
   DiffFetch sur un écran de 1920, chacun sa moitié —, l'ancienne colonne
   posait la grille des statuts SOUS les informations de la liste, hors de
   l'écran : après chaque appel, il fallait défiler pour la trouver. */
.fiche-carte { display: contents; }
.fiche-rdv-titre { display: none; }
.fiche-rdv-note { font-size: .84rem; color: var(--libelle); }

/* 📞 Le bouton « Rappeler » : « appuyer sur le téléphone pour rappeler ». Le
   bouton principal de la maison — NOIR, texte ivoire (15:1) —, et le combiné
   en doré vif (8:1 sur le noir) ; le liseré doré au survol. */
/* 🎨 v3 : le bouton d'appel est l'ACCENT vert de la maquette, texte blanc. */
.bouton-telephone { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto;
  padding: .4rem .85rem .4rem .7rem; border-radius: var(--rayon); font-weight: 600; font-size: .9rem;
  color: #fff; background: var(--vert); border: 1px solid var(--vert); }
.bouton-telephone:hover:not(:disabled) { background: var(--vert-fonce); border-color: var(--vert-fonce); }
.bouton-telephone::before { content: ""; flex: none; width: 1rem; height: 1rem; background: no-repeat
  center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }

@media (min-width: 901px) {
  #ecran.commercial.en-appel .colonne-liste,
  #ecran.commercial.en-appel .colonne-fiche { width: min(84rem, 100%); }
  /* La fiche cède de la place sous 1 200 px (12/10/2026) : à 26rem fixes, le
     rendez-vous posé à côté du statut ne laissait qu'une tuile par rangée à
     960 px — « RA » choisi, la moitié de la grille sortait de l'écran. */
  #ecran.commercial.en-appel .colonne-fiche { display: grid;
    grid-template-columns: minmax(20rem, min(26rem, 36%)) minmax(0, 1fr);
    grid-template-areas: "carte resume" "carte saisie"; align-items: start;
    gap: 1.25rem; }
  /* Sans résumé à montrer (pendant l'appel, ou celui d'un autre appel), pas
     de rangée vide au-dessus du statut. */
  #ecran.commercial.en-appel .colonne-fiche:not(:has(> .resume-appel:not(.cache):not(.autre))) {
    grid-template-areas: "carte saisie"; }
  /* La fiche s'efface : ses deux blocs deviennent des cases de la grille. */
  #ecran.commercial.en-appel #fiche-personne { display: contents; }
  #ecran.commercial.en-appel .fiche-carte { grid-area: carte; display: flex;
    flex-direction: column; gap: 1.1rem; min-width: 0; padding: 1.5rem 1.5rem 1.35rem;
    background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-carte);
    box-shadow: var(--ombre); }
  #ecran.commercial.en-appel #fiche-personne.raccroche .fiche-carte {
    animation: raccroche .9s ease-out 2; }
  #ecran.commercial.en-appel .fiche-nom { font-size: 1.6rem; }
  #ecran.commercial.en-appel .fiche-avatar { width: 3.25rem; height: 3.25rem; font-size: 1.1rem; }
  /* Le nom prend la ligne ; la durée passe dessous, sous l'avatar. */
  #ecran.commercial.en-appel .fiche-identite { flex-basis: calc(100% - 4.25rem); }
  #ecran.commercial.en-appel .fiche-duree { margin-left: 4.25rem; }
  #ecran.commercial.en-appel .resume-appel { grid-area: resume; }
  /* À droite : le statut, le rendez-vous à côté quand il y en a un, et le
     commentaire en bas — « mettre plus bas la partie commentaire ». */
  #ecran.commercial.en-appel .fiche-saisie { grid-area: saisie;
    grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-rdv:not(.cache)) {
    grid-template-columns: minmax(0, 3fr) minmax(15rem, 2fr); }
  #ecran.commercial.en-appel .fiche-commentaire { grid-column: 1 / -1; }
  /* ✅ « RA » / « R1 » : « Valider » SOUS le rendez-vous, dans sa colonne —
     juste sous le jour et l'heure qu'on vient de poser, dans la place que la
     grille, plus haute, laisse vide. Posé sous la grille, il sortait de
     l'écran à 960 × 900 (12/10/2026). La rangée `1fr` prend ce que la grille
     dépasse : « Valider » reste collé au rendez-vous (`align-self`). */
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-rdv:not(.cache)) {
    grid-template-areas: "statut rdv" "statut valider" "commentaire commentaire";
    grid-template-rows: auto 1fr auto; }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-rdv:not(.cache)) > .fiche-statut {
    grid-area: statut; }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-rdv:not(.cache)) > .fiche-rdv {
    grid-area: rdv; }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-rdv:not(.cache)) > .fiche-valider {
    grid-area: valider; align-self: start; }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-rdv:not(.cache)) > .fiche-commentaire {
    grid-area: commentaire; }
  #ecran.commercial.en-appel .fiche-statut,
  #ecran.commercial.en-appel .fiche-rdv,
  #ecran.commercial.en-appel .fiche-commentaire,
  #ecran.commercial.en-appel .fiche-valider { padding: 1.3rem 1.5rem; margin: 0;
    background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-carte);
    box-shadow: var(--ombre); }
  /* ✅ La carte du statut et celle de « Valider » n'en font qu'une : le haut
     de l'une, le bas de l'autre, coupées d'un filet. Le rendez-vous, à côté,
     garde sa carte, et « Valider » se pose sous lui. */
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-statut:not(.cache)):has(> .fiche-valider:not(.cache)):not(:has(> .fiche-rdv:not(.cache))) > .fiche-statut {
    border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-statut:not(.cache)):has(> .fiche-valider:not(.cache)):not(:has(> .fiche-rdv:not(.cache))) > .fiche-valider {
    margin-top: -1.25rem; border-top-color: var(--trait-doux); border-top-left-radius: 0;
    border-top-right-radius: 0; flex-direction: row; justify-content: flex-end; }
  /* ⌨️ Le clavier se dit à côté du bouton (croquis du 20/10/2026). */
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-statut.en-grille):has(> .fiche-valider:not(.cache)):not(:has(> .fiche-rdv:not(.cache))) > .fiche-valider::before {
    content: "Touches 1 à 7 pour choisir, Entrée pour valider."; margin-right: auto;
    align-self: center; font-size: .84rem; color: var(--libelle); }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-statut:not(.cache)):has(> .fiche-valider:not(.cache)):not(:has(> .fiche-rdv:not(.cache))) > .fiche-valider button {
    width: auto; min-width: min(26rem, 100%); }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-rdv:not(.cache)) > .fiche-valider {
    margin-top: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  #ecran.commercial.en-appel .fiche-rdv { gap: .75rem; background: var(--jaune-clair); border-color: var(--jaune-trait); }
  #ecran.commercial.en-appel .fiche-rdv-titre { display: flex; align-items: center; gap: .5rem;
    font: 600 1.2rem/1.25 var(--police-titres); color: var(--encre); }
  #ecran.commercial.en-appel .fiche-rdv-titre::before { content: ""; width: 1.05rem; height: 1.05rem;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394711a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
  #ecran.commercial.en-appel .fiche-commentaire label { font: 600 1.2rem/1.25 var(--police-titres);
    color: var(--encre); }
  @media (prefers-reduced-motion: reduce) {
    #ecran.commercial.en-appel #fiche-personne.raccroche .fiche-carte { animation: none; }
  }
}
@media (min-width: 901px) {
  #ecran.commercial.en-appel .fiche-saisie > #fiche-details { padding: 1.3rem 1.5rem;
    background: var(--fond); border: 1px solid var(--trait);
    border-radius: var(--rayon-carte); box-shadow: var(--ombre); }
  #ecran.commercial.en-appel .fiche-saisie > #fiche-details .fiche-titre { font-size: 1rem;
    font-weight: 600; color: var(--encre); text-transform: none; letter-spacing: 0; }
}
/* Sur une moitié d'écran (12/10/2026 : LuxCall à côté de DiffFetch), les
   cartes se resserrent : toutes les tuiles ET « Valider » tiennent dans une
   fenêtre de 960 × 900, sans défiler. */
@media (min-width: 901px) and (max-width: 1200px) {
  #ecran.commercial main { padding-top: 1rem; }
  #ecran.commercial.en-appel .colonne-fiche,
  #ecran.commercial.en-appel .fiche-saisie { gap: 1rem; }
  #ecran.commercial.en-appel .fiche-statut,
  #ecran.commercial.en-appel .fiche-rdv,
  #ecran.commercial.en-appel .fiche-commentaire,
  #ecran.commercial.en-appel .fiche-valider { padding: 1rem 1.15rem; }
  #ecran.commercial .resume-appel { padding: 1rem 1.15rem; }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-statut:not(.cache)):has(> .fiche-valider:not(.cache)):not(:has(> .fiche-rdv:not(.cache))) > .fiche-valider {
    margin-top: -1rem; padding-block: .75rem; }
  .fiche-valider button { min-height: 2.85rem; padding-block: .6rem; }
  /* Le titre de la carte s'en va aussi : l'aide au-dessus des tuiles
     (« Choisissez le statut… ») dit déjà ce qu'on y fait. */
  #fiche-statut.en-grille::before { content: none; }
  /* ⌨️ Pas la place pour l'aide du clavier : à côté d'elle, « Valider » passait
     sur deux lignes et sortait de la fenêtre à 960 × 900. Le bouton prend la
     largeur, les tuiles un peu moins de hauteur. */
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-statut.en-grille):has(> .fiche-valider:not(.cache)):not(:has(> .fiche-rdv:not(.cache))) > .fiche-valider::before {
    content: none; }
  #ecran.commercial.en-appel .fiche-saisie:has(> .fiche-statut:not(.cache)):has(> .fiche-valider:not(.cache)):not(:has(> .fiche-rdv:not(.cache))) > .fiche-valider button {
    width: 100%; min-width: 0; }
  #ecran.commercial.en-appel .tuile-statut { min-height: 2.75rem; }
}


/* ── 🗂️ Le SUIVI CLIENT, v2 (Léo, 24/10/2026 : la v1 « trop simple, peu
   aguicheuse ») ───────────────────────────────────────────────────────────────
   Un en-tête (titre, Pipeline | Agenda), six compteurs qui filtrent, la
   recherche et sa question à l'IA, puis le pipeline en colonnes OU l'agenda
   de la semaine ; la fiche d'une personne glisse à droite. Les cartes sont
   celles de l'écran : blanches, filet chaud, ombre douce — et elles montent
   d'un cran au survol, parce qu'on les CLIQUE.
   🎨 Une couleur dit « agis » (le doré d'action `--vert` : « À rappeler
   aujourd'hui », le jour même) ou porte un STATUT (la teinte de sa tuile,
   `[data-teinte]` plus haut) ; le rouge, le retard. Jamais de décoration.
   ⚠️ Aucune requête de conteneur SUR la section ni sur un parent du tiroir :
   `container-type` en fait le bloc conteneur des `position: fixed`, et la
   fiche se collerait à la section au lieu de l'écran. */
.icone-masque, .suivi-bascule-choix::before, .lead-action::before, .lead-rappeler::before,
.suivi-ia-bouton::before {
  content: ""; flex: none; width: 1rem; height: 1rem; background: currentColor;
  -webkit-mask: var(--icone) no-repeat center / contain; mask: var(--icone) no-repeat center / contain; }

/* L'en-tête (v3, 26/10/2026) : un titre sobre en sans-serif, la bascule
   Liste | Agenda | Chiffres à droite. Le serif reste pour la marque. */
/* 🎨 v3 (26/10/2026, la maquette) : UNE ligne — le titre à gauche ; à droite
   la bascule Liste | Agenda | Chiffres, « Ma page de réservation », puis
   « Ajouter un lead », le bouton noir. L'ordre visuel seulement : le DOM ne
   bouge pas (leads-entrants.js et reservation.js y posent leurs boutons). */
.suivi-entete { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.suivi-titres { flex: 1 1 12rem; min-width: 0; }
/* 🔔 La phrase des notifications, ENTIÈRE, et son bouton juste après elle
   (revue du 22/11/2026) : étirée sur toute la ligne, elle repoussait
   « Activer les notifications » au milieu de l'en-tête, et la fiche ouverte
   la coupait en « Vos rappels 15 min a… ». Trop longue, elle passe à la
   ligne. */
.push-reglage .push-etat { flex: 1 1 12rem; max-width: max-content; min-width: 0; }
/* Fiche amarrée : la colonne de la liste rétrécit, l'en-tête reste sur une
   ligne — la bascule perd ses icônes. */
#suivi-client.fiche-amarree .suivi-bascule-choix::before { display: none; }
#suivi-client.fiche-amarree .suivi-bascule-choix { padding-inline: .7rem; }
.suivi-entete .suivi-bascule { order: 1; }
.suivi-entete .reservation-zone { order: 2; margin-left: 0; }
.suivi-entete .leads-suivi-actions { order: 3; margin-left: 0; }
.suivi-titres h2 { margin: 0; font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.suivi-sous-titre { margin: .2rem 0 0; color: var(--libelle); font-size: .84rem; }
.suivi-sous-titre:empty { display: none; }
.suivi-bascule { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--fond-gris); }
.suivi-bascule-choix { display: inline-flex; align-items: center; gap: .4rem; border: 0;
  background: none; box-shadow: none; padding: .38rem .85rem; border-radius: 8px;
  color: var(--encre-douce); font-weight: 500; font-size: .9rem;
  transition: background var(--duree) ease, color var(--duree) ease, box-shadow var(--duree) ease; }
.suivi-bascule-choix::before { width: .9rem; height: .9rem; }
.suivi-bascule-choix:hover:not(:disabled) { background: rgba(255, 255, 255, .6); color: var(--encre); }
.suivi-bascule-choix[aria-pressed="true"],
.suivi-bascule-choix[aria-pressed="true"]:hover:not(:disabled) { background: var(--fond); color: var(--encre);
  font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.suivi-bascule-choix[data-suivi-vue="pipeline"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.suivi-bascule-choix[data-suivi-vue="agenda"] { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }

/* Les compteurs, en PASTILLES (26/10/2026) : une rangée qui filtre la liste.
   Le détail (« dont 2 en retard ») passe dans l'infobulle, et reste LU par un
   lecteur d'écran (caché à la vue seulement, comme `.pour-lecteur`). */
.suivi-compteurs-cadre { margin-bottom: .85rem; }
.suivi-compteurs { display: flex; flex-wrap: wrap; gap: .4rem; }
/* 🇧🇪 « Leads belges » tout à droite (03/12/2026). */
.suivi-compteur[data-etape="belges"] { margin-left: auto; }
.suivi-compteur { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.1rem;
  padding: .25rem .8rem; border-radius: 999px; background: var(--fond); border: 1px solid var(--trait-fort);
  box-shadow: none; font-size: .88rem; font-weight: 500; color: var(--encre-douce);
  transition: background var(--duree) ease, border-color var(--duree) ease, color var(--duree) ease; }
.suivi-compteur:hover:not(:disabled) { background: var(--fond-doux); border-color: var(--bordure-bouton); color: var(--encre); }
.suivi-compteur-libelle { white-space: nowrap; }
.suivi-compteur-nombre { font: 500 .82rem/1 var(--police-chiffres); color: var(--libelle); }
.suivi-compteur-detail { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
/* « Agis » : un point doré devant, et le nombre en encre. */
.suivi-compteur.agir { color: var(--encre); font-weight: 600; }
.suivi-compteur.agir::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--vert-vif); }
.suivi-compteur.agir .suivi-compteur-nombre { color: var(--encre); font-weight: 600; }
/* Filtre posé : la pastille en noir, comme un onglet choisi. */
.suivi-compteur[aria-pressed="true"], .suivi-compteur[aria-pressed="true"]:hover:not(:disabled) {
  background: var(--encre); border-color: var(--encre); color: var(--fond); }
.suivi-compteur[aria-pressed="true"] .suivi-compteur-nombre { color: var(--sombre-doux); }
.suivi-compteur[aria-pressed="true"]::after { content: "×"; margin-left: .1rem; font-size: 1rem; line-height: 1; }

/* La recherche, et la question à l'IA. */
.suivi-recherche { display: flex; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.suivi-filtres.replie { display: none; }
.suivi-filtres-bouton { flex: none; min-height: 2.5rem; font-weight: 500; }
.suivi-filtres-bouton.actif { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); font-weight: 600; }
.suivi-filtres-bouton[aria-expanded="true"] { background: var(--fond-gris); }
#suivi-client-recherche { flex: 1 1 auto; min-width: 0; max-width: none; min-height: 2.5rem;
  padding-left: 2.35rem; border-color: var(--bordure-champ);
  background: var(--fond-doux) no-repeat left .75rem center / 1rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
#suivi-client-recherche:focus { background-color: var(--fond); }
/* ♿ Le bord du bouton, le doré des données (3,7:1), plus le champagne
   (1,45:1) : 25/10/2026. */
.suivi-ia-bouton { display: inline-flex; align-items: center; gap: .45rem; flex: none; min-height: 2.5rem;
  color: var(--vert); font-weight: 600; border-color: var(--vert-anneau); background: var(--fond);
  --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9zM19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }
.suivi-ia-bouton:hover:not(:disabled) { background: var(--vert-clair); border-color: var(--vert); }
.suivi-ia { margin: -.35rem 0 1rem; padding: 1rem 1.15rem 1.15rem; background: var(--fond);
  border: 1px solid var(--vert-trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre);
  animation: monte .2s var(--courbe); }
@keyframes monte { from { opacity: 0; transform: translateY(-.35rem); } }
.suivi-ia[aria-busy="true"] .suivi-ia-tete strong { color: var(--libelle); }
.suivi-ia-tete { display: flex; align-items: baseline; gap: .4rem .8rem; flex-wrap: wrap; }
.suivi-ia-tete strong { font-size: .95rem; font-weight: 600; }
.suivi-ia-note { font-size: .8rem; color: var(--libelle); }
.suivi-ia-note:empty { display: none; }
/* 🗂️ « Créer la liste d'appel » sous la réponse (20/11/2026). */
.suivi-ia-pied { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem;
  margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--trait); }
.suivi-ia-retour { font-size: .86rem; color: var(--encre-douce); }
.suivi-ia-retour.rouge { color: var(--rouge); font-weight: 500; }
.suivi-ia-liste { list-style: none; margin: .65rem 0 0; padding: 0; display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); }
.suivi-ia-liste:empty { display: none; }
.suivi-ia-personne { width: 100%; height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: .15rem .7rem; padding: .6rem .75rem; text-align: left; border-radius: 12px;
  border-color: var(--trait); box-shadow: none; }
.suivi-ia-qui { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.suivi-ia-nom { font-weight: 600; }
.suivi-ia-pourquoi { grid-column: 2; font-size: .84rem; font-weight: 400; color: var(--encre-douce);
  overflow-wrap: anywhere; }
.suivi-ia-pourquoi:empty { display: none; }

#suivi-client-retour { margin: -.35rem 0 .85rem; }
#suivi-client-retour:empty { display: none; }
#suivi-client.recharge .suivi-pipeline, #suivi-client.recharge .suivi-agenda { opacity: .55;
  transition: opacity .15s ease; }

/* ── La LISTE (v3, 26/10/2026) : un tableau net, groupé par étape. Des filets
   fins, pas de cartes : on lit vingt leads d'un coup d'œil. La ligne de la
   fiche ouverte se teinte ; « Appeler » ne prend la couleur qu'au survol. */
.suivi-pipeline { container-type: inline-size; }
.suivi-liste, .suivi-ranges { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-carte);
  overflow: hidden; }
.suivi-liste:empty, .suivi-ranges:empty { display: none; }
.suivi-ranges { margin-top: .85rem; }
.suivi-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.suivi-table th, .suivi-table td { padding: 0 .75rem; text-align: left; vertical-align: middle; }
.suivi-table thead th { height: 2.4rem; font-size: .78rem; font-weight: 500; color: var(--libelle);
  border-bottom: 1px solid var(--trait); white-space: nowrap; background: var(--fond-doux); }
.suivi-table td { height: 3.4rem; border-bottom: 1px solid var(--trait-doux); }
.suivi-table th:first-child, .suivi-table td:first-child { padding-left: 1.1rem; }
.suivi-table th:last-child, .suivi-table td:last-child { padding-right: 1rem; text-align: right; }
/* La tête d'un groupe : son titre et combien. */
.suivi-table .suivi-groupe-tete th { height: 2.6rem; padding-top: .5rem; text-align: left; background: var(--fond);
  border-bottom: 1px solid var(--trait-doux); }
.suivi-groupe-tete th > * { vertical-align: middle; }
.suivi-groupe + .suivi-groupe .suivi-groupe-tete th { border-top: 1px solid var(--trait); }
.suivi-etape-titre { margin: 0; font-size: .86rem; font-weight: 600; color: var(--encre); }
.suivi-etape-compte { display: inline-block; margin-left: .45rem; min-width: 1.4rem; padding: 0 .4rem;
  border-radius: 999px; text-align: center; font: 500 .74rem/1.5 var(--police-chiffres);
  color: var(--encre-douce); background: var(--fond-gris); }
.suivi-groupe[data-etape="nouveaux"] .suivi-etape-titre,
.suivi-groupe[data-etape="a_rappeler"] .suivi-etape-titre { color: var(--vert); }
.suivi-groupe[data-etape="nouveaux"] .suivi-etape-compte,
.suivi-groupe[data-etape="a_rappeler"] .suivi-etape-compte { color: var(--encre); background: var(--vert-clair);
  box-shadow: inset 0 0 0 1px var(--vert-trait); }
.suivi-filtre-retirer { margin-left: .75rem; font-size: .82rem; font-weight: 500; }
.suivi-table .suivi-groupe-vide td, .suivi-table .suivi-groupe-plus td { text-align: left; }
.suivi-groupe-vide td { height: 2.8rem; font-size: .86rem; color: var(--libelle); }
.suivi-groupe-plus td { height: 2.6rem; }
.suivi-voir-plus { padding: .25rem .7rem; font-size: .82rem; font-weight: 500; color: var(--encre-douce);
  background: none; border: 1px solid var(--trait-fort); box-shadow: none; border-radius: 8px; }
.suivi-voir-plus:hover:not(:disabled) { color: var(--encre); background: var(--fond-doux); }

/* Une ligne. Toute la ligne s'ouvre au clic ; le nom est le bouton du clavier. */
tr.lead { cursor: pointer; transition: background var(--duree) ease; }
tr.lead:hover { background: var(--fond-doux); }
tr.lead.choisi { background: var(--vert-clair); box-shadow: inset 3px 0 0 var(--vert-vif); }
tr.lead:has(.lead-ouvrir:focus-visible) { outline: 2px solid var(--vert); outline-offset: -2px; }
.lead-tete { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.lead-initiales { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--fond-gris); color: var(--encre-douce);
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.lead-initiales.grand { width: 2.8rem; height: 2.8rem; font-size: .95rem; background: var(--vert-clair);
  color: var(--vert-fonce); box-shadow: inset 0 0 0 1px var(--vert-trait); }
.lead-qui { display: flex; flex-direction: column; min-width: 0; }
.lead-ouvrir { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0;
  font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--encre); text-align: left;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-ouvrir:hover:not(:disabled), .lead-ouvrir:active:not(:disabled) { background: none; }
/* Le repère du clavier sur le NOM : Safari ne dessine pas le contour d'un
   `tr`, celui de la ligne ne suffit pas. */
.lead-ouvrir:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; border-radius: 3px; }
.lead-numero { font-family: var(--police-chiffres); font-size: .76rem; color: var(--libelle); white-space: nowrap; }
/* 🚨 Le nom garde sa place (10 rem au moins) : la fiche amarrée, entre
   1 280 et 1 400 px, laissait à la liste 560 à 680 px — les cellules qui ne
   passaient jamais à la ligne prenaient tout, et le nom tombait à 0 px. La
   prochaine action passe à la ligne, l'étape et les appels non. */
.l-nom { width: 26%; min-width: 12.5rem; max-width: 0; }
.l-etape, .l-appels { white-space: nowrap; }
.l-action { min-width: 8rem; }
.lead-statut { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.lead-etape { font-size: .82rem; color: var(--libelle); }
.statut-pastille { display: inline-flex; align-items: center; gap: .38rem; max-width: 100%;
  padding: .1rem .55rem .1rem .45rem; border-radius: 7px; font-size: .78rem; font-weight: 500;
  line-height: 1.5; white-space: nowrap; color: var(--encre);
  background: var(--t-doux, var(--fond-gris)); border: 0; }
.statut-pastille::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--t-point, var(--gris)); }
.lead-action { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .86rem;
  font-weight: 500; color: var(--encre-douce); line-height: 1.35;
  --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.lead-action::before { width: .85rem; height: .85rem; }
.lead-action.aujourdhui { color: var(--vert); font-weight: 600; }
.lead-action.retard { color: var(--rouge); font-weight: 600; }
.lead-action.neutre { color: var(--libelle); font-weight: 400; }
.lead-action.neutre::before { display: none; }
.l-profil .lead-profil { margin: 0; font-size: .84rem; color: var(--encre-douce); max-width: 16rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-meta { display: flex; flex-direction: column; font-size: .78rem; line-height: 1.35; color: var(--libelle); }
.lead-rappeler { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem .3rem .6rem;
  font-size: .82rem; font-weight: 600; border-radius: 8px; color: var(--encre); background: var(--fond);
  border: 1px solid var(--trait-fort); box-shadow: none;
  --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.lead-rappeler::before { width: .85rem; height: .85rem; }
.lead-rappeler:hover:not(:disabled), tr.lead.choisi .lead-rappeler { color: #fff; background: var(--succes);
  border-color: var(--succes); }
/* Moins de place : le profil, puis les appels, s'effacent ; sur un
   téléphone, chaque ligne devient une petite carte. */
@container (max-width: 980px) { .suivi-table .l-profil { display: none; } }
/* 🖥️ Grand écran (1 920 px) : la liste avait 300 px de vide entre chaque
   colonne, et le profil restait coupé à 16rem (« Étudiant · Auvergne-Rhône-
   Alpes · 130… », 24/11/2026). Il prend la place qu'il y a. */
@container (min-width: 1300px) { .suivi-table .l-profil .lead-profil { max-width: 30rem; } }
/* La colonne « Appels » part sous 860 px (760 jusqu'au 24/11/2026) : de 760 à
   860, « En retard de 4 j · rappel du 20/11 » s'écrivait sur TROIS lignes. */
@container (max-width: 860px) { .suivi-table .l-appels { display: none; } }
/* Étroite (la fiche amarrée sur un portable) : « Rappeler » ne garde que son
   combiné — son étiquette dit toujours qui l'on rappelle. */
@container (max-width: 660px) {
  .suivi-table .lead-rappeler-texte { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  .suivi-table .lead-rappeler { padding: .35rem .5rem; }
}
@container (max-width: 560px) {
  .suivi-table thead { display: none; }
  .suivi-table, .suivi-table tbody, .suivi-table tr, .suivi-table td, .suivi-table th { display: block; }
  .suivi-table tr.lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .6rem;
    padding: .7rem .9rem; border-bottom: 1px solid var(--trait-doux); }
  .suivi-table tr.lead td { height: auto; padding: 0; border: 0; text-align: left; }
  .suivi-table .l-nom { grid-column: 1; max-width: none; width: auto; }
  .suivi-table .l-bouton { grid-column: 2; grid-row: 1; align-self: center; }
  .suivi-table .l-etape, .suivi-table .l-action { grid-column: 1 / -1; padding-left: 2.7rem !important; }
  .suivi-table .l-profil, .suivi-table .l-appels { display: none; }
  .suivi-groupe-tete th, .suivi-groupe-vide td, .suivi-groupe-plus td { padding: .55rem .9rem; height: auto; }
}

/* « Rangés » : repliés sous la liste. */
.suivi-repli { min-width: 0; }
.suivi-repli-tete { display: flex; align-items: center; gap: .55rem; padding: .8rem 1.1rem;
  cursor: pointer; list-style: none; min-width: 0; }
.suivi-repli-tete::-webkit-details-marker { display: none; }
.suivi-repli-tete::before { content: ""; flex: none; width: .9rem; height: .9rem; background: var(--libelle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .15s ease; }
.suivi-repli[open] > .suivi-repli-tete::before { transform: rotate(90deg); }
.suivi-repli-tete:hover { background: var(--fond-doux); }
.suivi-repli-tete:focus-visible { outline: 2px solid var(--vert); outline-offset: -2px; }
.suivi-repli-tete .suivi-etape-compte { margin-left: 0; }
.suivi-repli-noms { flex: 1 1 auto; min-width: 0; font-size: .82rem; color: var(--libelle);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suivi-repli[open] > .suivi-repli-tete { border-bottom: 1px solid var(--trait); }

/* ── L'AGENDA d'une journée (v3, 26/10/2026) : la semaine en bande pour
   choisir le jour, puis la journée heure par heure, chaque rendez-vous à sa
   place, l'heure qu'il est en rouge. */
.suivi-agenda { container-type: inline-size; }
.agenda-barre { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.agenda-nav { display: inline-flex; gap: .3rem; }
.agenda-fleche { width: 2.2rem; padding: .3rem 0; font-size: 1.1rem; line-height: 1.2; }
#agenda-aujourdhui:disabled { opacity: .55; }
.agenda-semaine-titre { display: inline-flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  font-size: 1.15rem; font-weight: 600; }
.agenda-quand { font-size: .8rem; font-weight: 500; color: var(--libelle); }
.agenda-legende { margin-left: auto; display: inline-flex; gap: .9rem; font-size: .8rem; color: var(--encre-douce); }
.agenda-cle { display: inline-flex; align-items: center; gap: .4rem; }
.agenda-cle::before { content: ""; width: .7rem; height: .7rem; border-radius: 3px;
  background: var(--t-doux); border: 1px solid var(--t-point); border-left-width: 3px; }
/* La semaine : sept boutons, le jour choisi en noir, aujourd'hui souligné d'or. */
.agenda-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; margin-bottom: .8rem; }
.agenda-semaine-jour { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  align-items: baseline; gap: 0 .4rem; padding: .45rem .65rem; text-align: left; border-radius: 10px;
  background: var(--fond); border: 1px solid var(--trait); box-shadow: none; font-weight: 400; }
.agenda-semaine-jour:hover:not(:disabled) { background: var(--fond-doux); border-color: var(--trait-fort); }
.agenda-semaine-nom { grid-column: 1; font-size: .74rem; color: var(--libelle); }
.agenda-semaine-date { grid-column: 1; font-size: 1.1rem; font-weight: 600; color: var(--encre); line-height: 1.2; }
.agenda-semaine-compte { grid-column: 2; grid-row: 1 / 3; justify-self: end; align-self: center;
  min-width: 1.35rem; padding: 0 .35rem; border-radius: 999px; text-align: center;
  font: 600 .74rem/1.45 var(--police-chiffres); color: var(--encre); background: var(--vert-clair); }
.agenda-semaine-compte:empty { display: none; }
.agenda-semaine-jour.passe .agenda-semaine-date { color: var(--libelle); }
.agenda-semaine-jour.aujourdhui { box-shadow: inset 0 -2px 0 var(--vert-vif); }
.agenda-semaine-jour[aria-pressed="true"], .agenda-semaine-jour[aria-pressed="true"]:hover:not(:disabled) {
  background: var(--encre); border-color: var(--encre); }
.agenda-semaine-jour[aria-pressed="true"] .agenda-semaine-nom,
.agenda-semaine-jour[aria-pressed="true"] .agenda-semaine-date { color: var(--fond); }
/* Le retard, au-dessus. */
.agenda-urgent { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .8rem; }
.agenda-urgent-groupe { flex: 1 1 18rem; min-width: 0; padding: .7rem .85rem .8rem; background: var(--rouge-clair);
  border: 1px solid var(--rouge-trait); border-radius: 12px; }
.agenda-urgent-titre { margin: 0 0 .5rem; font-size: .84rem; font-weight: 600; color: var(--rouge); }
.agenda-urgent-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.agenda-urgent-liste > li { flex: 0 1 13rem; min-width: 0; }
/* 📥 Les nouveaux à caser. */
.agenda-a-caser { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.agenda-a-caser-titre { font-size: .84rem; color: var(--libelle); margin-right: .15rem; }
.agenda-a-caser-nom { padding: .3rem .7rem; font-size: .84rem; font-weight: 500; border-radius: 8px;
  background: var(--fond); border: 1px dashed var(--bordure-bouton); box-shadow: none; }
.agenda-a-caser-nom:hover:not(:disabled) { border-style: solid; background: var(--fond-doux); }
/* La journée : les heures à gauche, la piste à droite. */
.agenda-journee { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon-carte);
  padding: .9rem .9rem 1.1rem 0; }
.agenda-sans-heure { display: flex; align-items: flex-start; gap: .75rem; padding: 0 0 .8rem 1rem;
  margin-bottom: .9rem; border-bottom: 1px solid var(--trait-doux); }
.agenda-sans-heure-titre { flex: none; width: 3.4rem; padding-top: .35rem; font-size: .74rem; color: var(--libelle); }
.agenda-sans-heure-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; }
.agenda-sans-heure-liste > li { flex: 0 1 14rem; min-width: 0; }
.agenda-heures { position: relative; margin-top: .5rem; }
.agenda-heure-ligne { position: absolute; left: 4.4rem; right: 0; height: 1px; background: var(--trait-doux); }
.agenda-heure-libelle { position: absolute; left: -4.4rem; top: -.55rem; width: 3.6rem; text-align: right;
  font: 500 .72rem/1 var(--police-chiffres); color: var(--libelle); }
.agenda-piste { list-style: none; margin: 0; padding: 0; position: absolute; top: 0; bottom: 0; left: 4.9rem; right: 0; }
.agenda-place { position: absolute; padding: 2px 3px 0 0; box-sizing: border-box; }
.agenda-place > .agenda-puce { height: 100%; }
.agenda-maintenant { position: absolute; left: 4.1rem; right: 0; height: 2px; background: var(--rouge-vif); z-index: 1;
  pointer-events: none; }
.agenda-maintenant::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--rouge-vif); }
.agenda-jour-vide { position: absolute; left: 4.9rem; right: 0; top: 40%; margin: 0; text-align: center;
  font-size: .9rem; color: var(--libelle); }
/* Un rendez-vous : sa teinte en filet, l'heure, le nom, le statut. */
.agenda-puce { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: .05rem;
  padding: .3rem .55rem; text-align: left; border-radius: 8px; box-shadow: none; overflow: hidden;
  font-size: .8rem; font-weight: 400; line-height: 1.3; color: var(--encre);
  background: var(--t-doux, var(--fond-gris)); border: 0; border-left: 3px solid var(--t-point, var(--gris));
  transition: background var(--duree) ease, box-shadow var(--duree) ease; }
.agenda-puce:hover:not(:disabled) { box-shadow: var(--ombre-survol);
  background: color-mix(in srgb, var(--t-point, var(--gris)) 14%, var(--fond)); }
.agenda-puce-haut { display: flex; align-items: baseline; gap: .45rem; min-width: 0; }
.agenda-heure { flex: none; font: 500 .74rem/1.3 var(--police-chiffres); color: var(--encre-douce); }
.agenda-puce-jour { font-size: .72rem; color: var(--encre-douce); white-space: nowrap; margin-left: auto; }
.agenda-puce.retard .agenda-puce-jour { color: var(--rouge); font-weight: 600; }
.agenda-nom { font-weight: 600; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-type { font-size: .74rem; color: var(--encre-douce); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Dans la journée, un rendez-vous d'une demi-heure tient sur UNE ligne :
   l'heure, le nom, puis le statut. */
.agenda-place .agenda-puce { flex-direction: row; align-items: center; gap: .55rem; padding: 0 .6rem; }
.agenda-place .agenda-puce-haut { flex: none; }
.agenda-place .agenda-nom { flex: 0 1 auto; min-width: 0; }
.agenda-place .agenda-type { flex: 0 1 auto; min-width: 0; }
/* 📅 L'agenda GOOGLE (24/10/2026) : gris, filet pointillé, « Google » écrit
   dessus, jamais cliquable — ce ne sont pas des leads. */
.agenda-puce[data-source="google"], .agenda-cle[data-source="google"]::before {
  border-style: dashed; border-left-style: solid; }
.agenda-puce[data-source="google"] { cursor: default; border: 1px dashed var(--trait-fort);
  border-left: 3px solid var(--t-point); }
.agenda-puce[data-source="google"]:hover { background: var(--t-doux); box-shadow: none; }
.agenda-google { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .25rem .6rem; }
.agenda-google-ok { font-size: .8rem; font-weight: 600; color: var(--succes); }
/* Éteint, il se LIT quand même : il dit pourquoi il n'y a rien à connecter. */
.agenda-google button:disabled { opacity: 1; color: var(--libelle); }
@container (max-width: 640px) {
  .agenda-semaine { gap: .2rem; }
  .agenda-semaine-jour { grid-template-columns: 1fr; padding: .35rem .3rem; text-align: center; }
  .agenda-semaine-compte { grid-column: 1; grid-row: auto; justify-self: center; }
  .agenda-legende { margin-left: 0; }
}

/* ── La fiche : un tiroir à droite, plein écran sous 900 px — ou, dans le
   Suivi client sur un écran large, AMARRÉE à côté de la liste (26/10/2026).
   Son en-tête et « Appeler » restent en haut ; les échanges défilent. Au-
   dessus de la colonne de navigation (z 5-6), sous le voile de l'onglet sans
   ligne (z 50). */
.suivi-voile { position: fixed; inset: 0; z-index: 30; background: rgba(18, 18, 18, .38);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: voile-entre .2s ease-out; }
@keyframes voile-entre { from { opacity: 0; } }
.suivi-fiche { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(32rem, 100vw);
  display: flex; flex-direction: column; background: var(--fond); border-left: 1px solid var(--trait);
  box-shadow: -24px 0 60px -20px rgba(18, 18, 18, .35); outline: none;
  animation: fiche-entre .32s cubic-bezier(.16, 1, .3, 1); }
@keyframes fiche-entre { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .suivi-fiche, .suivi-voile { animation: none; } }
@media (max-width: 900px) { .suivi-fiche { width: 100vw; border-left: 0; } }
/* 📌 Amarrée : le Suivi client devient deux colonnes. La section ne défile
   plus elle-même : la liste défile dans sa colonne, la fiche garde toute la
   hauteur dans la sienne (elle défile en dedans). */
#suivi-client.visible.fiche-amarree { display: grid; grid-template-columns: minmax(0, 1fr) clamp(24rem, 32vw, 30rem);
  grid-template-rows: minmax(0, 1fr); gap: 1.25rem; overflow: hidden; padding-right: 1.25rem; }
#suivi-client.fiche-amarree > .suivi-principal { min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding-right: .35rem; }
#suivi-client.fiche-amarree > .suivi-cote { min-height: 0; }
.suivi-principal { min-width: 0; }
.suivi-cote:empty { display: none; }
.suivi-fiche.amarree { position: relative; z-index: auto; width: auto; height: 100%;
  border: 1px solid var(--trait); border-radius: var(--rayon-carte); box-shadow: var(--ombre); overflow: hidden;
  animation: none; }
.fiche-tiroir-tete { display: flex; align-items: flex-start; gap: .85rem; padding: 1.15rem 1rem .8rem 1.2rem; }
.fiche-tiroir-qui { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.fiche-tiroir-qui h2 { margin: 0; font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
  overflow-wrap: anywhere; }
.fiche-tiroir-numero { display: flex; align-items: center; gap: .5rem; }
#suivi-fiche-numero { font-family: var(--police-chiffres); font-size: .86rem; color: var(--encre-douce); }
.fiche-tiroir-etat { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .55rem; margin-top: .2rem; }
.fiche-tiroir-etat:empty { display: none; }
.fiche-tiroir-etape { font-size: .78rem; color: var(--libelle); }
.fiche-tiroir-prochaine { margin: .2rem 0 0; font-size: .86rem; font-weight: 600; color: var(--encre-douce); }
.fiche-tiroir-prochaine.aujourdhui { color: var(--vert); }
.fiche-tiroir-prochaine.retard { color: var(--rouge); }
.fiche-tiroir-prochaine.neutre { font-weight: 400; color: var(--libelle); }
.fiche-tiroir-prochaine:empty { display: none; }
.suivi-ia-fermer, .fiche-tiroir-fermer { margin-left: auto; align-self: flex-start; width: 2rem; height: 2rem;
  padding: 0; display: grid; place-items: center; border: 0; background: none; box-shadow: none;
  font-size: 1.35rem; line-height: 1; color: var(--libelle); border-radius: 8px; }
.suivi-ia-fermer:hover:not(:disabled), .fiche-tiroir-fermer:hover:not(:disabled) {
  background: var(--fond-gris); color: var(--encre); }
.fiche-tiroir-action { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; padding: 0 1.2rem .9rem; }
.fiche-tiroir-action .bouton-telephone { margin-left: 0; min-height: 2.4rem; padding-inline: 1.1rem 1.3rem;
  font-size: .92rem; }
.fiche-corbeille { margin-left: auto; font-size: .82rem; }
.fiche-opposition { font-size: .82rem; }
.fiche-tiroir-retour { font-size: .84rem; color: var(--vert); min-width: 0; }
/* 🏷️ Le statut changé à la main (21/11/2026) : une ligne sous les boutons,
   la date et l'heure à côté quand le statut en prend. ⚠️ `.suivi-statut`,
   jamais `.fiche-statut` : c'est déjà le bloc du statut de l'écran d'appel. */
.suivi-statut { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .6rem;
  padding: 0 1.2rem .9rem; font-size: .88rem; }
.suivi-statut[hidden], .suivi-statut-rdv[hidden] { display: none; }
.suivi-statut > label { flex: none; width: auto; margin: 0; text-align: left;
  font-weight: 600; color: var(--libelle); }
.suivi-statut select { flex: 1 1 10rem; min-width: 0; max-width: 100%; }
/* Deux rangées, toujours dans le même ordre (revue du 22/11/2026) : le statut
   et « Enregistrer », puis le jour et l'heure dessous. Laissés au fil de la
   ligne, l'heure et le bouton tombaient chacun sur leur propre rangée. */
.suivi-statut > button { flex: none; order: 2; }
.suivi-statut-rdv { order: 3; flex: 1 1 100%; display: flex; align-items: center; flex-wrap: wrap;
  gap: .35rem .5rem; }
.suivi-statut-rdv label { color: var(--libelle); font-size: .82rem; }
.suivi-statut-champ { display: inline-flex; align-items: center; gap: .4rem; flex: none;
  margin-right: .6rem; }
/* 🎨 L'essentiel du profil, quatre colonnes sous les boutons (v3). */
.fiche-tiroir-resume { padding: 0 1.2rem .9rem; }
.fiche-tiroir-resume:empty { display: none; }
.fiche-resume { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem;
  font-size: .8rem; }
.fiche-resume dt { color: var(--libelle); }
/* La valeur passe à la ligne plutôt que d'être coupée : « Hauts-de-Fran… »,
   « Provence-Alpes-Côte… » dans la fiche ouverte (revue du 22/11/2026). */
.fiche-resume dd { margin: .1rem 0 0; font-weight: 500; color: var(--encre);
  overflow-wrap: break-word; line-height: 1.3; }
.fiche-tiroir-retour.rouge { color: var(--rouge); }
.fiche-tiroir-retour:empty { display: none; }
/* Les deux onglets : Échanges, Profil. */
.fiche-onglets { display: flex; gap: 1.25rem; padding: 0 1.2rem; border-bottom: 1px solid var(--trait); }
.fiche-onglet { padding: .55rem 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; box-shadow: none; margin-bottom: -1px; font-size: .88rem; font-weight: 500; color: var(--libelle); }
.fiche-onglet:hover:not(:disabled) { background: none; color: var(--encre); }
.fiche-onglet[aria-selected="true"] { color: var(--encre); font-weight: 600; border-bottom-color: var(--encre); }
.fiche-tiroir-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1.2rem 1.5rem; background: var(--fond-doux); }
.fiche-bloc { background: var(--fond); border: 1px solid var(--trait); border-radius: 12px; padding: .9rem 1rem 1rem; }
.fiche-bloc-titre { margin: 0 0 .65rem; font-size: .92rem; font-weight: 600; color: var(--encre); }
.fiche-bloc-vide { margin: 0; font-size: .88rem; color: var(--libelle); }
.fiche-profil-grille { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; }
.fiche-profil-ligne { min-width: 0; }
.fiche-profil-ligne.large { grid-column: 1 / -1; }
.fiche-profil-ligne dt { font-size: .76rem; color: var(--libelle); }
.fiche-profil-ligne dd { margin: .05rem 0 0; font-size: .9rem; font-weight: 500; overflow-wrap: anywhere; }
/* 💬 Les ÉCHANGES : une conversation, un séparateur par jour. */
.fil { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.fil-element { min-width: 0; }
.fil-separateur, .fil-element:has(> .fil-systeme) { display: flex; justify-content: center; }
.fil-jour { margin: .35rem 0 0; font-size: .74rem; font-weight: 600; color: var(--libelle);
  text-transform: none; letter-spacing: .01em; }
.fil-systeme { margin: 0; padding: .25rem .7rem; border-radius: 999px; background: var(--fond-gris);
  font-size: .78rem; color: var(--encre-douce); text-align: center; }
.fil-vide { margin: 1rem 0; text-align: center; font-size: .88rem; color: var(--libelle); }
.fil-appel { background: var(--fond); border: 1px solid var(--trait); border-radius: 14px; padding: .7rem .85rem .8rem;
  display: flex; flex-direction: column; gap: .45rem; }
.fil-appel.manque { background: transparent; border-style: dashed; }
.fil-appel-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .55rem; }
.fil-appel-titre { font-size: .88rem; font-weight: 600; }
.fil-appel.manque .fil-appel-titre { color: var(--encre-douce); font-weight: 500; }
.fil-appel-details { font-size: .78rem; color: var(--libelle); }
.fil-appel-statut { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .55rem; }
.fil-appel-rdv { font-size: .8rem; color: var(--encre-douce); }
.fil-resume-liste { margin: 0; padding-left: 1.05rem; display: flex; flex-direction: column; gap: .15rem;
  font-size: .88rem; line-height: 1.45; color: var(--encre); }
.fil-resume-liste li::marker { color: var(--gris); }
.fil-source { display: block; margin-top: .3rem; font-size: .72rem; color: var(--libelle); }
.fil-note { padding: .5rem .65rem; border-radius: 10px; background: var(--jaune-clair); border: 1px solid var(--jaune-trait); }
.fil-note .fil-source { margin: 0 0 .15rem; }
.fil-note p { margin: 0; font-size: .88rem; white-space: pre-line; overflow-wrap: anywhere; }
/* 📱 Un SMS écrit depuis la fiche (16/11/2026) : à droite, comme dans une
 * messagerie — c'est nous qui parlons. 📝 Une note du lead : la bulle jaune
 * du commentaire d'appel, seule. */
.fil-element:has(> .fil-sms) { display: flex; justify-content: flex-end; }
.fil-sms { max-width: 85%; padding: .5rem .7rem; border-radius: 14px 14px 4px 14px;
  background: var(--fond-gris); border: 1px solid var(--trait); }
.fil-sms p { margin: 0; font-size: .88rem; white-space: pre-line; overflow-wrap: anywhere; }
.fil-sms .fil-source { margin: .25rem 0 0; }
.fil-sms .fil-source.rouge { color: var(--rouge); }
.fil-appel audio { display: block; width: 100%; height: 2rem; }
.fil-appel .hist-transcription { max-height: 16rem; overflow: auto; }
.fil-appel > div > button { font-size: .82rem; padding: .25rem .7rem; }
/* La frise : les réservations en ligne (reservation.js). */
.frise { list-style: none; margin: 0; padding: 0; }
.frise-appel { position: relative; padding: 0 0 1rem 1.55rem; min-width: 0; }
.frise-appel::before { content: ""; position: absolute; left: .4rem; top: 1.05rem; bottom: .1rem; width: 1px;
  margin-left: .5px; background: var(--trait-fort); }
.frise-appel:last-child { padding-bottom: 0; }
.frise-appel:last-child::before { display: none; }
.frise-point { position: absolute; left: .07rem; top: .32rem; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--t-point, var(--fond)); box-shadow: 0 0 0 2px var(--fond), 0 0 0 3.5px var(--t-point, var(--trait-fort)); }
.frise-appel.manque .frise-point:not([data-teinte]) { background: var(--fond); }
.frise-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; }
.frise-quand { font-size: .88rem; font-weight: 600; }
.frise-details { font-size: .8rem; color: var(--libelle); }
.frise-rdv { font-size: .8rem; color: var(--encre-douce); }

/* Petit écran : tout s'empile, la recherche aussi. */
@media (max-width: 600px) {
  #suivi-client { padding: 1rem; }
  .suivi-entete { align-items: flex-start; }
  .suivi-recherche { flex-wrap: wrap; }
  .suivi-ia-bouton { width: 100%; justify-content: center; }
  .historique-ia { flex-wrap: wrap; }
  .invite-telephone { display: block; flex: 1 1 100%; }
  .fiche-tiroir-tete { padding: 1rem 1rem .8rem 1.1rem; }
  .fiche-tiroir-action { padding: 0 1.1rem .9rem; }
  .fiche-onglets { padding: 0 1.1rem; }
  .fiche-tiroir-corps { padding: .85rem 1rem 1.5rem; }
  .fiche-profil-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ── 🔔 Les notifications (24/10/2026, `notifications.js`) ───────────────────
   La cloche de l'en-tête, l'abonnement de cet appareil, le mode téléphone.
   🎨 Une couleur dit « agis » : le chiffre de la cloche porte la couleur
   d'action (`--vert`, le fond dessus : 5,4:1) — rien d'autre n'y est coloré,
   sauf la teinte de chaque statut, celle de sa tuile.
   ⚠️ Rien en dur : les jetons de `:root` seulement — un thème les redéfinit
   (consigne du 24/10/2026), et ce bloc le suit sans être touché. Les
   boutons sont ceux de l'écran (`button`, `.lien`), les statuts ses
   pastilles (`.statut-pastille`).
   📐 Le panneau s'accroche au bord droit de l'EN-TÊTE (`.pousse`, toujours
   calée à droite), plus à la cloche (25/10/2026) : sous ~560 px, la cloche
   est au milieu de l'en-tête, et le panneau calé sur elle sortait de l'écran
   par la gauche — « À rappeler maintenant » réduit à « t », le nom coupé,
   « Ouvrir le suivi client » hors d'atteinte (`#ecran` ne défile pas de
   côté). Accroché à la rangée, il tient de 320 à 1440 px, quel que soit le
   nom du compte (`test_LE_CLIQUET_le_panneau_de_la_cloche_reste_dans_l_ecran`).
   Le chiffre, lui, reste accroché au bouton (`.cloche-bouton`). */
header .pousse { position: relative; }
.cloche { position: static; display: inline-flex; flex: none; }
.cloche-bouton { position: relative; width: 2.35rem; min-height: 2.35rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; color: var(--encre-douce); }
.cloche-bouton::before { content: ""; width: 1.15rem; height: 1.15rem; background: currentColor;
  --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E");
  -webkit-mask: var(--icone) no-repeat center / contain; mask: var(--icone) no-repeat center / contain; }
.cloche-bouton.a-du-nouveau { color: var(--vert); border-color: var(--vert-trait); }
.cloche-nombre { position: absolute; top: -.4rem; right: -.4rem; min-width: 1.2rem; height: 1.2rem;
  padding: 0 .3rem; box-sizing: border-box; border-radius: 999px; background: var(--vert); color: var(--fond);
  font-size: .72rem; font-weight: 600; line-height: 1.2rem; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--fond); }
.cloche-panneau { position: absolute; top: calc(100% + .45rem); right: 0; z-index: 40;
  width: min(23rem, calc(100vw - 2rem)); max-height: min(32rem, 75vh); overflow: auto;
  padding: .8rem; box-sizing: border-box; color: var(--encre); background: var(--fond);
  border: 1px solid var(--trait-fort); border-radius: var(--rayon); box-shadow: var(--ombre-haute); }
.cloche-titre { display: block; font-size: .92rem; font-weight: 600; margin: 0 0 .4rem; }
.cloche-plus-tard { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--trait); }
.cloche-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.cloche-ligne { display: flex; align-items: flex-start; gap: .55rem; width: 100%; min-height: 0;
  padding: .5rem .6rem; text-align: left; font: inherit; color: inherit; background: var(--fond);
  border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: none; box-sizing: border-box; }
button.cloche-ligne:hover:not(:disabled) { background: var(--fond-doux); border-color: var(--trait-fort); }
.cloche-ligne.recap { background: var(--fond-doux); }
.cloche-ligne.nouvelle { border-color: var(--vert-trait); background: var(--vert-clair); }
.cloche-point { flex: none; width: .5rem; height: .5rem; margin-top: .45rem; border-radius: 50%;
  background: var(--vert); }
.cloche-textes { display: grid; gap: .15rem; min-width: 0; }
.cloche-haut { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; min-width: 0; }
.cloche-nom { font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.cloche-detail { font-size: .84rem; color: var(--libelle); }
.cloche-vide { margin: .2rem 0 0; font-size: .88rem; color: var(--libelle); }
.cloche-suivi { margin-top: .8rem; }
/* 🧑‍💼 À qui sont ces rappels, dit à un administrateur (25/10/2026). */
.cloche-note { margin: .8rem 0 0; font-size: .82rem; line-height: 1.4; color: var(--libelle); }
.cloche-note + .cloche-suivi { margin-top: .35rem; }

/* L'abonnement de cet appareil : une ligne discrète sous le titre du suivi. */
.push-reglage { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .6rem;
  margin-top: .35rem; font-size: .8rem; color: var(--libelle); }
.push-reglage::before { content: ""; flex: none; width: .95rem; height: .95rem; background: var(--libelle);
  --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E");
  -webkit-mask: var(--icone) no-repeat center / contain; mask: var(--icone) no-repeat center / contain; }
/* « Activer » : le bouton de l'écran, en plus petit. */
.push-reglage .push-activer { min-height: 1.75rem; padding: .15rem .65rem; font-size: .8rem; }
.push-retour { flex-basis: 100%; font-size: .84rem; color: var(--encre-douce); }
.push-retour:empty { display: none; }
.push-retour.erreur { color: var(--rouge); }

/* 📱 Le mode téléphone : une colonne, rien d'autre. Caché derrière l'écran de
   connexion (une session expirée le remontre au-dessus). */
.telephone { box-sizing: border-box; max-width: 34rem; min-height: 100vh; margin: 0 auto;
  padding: 1rem 1rem 2.5rem; color: var(--encre); background: var(--fond-page); }
#connexion:not(.cache) ~ .telephone { display: none; }
.telephone-tete { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--trait); }
.telephone-tete .marque { font-weight: 600; }
.telephone-qui { font-size: .88rem; color: var(--libelle); overflow-wrap: anywhere; }
.telephone h1 { margin: 1.1rem 0 .2rem; font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.telephone-sous-titre { margin: 1.4rem 0 .5rem; font-size: 1rem; font-weight: 600; }
.telephone .cloche-ligne { padding: .7rem .75rem; }
.telephone .visee .cloche-ligne { border-color: var(--vert); box-shadow: 0 0 0 2px var(--vert-trait); }
.telephone-note { margin: 1.6rem 0 .8rem; font-size: .86rem; color: var(--libelle); }

/* ── 🎨 Les petites attentions de la refonte « Maison » (24/10/2026) ───────── */

/* La réponse de l'IA : chaque personne est une carte qu'on clique. */
.suivi-ia-tete strong { font-family: var(--police-titres); font-size: 1.08rem; }
.suivi-ia-personne { transition: transform var(--duree) var(--courbe), box-shadow var(--duree) ease,
  border-color var(--duree) ease; }
.suivi-ia-personne:hover:not(:disabled) { background: var(--fond); border-color: var(--bordure-bouton);
  box-shadow: var(--ombre-survol); transform: translateY(-1px); }
.suivi-ia-nom { font-family: var(--police-titres); font-size: 1.02rem; }

/* Sur un téléphone, les pages de l'administrateur rendent leur marge. */
@media (max-width: 900px) {
  #historique, #analytics, #parametres, #direct { padding: 1rem .75rem; }
  .comptes-entete strong { font-size: 1.65rem; }
}

/* 🧘 Moins de mouvement, sur demande : ni montée au survol, ni glissement —
   l'état change, il ne bouge pas. Les animations déjà retenues une à une plus
   haut restent coupées. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .lead:hover, .suivi-compteur:hover:not(:disabled), .tuile-statut:hover:not(:disabled),
  .agenda-puce:hover:not(:disabled), .suivi-ia-personne:hover:not(:disabled) { transform: none; }
  .suivi-ia { animation: none; }
}

/* Le filtre posé : la croix du compteur ne mord plus sur son libellé. */
.suivi-compteur[aria-pressed="true"] .suivi-compteur-libelle { padding-right: 1.15rem; }

/* 📱 Sous 1 000 px, les onglets d'un administrateur reviennent dans
   l'en-tête : une rangée à eux, qui DÉFILE de côté plutôt que de couper
   « Contacts » au bord de l'écran ou de casser « Suivi client » en deux. */
@media (max-width: 999px) {
  #ecran:not(.commercial) .onglets { order: 5; flex: 1 1 100%; overflow-x: auto;
    scrollbar-width: none; margin-inline: -.25rem; padding: .1rem .25rem .2rem; }
  #ecran:not(.commercial) .onglets::-webkit-scrollbar { display: none; }
  #ecran:not(.commercial) .onglet { flex: none; white-space: nowrap; }
  /* Un fondu du côté où il reste des onglets (app.js, `ombrerLesOnglets`). */
  #ecran:not(.commercial) .onglets.suite-droite {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
  #ecran:not(.commercial) .onglets.suite-gauche {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent); }
  #ecran:not(.commercial) .onglets.suite-gauche.suite-droite {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); }
}
/* 📱 Sur un téléphone, la recherche prend TOUTE une rangée, sous la cloche et
   le compte, sans le rappel du raccourci ⌘K. 25/10/2026 : à côté d'eux, il
   ne lui restait que 109 px pour une invite de 209, et on lisait
   « Recherc ». */
@media (max-width: 600px) {
  #ecran:not(.commercial) header .pousse { flex: 1 1 100%; flex-wrap: wrap; row-gap: .5rem; }
  #ecran:not(.commercial) .recherche-globale { order: 1; flex: 1 1 100%; min-width: 0; }
  #ecran:not(.commercial) .recherche-compte { order: 2; }
  #ecran:not(.commercial) .recherche-globale input { width: 100%; max-width: none; padding-right: .7rem; }
  #ecran:not(.commercial) .raccourci { display: none; }
}
/* 📱 Sur un TÉLÉPHONE, c'est la PAGE qui défile (25/10/2026, revue du 24/10 :
   « il reste 20 % de l'écran pour le contenu ») : l'en-tête et la barre
   d'appel partent avec elle au lieu de rester figés — 248 + 151 px sur 844
   chez un commercial, et la pile des alertes par-dessus le reste. Ce qui
   doit rester sous le doigt y reste : pendant une conversation, le bloc du
   bas (`.appel-flottant`, fixe) garde « Raccrocher », le micro et
   « Répondeur » ; « Appel suivant » reste collé au bas de l'écran. Un
   téléphone couché aussi (moins de 440 px de haut). Au-dessus, l'écran
   garde sa mise en page d'application, l'en-tête en haut, le contenu qui
   défile dessous (une fenêtre réduite de 820 × 480 compris).
   ⚠️ `clip`, pas `hidden` : `hidden` ferait de l'écran une boîte qui défile,
   et « Appel suivant » se collerait à elle au lieu de l'écran. */
@media (max-width: 600px), (max-width: 950px) and (max-height: 440px) {
  #ecran { height: auto; min-height: 100%; overflow-x: clip; }
  #ecran > main, #ecran.commercial > main { flex: none; overflow: visible; }
  #ecran.hors-campagne > section.visible,
  #ecran.vue-mes-appels > #mes-appels.visible,
  #ecran.vue-mes-appels > #suivi-client.visible { flex: none; overflow: visible; }
  .consigne.visible { position: sticky; bottom: 0; z-index: 4; }
}
/* La liste vide de la campagne (« Aucune pile chargée. ») : au centre du
   tableau, en serif — un état, pas une ligne oubliée. */
#corps-liste td.sourd[colspan] { padding: 3.5rem 1rem; text-align: center;
  font: 400 1.15rem/1.4 var(--police-titres); color: var(--libelle); border-bottom: 0; }
/* 📱 Sur un téléphone, les huit colonnes rendaient le tableau VIDE plus
   large que l'écran : son message, centré sur toute la largeur, sortait par
   la droite (« choisissez-en un… », revue du 22/11/2026). Sans ligne à
   lire, les titres des colonnes partent. */
@media (max-width: 700px) {
  #tableau-liste:has(#corps-liste td.sourd[colspan]) thead { display: none; }
}
#corps-liste td.sourd[colspan]::before { content: ""; display: block; width: .55rem; height: .55rem;
  margin: 0 auto .9rem; background: var(--vert-vif); transform: rotate(45deg); }
.mes-appels-vide { text-align: center; padding: 2.5rem 1rem; font: 400 1.15rem/1.4 var(--police-titres); }
/* « Se déconnecter » ne se coupe jamais en deux lignes. */
header .lien { white-space: nowrap; }
/* 📱 Les statistiques sur un téléphone : deux tuiles par rangée, une carte
   moins épaisse. */
@media (max-width: 600px) {
  #analytics > #stats-corps > .stats-bloc { padding: 1.1rem 1rem; }
  .tuiles-stats { grid-template-columns: repeat(auto-fill, minmax(min(8.5rem, 100%), 1fr)); gap: .6rem; }
  .tuile-stat .valeur { font-size: 1.6rem; white-space: normal; }
}

/* 📱 Le SMS de la fiche (26/10/2026) : caché tant que le serveur ne l'ouvre
 * pas. 🚨 Une règle `display` bat l'attribut `hidden` : son pendant d'abord. */
.fiche-sms { display: flex; flex-direction: column; gap: .4rem; padding: .75rem 1rem;
  border-top: 1px solid var(--trait-doux); }
.fiche-sms[hidden] { display: none; }
.fiche-sms textarea { width: 100%; resize: vertical; min-height: 2.6rem; font: inherit; }
.fiche-sms-pied { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fiche-sms-compte { color: var(--libelle); font-size: .85rem; }
.fiche-sms-compte.rouge { color: var(--rouge); }
.fiche-sms-boutons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
