/* Espace client et console d'Archipel Horizon.
   Style repris des maquettes (produit/espace-client-et-console/maquettes/client/style.css, style-chat-client.css,
   style-automatisations-client.css et maquettes/console/style.css, 24/09/2026), décision D61 du 26/09/2026.
   Adaptations : police Inter embarquée (statique/polices/, licence OFL), jamais chargée depuis un CDN ; aucun style en ligne (CSP « style-src 'self' ») : les styles en ligne des maquettes sont devenus des
   classes ci-dessous ; formulaires, tableaux, messages et page de connexion ajoutés dans le même esprit. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(polices/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(polices/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(polices/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(polices/inter-latin-700-normal.woff2) format('woff2'); }
:root {
  --cream: #faf9f6; --blanc: #fff; --noir: #111111; --orange: #ff5600;
  /* P24 : orange foncé pour le texte et les boutons pleins (contraste AA 4,5:1, blanc dessus 5,2:1) */
  --orange-texte: #c43f00;
  --oat: #dedbd6; --sand: #d3cec6; --doux: #454542; --pale: #52524e;   /* nuit du 25/11 (32) : plus foncés */
  --vert: #0b7a3b; --bleu: #1257c9; --rose: #c2185b;
  --ligne: #f1efeb; --moi: #e9e6e0; --lui-bord: #f2cdb8; --aide-fond: #fff3ec; --aide-bord: #ffd9c6;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  /* refonte R1 : la vignette d'un agent garde un fond sombre et un halo orange en bas, dans les deux thèmes */
  --vignette-fond: #0f2733; --vignette-halo: rgba(255, 86, 0, .35);
  --blanc-mail: #ffffff; --encre-mail: #111111; --lien-mail: #1155cc;     /* une signature se lit comme dans un mail */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--noir);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p a, li a, td a, .lien-texte { color: var(--noir); text-decoration: underline; text-decoration-color: var(--sand);
  text-underline-offset: 2px; }
/* Au survol, le texte prend l'orange foncé (4,5:1 au moins) ; l'orange vif reste pour les filets et les bordures (recette du
   03/10 : 3,2:1 en texte). */
p a:hover, li a:hover, td a:hover, .lien-texte:hover { color: var(--orange-texte); text-decoration-color: var(--orange); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.3px; }
.app { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; }
.app > * { min-width: 0; }

/* ---------------------------------------------------------------- barre latérale */
.cote { border-right: 1px solid var(--oat); background: #fff; padding: 16px 12px; display: flex; flex-direction: column; }
.marque { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; font-weight: 600; letter-spacing: -.2px; }
.marque .pt { width: 10px; height: 10px; border-radius: 3px; background: var(--orange); display: inline-block; flex: none; }
.marque span.petit { font-weight: 400; color: var(--pale); font-size: 12px; }
.marque b { font-weight: inherit; }
.marque .horizon { display: none; }   /* « Archipel Horizon » en entier dans le style du site (P74) */
.sous-marque { font-size: 11px; color: var(--pale); padding: 0 8px 10px; margin-top: -10px; }
.blocorg { border: 1px solid var(--oat); border-radius: 8px; padding: 8px; margin-bottom: 14px; }
.org { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 6px; font-weight: 500;
  font-size: 13.5px; }
.org:hover { background: var(--cream); }
.org .ic { width: 18px; text-align: center; color: var(--pale); flex: none; }
.org .nom-org { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.org .nb { margin-left: auto; font-size: 10.5px; color: var(--pale); white-space: nowrap; padding-left: 6px; }
.org.sel { background: var(--cream); outline: 1px solid var(--oat); }
.invite { display: block; text-align: center; margin: 8px 4px 0; padding: 8px; border: 1px dashed var(--sand);
  border-radius: 6px; font-size: 13px; color: var(--doux); }
.invite:hover { border-color: var(--orange); color: var(--orange-texte); }
.menu { margin-top: 16px; }
.menu .titre { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--orange-texte); padding: 16px 8px 6px; margin-top: 8px; border-top: 1px solid var(--oat); }
.menu .titre:first-child { margin-top: 0; border-top: 0; }
/* recette du 21/11 : le titre d'un groupe se distingue nettement de ses liens (couleur, capitales, filet) ; les liens,
   en retrait sous leur titre, gardent le corps du texte */
.menu .titre ~ .onglet { padding-left: 16px; }
.onglet .compte { margin-left: auto; font-size: 11.5px; font-weight: 700; background: var(--orange-texte); color: #fff;
  border-radius: 99px; padding: 1px 8px; line-height: 1.5; }
.onglet { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 6px; color: #313130;
  cursor: pointer; font-size: 14px; }
.onglet:hover { background: var(--cream); }
.onglet.actif { background: var(--noir); color: #fff; }
.onglet .ic { width: 18px; text-align: center; opacity: .85; flex: none; }
.onglet .pt { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-left: auto; }
.cote .bas { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--oat); font-size: 13px; }
.cote .bas .moi-cote { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cote .bas .moi-cote b { display: block; font-weight: 500; }
.cote .bas form { display: inline; }

/* ---------------------------------------------------------------- contenu */
.contenu { padding: 22px 26px 40px; max-width: 1180px; width: 100%; }
.haut { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.haut h1 { font-size: 22px; margin: 0; letter-spacing: -.5px; font-weight: 600; }
.haut > .badge { white-space: normal; max-width: 100%; }   /* un long badge passe à la ligne, jamais hors de l'écran */
.haut .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.intro { color: var(--pale); font-size: 12.5px; margin: -6px 0 16px; }
.retour { display: inline-block; font-size: 13px; color: var(--pale); margin-bottom: 8px; }
.retour:hover { color: var(--orange-texte); }

.btn { display: inline-block; padding: 8px 13px; border-radius: 4px; font-size: 13.5px; border: 1px solid var(--noir);
  background: #fff; color: var(--noir); cursor: pointer; font-family: inherit; line-height: 1.4; text-align: center; }
.btn:hover { background: var(--noir); color: #fff; }
.btn.or { background: var(--orange-texte); border-color: var(--orange-texte); color: #fff; }
.btn.or:hover { background: #a33500; border-color: #a33500; color: #fff; }
.btn.discret { border-color: var(--oat); color: var(--doux); }
.btn.discret:hover { background: var(--cream); color: var(--noir); }
.btn.danger { border-color: var(--rose); color: var(--rose); }
.btn.danger:hover { background: var(--rose); color: #fff; }
.btn.petit { padding: 5px 10px; font-size: 12.5px; }
.btn.actif { background: var(--noir); color: #fff; border-color: var(--noir); }
.btn[disabled], .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.btn[disabled]:hover { background: #fff; color: var(--doux); }
.btn.or[disabled]:hover { background: var(--orange-texte); color: #fff; filter: none; }

.grille { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.g2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bloc { margin-bottom: 14px; }
.espace-haut { margin-top: 14px; }
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g2, .g2e { grid-template-columns: minmax(0, 1fr); }
}
/* Conversations : sur une colonne, la conversation choisie s'affiche seule (flèche de retour à la liste). */
.retour-liste { display: none; }
@media (max-width: 1080px) {
  .conv-choisie > .liste-conv { display: none; }
  .conv-choisie .retour-liste { display: inline-flex; margin: 10px 16px 0; font-size: 18px; line-height: 1; padding: 6px 4px; }
}
.carte { background: #fff; border: 1px solid var(--oat); border-radius: 10px; padding: 16px; }
.carte h2 { font-size: 14px; margin: 0 0 4px; font-weight: 600; }
.carte h2.seul { margin: 0; }
.carte h3 { font-size: 13.5px; margin: 14px 0 6px; font-weight: 600; }
.carte.pointille { border-style: dashed; }
.carte.pause, .carte.estompe { opacity: .72; }
/* Recette du 03/10 (contrastes, seuil 4,5:1) : estompés à 72 %, les gris de texte tombaient à 3,2:1. Dans un élément estompé,
   le texte gris prend une teinte plus foncée de la même famille : une fois estompé, il se lit (4,6:1) et garde l'allure pâle. */
html:not([data-style="site"]) .carte.pause, html:not([data-style="site"]) .carte.estompe { --doux: #383837; --pale: #383835; }
.carte.plus { border-style: dashed; background: #fffaf7; }
.carte.alerte { border-color: var(--orange); }
.carte.sans-marge { padding: 0; overflow: hidden; }
.carte .tete-carte { display: flex; align-items: center; gap: 10px; }
.carte .tete-carte > div { min-width: 0; }
.carte .pied-carte { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.entre { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bandeau { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bandeau .texte { flex: 1; min-width: 240px; }
.sous { color: var(--pale); font-size: 12.5px; }
.sous.doux { color: var(--doux); }
p.sous { margin: 8px 0 0; }
p.sous.haut-carte { margin: 0 0 10px; }
.mono { font-family: var(--mono); }
.kpi { font-size: 28px; font-weight: 600; letter-spacing: -1px; margin: 6px 0 2px; line-height: 1; }
.kpi small { font-size: 13px; font-weight: 500; color: var(--pale); letter-spacing: 0; }
.kpi.orange { color: var(--orange-texte); }
.kpi.vide { color: var(--pale); }
.badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--oat);
  color: var(--doux); background: var(--cream); white-space: nowrap; }
.badge.vert { color: var(--vert); border-color: #bfe0cd; background: #eef8f2; }
.badge.orange { color: var(--orange-texte); border-color: #ffd2bd; background: #fff2ec; }
.badge.rouge { color: var(--rose); border-color: #f1c0d3; background: #fdf0f5; }
.badge.noir { background: var(--noir); color: #fff; border-color: var(--noir); }
.badge.bleu { color: var(--bleu); border-color: #c4d6f4; background: #eff4fd; }
.barre { height: 7px; border-radius: 99px; background: var(--cream); overflow: hidden; margin-top: 10px;
  border: 1px solid var(--ligne); }
/* Recette du 22/11 : plus de « width: 0 » ici. Plus précis que .l5 … .l100, il laissait toutes les jauges vides ; la
   largeur vient seulement de la classe que pose `jauge()` (.l0 vaut 0). */
.barre i { display: block; height: 100%; border-radius: 99px; background: var(--noir); }
.barre i.vert { background: var(--vert); }
.barre i.orange { background: var(--orange); }
.barre i.rouge { background: var(--rose); }
.barre.courte { width: 180px; margin-top: 6px; }
span.barre { display: block; }
/* Largeur d'une jauge : classe « l0 » à « l100 » par pas de 5 (aucun style en ligne, CSP). */
.l0{width:0}.l5{width:5%}.l10{width:10%}.l15{width:15%}.l20{width:20%}.l25{width:25%}.l30{width:30%}.l35{width:35%}
.l40{width:40%}.l45{width:45%}.l50{width:50%}.l55{width:55%}.l60{width:60%}.l65{width:65%}.l70{width:70%}
.l75{width:75%}.l80{width:80%}.l85{width:85%}.l90{width:90%}.l95{width:95%}.l100{width:100%}
.barre i.l0 { width: 0; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--ligne);
  font-size: 14px; }
.liste li:last-child { border-bottom: 0; }
.liste li > .corps { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.liste .h { color: var(--pale); font-size: 12px; margin-left: auto; white-space: nowrap; font-family: var(--mono); }
.liste .h.texte { font-family: inherit; }
.liste .h + .h { margin-left: 12px; }
.liste li.lien { cursor: pointer; }
.liste li.lien:hover { background: var(--cream); }
.liste.serree li { padding: 6px 0; }
.rond { width: 26px; height: 26px; border-radius: 50%; background: var(--noir); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex: none; font-weight: 500; }
.rond.or { background: var(--orange-texte); }
.rond.gris { background: var(--sand); color: var(--noir); }
.rond.clair { background: var(--cream); color: var(--doux); border: 1px solid var(--oat); }
.rond.moyen { width: 30px; height: 30px; font-size: 14px; }
.rond.grand { width: 36px; height: 36px; font-size: 14px; }
.rond.enorme { width: 38px; height: 38px; font-size: 15px; font-weight: 600; }
.vide-etat { text-align: center; padding: 26px 16px; color: var(--doux); }
.vide-etat .rond { margin: 0 auto 10px; }
.vide-etat b { display: block; color: var(--noir); margin-bottom: 4px; }
.vide-etat p { margin: 4px auto 0; max-width: 520px; font-size: 13.5px; }

@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(255,86,0,.5); } 70% { box-shadow: 0 0 0 7px rgba(255,86,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,86,0,0); } }
@keyframes file { to { stroke-dashoffset: -18; } }

.etat { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--orange-texte); font-family: var(--mono);
  padding: 2px 2px; }
.etat .pu { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pouls 1.1s infinite; }
details.det { margin-top: 7px; font-size: 12.5px; }
details.det summary { color: var(--pale); cursor: pointer; list-style: none; font-family: var(--mono); }
details.det summary::-webkit-details-marker { display: none; }
details.det summary:hover { color: var(--orange-texte); }
details.det > div { margin-top: 6px; border-left: 2px solid var(--oat); padding: 2px 0 2px 10px; color: var(--doux); line-height: 1.7; }

/* Onglets en pastilles (Sécurité, Documents) */
.pastilles { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.pastilles a.badge:hover { border-color: var(--orange); color: var(--orange-texte); }
.pastilles a.badge.noir:hover { color: #fff; }

/* ---------------------------------------------------------------- tableaux */
.defile { overflow-x: auto; }
table.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th, .tableau td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { color: var(--pale); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tr.lien { cursor: pointer; }
.tableau tr.lien:hover td { background: var(--cream); }
.tableau td.nb, .tableau th.nb { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tableau td.date { white-space: nowrap; color: var(--doux); font-size: 13px; }

/* ---------------------------------------------------------------- formulaires */
label { display: block; font-weight: 500; font-size: 13.5px; margin: 12px 0 5px; }
label.case { display: flex; align-items: center; gap: 7px; font-weight: 400; margin: 8px 0; }
label.case.petite { font-size: 12.5px; color: var(--doux); margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time],
input[type=search], input[type=number], input[type=url], input[type=datetime-local], input[type=month], input[type=week],
input:not([type]), select, textarea {
  width: 100%; max-width: 480px; padding: 9px 14px; border-radius: 6px; border: 1px solid var(--oat); background: #fff;
  color: var(--noir); font: inherit; font-size: 14px; line-height: 1.4; }
/* paquet A (23/11) : un vrai retrait intérieur, 14 px, plus que l'arrondi de 12 px du style Archipel ; tous les types
   de champs (nombre, adresse, date et heure) ont ce style ; un nombre n'a pas besoin de toute la largeur */
input[type=number] { max-width: 180px; }
input:focus, select:focus, textarea:focus { border-color: var(--noir); outline: none; }
textarea { max-width: 100%; min-height: 90px; resize: vertical; }
input[disabled], textarea[disabled] { background: var(--cream); color: var(--pale); }
/* l'exemple d'un champ : le gris du navigateur (#757575) ne fait que 4,4:1 sur le fond crème (recette du 03/10) */
input::placeholder, textarea::placeholder { color: var(--pale); opacity: 1; }
.aide { color: var(--pale); font-size: 12.5px; margin-top: 4px; }
.rangee { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.rangee.serree { margin-top: 0; }
.rangee select, .rangee input[type=search], .rangee input[type=text], .rangee input:not([type]) { width: auto; min-width: 170px; }
.recherche { min-width: 220px; }
form.en-ligne { display: inline; }
.tableau input, .tableau select { max-width: 100%; }
.champ-code { letter-spacing: .4em; font-size: 1.4rem; text-align: center; font-family: var(--mono); }
/* paquet A, point 3 (23/11) : un écart minimum, posé une fois pour l'espace et la console. Dans un bloc (carte,
   formulaire, repli, encadré), un bouton, une rangée de boutons, un formulaire ou un repli qui suit autre chose s'en
   écarte de 12 px ; deux champs qui se suivent, de 10 px. Les rangées (flex) gardent leur propre écart (gap). */
:where(.carte:not(.bandeau), form:not(.en-ligne):not(.rangee), details, fieldset, section, .contenu, .compte-seul, .corps)
  > :where(:not(input[type=hidden]):not(script)) + :where(.btn, button:not(.lien-menu):not(.cache-visuel), .rangee,
  form:not(.en-ligne), details, fieldset) { margin-top: 12px; }
:where(.carte, form, details, fieldset, .corps) > :where(input, select, textarea) + :where(input, select, textarea) {
  margin-top: 10px; }
:where(.droite, .fin, .compte-tel-panneau, .outil, .actions) { gap: 8px; }
.compte-large { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ligne-tva + .ligne-tva { margin-top: 8px; }
.carte > :is(.rangee, .btn, form, details) + :is(h2, h3), .carte :is(h2, h3).espace-haut { margin-top: 20px; }
/* paquet A, point 4 (23/11) : un groupe de cases n'est plus l'encadré brut du navigateur (titre dans la bordure) ; il
   prend le style des cartes de la maquette : pas de bordure, son titre au-dessus, comme un libellé */
fieldset { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 6px; font-weight: 600; font-size: 13.5px; }
fieldset > legend + * { margin-top: 0; }
/* paquet A, point 8 : dans « Gérer l'accès », chaque geste garde sa largeur (« Supprimer » comme « Retirer l'accès ») ;
   un lien en bouton n'est jamais souligné */
.actions-personne > * { justify-self: start; }
a.btn, a.btn:hover { text-decoration: none; }
/* paquet A, point 10 : le libellé d'un groupe de choix a la taille des autres libellés */
.libelle-groupe { font-weight: 500; font-size: 13.5px; }
/* paquet C, point 1 : un message pris s'ouvre d'un clic ; ses gestes dessous */
.messages-pris details.ouvrir-message > summary { display: flex; gap: 10px; align-items: flex-start; list-style: none; cursor: pointer; }
.messages-pris details.ouvrir-message > summary::-webkit-details-marker { display: none; }
.messages-pris li { display: block; }
.detail-message { margin: 8px 0 0 44px; }
.commentaire-message { margin: 6px 0; font-size: 13.5px; }
.outil.qr:has(> .fin > details[open]) > .fin { grid-column: 1 / -1; margin-left: 0; justify-content: stretch; }
.une-question { width: 100%; }
input.en-faute, select.en-faute, textarea.en-faute { border-color: var(--rose); }
/* paquet A, point 7 : Mémoire › Corriger ouvert prend toute la largeur de la ligne, son champ s'étire */
.ligne:has(> .droite > details.corriger[open]) > .droite { flex-basis: 100%; justify-content: flex-end; }
/* 24/11 : un repli ouvert garde son bouton à sa place (Mémoire, Gwen) */
:is(.droite > details.corriger, .outil.qr > .fin > details)[open] { width: 100%; display: flex; flex-direction: column;
  align-items: flex-end; }
details.corriger[open] > form, .outil.qr > .fin > details[open] > form { margin-top: 8px; flex-wrap: nowrap; align-self: stretch; }
details.corriger[open] > form input[name=texte] { flex: 1 1 auto; max-width: none; min-width: 0; }
/* KO 3 (nuit du 25/11) : « Retirer cette ligne » et la phrase d'erreur passent à la ligne au lieu de déborder */
details.corriger[open] > form:has(input[name=retirer]) { flex-wrap: wrap; justify-content: flex-end; }
/* 27/11 (droit à l'effacement) : « Oublier » à côté de « Corriger », sur la même ligne ; la ligne à oublier, citée */
.droite > form.oublier-ligne { display: inline-flex; margin: 0; }
/* 27/11 : « Ce que <agent> en retient » : des paragraphes, pas des lignes */
section.retient { margin: 4px 0 8px; }
section.retient > p { margin: 0 0 8px; overflow-wrap: anywhere; }
section.retient textarea { width: 100%; }
blockquote.ligne-a-oublier, blockquote.recu { margin: 8px 0 12px; padding: 8px 12px; border-left: 3px solid var(--ligne); overflow-wrap: anywhere; }
details.corriger[open] > form:has(input[name=retirer]) > input[name=texte],
details.corriger[open] > form:has(input[name=retirer]) > .erreur-champ { flex: 1 1 100%; margin: 0; }
/* paquet A, point 6 : une pastille tient sur une ligne (« À compléter ou valider ») */
.badge { white-space: nowrap; }
/* paquet A, point 5 (23/11) : le bouton d'un champ fichier au style de l'espace, plus le bouton gris du navigateur */
input[type=file] { font: inherit; font-size: 13px; color: var(--doux); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-size: 13.5px; padding: 8px 13px; margin-right: 10px;
  border: 1px solid var(--noir); border-radius: 4px; background: var(--blanc); color: var(--noir); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--noir); color: var(--blanc); }
.gestes-compte { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 8px; }
.gestes-compte > details.signal { margin-top: 0; }
:where(.carte, section, .contenu) > :where(.rangee, .btn, form, details) + :where(h2, h3, h4) { margin-top: 20px; }

/* ---------------------------------------------------------------- messages */
.message { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--oat); background: #fff;
  font-size: 14px; }
.message.ok { border-color: #bfe0cd; background: #eef8f2; color: var(--vert); }
.message.erreur { border-color: #f1c0d3; background: #fdf0f5; color: var(--rose); }
.message.info { border-color: #ffd2bd; background: #fff2ec; color: #8a3a12; }

/* ---------------------------------------------------------------- aide (panneau « Besoin d'aide ? », dans le fil) */
details.aide { margin-top: 22px; }
details.aide > summary { list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.aide > summary::-webkit-details-marker { display: none; }
details.aide[open] > summary { border-color: var(--orange); color: var(--orange-texte); background: #fff; }
.aide-panneau { margin-top: 10px; background: #fff; border: 1px solid var(--oat); border-radius: 10px; padding: 14px 16px;
  max-width: 760px; }
.aide-panneau .sur-titre { font-size: 11px; color: var(--pale); letter-spacing: .4px; text-transform: uppercase; }
.aide-panneau input { margin: 6px 0; max-width: none; }
.aide-panneau .etat-aide { font-size: 12.5px; color: var(--doux); margin: 4px 0 10px; }

/* ---------------------------------------------------------------- conversation (lecture et écran 02) */
.fil-conv { display: grid; gap: 10px; padding: 16px; align-content: start; }
.jour { text-align: center; font-size: 11.5px; color: var(--pale); margin: 4px 0 8px; font-family: var(--mono); letter-spacing: .6px; }
.moi, .lui { border-radius: 14px; padding: 11px 13px; max-width: 86%; font-size: 14.5px; white-space: pre-wrap;
  overflow-wrap: anywhere; }
.moi { background: var(--moi); justify-self: end; }
.lui { background: var(--blanc); border: 1px solid var(--lui-bord); justify-self: start; }
.qui { display: block; font-size: 11px; color: var(--orange-texte); text-transform: uppercase; letter-spacing: .8px;
  font-family: var(--mono); margin-bottom: 3px; white-space: normal; }
.moi .qui { color: var(--doux); }
.quand { display: block; font-size: 11px; color: var(--pale); margin-top: 4px; font-family: var(--mono); white-space: normal; }
.tete-fil { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--oat); padding: 12px 16px; flex-wrap: wrap; }
.tete-fil .badge { margin-left: auto; }
.pied-fil { border-top: 1px solid var(--oat); padding: 10px 12px; }

/* ---------------------------------------------------------------- saisie de « Discuter » (reprise de chat-client.html) */
.bton { background: var(--blanc); border: 1px solid var(--oat); border-radius: 999px; padding: 6px 12px; font-size: 13px;
  color: var(--doux); cursor: pointer; font-family: inherit; }
.bton:hover { border-color: var(--orange); color: var(--orange-texte); }
.rech { padding-top: 10px; }
.rech input { width: 100%; max-width: none; border: 1px solid var(--oat); background: var(--blanc); border-radius: 999px;
  padding: 9px 14px; font-size: 14px; }
.note { font-size: 12px; color: var(--pale); text-align: center; margin: 10px 0 0; }

/* ---------------------------------------------------------------- vue « Mes automatisations » (dans la mise en page commune) */
.plein-auto { max-width: 860px; }
.encadre { background: var(--aide-fond); border: 1px solid var(--aide-bord); border-radius: 10px; padding: 14px 16px; }

/* ---------------------------------------------------------------- pages seules (connexion, code, oubli) */
.seule { min-height: 100vh; display: grid; place-items: center; align-content: center; padding: 20px; }
.seule .carte { width: 100%; max-width: 420px; padding: 26px 28px; }
.seule .marque { padding: 0 0 4px; }
.seule .sous-marque { padding: 0 0 18px; margin-top: 0; }
.seule h1 { font-size: 22px; letter-spacing: -.5px; margin: 0 0 12px; font-weight: 600; }
.seule input { max-width: 100%; }
.seule .rangee { justify-content: space-between; }
.seule .btn.or { min-width: 140px; }
.seule p.sous { line-height: 1.55; }
.pied-seule { max-width: 420px; margin-top: 14px; text-align: center; font-size: 13px; line-height: 1.6; }
.pied-seule p { margin: 4px 0; }
.erreur-champ { color: var(--rose); font-size: 13px; margin: 4px 0 8px; font-weight: 600; }
/* Nuit du 25/11 (point 28) : mentions légales et confidentialité, en bas de chaque page */
.pied-legal { margin: 18px 0 0; font-size: 13px; color: var(--pale); }
.pied-legal a, .aide-saisie a { color: inherit; text-decoration: underline; }
/* Nuit du 25/11 (point 32) : le style Sobre se lit sans effort. Corps à 16 px, petits textes à 14 px, étiquettes à
   13 px ; gris plus foncés (--doux 9,6:1 et --pale 7,8:1 sur blanc, 6,3:1 au moins sur les fonds clairs). */
html:not([data-style="site"]) body { font-size: 16px; }
html:not([data-style="site"]) :is(.sous, .aide, .aide-panneau .etat-aide, label.case.petite, .retour, .pied-legal,
  .note, .msg-aide, .msg-entreprise, .msg-plus-panneau .sous, .erreur-champ) { font-size: 14px; }
html:not([data-style="site"]) :is(.badge, .liste .h, .tableau th, .quand, .sous-marque, .marque span.petit,
  .aide-panneau .sur-titre, .messagerie .aide-saisie, .msg-etat) { font-size: 13px; }

/* ---------------------------------------------------------------- téléphone */
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .cote { border-right: 0; border-bottom: 1px solid var(--oat); padding: 10px 10px 6px; }
  .cote .sous-marque, .cote .blocorg, .cote .bas .moi-cote { display: none; }
  .marque { padding-bottom: 6px; }
  .menu { display: flex; overflow-x: auto; gap: 4px; margin-top: 4px; padding-bottom: 4px; scrollbar-width: thin; }
  .menu .titre { display: none; }
  .menu .titre ~ .onglet { padding-left: 8px; }
  /* flex: none : chaque onglet garde la largeur de son libellé et la barre défile (03/10 : la règle « au doigt » plus bas
     fixe min-width: 40px, qui retirait le minimum automatique des éléments flex : les onglets se serraient à 40 px et
     les libellés débordaient les uns sur les autres) */
  .onglet { white-space: nowrap; flex: none; }
  .onglet .pt { display: none; }
  .cote .bas { border-top: 0; padding: 4px 8px 0; margin-top: 0; }
  .contenu { padding: 16px 14px 40px; }
  .g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .liste li { flex-wrap: wrap; }
  .liste .h { margin-left: 36px; }
  .liste li > .corps + .h { margin-left: auto; }
  .moi, .lui { max-width: 94%; }
}
@media (max-width: 480px) { .g4 { grid-template-columns: minmax(0, 1fr); } .haut .actions { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .etat .pu { animation: none; } }

/* Ajustements « Discuter » */
.pied-fil .saisie { position: static; border: 0; padding: 0; background: none; }
.haut .recherche { min-width: 180px; width: 200px; }
.liste li.sel { background: var(--cream); box-shadow: inset 3px 0 0 var(--orange); padding-left: 8px; }
.fil-conv.lecture { max-height: 62vh; overflow-y: auto; }
.tete-fil > div { flex: 1; min-width: 0; }
.liste li b a { text-decoration: none; }
.liste li b a:hover { color: var(--orange-texte); }
.question { border: 1px solid var(--ligne); border-radius: 8px; padding: 4px 12px 12px; background: var(--cream); }
.question label:first-of-type { margin-top: 8px; }
/* 22/11 : les quatre plages tiennent sur un écran de PC, sans défilement sur le côté ; une plage passe sur deux
   lignes plutôt que de déborder */
.tableau.horaires { width: 100%; table-layout: fixed; }
.tableau.horaires th:first-child { width: 8.5em; }
.tableau.horaires td { white-space: normal; }
.tableau.horaires input { width: 6.6em; max-width: 100%; display: inline-block; padding: 6px 10px; }
#absences input[type=date] { min-width: 150px; }
.actions-personne { display: grid; gap: 10px; }
.actions-personne form + form { border-top: 1px solid var(--ligne); padding-top: 10px; }
.actions-personne label { margin-top: 6px; }
.g-une { grid-template-columns: minmax(0, 1fr); gap: 9px; }
.plein-auto > h2 { font-size: 18px; margin: 22px 0 8px; }
.imprime-seulement { display: none; }
@media print {
  .imprime-seulement { display: block; font-size: 12px; color: var(--doux); margin: 0 0 12px; }
  .barre, .barre i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cote, details.aide, .haut .actions, .pastilles, .visite, .point-aide, .evitement { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .app { display: block; } .contenu { padding: 0; max-width: none; } body { background: #fff; }
  .carte { break-inside: avoid; }
}
h2.titre-section { font-size: 15px; margin: 18px 0 10px; }

/* P19 · Intégrations : signaler un problème sur une carte, étapes du branchement en libre-service */
form.en-ligne { display: inline; }
details.signal { margin-top: 8px; }
details.signal summary { cursor: pointer; color: var(--doux); font-size: 13px; }
details.signal summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
details.signal form { margin-top: 8px; }
details.signal textarea { min-height: 64px; }
ol.etapes { margin: 0 0 10px; padding-left: 20px; }
ol.etapes li { margin: 6px 0; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* D126 : comptes en libre-service, guide, faux fournisseur */
.vos-comptes{margin:6px 0 22px}.compte-lib h3{margin:0;font-size:15px}.droits li{margin-bottom:10px}
.etat-compte{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.droits .sous,.compte-choix .sous{display:block}.piege summary,.confirmation{font-weight:600}

/* P20 · Délégations entre agents (D70) : une ligne courte, puis la réponse signée par l'agent */
.delegation { justify-self: start; max-width: 86%; font-size: 13px; color: var(--doux); font-style: italic;
  padding: 4px 10px; border-left: 2px solid var(--orange); }
.delegation .qui { font-style: normal; font-weight: 500; margin-right: 6px; }
.delegation .quand { margin-left: 8px; font-style: normal; }
.delegation.attente, .delegation.echec { border-left-color: var(--oat); }
.lui.delegue { border-style: dashed; }
.fil-conv.lecture .delegation { justify-self: end; }
.fil-conv.lecture .lui.delegue { justify-self: end; }

/* P21 · Aide : le « ? » de chaque écran, la visite guidée, la page Aide */
.point-aide { position: relative; display: inline-block; }
.point-aide > summary { list-style: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--oat); background: var(--blanc); color: var(--doux); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; }
.point-aide > summary::-webkit-details-marker { display: none; }
.point-aide > summary:hover, .point-aide[open] > summary { border-color: var(--orange); color: var(--orange-texte); }
.point-aide > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.bulle-aide { position: absolute; z-index: 20; top: 30px; left: 0; width: min(340px, calc(100vw - 48px));
  background: var(--blanc); border: 1px solid var(--oat); border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(17, 17, 17, .08); font-size: 13px; font-weight: 400; }
.bulle-aide b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--pale); }
.bulle-aide p { margin: 2px 0 10px; color: var(--noir); line-height: 1.45; }
.bulle-aide a { color: var(--orange-texte); }
.visite { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff6f1; border: 1px solid #ffd2bd; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.visite .texte { flex: 1 1 280px; }
.visite .texte b { display: block; }
.visite .texte p { margin: 2px 0 0; color: var(--doux); font-size: 13.5px; }
.visite .sur-titre { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-texte); }
.visite.accueil { background: var(--blanc); border-color: var(--oat); }
dl.mots { margin: 0; }
dl.mots dt { font-weight: 500; margin-top: 10px; }
dl.mots dd { margin: 2px 0 0; color: var(--doux); font-size: 13.5px; }
details.faq { border-bottom: 1px dashed var(--oat); padding: 8px 0; }
details.faq summary { cursor: pointer; font-weight: 500; }
details.faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* La bulle du « ? » s'ouvre sous le titre, calée à gauche du bandeau : calée sur le « ? », elle sortait de l'écran
   quand un long titre le poussait à droite (recette du paquet L, mesuré à 1366 px). */
.haut { position: relative; }
.point-aide { position: static; }
.bulle-aide { top: 100%; }
.msg-ident .point-aide { position: relative; }
.msg-ident .bulle-aide { top: 30px; }
@media (max-width: 820px) {
  .msg-ident .point-aide { position: static; }
  .msg-tete { position: relative; }                      /* la bulle s'ouvre sous l'en-tête du fil, pas sous l'écran */
  .bulle-aide, .msg-ident .bulle-aide { left: 0; right: 0; width: auto; top: 100%; }
}

/* P23 · Journal des modifications (titulaire) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
ul.journal li.jour-journal { display: block; padding: 14px 0 4px; border: 0; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--pale); }

/* P24 · Clavier : lien d'évitement, anneau de focus visible aussi sur les champs */
.evitement { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--noir); color: #fff;
  padding: 8px 12px; border-radius: 6px; text-decoration: none; }
.evitement:focus { top: 8px; }
main.contenu:focus { outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange-texte);
  outline-offset: 1px; }

/* P27 · Métier du port : planning des deux ports, aire de carénage */
.tableau.planning th.auj, .tableau.planning td.auj { background: #fff6f1; }
.creneau { display: inline-block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 6px;
  background: var(--cream); border: 1px solid var(--oat); margin: 0 4px 4px 0; white-space: nowrap; }
.creneau.p-0 { border-left: 3px solid var(--orange); }
.creneau.p-1 { border-left: 3px solid var(--bleu); }
.creneau.p-2 { border-left: 3px solid var(--vert); }
.pastilles .sep { display: inline-block; width: 1px; height: 18px; background: var(--oat); margin: 0 6px;
  vertical-align: middle; }
.aire { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.jour-aire { border: 1px solid var(--oat); border-radius: 8px; padding: 8px; font-size: 13px; display: grid; gap: 2px; }
.jour-aire.auj { border-color: var(--orange); background: #fff6f1; }
.jour-aire.plein { background: var(--cream); }
@media (max-width: 820px) { .aire { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Sur un téléphone, chaque ligne d'un tableau « replie » devient une petite fiche, champ par champ. */
@media (max-width: 600px) {
  table.replie, table.replie tbody, table.replie tr, table.replie td { display: block; width: 100%; }
  table.replie th { display: none; }
  table.replie tr { padding: 10px 0; border-bottom: 1px solid var(--ligne); }
  table.replie td { border: 0; padding: 2px 0; }
  table.replie td[data-label]::before { content: attr(data-label) " : "; color: var(--pale); font-size: 12px; }
}

/* P22 · Animations discrètes, comme le site : entrées douces, jauges qui se remplissent, compteurs (espace.js),
   transitions courtes. Aucune bibliothèque ; rien ne retarde l'affichage (le contenu est là dès le départ, seule
   l'apparence bouge, 0,35 s au plus) ; tout s'arrête si la personne a demandé moins de mouvement. */
@keyframes entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes remplir { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.contenu > .haut, .contenu > .visite, .contenu > .grille > .carte, .contenu > .carte, .contenu > .intro {
  animation: entree .35s ease-out both; }
.contenu > .grille > .carte:nth-child(2) { animation-delay: .04s; }
.contenu > .grille > .carte:nth-child(3) { animation-delay: .08s; }
.contenu > .grille > .carte:nth-child(4) { animation-delay: .12s; }
.contenu > .grille > .carte:nth-child(n+5) { animation-delay: .16s; }
.barre > i { transform-origin: left center; animation: remplir .6s cubic-bezier(.2, .7, .2, 1) both .1s; }
.btn, .onglet, .lien, li.lien, .badge, .carte, .org, .point-aide > summary {
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
li.lien:hover { background: #fcfbf9; }
.bulle-aide, .aide-panneau { animation: entree .2s ease-out both; }
.fil-conv > .moi, .fil-conv > .lui, .fil-conv > .delegation { animation: entree .25s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Relecture d'un document mis au propre (P36, D85) */
ul.puces { margin: 6px 0 10px; padding-left: 18px; }
ul.puces li { margin: 3px 0; }
.version-propre h3 { font-size: 15px; margin: 16px 0 6px; }
.version-propre h3:first-of-type { margin-top: 4px; }
.version-propre h4 { font-size: 13.5px; margin: 12px 0 4px; }
.version-propre p { margin: 6px 0; }
mark.introuvable { background: #fde2e2; color: #8a1010; border-bottom: 2px solid #c62828; padding: 0 2px; border-radius: 2px; }
.carte h3 { font-size: 13.5px; margin: 14px 0 4px; }
.phrase-validation { font-weight: 600; font-size: 13px; margin: 8px 0 0; }
textarea.texte-propre { width: 100%; min-height: 320px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
/* « Mon entreprise » en lecture (décision d'Olivier du 03/10 : le titulaire seul modifie) */
.texte-lu { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 12px; }
pre.texte-brut { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: var(--cream); border: 1px solid var(--oat);
  border-radius: 8px; padding: 10px; max-height: 420px; overflow: auto; }

/* Rubriques « Ce que l'agent doit savoir » (P41, D91) */
.rubrique { padding: 12px 0; border-top: 1px solid var(--oat); }
.rubrique:first-of-type { border-top: 0; }
.rubrique label { font-weight: 600; margin: 0; }
.rubrique textarea { width: 100%; min-height: 80px; }

/* Intégrations par agent (P45) */
details.branchement { border-top: 1px solid var(--oat); padding: 8px 0; }
details.branchement summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
details.branchement summary::-webkit-details-marker { display: none; }
details.branchement summary::before { content: "›"; color: var(--pale); width: 10px; transition: transform .15s; }
details.branchement[open] summary::before { transform: rotate(90deg); }
details.branchement .nom-b { font-weight: 600; flex: 1; }
details.branchement .corps-b { padding: 6px 0 4px 20px; }
details.branchement .corps-b p { margin: 6px 0; }

/* Réglages du port (P47, P56) : le tableau des saisons défile sur téléphone plutôt que d'écraser les champs */
#effectif_minimal .tableau { min-width: 480px; }
#effectif_minimal .tableau input { width: 100%; min-width: 0; }
#effectif_minimal .tableau td:nth-child(2), #effectif_minimal .tableau td:nth-child(3) { width: 96px; }
#effectif_minimal .tableau td:nth-child(4) { width: 84px; }
/* Console, relevé du temps (P50) : la saisie tient sur une ligne en grand écran, en colonne sur téléphone */
.saisie-temps { display: grid; gap: 10px 14px; grid-template-columns: 130px minmax(0, 1.4fr) minmax(0, 1.2fr) 170px; }
.saisie-temps .large { grid-column: 1 / -1; }
@media (max-width: 760px) { .saisie-temps { grid-template-columns: minmax(0, 1fr); } }
/* « Discuter » (P63, D105) : réponses mises en forme, portrait de l'agent qui répond à une délégation, aide à la saisie */
.lui .texte { white-space: normal; }
.texte p { margin: 0 0 8px; }
.texte p:last-child, .texte ul:last-child, .texte ol:last-child { margin-bottom: 0; }
.texte ul, .texte ol { margin: 0 0 8px; padding-left: 20px; }
.texte li + li { margin-top: 3px; }
.texte a { color: var(--orange-texte); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.rond.mini { width: 18px; height: 18px; font-size: 10px; margin-right: 6px; vertical-align: -4px; display: inline-grid;
  place-items: center; }
.bas-seule { margin: 14px 0 0; text-align: center; }
.tete-fil { flex-wrap: nowrap; }
@media (max-width: 820px) {
  .visite.accueil.masque-tel, .intro.masque-tel { display: none; }
}

/* Portraits des agents (P75) : ceux du site, dans les deux styles, recadrés sur le visage comme les vignettes du site
   (site.css, .vignette), sur le fond marine commun à tous les agents (--degrade-avatar du site). Recadrage (2026-10-03) :
   l'image prend la largeur du rond, calée en haut, puis elle est déplacée et agrandie autour du point des yeux, donné par la
   classe cadrage-<cle> (portraits.css, copie de la table PORTRAITS du site) : yeux centrés, à la même hauteur dans tous les
   ronds, quelle que soit leur taille. --portrait-echelle : moins de zoom pour le grand rond de « Aujourd'hui ». */
.rond.portrait { padding: 0; overflow: hidden; color: transparent; border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, #0c2230 0%, #0f2733 55%, rgba(255, 138, 107, .35) 100%); }
.rond.portrait { position: relative; }
.rond.portrait img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transform-origin: var(--portrait-x, 50%) var(--portrait-y, 31%);
  transform: translate(var(--portrait-dx, 0%), var(--portrait-dy, 12%)) scale(calc(var(--portrait-zoom, 1.7) * var(--portrait-echelle, 1))); }
/* tailles des portraits : 34 px dans les listes, 40 px dans une tête (vignette du site), 56 px en grand */
.rond.portrait { width: 34px; height: 34px; }
.rond.portrait.moyen, .rond.portrait.grand { width: 40px; height: 40px; }
.rond.portrait.enorme { width: 56px; height: 56px; }
.rond.portrait.mini { width: 22px; height: 22px; vertical-align: -6px; }
/* Planning (D108) : la semaine en grille personnes × jours, une couleur par poste, les absences hachurées ; au
   téléphone, la même semaine en liste, jour par jour. */
.nav-semaine { display: flex; gap: 6px; flex-wrap: wrap; }
.legende-planning { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12.5px; color: var(--doux); max-width: 640px; }
.legende-planning li { display: inline-flex; align-items: center; gap: 6px; }
.pt-legende { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }
.planning-carte { overflow: hidden; }
.grille-planning-cadre { overflow-x: auto; }
.grille-planning { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.grille-planning th, .grille-planning td { border-bottom: 1px solid var(--ligne); border-right: 1px solid var(--ligne);
  padding: 6px; vertical-align: top; text-align: left; }
.grille-planning tr > :last-child { border-right: 0; }
.grille-planning tbody tr:last-child > * { border-bottom: 0; }
.grille-planning thead th { background: var(--cream); font-size: 12.5px; font-weight: 600; color: var(--doux); padding: 10px 8px; }
.grille-planning thead th .j-num { font-size: 16px; color: var(--noir); }
.grille-planning thead th.auj, .grille-planning thead th.auj .j-num { color: var(--orange-texte); }
.grille-planning .col-qui { width: 176px; }
.grille-planning tbody th { font-weight: 400; background: var(--blanc); }
.grille-planning td.auj { background: rgba(255, 86, 0, .035); }
.grille-planning tr.moi-planning > * { background: rgba(255, 86, 0, .05); }
.qui-planning { display: flex; gap: 8px; align-items: flex-start; }
.qui-planning b { display: inline; font-size: 13.5px; }
.qui-planning small { display: block; margin-top: 2px; font-size: 11px; color: var(--pale); line-height: 1.35; }
.cr { display: block; margin-bottom: 4px; padding: 5px 7px 5px 8px; border-radius: 8px; border-left: 3px solid;
  font-size: 12px; line-height: 1.3; color: var(--noir); text-decoration: none; }
.cr:last-child { margin-bottom: 0; }
.cr b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.cr .h-cr { font-variant-numeric: tabular-nums; color: var(--doux); }
.cr .n-cr { display: block; color: var(--doux); }
a.cr:hover { box-shadow: 0 0 0 1px currentColor inset; }
a.cr:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.libre { color: var(--pale); }
.poste-0 { background: #eef3fd; border-color: #1257c9; } .pt-legende.poste-0 { background: #1257c9; }
.poste-1 { background: #e7f5f3; border-color: #0f766e; } .pt-legende.poste-1 { background: #0f766e; }
.poste-2 { background: #fff1ea; border-color: #c43f00; } .pt-legende.poste-2 { background: #c43f00; }
.poste-3 { background: #f3eefe; border-color: #6d28d9; } .pt-legende.poste-3 { background: #6d28d9; }
.poste-4 { background: #fbf3e6; border-color: #92400e; } .pt-legende.poste-4 { background: #92400e; }
.poste-5 { background: #eaf7ef; border-color: #0b7a3b; } .pt-legende.poste-5 { background: #0b7a3b; }
.poste-6 { background: #fdeef5; border-color: #be185d; } .pt-legende.poste-6 { background: #be185d; }
.poste-7 { background: #f1f3f6; border-color: #475569; } .pt-legende.poste-7 { background: #475569; }
td.abs-absence, td.abs-conge, td.abs-demande, .pt-legende.abs-absence, .pt-legende.abs-conge, .pt-legende.abs-demande,
.abs-ligne { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(17, 17, 17, .06) 6px 12px); }
.abs { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600;
  background: #eeece8; color: #3d3d3b; }
.abs-conge .abs, .abs-ligne.abs-conge { background-color: #e8eefb; color: #1d3f86; }
.abs-demande .abs, .abs-ligne.abs-demande { background-color: #fff5e0; color: #7a4a00; }
.pt-legende.abs-absence { background-color: #d9d6d0; } .pt-legende.abs-conge { background-color: #b9cbf2; }
.pt-legende.abs-demande { background-color: #f5d79c; }
.planning-jours { display: none; padding: 4px 12px 12px; }
.jours-planning { position: sticky; top: 0; z-index: 2; background: var(--blanc); margin: 0; padding: 10px 0;
  flex-wrap: nowrap; overflow-x: auto; }
.jour-planning { scroll-margin-top: 56px; }
.jour-planning h2 { font-size: 15px; margin: 14px 0 8px; font-weight: 600; }
.jour-planning.auj h2 { color: var(--orange-texte); }
.liste-cr { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.liste-cr .cr { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 10px; align-items: center;
  min-height: 44px; margin: 0; padding: 8px 12px; font-size: 14px; }
.liste-cr .cr b { grid-column: 2; grid-row: 1; }
.liste-cr .cr .h-cr { grid-column: 1; grid-row: 1 / span 2; font-weight: 600; color: var(--noir); white-space: nowrap; }
.liste-cr .cr .n-cr { grid-column: 2; }
.abs-ligne { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; background-color: #eeece8; }
.form-planning fieldset { border: 1px solid var(--oat); border-radius: 10px; padding: 10px 12px 12px; margin: 0 0 14px; min-width: 0; }
.form-planning fieldset.choix-demande { border: 0; padding: 0; }
.form-planning legend { font-weight: 600; padding: 0 4px; }
.form-planning input[type=date], .form-planning input[type=time], .form-planning select { width: 100%; }
.form-planning textarea { width: 100%; }
.creneau-choisi { display: flex; align-items: center; gap: 14px; }
.creneau-choisi .cr { margin: 0; min-width: 150px; font-size: 13px; }
.etat-demande { margin-top: 12px; }
.etat-demande > p { margin: 6px 0; }
.motif-outil { padding: 10px 12px; border-left: 3px solid var(--rose); background: var(--cream); border-radius: 0 8px 8px 0; }
.etat-a_valider .motif-outil, .etat-transmise .motif-outil { border-left-color: var(--bleu); }
@media (max-width: 760px) {
  .grille-planning-cadre { display: none; }
  .planning-jours { display: block; }
  .legende-planning { font-size: 12px; }
  .creneau-choisi { flex-wrap: wrap; }
}
/* P90 : dans le bloc de l'entreprise, le nom sur deux lignes au plus, le nombre de personnes dessous */
.blocorg .org { flex-wrap: wrap; align-items: flex-start; row-gap: 1px; }
.blocorg .org .nom-org { flex: 1 1 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: normal; }
.blocorg .org .nb { flex-basis: 100%; margin-left: 26px; padding-left: 0; white-space: normal; }
/* P86 : au téléphone, « Mon compte », « Se déconnecter » et « Style » dans un seul bouton, en haut à droite */
.compte-tel { display: none; }
.compte-tel > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.compte-tel > summary::-webkit-details-marker { display: none; }
.compte-tel > summary .rond.mini { margin: 0; }
@media (max-width: 820px) {
  .cote { position: relative; }
  .cote .bas { padding: 0; }
  .compte-large { display: none; }
  .compte-tel { display: block; position: absolute; top: 8px; right: 10px; z-index: 30; }
  .compte-tel-panneau { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; display: grid; gap: 8px;
    padding: 12px; background: var(--blanc); border: 1px solid var(--oat); border-radius: 10px;
    box-shadow: 0 12px 30px rgba(17, 17, 17, .14); }
  .compte-tel-panneau form { display: block; }
  .compte-tel-panneau .btn { width: 100%; margin: 0; }
}
/* P85 (D119) : l'agent travaille. « Maiwenn réfléchit » dans sa bulle dès l'envoi, « Anna cherche » dans la ligne de
   délégation, avec trois points qui bougent ; « réduire les animations » : les points restent fixes. */
.travail { display: inline-flex; align-items: center; gap: 8px; color: var(--doux); font-style: italic; }
.points { display: inline-flex; align-items: center; gap: 4px; }
.points i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange-texte); opacity: .35;
  animation: points-travail 1.2s ease-in-out infinite; }
.points i:nth-child(2) { animation-delay: .15s; }
.points i:nth-child(3) { animation-delay: .3s; }
@keyframes points-travail { 40% { opacity: 1; transform: translateY(-2px); } }
.delegation.travail { display: flex; align-items: center; gap: 6px; }
.delegation.attente .rond.mini { margin-right: 2px; }
@media (prefers-reduced-motion: reduce) { .points i { animation: none !important; transition: none !important; opacity: .7; } }
/* Planning, gestes directs (P91) et retour visuel (P95) : « + » d'une case, créneau en vérification (hachures et
   contour pointillé), en attente du code (contour orange), case visée pendant un glisser, menus sur le créneau. */
.grille-planning td { position: relative; }
.grille-planning td[data-cible] { padding-bottom: 26px; }
.ajout-cr { position: absolute; right: 5px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 15px; line-height: 1; color: var(--doux);
  border: 1px dashed var(--sand); background: var(--blanc); opacity: 0; transition: opacity .15s; text-decoration: none; }
.grille-planning td:hover .ajout-cr, .ajout-cr:focus-visible { opacity: 1; }
@media (hover: none) { .ajout-cr { opacity: .8; } }
.ajout-cr:hover { color: var(--orange-texte); border-color: var(--orange-texte); }
a.cr[draggable="true"] { cursor: grab; }
.cr-glisse { opacity: .5; }
.cr-origine { opacity: .35; }
.cible-survol { box-shadow: inset 0 0 0 2px var(--orange); background-color: rgba(255, 86, 0, .06); }
.cr-verif { outline: 1.5px dashed currentColor; outline-offset: -1.5px;
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(17, 17, 17, .07) 5px 10px); }
.cr-attente { outline: 1.5px dotted var(--orange-texte); outline-offset: -1.5px; }
.etat-cr { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--orange-texte);
  font-style: italic; }
.pt-legende.cr-verif { background-color: transparent; outline-color: var(--doux); }
.ajout-jour { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--orange-texte); }
.annonce-planning { position: sticky; top: 8px; z-index: 6; margin-bottom: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--noir); color: #fff; font-size: 14px; display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap; box-shadow: 0 8px 24px rgba(17, 17, 17, .18); }
.annonce-planning .btn { background: #fff; }
.pop-planning { position: absolute; z-index: 50; min-width: 220px; max-width: calc(100vw - 16px); display: grid; gap: 4px;
  padding: 8px; background: var(--blanc); border: 1px solid var(--oat); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(17, 17, 17, .16); font-size: 14px; }
.pop-planning [role=menuitem] { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--noir); font: inherit; cursor: pointer; text-decoration: none; }
.pop-planning [role=menuitem]:hover, .pop-planning [role=menuitem]:focus-visible { background: var(--cream); }
.pop-planning .danger-menu { color: var(--rose); }
.pop-planning .danger-menu.confirmer { background: var(--rose); color: #fff; }
.pop-ajout { gap: 8px; padding: 12px; width: 260px; }
.pop-ajout label { display: grid; gap: 3px; font-size: 13px; }
.pop-ajout select, .pop-ajout input { width: 100%; }
.champ-heure { max-width: 9em; }
.format-champ { display: block; margin-top: 2px; font-size: 12px; }
.liste-cr .cr .etat-cr { grid-column: 2; }
/* Planning imprimé (P99) : la semaine en grille sur une page A4 en paysage, sans menu, boutons ni demandes ; les couleurs
   des postes gardées, le texte en noir quel que soit le style choisi. */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .planning-jours, .nav-semaine, .annonce-planning, #demandes, .ajout-cr, .intro.masque-tel, .message.info,
  [data-imprimer] { display: none !important; }
  .grille-planning-cadre { display: block !important; overflow: visible; }
  .grille-planning { min-width: 0; font-size: 10px; }
  .grille-planning td[data-cible] { padding-bottom: 4px; }
  .grille-planning th, .grille-planning td, .grille-planning tbody th, .grille-planning thead th {
    background: #fff !important; color: #111 !important; border-color: #ccc !important; }
  .cr, .cr b, .cr .h-cr, .cr .n-cr, .abs, .qui-planning small, .j-num { color: #111 !important; }
  .cr, .abs, .pt-legende, td.abs-absence, td.abs-conge, td.abs-demande { -webkit-print-color-adjust: exact;
    print-color-adjust: exact; }
  .planning-carte { border: 0 !important; box-shadow: none !important; }
  .legende-planning, .haut h1, .imprime-seulement, .qui-planning .rond { color: #111 !important; }
  .haut .badge { color: #111 !important; background: none !important; border-color: #ccc !important; }
}
/* P108 (D106) : le choix du style toujours en vue : sous la marque dans la barre de gauche (espace et console), sous la
   carte des pages seules, dans l'en-tête de « Discuter » ; au téléphone, sur la ligne de la marque. */
.bascule-style { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--oat); border-radius: 999px;
  background: var(--blanc); flex: none; }
.bascule-style button { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--doux);
  padding: 3px 11px; min-height: 28px; border-radius: 999px; cursor: pointer; }
.bascule-style button:hover { color: var(--noir); }
.bascule-style button[aria-pressed="true"] { background: var(--noir); color: #fff; }
.cote-haut { display: flex; flex-wrap: wrap; align-items: center; }
.cote-haut .marque, .cote-haut .sous-marque { flex-basis: 100%; }
.cote-haut .bascule-style { margin: 0 8px 14px; }
@media (max-width: 820px) {
  .cote-haut { flex-wrap: nowrap; gap: 8px; margin-bottom: 4px; }
  .cote-haut .marque { flex: 1 1 auto; min-width: 0; padding-bottom: 0; }
  .cote-haut .bascule-style { margin: 0; }
  .cote-haut .compte-tel { position: relative; top: auto; right: auto; }
}
@media (max-width: 480px) { .cote-haut .marque span.petit { display: none; } }
/* P115 : « Accès et personnes », une personne par carte sur toute la largeur, la date et les actions dessous (aussi au
   téléphone) ; D141 (P117) : les agents ouverts à chacun, cochés par le titulaire. */
.liste li.personne { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; }
.personne .corps p { margin: 0; }
.personne .corps .sous { overflow-wrap: anywhere; }
.personne-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.personne-agents { margin-top: 4px !important; font-size: 13px; color: var(--doux); }
.personne-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px !important;
  font-size: 12.5px; color: var(--pale); }
.gerer-personne { margin-top: 10px; }
.gerer-personne > summary { display: inline-flex; list-style: none; cursor: pointer; }
.gerer-personne > summary::-webkit-details-marker { display: none; }
.gerer-personne .actions-personne { margin-top: 10px; padding: 12px; border: 1px solid var(--oat); border-radius: 10px;
  background: var(--cream); }
.agents-personne label.case { margin: 6px 0; }
/* P115 : au téléphone, la barre du haut garde sa hauteur quand l'écran est court (plus de bande vide sous le menu) */
@media (max-width: 820px) { .app { grid-template-rows: auto minmax(0, 1fr); align-content: start; } }
/* P115 : au téléphone, dans les listes, la date, le prix ou l'étiquette passent sous le titre (Mes clients,
   Facturation, Tarifs, demandes du planning) au lieu de l'écraser lettre par lettre */
@media (max-width: 600px) {
  .liste li > .corps { flex: 1 1 calc(100% - 44px); }
  .liste li > .corps ~ .h, .liste li > .corps ~ .badge { margin-left: 36px; white-space: normal; }
  .liste li > .corps:first-child ~ .h, .liste li > .corps:first-child ~ .badge { margin-left: 0; }
  .liste li > .corps ~ .h + .h { margin-left: 12px; }
}

/* Au doigt, toute zone cliquable fait 40 px au moins de haut (recette du paquet L : mesuré écran par écran à 390 px,
   dans les deux styles). Écrit avec « !important » parce que le style « Archipel » et la messagerie fixent leurs propres
   hauteurs ; ne joue qu'au téléphone. Une case à cocher se touche par son libellé, qui prend la hauteur. */
@media (max-width: 820px) {
  .btn, .bton, .env, a.badge, .onglet, .ajout-jour, .lien-menu, .msg-bouton, .bascule-style button, .msg-plus-panneau a,
  .msg-plus-compte a, .pied-carte .lien-texte, .rangee > .lien-texte, form > .lien-texte, .cote .bas > .lien-texte,
  .retour {
    min-height: 40px !important; min-width: 40px; display: inline-flex; align-items: center; }
  .btn, .bton, .env, .bascule-style button, a.badge { justify-content: center; }
  .onglet { display: flex; }
  .msg-bouton { min-width: 40px !important; justify-content: center; }
  .point-aide > summary { width: 40px !important; height: 40px !important; font-size: 14px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]), select, textarea {
    min-height: 40px !important; min-width: 40px; }
  label.case { min-height: 40px; }
  details:not(.point-aide) > summary:not(.btn):not(.msg-bouton) { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
}

/* ---------------------------------------------------------------- refonte R1 (20/11) : composants de la maquette
   client-refonte. Rien que des variables de :root : le thème « Archipel » les rebranche (style-site.css). */
.pastilles { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.pastille { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 99px;
  border: 1px solid var(--oat); background: var(--blanc); color: var(--doux); font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; }
.pastille:hover { border-color: var(--sand); color: var(--noir); }
.pastille.actif { border-color: var(--orange); color: var(--orange-texte); background: var(--aide-fond); }
.alerte-compte { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px;
  border: 1px solid var(--aide-bord); border-radius: 10px; background: var(--aide-fond); font-size: 13.5px; }
.alerte-compte .btn { margin-left: auto; }
.lignes > .ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; font-size: 14px;
  border-top: 1px solid var(--ligne); }
.lignes > .ligne:first-child { border-top: 0; }
.lignes > .ligne > .texte { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lignes > .ligne > .texte.plein { white-space: normal; overflow: visible; }
.lignes > .ligne > .droite { flex-shrink: 0; }
/* 24/11 : le formulaire d'une prestation s'ouvre sous sa ligne, « Modifier » ne bouge pas */
.ligne > .edition { display: none; flex-basis: 100%; }
.ligne:has(details.ouvre[open]) > .edition { display: block; }
.titre-l { font-weight: 600; }
.ligne .droite, .outil .fin { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.outil { display: grid; grid-template-columns: 150px minmax(0, 1fr) max-content 130px; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--ligne); font-size: 14px; }
.outil.qr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 130px; }
.outil.tetiere { border-top: 0; padding-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--pale); }
.outil.tetiere + .outil, .carte > .outil:first-child { border-top: 0; }
.reglage { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--oat); border-radius: 10px; background: var(--cream); }
/* 28/11 : « Ce que Yann a retenu sur vos mails » : la règle, puis « Retirer » ; une adresse longue passe à la ligne */
ul.regles-mails li { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.form-ligne { display: grid; grid-template-columns: 220px minmax(0, 420px); gap: 12px 16px; align-items: center; }
.form-ligne label { margin: 0; }
.form-ligne + .form-ligne { margin-top: 10px; }        /* paquet A, point 3 : deux lignes de champs ne se collent pas */
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.chiffre { padding: 14px 16px; border: 1px solid var(--oat); border-radius: 10px; background: var(--blanc); }
a.chiffre { display: block; color: inherit; text-decoration: none; }
a.chiffre:hover, a.chiffre:focus-visible { border-color: var(--orange); }
a.chiffre span { text-decoration: underline; }
.chiffre b { display: block; font-size: 22px; font-weight: 700; }
.chiffre span { font-size: 13px; color: var(--pale); }
.chiffre span + span { display: block; margin-top: 2px; font-size: 12px; }   /* Rapports : l'écart, dessous */
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.vignette { display: flex; gap: 16px; align-items: stretch; padding: 16px; border: 1px solid var(--oat); border-radius: 10px;
  background: var(--blanc); }
.vignette.chef { grid-column: 1 / -1; border-color: var(--orange); }
.vignette.vide { border-style: dashed; background: transparent; }
.vignette .portrait-v { flex: 0 0 96px; height: 120px; border-radius: 10px; overflow: hidden; display: flex;
  align-items: flex-end; justify-content: center;
  background: radial-gradient(120% 90% at 50% 100%, var(--vignette-halo), var(--vignette-fond) 70%); }
.vignette .portrait-v img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.vignette .portrait-v.plus { align-items: center; font-size: 32px; color: var(--pale); background: var(--cream); }
.portrait-v.grand { flex-basis: 84px; height: 104px; }
.vignette .corps-v { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.vnom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; font-weight: 700; }
.vstat { margin-top: 6px; font-size: 13px; color: var(--pale); }
.vstat b { color: var(--noir); }
.vignette .actions-v { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.tete-agent { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.tete-agent h1 { margin: 0 0 2px; font-size: 22px; }
.tete-agent .droite { margin-left: auto; }
.tete-agent .titre-ligne { display: flex; align-items: center; gap: 8px; }
@media (max-width: 700px) {
  .outil, .outil.qr { grid-template-columns: minmax(0, 1fr) auto; }
  .outil > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .outil.tetiere { display: none; }
  .lignes > .ligne > .texte { white-space: normal; flex-basis: 100%; }
  .outil > .fin { grid-column: 1 / -1; justify-content: flex-start; margin-left: 0; }
  .form-ligne { grid-template-columns: minmax(0, 1fr); }
  .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }   /* comme la maquette à 390 px */
  .chiffre { padding: 12px 10px; overflow-wrap: anywhere; }
  .chiffre b { font-size: 18px; }
  .vignettes { grid-template-columns: minmax(0, 1fr); }
}
/* refonte R3, point 2 : la signature collée (fond clair dans les deux thèmes, comme dans un mail) et son aperçu */
.zone-signature { min-height: 150px; margin: 10px 0 0; padding: 16px 18px; border: 1px solid var(--oat); border-radius: 10px;
  background: var(--blanc-mail); color: var(--encre-mail); font-family: Arial, sans-serif; font-size: 14px; line-height: 1.4;
  overflow-wrap: anywhere; }
.zone-signature:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.zone-signature[data-signature-zone] :is(a, a:hover) { color: var(--lien-mail); background: var(--blanc-mail); text-decoration: underline; }
.apercu-signature { width: 100%; min-height: 170px; margin-top: 12px; border: 1px solid var(--oat); border-radius: 10px;
  background: var(--blanc-mail); }
/* refonte R3, point 3 : Mémoire des agents, la ligne choisie et les gestes repliés */
.lignes > a.ligne { color: inherit; }
.lignes > a.ligne:hover, .lignes > a.ligne.actif { color: var(--orange-texte); }
details.corriger > summary, details.changer-genre > summary { list-style: none; }
details.corriger[open], details.changer-genre[open] { flex-basis: 100%; }
/* refonte de la console, C1 (20/11) : composants de la maquette console-refonte. Variables de :root seulement, comme
   ceux de l'espace : le thème « Archipel » les rebranche. */
.chiffres.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.outil.att4 { grid-template-columns: 110px minmax(0, 1fr) 120px 110px; }
.outil.cli { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) 120px; }
.outil.cli2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .9fr) 130px minmax(0, .9fr) 120px; }
.outil.agl { grid-template-columns: 44px 120px minmax(0, 1fr) 140px; }
.outil.cah { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 140px 100px; }
.outil.fic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 100px 110px; }
.outil.ch { grid-template-columns: 180px minmax(0, 1fr) 150px 160px; }
.outil.act { grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)); }
.outil.nf { grid-template-columns: 40px minmax(0, 1.5fr) 1fr 1fr 130px; }
.outil.cles { grid-template-columns: 100px minmax(0, 1.2fr) 100px 110px minmax(0, 1.5fr); }   /* Coulisses › Clés (24/11) */
.outil.alr { grid-template-columns: 120px minmax(0, 1fr) 110px max-content; }   /* Mes alertes (25/11) : le badge tient dans sa colonne */
/* 25/11 */
.outil.etape-pj { grid-template-columns: 160px minmax(0, 1fr) max-content max-content; }
.gestes-pj { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.etape-pj .badge, .gestes-pj > * { white-space: nowrap; margin: 0; }
.outil .nom-l, .ligne .nom-l { font-weight: 700; }
.vignette.client { padding: 20px 22px; }
.pastilles-ag { display: flex; gap: 6px; margin-top: 10px; }
.barre-outil { display: grid; grid-template-columns: 150px minmax(0, 1fr) 50px; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 14px; }
.barre-outil .barre { margin-top: 0; }
.barre-outil .val { text-align: right; color: var(--pale); }
.spark { display: block; }
.spark path { fill: none; stroke: var(--orange-texte); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.2s ease-out forwards; }
.spark.rouge path { stroke: var(--rose); }
@keyframes tracer { to { stroke-dashoffset: 0; } }
.graphe { max-width: 100%; height: auto; }
.graphe rect { transform-origin: bottom; transform-box: fill-box; animation: monter .8s ease-out both; }
.graphe .abo { fill: var(--orange-texte); }
.graphe .cout { fill: var(--sand); animation-delay: .15s; }
.graphe text { fill: var(--pale); font-size: 12px; }
.graphe line { stroke: var(--oat); }
@keyframes monter { from { transform: scaleY(0); } }
.legende { display: flex; gap: 16px; font-size: 13px; color: var(--pale); margin: 4px 0 8px; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.legende i.abo { background: var(--orange-texte); }
.legende i.cout { background: var(--sand); }
.etapes { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.etape { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--oat);
  border-radius: 99px; color: var(--pale); font-size: 13px; font-weight: 600; }
.etape .num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--cream); color: var(--noir); }
.etape.actif { color: var(--orange-texte); border-color: var(--orange); }
.etape.actif .num { background: var(--orange-texte); color: var(--blanc); }
.etape.fait { color: var(--vert); }
.fil-echange { display: flex; flex-direction: column; gap: 6px; }
.jour-ech { align-self: center; margin: 10px 0 2px; padding: 2px 12px; border-radius: 99px; background: var(--cream);
  color: var(--pale); font-size: 12.5px; font-weight: 600; }
.bulle-ech { max-width: 72%; padding: 10px 14px; border-radius: 16px; font-size: 14px; }
.bulle-ech.moi { align-self: flex-end; background: var(--moi); }
.bulle-ech.lui { align-self: flex-start; border: 1px solid var(--lui-bord); }
.appel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 2px 4px; font-size: 13px;
  color: var(--pale); }
/* 30/11 : les appels d'un tour repliés sous la réponse, la liste d'étapes cochée, l'heure de chaque message */
.heure-ech { display: block; margin-top: 2px; font-size: 11.5px; color: var(--pale); text-align: right; }
.outils-ech { align-self: flex-start; margin: -2px 0 4px 6px; font-size: 13px; color: var(--pale); }
.outils-ech > summary { cursor: pointer; list-style: none; display: inline-flex; gap: 6px; align-items: center;
  padding: 2px 10px; border: 1px solid var(--oat); border-radius: 99px; }
.outils-ech > summary::-webkit-details-marker { display: none; }
.outils-ech > summary::before { content: "▸"; }
.outils-ech[open] > summary::before { content: "▾"; }
.outils-ech.avec-erreur > summary { border-color: var(--rose); color: var(--rose); }
.appels-ech, .etapes-ech { margin: 6px 0 0; padding: 0 0 0 4px; list-style: none; display: flex; flex-direction: column;
  gap: 3px; }
.appels-ech .appel { margin: 0; }
.appels-ech .appel.rate { color: var(--noir); }
.phrase-erreur { color: var(--rose); }
.etapes-ech li { display: flex; gap: 6px; align-items: baseline; color: var(--noir); }
.etapes-ech li.annule { text-decoration: line-through; color: var(--pale); }
/* 30/11 : la notation sous chaque réponse */
.noter-ech { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px 6px;
  scroll-margin-top: 80px; }
.noter-ech details.noter[open] { flex-basis: 100%; }
.noter-ech details.noter > form { margin-top: 6px; flex-wrap: nowrap; }
.noter-ech details.noter input[name=texte] { flex: 1 1 auto; min-width: 0; }
.note-posee { font-size: 12.5px; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--oat); }
.note-posee.bonne { color: var(--vert); }
.note-posee.ameliorer { color: var(--orange-texte); border-color: var(--orange); }
#dernier { scroll-margin-top: 80px; }
.outil.skl { grid-template-columns: minmax(150px, 1.2fr) minmax(180px, 2fr) 90px 90px 120px 120px; min-width: 760px; }
.outil.comparer { grid-template-columns: minmax(110px, 1.4fr) repeat(auto-fit, minmax(64px, 1fr)); min-width: 520px; }
.table-defile { overflow-x: auto; }
.tete-agent .portrait-v { flex: 0 0 84px; height: 104px; border-radius: 10px; overflow: hidden; display: flex;
  align-items: flex-end; justify-content: center;
  background: radial-gradient(120% 90% at 50% 100%, var(--vignette-halo), var(--vignette-fond) 70%); }
.tete-agent .portrait-v img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
pre.demande { white-space: pre-wrap; font: inherit; font-size: 13px; margin: 8px 0 0; padding: 10px 12px;
  border: 1px solid var(--oat); border-radius: 10px; background: var(--cream); }
.copier { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.rangee.fin { justify-content: flex-end; }
.recherche-cote { margin: 0 4px 8px; }
.recherche-cote input { width: 100%; }
body.console .contenu .carte, body.console .contenu .chiffre { animation: apparaitre .35s ease-out both; }
@keyframes apparaitre { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 700px) {
  .chiffres.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outil.att4, .outil.cli, .outil.cli2, .outil.agl, .outil.cah, .outil.fic, .outil.ch, .outil.act,
  .outil.nf, .outil.cles, .outil.alr, .outil.etape-pj { grid-template-columns: minmax(0, 1fr) auto; }
  .gestes-pj { flex-wrap: wrap; justify-content: flex-start; }
  .bulle-ech { max-width: 92%; }
  .barre-outil { grid-template-columns: 110px minmax(0, 1fr) 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .spark path, .graphe rect, body.console .contenu .carte, body.console .contenu .chiffre { animation: none !important;
    transition: none !important; }
  .spark path { stroke-dashoffset: 0; }
}

/* 24/11 : une prestation n'affiche que les champs de la sorte de prix choisie (fixe, fourchette, sur devis) */
.prestation:has(input[name="p-type"][value="fixe"]:checked) .pr-fourchette,
.prestation:has(input[name="p-type"][value="fourchette"]:checked) .pr-fixe,
.prestation:has(input[name="p-type"][value="sur_devis"]:checked) .pr-fixe,
.prestation:has(input[name="p-type"][value="sur_devis"]:checked) .pr-fourchette { display: none; }
/* 23/11 : « Mon compte » d'une personne qui n'a que la page de chat, hors de l'espace */
.compte-seul { max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; }
.compte-retour { margin: 0 0 12px; }
/* recette du 23/11 : une ligne de « Ce qui attend votre décision » ressort comme la pastille du menu */
.lignes > .ligne.decision { position: relative; padding-left: 14px; }
.ligne.decision .repere { position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--orange-texte); }
/* recette du 23/11 : la ligne entière mène à Discuter, au message qui attend */
a.ligne.decision.lien { color: inherit; text-decoration: none; border-radius: 8px; }
a.ligne.decision.lien:hover, a.ligne.decision.lien:focus-visible { background: var(--cream); }
/* 24/11 (avant la pose) : « Relier Telegram ». Sur un ordinateur, le QR code d'abord (à scanner avec le téléphone), le
   lien en second (Telegram doit y être installé), le lien par mail en secours. */
.relier-tg { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; row-gap: 12px; align-items: start;
  grid-template-areas: "qr texte" "qr pc" "qr secours" "qr fin"; }
.relier-tg-qr { grid-area: qr; margin: 0; padding: 10px; background: var(--blanc); border: 1px solid var(--oat); border-radius: 10px; }
.relier-tg-qr .qr { display: block; width: 100%; height: auto; }
.relier-tg-texte { grid-area: texte; margin: 0; }
.relier-tg-tel { grid-area: tel; display: none; }
.relier-tg-pc { grid-area: pc; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.relier-tg-secours { grid-area: secours; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.relier-tg-fin { grid-area: fin; margin: 0; }
/* Écran étroit (le téléphone) : « Ouvrir Telegram » d'abord, en orange, le QR code en dessous ; pas de lien « ordinateur ». */
@media (max-width: 600px) {
  .relier-tg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tel" "qr" "texte" "secours" "fin"; }
  .relier-tg-tel { display: block; }
  .relier-tg-pc { display: none; }
  .relier-tg-qr { width: 220px; max-width: 100%; }
}
