/* TRACE — refonte.css : la refonte de forme (fil PROTOTYPE du 03/10/2026, archive v30 et suivantes).
   Chargée en dernier. Aucune couleur en dur : tout vient de jetons.css (section « REFONTE »).
   La règle de couleur : une couleur porte un sens, jamais une décoration —
     geste (rouge)    : ce qui demande un geste maintenant (urgence, retard, décision, message non lu)
     relance (ambre)  : ce qui attend une relance (promesse dépassée, sans créneau)
     info (bleu)      : le terrain, ce qui se passe
     ok (vert)        : ce qui est fait (clos, envoyé) — la petite satisfaction
     calme (gris)     : un zéro, un vide ; rien à faire
   Ce qui demande un geste se voit d'abord : nombre rouge en tête, bord gauche rouge sur la ligne. */

/* ================================================================== D1 · la coquille commune */
.app.rf { background: var(--rf-fond); }
.app.rf .contenu { padding: var(--pas-6) var(--pas-8) var(--pas-10); }

/* --- le menu : huit lieux, Réglages en bas --- */
.rf-barre .sd-nav { gap: 2px; }
.rf-barre .sd-marque { padding-bottom: var(--pas-6); }
.rf-barre .sd-nav > a { font-size: 14.5px; padding: 9px 10px; }
.rf-barre .sd-nav a .ic { width: 19px; height: 19px; }
.rf-barre .sd-nav a i { font-style: normal; }
.sd-nav a i.rf-n-geste { background: var(--rf-geste-vif); color: var(--rf-sur-geste); }
.sd-nav a i.rf-n-relance { background: var(--rf-relance-nav); color: var(--rf-relance-nav-texte); }
.sd-nav a i.rf-n-neutre { color: var(--nav-texte-doux); }
.rf-nav-pied { margin-top: auto; padding-top: var(--pas-3); border-top: 1px solid var(--nav-filet); }
.rf-nav-pied a { display: flex; }

/* --- l'en-tête : où je suis · recherche · « + Ticket » · mon compte --- */
.rf-entete { gap: var(--pas-3); padding: 0 var(--pas-6); height: 60px; background: var(--surface); }
.rf-entete .rf-ou { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.rf-lieu-titre { font: var(--graisse-grasse) 17px var(--police-titre); color: var(--texte); }
.rf-recherche { flex: 0 1 380px; display: flex; align-items: center; gap: var(--pas-2); height: 38px; padding: 0 var(--pas-3);
  border-radius: var(--rayon-pastille); background: var(--rf-fond); border: 1px solid var(--bordure); color: var(--texte-faible); }
.rf-recherche:focus-within { border-color: var(--accent); box-shadow: var(--focus); background: var(--surface); }
.rf-recherche .ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.rf-recherche input { flex: 1 1 auto; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--texte); outline: none; }
.rf-recherche input::placeholder { color: var(--texte-faible); opacity: 1; }
.rf-recherche kbd { font: 11px var(--police-chiffres); border: 1px solid var(--bordure-forte); border-radius: 4px; padding: 0 5px; color: var(--texte-faible); }
.rf-plus-ticket { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 var(--pas-4) 0 var(--pas-3);
  border-radius: var(--rayon-pastille); background: var(--rf-action); color: var(--texte-inverse); font-weight: var(--graisse-grasse);
  font-size: 14px; text-decoration: none; box-shadow: var(--ombre); }
.rf-plus-ticket:hover { background: var(--rf-action-survol); text-decoration: none; }
.rf-plus-ticket .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.rf-burger { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: var(--rayon);
  background: none; color: var(--texte); cursor: pointer; }
.rf-burger .ic, .rf-compte .ic, .rf-compte-menu .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* --- le compte, sous l'avatar --- */
.rf-compte { position: relative; flex: none; }
.rf-compte > summary { list-style: none; display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 3px; border-radius: var(--rayon-pastille); color: var(--texte-faible); }
.rf-compte > summary::-webkit-details-marker { display: none; }
.rf-compte > summary:hover, .rf-compte[open] > summary { background: var(--rf-fond); }
.rf-compte .sd-av { width: 32px; height: 32px; font-size: 12.5px; }
.rf-compte-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; padding: var(--pas-2);
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); box-shadow: var(--ombre-panneau); }
.rf-compte-qui { margin: 0; padding: var(--pas-2) var(--pas-3) var(--pas-3); border-bottom: 1px solid var(--bordure); margin-bottom: var(--pas); }
.rf-compte-qui b { display: block; }
.rf-compte-qui small { color: var(--texte-faible); font-size: var(--taille-secondaire); }
.rf-compte-menu a { display: flex; align-items: center; gap: var(--pas-3); padding: 8px var(--pas-3); border-radius: var(--rayon); color: var(--texte); text-decoration: none; font-size: 14px; }
.rf-compte-menu a:hover { background: var(--rf-fond); text-decoration: none; }
.rf-compte-menu a small { margin-left: auto; color: var(--texte-faible); font-size: var(--taille-secondaire); }
.rf-compte-menu .rf-compte-sortir { color: var(--texte-doux); border-top: 1px solid var(--bordure); border-radius: 0 0 var(--rayon) var(--rayon); margin-top: var(--pas); }

/* --- les onglets du lieu (les sous-menus) --- */
.rf-onglets { display: flex; gap: var(--pas-6); padding: 0 var(--pas-8); background: var(--surface); border-bottom: 1px solid var(--bordure);
  overflow-x: auto; scrollbar-width: none; position: sticky; top: 60px; z-index: 19; }
.rf-onglets::-webkit-scrollbar { display: none; }
.rf-onglets a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 12px 0 11px; white-space: nowrap;
  color: var(--texte-doux); font-size: 14px; font-weight: var(--graisse-moyenne); text-decoration: none; }
.rf-onglets a:hover { color: var(--texte); text-decoration: none; }
.rf-onglets a.on { color: var(--texte); font-weight: var(--graisse-grasse); }
.rf-onglets a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--rf-action); }
.rf-onglets .rf-choisi { width: 14px; height: 14px; fill: none; stroke: var(--texte-faible); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rf-ref { font-variant-numeric: tabular-nums; }
.rf-precedent { display: none; align-items: center; gap: 2px; color: var(--texte); font-weight: var(--graisse-grasse); text-decoration: none; min-height: 40px; }
.rf-precedent .ic { width: 18px; height: 18px; transform: scaleX(-1); fill: none; stroke: currentColor; stroke-width: 2; }

/* --- le bandeau de retour après un geste --- */
.rf-retour { display: flex; align-items: center; gap: var(--pas-3); margin: var(--pas-4) var(--pas-8) 0; padding: 10px var(--pas-4);
  border-radius: var(--rayon); background: var(--rf-ok-fond); color: var(--rf-ok); font-weight: var(--graisse-moyenne);
  border: 1px solid var(--rf-ok-filet); animation: rf-entree .25s ease-out; }
.rf-retour .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rf-retour span { flex: 1 1 auto; }
.rf-retour a { color: var(--rf-ok); font-weight: var(--graisse-grasse); text-decoration: underline; }
@keyframes rf-entree { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --- le « ? » d'aide --- */
.rf-aide { position: relative; display: inline-flex; vertical-align: middle; }
.rf-aide-q { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--bordure-forte); background: var(--surface); color: var(--texte-faible);
  font: var(--graisse-grasse) 12px/1 var(--police); cursor: help; padding: 0; }
.rf-aide-q { position: relative; }
.rf-aide-q::after { content: ""; position: absolute; inset: -12px; }   /* zone tactile de 44 px */
.rf-aide-q:hover, .rf-aide-q:focus-visible, .rf-aide-ouverte .rf-aide-q { color: var(--accent); border-color: var(--accent); outline: none; }
.rf-aide-bulle { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 30; width: max-content; max-width: 260px;
  padding: 10px 12px; border-radius: var(--rayon); background: var(--rf-bulle); color: var(--rf-bulle-texte); font-size: 13px; font-weight: var(--graisse-normale);
  line-height: 1.4; box-shadow: var(--ombre-panneau); visibility: hidden; opacity: 0; transition: opacity var(--transition); }
.rf-aide-bulle a { color: inherit; text-decoration: underline; }
.rf-aide:hover .rf-aide-bulle, .rf-aide:focus-within .rf-aide-bulle, .rf-aide-ouverte .rf-aide-bulle { visibility: visible; opacity: 1; }

/* ================================================================== D2 · les pièces communes des écrans refaits */
.rf-page { display: flex; flex-direction: column; gap: var(--pas-6); max-width: 1240px; }
.rf-tete h1 { margin: 0; font: 700 28px/1.15 var(--police-titre); color: var(--texte); letter-spacing: -.01em; }
.rf-tete .rf-date { margin: 4px 0 0; color: var(--texte-faible); font-size: 14px; }
.rf-deux { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--pas-6); align-items: start; }
.rf-colonne { display: flex; flex-direction: column; gap: var(--pas-6); min-width: 0; }
.rf-carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); box-shadow: var(--ombre-carte); padding: var(--pas-4) var(--pas-4) var(--pas-2); min-width: 0; }
.rf-carte-tete { display: flex; align-items: center; gap: var(--pas-2); margin-bottom: var(--pas-2); }
.rf-carte-tete h2 { margin: 0; font: var(--graisse-grasse) 16px var(--police-titre); color: var(--texte); }
.rf-lien-tete { margin-left: auto; font-size: 13.5px; font-weight: var(--graisse-moyenne); color: var(--accent); }
.rf-compte-tete { margin-left: auto; font-size: 13px; color: var(--texte-faible); font-weight: var(--graisse-moyenne); }
.rf-compte-tete.rf-t-relance { color: var(--rf-relance); background: var(--rf-relance-fond); border-radius: var(--rayon-pastille); padding: 1px 9px; font-weight: 700; }
.rf-vide { margin: 0; padding: var(--pas-3) 0 var(--pas-3); color: var(--texte-faible); }

/* --- les trois nombres --- */
.rf-nombres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pas-4); }
.rf-nombres-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rf-nombre { display: flex; flex-direction: column; gap: 2px; padding: var(--pas-4) var(--pas-4) 14px; border-radius: var(--rayon-carte); text-decoration: none;
  background: var(--surface); border: 1px solid var(--bordure); box-shadow: var(--ombre-carte); color: var(--texte-doux); position: relative; overflow: hidden; }
.rf-nombre:hover { text-decoration: none; border-color: var(--bordure-forte); }
.rf-nombre b { font: 700 38px/1 var(--police-titre); letter-spacing: -.02em; color: var(--texte); font-variant-numeric: tabular-nums; }
.rf-nombre span { font-size: 14px; font-weight: var(--graisse-moyenne); }
.rf-nombre::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--bordure); }
.rf-nombre.rf-t-geste { background: var(--rf-geste-fond); border-color: var(--rf-geste-filet); }
.rf-nombre.rf-t-geste::before { background: var(--rf-geste-vif); }
.rf-nombre.rf-t-geste b, .rf-nombre.rf-t-geste span { color: var(--rf-geste); }
.rf-nombre.rf-t-relance::before { background: var(--rf-relance-vif); }
.rf-nombre.rf-t-relance b { color: var(--rf-relance); }
.rf-nombre.rf-t-info::before { background: var(--rf-info); }
.rf-nombre.rf-t-ok::before { background: var(--rf-ok-vif); }
.rf-nombre.rf-t-ok b { color: var(--rf-ok); }
.rf-nombre.rf-t-neutre::before { background: var(--bordure-forte); }
.rf-nombre.rf-zero b, .rf-nombre.rf-t-calme b { color: var(--texte-faible); font-weight: 600; }

/* --- une ligne de ticket --- */
.rf-liste { display: flex; flex-direction: column; }
.rf-li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--pas-3); padding: 10px var(--pas-3) 10px 14px;
  margin: 0 calc(-1 * var(--pas-2)); border-radius: var(--rayon); color: var(--texte); text-decoration: none; position: relative; min-height: 52px; }
.rf-li + .rf-li { border-top: 1px solid var(--bordure); border-top-left-radius: 0; border-top-right-radius: 0; }
.rf-li:hover { background: var(--rf-fond); text-decoration: none; }
.rf-li::before { content: ""; position: absolute; left: 2px; top: 9px; bottom: 9px; width: 4px; border-radius: 3px; }
.rf-bord-geste::before { background: var(--rf-geste-vif); }
.rf-bord-relance::before { background: var(--rf-relance-vif); }
.rf-li-corps { display: flex; flex-direction: column; min-width: 0; }
.rf-li-corps b { font-weight: var(--graisse-grasse); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-li-corps small { color: var(--texte-faible); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-li-ech { font-size: 13px; color: var(--texte-doux); white-space: nowrap; text-align: right; }
.rf-rouge { color: var(--rf-geste); font-weight: var(--graisse-grasse); }
.rf-li .sd-av { width: 28px; height: 28px; font-size: 11px; }
.rf-p { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; font: 700 12px var(--police); letter-spacing: .02em;
  border: 1px solid var(--bordure-forte); color: var(--texte-doux); background: var(--surface); }
.rf-p-p1 { background: var(--rf-geste-vif); border-color: var(--rf-geste-vif); color: var(--rf-sur-geste); }
.rf-p-p2 { border-color: var(--rf-relance-vif); color: var(--rf-relance); background: var(--rf-relance-fond); }
.rf-voir-tout { display: flex; align-items: center; justify-content: center; gap: 4px; margin: var(--pas-2) calc(-1 * var(--pas-4)) 0; padding: 12px;
  border-top: 1px solid var(--bordure); color: var(--accent); font-weight: var(--graisse-grasse); font-size: 14px; text-decoration: none; }
.rf-voir-tout .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* --- la bonne nouvelle : file vidée, journée libre --- */
.rf-bravo { display: flex; align-items: center; gap: var(--pas-4); padding: var(--pas-6) var(--pas-4); border-radius: var(--rayon); background: var(--rf-ok-fond); }
.rf-bravo p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-bravo b { font: 700 20px var(--police-titre); color: var(--rf-ok); }
.rf-bravo span { color: var(--texte-doux); }
.rf-bravo-coche, .rf-progres-coche { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rf-ok-vif); color: var(--texte-inverse); }
.rf-bravo-coche .ic, .rf-progres-coche .ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* --- le progrès de la semaine --- */
.rf-progres { display: flex; align-items: center; gap: var(--pas-4); padding: var(--pas-4); }
.rf-progres .rf-progres-coche { width: 36px; height: 36px; background: var(--rf-ok-fond); color: var(--rf-ok); }
.rf-progres .rf-progres-coche .ic { width: 20px; height: 20px; }
.rf-progres p { margin: 0; display: flex; flex-direction: column; }
.rf-progres b { font-size: 15px; color: var(--texte); }
.rf-progres small { color: var(--texte-faible); font-size: 13px; }

/* --- le terrain du jour (accueil) --- */
.rf-visites { list-style: none; margin: 0; padding: 0; }
.rf-visites li + li { border-top: 1px solid var(--bordure); }
.rf-visites a { display: grid; grid-template-columns: 52px auto minmax(0, 1fr) auto; align-items: center; gap: var(--pas-3); padding: 10px 0; color: var(--texte); text-decoration: none; }
.rf-visites a:hover { text-decoration: none; background: var(--rf-fond); }
.rf-heure { font: 700 15px var(--police); color: var(--rf-info); font-variant-numeric: tabular-nums; }
.rf-visites .sd-av { width: 28px; height: 28px; font-size: 11px; }

/* --- les bandeaux d'état (plateforme muette, veille, sans canal) --- */
.rf-bandeau { display: flex; align-items: center; gap: var(--pas-3); margin: 0; padding: 12px var(--pas-4); border-radius: var(--rayon); font-weight: var(--graisse-moyenne); }
.rf-bandeau .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rf-bandeau span { flex: 1 1 auto; }
.rf-bandeau a { font-weight: var(--graisse-grasse); color: inherit; text-decoration: underline; white-space: nowrap; }
.rf-bandeau-geste { background: var(--rf-geste-fond); color: var(--rf-geste); border: 1px solid var(--rf-geste-filet); }
.rf-bandeau-relance { background: var(--rf-relance-fond); color: var(--rf-relance); border: 1px solid var(--rf-relance-filet); }
.rf-bandeau-neutre { background: var(--surface-3); color: var(--texte-doux); border: 1px solid var(--bordure); }

/* --- Mon terrain : une carte par visite --- */
.rf-cartes-visite { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--pas-2); }
.rf-visite { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; align-items: center; gap: var(--pas-3); padding: 12px 12px 12px 16px;
  border: 1px solid var(--bordure); border-radius: var(--rayon); position: relative; background: var(--surface); }
.rf-visite::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 3px 3px 0; background: var(--rf-info); }
.rf-visite.rf-bord-geste::before { background: var(--rf-geste-vif); }
.rf-visite-heure { font: 700 20px var(--police); color: var(--texte); font-variant-numeric: tabular-nums; }
.rf-visite-corps { display: flex; flex-direction: column; min-width: 0; color: var(--texte); text-decoration: none; }
.rf-visite-corps b { font-size: 15px; }
.rf-visite-corps small { color: var(--texte-faible); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-visite-qui { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texte-doux); }
.rf-visite-qui .sd-av { width: 26px; height: 26px; font-size: 10.5px; }

/* --- boutons --- */
.rf-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 var(--pas-6); border: 0; border-radius: var(--rayon);
  background: var(--rf-action); color: var(--texte-inverse); font: var(--graisse-grasse) 15px var(--police); cursor: pointer; text-decoration: none; }
.rf-bouton:hover { background: var(--rf-action-survol); text-decoration: none; }
.rf-bouton-sec { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--pas-3); border: 1px solid var(--bordure-forte); border-radius: var(--rayon);
  background: var(--surface); color: var(--texte); font-size: 13.5px; font-weight: var(--graisse-moyenne); text-decoration: none; white-space: nowrap; }
.rf-bouton-sec:hover { background: var(--rf-fond); text-decoration: none; }
.rf-bouton-sec .ic, .rf-bouton .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rf-actions { display: flex; gap: var(--pas-3); justify-content: flex-end; }

/* --- Bilan : les clients en barres --- */
.rf-barres { list-style: none; margin: 0; padding: 0; }
.rf-barres li + li { border-top: 1px solid var(--bordure); }
.rf-barres a { display: grid; grid-template-columns: minmax(0, 210px) minmax(60px, 1fr) 190px; align-items: center; gap: var(--pas-4); padding: 10px 0; color: var(--texte); text-decoration: none; }
.rf-barres a:hover { text-decoration: none; background: var(--rf-fond); }
.rf-barre-nom { font-weight: var(--graisse-grasse); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-barre-piste { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rf-barre-val { display: block; height: 100%; width: var(--part); border-radius: 99px; background: var(--rf-info); }
.rf-barre-val.rf-barre-grave { background: var(--rf-geste-vif); }
.rf-barre-n { display: inline-flex; align-items: center; gap: var(--pas-2); font-size: 13px; white-space: nowrap; justify-self: start; }
.rf-barre-n b { font-size: 15px; min-width: 20px; text-align: right; }
.rf-tableau-lien { padding: var(--pas-4); }

/* --- Mon accueil : le choix --- */
.rf-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pas-4); max-width: 820px; }
.rf-choix-carte { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: var(--pas-3); row-gap: 2px; padding: var(--pas-4);
  border: 1.5px solid var(--bordure); border-radius: var(--rayon-carte); background: var(--surface); cursor: pointer; position: relative; }
.rf-choix-carte input { position: absolute; opacity: 0; pointer-events: none; }
.rf-choix-carte .ic { grid-row: span 3; width: 26px; height: 26px; fill: none; stroke: var(--texte-doux); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rf-choix-carte b { font-size: 16px; }
.rf-choix-carte span { color: var(--texte-doux); font-size: 14px; }
.rf-choix-carte small { color: var(--texte-faible); font-size: 12.5px; }
.rf-choix-carte.on, .rf-choix-carte:has(input:checked) { border-color: var(--rf-action); box-shadow: 0 0 0 3px var(--accent-clair); }
.rf-choix-carte:has(input:focus-visible) { box-shadow: var(--focus); }
.rf-choix .rf-actions { grid-column: 1 / -1; justify-content: flex-start; }

/* ================================================================== points de rupture */
@container app (max-width: 1100px) {
  .rf-nombres-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container app (max-width: 900px) {
  .rf-onglets { position: static; }
  .app.rf .contenu { padding: var(--pas-4); }
  .rf-burger { display: inline-flex; }
  .rf-entete { padding: 0 var(--pas-3); }
  .rf-onglets { padding: 0 var(--pas-4); gap: var(--pas-4); }
  .rf-retour { margin: var(--pas-3) var(--pas-4) 0; }
  .rf-deux { grid-template-columns: minmax(0, 1fr); }
}
@container app (max-width: 640px) {
  .rf-burger { display: none; }
  .rf-entete { height: 56px; gap: var(--pas-2); }
  .rf-onglets { top: 56px; padding: 0 var(--pas-3); gap: var(--pas-4); -webkit-mask-image: linear-gradient(90deg, var(--surface) 88%, var(--rf-fondu)); mask-image: linear-gradient(90deg, var(--surface) 88%, var(--rf-fondu)); }
  .rf-entete .rf-ou { flex: 0 1 auto; }
  .rf-entete .rf-ou .fil-ariane, .rf-entete .rf-lieu-titre { display: none; }
  .rf-entete .rf-lieu-titre.rf-lieu-seul { display: none; }
  .rf-precedent { display: inline-flex; }
  .rf-precedent span { display: none; }
  .rf-recherche { flex: 1 1 auto; height: 40px; }
  .rf-recherche kbd { display: none; }
  .rf-plus-ticket { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .rf-plus-ticket span { display: none; }
  .app.rf .contenu { padding: var(--pas-3) var(--pas-3) var(--pas-6); }
  .rf-page { gap: var(--pas-4); }
  .rf-tete h1 { font-size: 24px; }
  .rf-nombres, .rf-nombres-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pas-2); }
  .rf-nombre { padding: 12px 10px 10px 14px; }
  .rf-nombre b { font-size: 30px; }
  .rf-nombre span { font-size: 13px; line-height: 1.25; }
  .rf-li { grid-template-columns: auto minmax(0, 1fr); row-gap: 3px; align-items: start; }
  .rf-li .rf-p { margin-top: 1px; }
  .rf-li .sd-av { display: none; }
  .rf-li-corps b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rf-li-ech { grid-column: 2; text-align: left; font-size: 13px; }
  .rf-visite { grid-template-columns: 54px minmax(0, 1fr) 44px; row-gap: 4px; align-items: start; }
  .rf-visite-heure { font-size: 17px; }
  .rf-visite-qui { grid-column: 2; grid-row: 2; }
  .rf-visite .rf-itin { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .rf-visite .rf-itin span { display: none; }
  .rf-li-corps small, .rf-visite-corps small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rf-visite .rf-itin .ic { width: 20px; height: 20px; }
  .rf-barres a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .rf-barre-n { justify-self: end; }
  .rf-barre-piste { grid-column: 1 / -1; grid-row: 2; }
  .rf-choix { grid-template-columns: minmax(0, 1fr); }
  .rf-tel .cpt.rf-n-neutre { background: var(--texte-faible); }
  .rf-tel .cpt.rf-n-relance { background: var(--rf-relance-vif); }
  .rf-tel button.actif { color: var(--ot-actif); font-weight: 650; }
  .rf-carte-tete { position: relative; }
  .rf-carte-tete .rf-aide { position: static; }
  .rf-aide-bulle { left: 0; right: 0; transform: none; width: auto; max-width: none; }
}

/* ================================================================== D3 · E08 Tickets */
.rf-file-tete { display: flex; align-items: center; gap: var(--pas-3); flex-wrap: wrap; }
.rf-file-tete h1 { margin: 0; font: 700 26px/1.2 var(--police-titre); color: var(--texte); display: flex; align-items: center; gap: var(--pas-2); }
.rf-file-n { font-size: 18px; color: var(--texte-faible); font-weight: 600; }
.rf-file-outils { margin-left: auto; display: flex; gap: var(--pas-2); align-items: flex-start; }
.rf-depliant { position: relative; }
.rf-depliant > summary { list-style: none; cursor: pointer; }
.rf-depliant > summary::-webkit-details-marker { display: none; }
.rf-depliant[open] > summary { border-color: var(--rf-action); background: var(--accent-clair); }
.rf-bouton-icone { width: 36px; padding: 0; justify-content: center; }
.rf-filtres { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; width: min(560px, calc(100cqw - 32px)); display: flex; flex-direction: column; gap: var(--pas-3);
  padding: var(--pas-4); background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon-carte); box-shadow: var(--ombre-panneau); }
.rf-filtres fieldset { border: 0; margin: 0; padding: 0; }
.rf-filtres legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-faible); margin-bottom: 6px; }
.rf-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-puce { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--bordure-forte); border-radius: var(--rayon-pastille);
  background: var(--surface); color: var(--texte); font-size: 13.5px; text-decoration: none; cursor: pointer; }
.rf-puce:hover { background: var(--rf-fond); text-decoration: none; }
.rf-puce small { color: var(--texte-faible); }
.rf-puce input { margin: 0; accent-color: var(--rf-action); }
.rf-puce-geste b { color: var(--rf-geste); }
.rf-puce:has(input:checked) { border-color: var(--rf-action); background: var(--accent-clair); font-weight: 600; }
.rf-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; min-width: 220px; padding: var(--pas-2); background: var(--surface);
  border: 1px solid var(--bordure); border-radius: var(--rayon-carte); box-shadow: var(--ombre-panneau); display: flex; flex-direction: column; }
.rf-menu a { display: flex; align-items: center; gap: var(--pas-3); padding: 9px var(--pas-3); border-radius: var(--rayon); color: var(--texte); text-decoration: none; font-size: 14px; }
.rf-menu a:hover { background: var(--rf-fond); text-decoration: none; }
.rf-menu .ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rf-section-geste .rf-carte-tete h2 { color: var(--rf-geste); }
.rf-compte-tete.rf-t-geste { color: var(--rf-sur-geste); background: var(--rf-geste-vif); border-radius: var(--rayon-pastille); padding: 1px 9px; font-weight: 700; }
.rf-dossiers span { display: flex; flex-direction: column; gap: 2px; }
.rf-dossiers a { color: inherit; text-decoration: none; }
.rf-dossiers small { font-weight: 600; }
.rf-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 11.5px; font-weight: 700; line-height: 18px; vertical-align: 1px;
  background: var(--surface-3); color: var(--texte-doux); }
.rf-tag-geste, .rf-tag-depasse { background: var(--rf-geste-fond); color: var(--rf-geste); }
.rf-tag-bientot { background: var(--rf-relance-fond); color: var(--rf-relance); }
.rf-coche-ligne { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; }
.rf-coche-ligne + .rf-coche-ligne { border-top: 1px solid var(--bordure); }
.rf-coche-ligne input { width: 18px; height: 18px; accent-color: var(--rf-action); }
.rf-coche-ligne .rf-li { border-top: 0; }
.rf-barre-selection { position: sticky; bottom: var(--pas-4); z-index: 15; display: flex; align-items: center; gap: var(--pas-3); flex-wrap: wrap; padding: 12px var(--pas-4);
  background: var(--rf-action); color: var(--texte-inverse); border-radius: var(--rayon-carte); box-shadow: var(--ombre-panneau); }
.rf-barre-selection b { margin-right: auto; }
@container app (max-width: 640px) {
  .rf-file-tete h1 { font-size: 22px; }
  .rf-filtres { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 80vh; overflow-y: auto; border-radius: var(--rayon-carte) var(--rayon-carte) 0 0; z-index: 35; }
  .rf-barre-selection { bottom: 64px; }
}
.rf-li-corps .rf-tag { align-self: flex-start; margin: 2px 0 1px; }
.rf-dossiers span { min-width: 0; }
.rf-dossiers a { overflow-wrap: anywhere; }

/* ================================================================== D3 · E09, un tiroir par geste */
.rf-tiroir-tete { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; }
.rf-tiroir-tete h2 { margin: 0; font: var(--graisse-grasse) 16px var(--police-titre); color: var(--texte); }
.rf-fermer { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--texte-doux); cursor: pointer; }
.rf-fermer:hover { background: var(--rf-fond); }
.rf-fermer .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.app.rf .panneau-action:not([hidden]) { border-color: var(--rf-action); box-shadow: var(--ombre-panneau); justify-content: flex-start; }
.app.rf .panneau-action .rf-bouton, .app.rf .e11-planifier .rf-bouton { color: var(--texte-inverse); background: var(--rf-action); border: 0; }
@container app (max-width: 640px) {
  .app.rf .panneau-action:not([hidden]) { position: fixed; left: 0; right: 0; width: auto; bottom: 0; z-index: 35; margin: 0; max-height: 85vh; overflow-y: auto;
    flex-direction: column; align-items: stretch; padding: var(--pas-4) var(--pas-4) calc(var(--pas-6) + env(safe-area-inset-bottom, 0px));
    border-radius: var(--rayon-carte) var(--rayon-carte) 0 0; box-shadow: 0 0 0 100vmax var(--rf-voile), var(--ombre-panneau); }
  .app.rf .panneau-action:not([hidden]) .filtre { width: 100%; }
  .app.rf .panneau-action:not([hidden]) .champ { width: 100%; height: 44px; font-size: 16px; }
  .app.rf .panneau-action:not([hidden]) button[type="submit"] { height: 48px; font-size: 16px; }
}

/* ================================================================== D3 · E11, la vue « jour » */
.rf-seg { display: inline-flex; padding: 3px; border-radius: var(--rayon-pastille); background: var(--surface-3); gap: 2px; }
.rf-seg a { padding: 6px 14px; border-radius: var(--rayon-pastille); color: var(--texte-doux); font-size: 14px; font-weight: var(--graisse-moyenne); text-decoration: none; }
.rf-seg a.on { background: var(--surface); color: var(--texte); box-shadow: var(--ombre); font-weight: var(--graisse-grasse); }
.rf-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rf-jour { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: var(--rayon); border: 1px solid var(--bordure);
  background: var(--surface); color: var(--texte); text-decoration: none; }
.rf-jour:hover { text-decoration: none; border-color: var(--bordure-forte); }
.rf-jour small { font-size: 12px; color: var(--texte-doux); }
.rf-jour b { font-size: 18px; font-variant-numeric: tabular-nums; }
.rf-jour i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--rf-info-texte); min-height: 16px; }
.rf-jour.rf-passe { background: var(--surface-2); }
.rf-jour.rf-auj b { color: var(--rf-info); }
.rf-jour.on { background: var(--rf-action); border-color: var(--rf-action); color: var(--texte-inverse); opacity: 1; }
.rf-jour.on small, .rf-jour.on i, .rf-jour.on b { color: var(--texte-inverse); }
.rf-personnes { padding-top: var(--pas-2); }
.rf-pers { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--pas-3); align-items: start; padding: 12px 0; }
.rf-pers + .rf-pers { border-top: 1px solid var(--bordure); }
.rf-pers-qui { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rf-pers-qui > span:nth-child(2) { display: flex; flex-direction: column; }
.rf-pers-qui small { color: var(--texte-faible); font-size: 12.5px; }
.rf-blocs { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-bloc { --pc: var(--mqp-0); display: flex; flex-direction: column; min-width: 150px; max-width: 220px; padding: 8px 10px 8px 12px; border-radius: var(--rayon);
  background: color-mix(in srgb, var(--pc) 10%, var(--surface)); border-left: 4px solid var(--pc); color: var(--texte); text-decoration: none; }
.rf-bloc:hover { text-decoration: none; background: color-mix(in srgb, var(--pc) 18%, var(--surface)); }
.rf-bloc b { font-size: 14px; font-variant-numeric: tabular-nums; }
.rf-bloc span { font-weight: var(--graisse-moyenne); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-bloc small { color: var(--texte-faible); font-size: 12px; }
.rf-bloc-retard small { color: var(--rf-geste); font-weight: 600; }
.rf-pc1 { --pc: var(--mqp-1); } .rf-pc2 { --pc: var(--mqp-2); } .rf-pc3 { --pc: var(--mqp-3); } .rf-pc4 { --pc: var(--mqp-4); }
.rf-pc5 { --pc: var(--mqp-5); } .rf-pc6 { --pc: var(--mqp-6); } .rf-pc7 { --pc: var(--mqp-7); } .rf-pc8 { --pc: var(--mqp-8); }
@container app (max-width: 640px) {
  .rf-jours { gap: 3px; }
  .rf-jour { padding: 6px 2px; }
  .rf-pers { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rf-bloc { min-width: 0; max-width: none; flex: 1 1 100%; }
}
.rf-jour-vue h1::first-letter, .rf-date::first-letter { text-transform: uppercase; }

/* ---- D3, après la relecture tierce : cibles tactiles, sélection, onglets comptés, précisions, E11 */
.rf-o-n { font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 18px; padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--texte-doux); }
.rf-o-n.rf-o-geste { background: var(--rf-geste-vif); color: var(--rf-sur-geste); }
.rf-precisions { flex: 1 1 100%; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 0 var(--pas-3); }
.rf-precisions > summary { cursor: pointer; padding: 10px 0; font-weight: var(--graisse-moyenne); color: var(--texte-doux); }
.rf-precisions[open] { padding-bottom: var(--pas-3); }
.rf-precisions[open] > summary { color: var(--texte); }
.rf-precisions .filtre { margin-bottom: var(--pas-2); }
.rf-consequence { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--texte-doux); }
.rf-posees { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rf-puce-posee { border-color: var(--rf-action); background: var(--accent-clair); font-weight: 600; }
.rf-puce-posee .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.rf-champ-q { display: flex; align-items: center; gap: 8px; }
.rf-champ-q .ic { width: 17px; height: 17px; fill: none; stroke: var(--texte-faible); stroke-width: 1.7; }
.rf-champ-q input { flex: 1; height: 40px; }
.rf-dossiers-titre { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rf-dossiers a { white-space: normal; }
.rf-page-n { margin: var(--pas-2) 0 0; text-align: center; color: var(--texte-faible); font-size: 13px; }
.rf-fermer-inverse { color: var(--texte-inverse); }
.rf-fermer-inverse:hover { background: var(--rf-action-survol); }
.rf-barre-selection { flex-wrap: nowrap; }
.rf-barre-selection b { white-space: nowrap; }
.rf-li-geste { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--pas-2); }
.rf-li-geste + .rf-li-geste { border-top: 1px solid var(--bordure); }
.rf-li-geste .rf-li { border-top: 0; }
.rf-jours-tete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.rf-gauche { transform: scaleX(-1); }
.rf-pers-qui { color: var(--texte); text-decoration: none; }
.rf-pers-qui:hover { text-decoration: none; }
.rf-bloc-retard { box-shadow: inset 0 0 0 1px var(--rf-geste-filet); }
.rf-bloc .rf-tag { margin-left: 4px; font-size: 11px; }
@container app (max-width: 640px) {
  .rf-bouton-sec { height: 44px; }
  .rf-bouton-icone { width: 44px; }
  .rf-puce { height: 40px; }
  .rf-fermer { width: 44px; height: 44px; }
  .rf-seg a { padding: 11px 16px; }
  .rf-coche-ligne { grid-template-columns: 44px minmax(0, 1fr); }
  .rf-coche-ligne input { width: 24px; height: 24px; }
  .rf-barre-selection { gap: 6px; padding: 8px 8px 8px 14px; }
  .rf-barre-selection .rf-bouton-sec { padding: 0 10px; }
  .rf-li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rf-li .sd-av { display: inline-grid; grid-column: 3; grid-row: 1; width: 24px; height: 24px; font-size: 10px; }
  .rf-li-ech { grid-column: 2 / 4; }
  .rf-li-geste { grid-template-columns: minmax(0, 1fr); }
  .rf-li-geste .rf-bouton-sec { margin: 0 0 10px 44px; justify-self: start; }
}
.rf-jour-vue .rf-planifier { display: grid; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rf-action); border-radius: var(--rayon-carte); box-shadow: var(--ombre-panneau); }
.rf-jour-vue .rf-planifier h2 { margin: 0; font-size: 16px; }
.rf-jour-vue .rf-planifier p { margin: 0; font-size: 13px; color: var(--texte-doux); }
@container app (max-width: 640px) {
  .app.rf .panneau-action:not([hidden]) { flex-wrap: nowrap; }
  .rf-jour-vue .rf-planifier .e11-pl-champs { display: flex; flex-direction: column; gap: 8px; }
  .rf-jour-vue .rf-planifier .champ { width: 100%; height: 44px; font-size: 16px; }
  .rf-jour-vue .rf-planifier .rf-bouton { width: 100%; height: 48px; }
}

/* ================================================================== D4 · Messages (À rattacher, Envoyés), E10, E12 */
.rf-messages { list-style: none; margin: 0; padding: 0; }
.rf-message { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--pas-4); align-items: center; padding: 12px 0; }
.rf-message + .rf-message { border-top: 1px solid var(--bordure); }
.rf-message-corps { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--texte); text-decoration: none; }
.rf-message-corps:hover { text-decoration: none; }
.rf-message-tete { display: flex; align-items: baseline; gap: var(--pas-2); }
.rf-message-tete small { color: var(--texte-faible); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.rf-num { font-variant-numeric: tabular-nums; }
.rf-message-texte { color: var(--texte-doux); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rf-propose { display: inline-flex; align-items: center; gap: 4px; color: var(--rf-info-texte); font-weight: 600; font-size: 13px; }
.rf-propose .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rf-message-gestes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rf-message-gestes .rf-bouton { height: 36px; padding: 0 var(--pas-4); font-size: 14px; }
.rf-discret { border-color: var(--surface); color: var(--texte-doux); }
.rf-etat-envoi { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--rf-ok-fond); color: var(--rf-ok); white-space: nowrap; }
.rf-etat-envoi.rf-etat-attente { background: var(--surface-3); color: var(--texte-doux); }
.rf-modeles { margin-top: var(--pas-2); }
.rf-modeles > summary { list-style: none; cursor: pointer; display: inline-flex; }
.rf-modeles > summary::-webkit-details-marker { display: none; }
.rf-modeles .mq-e12-reponses { margin-top: var(--pas-2); }
.rf-e10-preciser { margin: var(--pas-2) 0; }
@container app (max-width: 640px) {
  .rf-message { grid-template-columns: minmax(0, 1fr); gap: var(--pas-2); }
  .rf-message-gestes { justify-content: flex-start; }
  .rf-message-gestes .rf-bouton { height: 44px; }
  .rf-envoi { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---- D4 · la barre d'étapes (clôture, nouveau ticket) : trois traits qui se remplissent ; E17 « À qualifier au bureau » */
.app.rf .mq .etapes { border-bottom: 0; gap: 8px; flex-wrap: nowrap; }
.app.rf .mq .etapes span { flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; margin: 0; border-bottom: 0; font-size: 13px; }
.app.rf .mq .etapes span::before { content: ""; display: block; width: 100%; height: 5px; border-radius: 99px; background: var(--bordure); }
.app.rf .mq .etapes span.fait::before { background: var(--rf-ok-vif); }
.app.rf .mq .etapes span.on::before, .app.rf .mq .etapes span.actif::before { background: var(--rf-action); }
.app.rf .mq .etapes span i { display: none; }
.app.rf .mq .etapes span.on { color: var(--texte); font-weight: 700; }
.rf-bureau { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pas-3); border: 1px solid var(--bordure-forte); background: var(--surface-2); border-radius: var(--rayon); padding: var(--pas-3) var(--pas-4); }
.rf-bureau legend { display: flex; align-items: center; gap: 6px; padding: 0 4px; font-weight: 700; }
.rf-bureau-l { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.rf-bureau-l small { color: var(--texte-faible); font-size: 12px; }
.rf-bureau-large { grid-column: 1 / -1; }
@container app (max-width: 640px) { .rf-bureau { grid-template-columns: minmax(0, 1fr); } }
.rf-e32 .rf-file-tete { margin-bottom: 4px; }
.rf-e32-cas { margin: 0 0 var(--pas-4); color: var(--texte-doux); }
.rf-e32 .telephones { justify-content: flex-start; }
.rf-e32 .tel .ecran { max-height: none; height: auto; }
.rf-e32 .bulle.rf-nouveau { box-shadow: 0 0 0 2px var(--rf-info); }
.rf-liste-wa { flex-direction: column; align-items: stretch; }
.rf-liste-wa-titre { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rf-liste-wa-options { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 2px 0 0; }
.rf-liste-wa-options small { padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--texte-doux); font-size: 12px; font-weight: 500; }
.rf-e32-legende { display: flex; align-items: center; gap: 8px; color: var(--texte-doux); font-size: 13px; }
.rf-nouveau-marque { width: 18px; height: 12px; border-radius: 4px; box-shadow: 0 0 0 2px var(--rf-info); }
/* D4 après relecture : au téléphone, ce qui se décide avant l'aperçu (E17) ; le site avant le formulaire (E10) */
@container app (max-width: 640px) {
  .app.rf .e17-grille { display: flex; flex-direction: column; }
  .app.rf .e17-cote { order: -1; }
  .app.rf .mq-e10-grille { display: flex; flex-direction: column; }
  .app.rf .mq-e10-grille .pre-rempli { order: -1; }
}

/* ================================================================== D5 · Réglages */
.rf-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pas-4); align-items: start; }
.rf-section-reglage .rf-carte-tete { gap: 10px; }
.rf-ic-section { width: 20px; height: 20px; fill: none; stroke: var(--rf-info); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rf-entrees { list-style: none; margin: 0; padding: 0; }
.rf-entrees li + li { border-top: 1px solid var(--bordure); }
.rf-entrees a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; color: var(--texte); text-decoration: none; font-size: 14.5px; }
.rf-entrees a:hover { color: var(--accent); text-decoration: none; }
.rf-entrees .ic { width: 16px; height: 16px; fill: none; stroke: var(--texte-faible); stroke-width: 1.8; }
.rf-groupe > summary { list-style: none; cursor: pointer; }
.rf-groupe > summary::-webkit-details-marker { display: none; }
.rf-groupe + .rf-groupe { margin-top: 0; }
.rf-valeurs { list-style: none; margin: 0; padding: 0; }
.rf-valeur { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--pas-3); align-items: center; padding: 10px 0; }
.rf-valeur + .rf-valeur { border-top: 1px solid var(--bordure); }
.rf-valeur-corps { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; min-width: 0; }
.rf-valeur-corps .forme { width: 14px; height: 14px; color: var(--texte-doux); grid-row: span 2; }
.rf-valeur-corps b { font-size: 14.5px; grid-column: 2; }
.rf-valeur-corps small { grid-column: 2; color: var(--texte-faible); font-size: 13px; }
.rf-valeur-val { display: flex; flex-direction: column; align-items: flex-end; }
.rf-valeur-val small { color: var(--rf-info-texte); font-size: 12px; font-weight: 600; }
.rf-inactif .rf-valeur-corps b { color: var(--texte-faible); text-decoration: line-through; }
.rf-ouvert { grid-template-columns: minmax(0, 1fr); background: var(--accent-clair); border-radius: var(--rayon); padding: var(--pas-3); }
.rf-renommer { display: flex; flex-wrap: wrap; gap: var(--pas-3); align-items: flex-end; }
.rf-renommer label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; flex: 1 1 240px; }
.rf-renommer .champ { height: 40px; }
.rf-renommer .rf-interrupteur { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; min-height: 40px; }
.rf-renommer .rf-actions { flex: 1 1 100%; }
@container app (max-width: 1100px) { .rf-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container app (max-width: 640px) {
  .rf-sections { grid-template-columns: minmax(0, 1fr); }
  .rf-valeur { grid-template-columns: minmax(0, 1fr) auto; }
  .rf-valeur-val { grid-column: 1; align-items: flex-start; }
}
/* D5 après relecture */
.rf-valeur { grid-template-columns: minmax(0, 1fr) auto auto; }
.rf-valeur-gestes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rf-valeur-gestes form { margin: 0; }
.rf-valeur-val { min-width: 64px; text-align: right; }
.rf-valeur-val b { font-variant-numeric: tabular-nums; }
.rf-valeur-val small { color: var(--texte-faible); font-weight: 500; }
.rf-client { color: var(--rf-info-texte) !important; }
.rf-renomme { background: var(--rf-ok-fond); border-radius: var(--rayon); padding-left: var(--pas-2); padding-right: var(--pas-2); }
.rf-tag-acces { background: var(--surface-3); color: var(--texte-doux); }
.rf-chevron-groupe { width: 16px; height: 16px; margin-left: 4px; fill: none; stroke: var(--texte-faible); stroke-width: 2; transition: transform var(--transition); }
.rf-groupe[open] .rf-chevron-groupe { transform: rotate(180deg); }
.rf-plein { flex: 1 1 100% !important; }
.rf-raison-form { display: flex; gap: 6px; align-items: center; }
.rf-raison-form .champ { height: 40px; min-width: 180px; }
.rf-entrees a > span:first-child { flex: 1 1 auto; }
.rf-entrees .rf-tag { margin: 0; }
@container app (max-width: 640px) {
  .rf-renommer .champ, .rf-raison-form .champ { height: 44px; font-size: 16px; }
  .rf-renommer .rf-interrupteur { min-height: 44px; }
  .rf-valeur { grid-template-columns: minmax(0, 1fr) auto; }
  .rf-valeur-gestes { grid-column: 1 / -1; justify-content: flex-start; }
  .rf-raison { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------------------------------------------------------------------------
   LOT DÉMARRAGE (fil PROTOTYPE DÉMARRAGE n° 1, 03/10/2026, archives v36 et suivantes) — demande de CAHIER du 03/10/2026
   --------------------------------------------------------------------------------------------------------------------------------- */
/* E32 côté équipe : un onglet par cas, qui défile au téléphone */
.rf-e32 .rf-e32-seg { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; margin: 4px 0 10px; scrollbar-width: none; }
.rf-e32 .rf-e32-seg a { min-height: 36px; display: inline-flex; align-items: center; }
/* E54 : cinq colonnes (personne, numéro, équipe terrain, reçoit la semaine, gestes) */
.mq-e54 .rangs { --cols: minmax(0,1.6fr) 150px 110px 130px minmax(0,1fr); }
.mq-e54 .rangs-tete .rf-aide { margin-left: 4px; }
/* Au téléphone, l'en-tête des colonnes disparaît : chaque oui / non dit sa colonne */
.mq-e54 .rf-tel-l { display: none; }
@container app (max-width: 640px) {
  .mq-e54 .rf-tel-l { display: inline; margin-right: 6px; font-size: 12.5px; color: var(--encre-2); }
  .mq-e54 .rang .cellule:nth-child(3), .mq-e54 .rang .cellule:nth-child(4) { display: inline-flex; align-items: center; }
}
/* E15–E17 : la barre d'étapes (A-CH07 §5) ; au téléphone, seule l'étape en cours garde son nom */
.app.rf .mq .dm-etapes { list-style: none; padding: 0; margin: 0 0 22px; display: flex; }
.app.rf .mq .dm-etapes li { flex: 1 1 0; min-width: 0; display: flex; }
.app.rf .mq .dm-etapes li > span { flex: 1 1 auto; min-width: 0; }
.app.rf .mq .dm-etapes .dm-etape-l { overflow-wrap: anywhere; }
@container app (max-width: 640px) {
  .app.rf .mq .dm-etapes { gap: 4px; }
  .app.rf .mq .dm-etapes li > span:not(.on) .dm-etape-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .app.rf .mq .dm-etapes li > span:not(.on) a.dm-etape-l { position: static; width: auto; height: 22px; clip-path: none; font-size: 0; }
  .app.rf .mq .dm-etapes li:has(.on) { flex: 3 1 0; }
}
/* E15 : téléverser, « Autre chose ? », la préventive au bureau */
.dm-televerser { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 4px; }
.dm-televerser-b { position: relative; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.dm-televerser-b input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dm-plus-tard { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.dm-autre { border: 1px solid var(--bordure); border-radius: 10px; padding: 8px 14px 4px; margin: 14px 0 0; }
.dm-autre legend { padding: 0 6px; }
.dm-autre-l { border-top: 1px solid var(--bordure); padding: 4px 0; }
.dm-autre-l:first-of-type { border-top: 0; }
.dm-autre-l summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; }
.dm-prev .dm-sous { margin: 2px 0 8px; font-size: 13px; color: var(--texte-doux); }
.dm-points-cadre { overflow-x: auto; max-width: 100%; }
.dm-points { border-collapse: collapse; width: 100%; font-size: 14px; }
.dm-points th, .dm-points td { padding: 6px 8px; border-bottom: 1px solid var(--bordure); text-align: left; }
.dm-points td:not(:first-child), .dm-points thead th:not(:first-child) { text-align: center; width: 80px; }
.dm-points input[type="checkbox"] { width: 20px; height: 20px; }
.dm-points .dm-groupe th { background: var(--surface-3); font-weight: 600; font-size: 13px; }
.dm-fichier { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.dm-confirmer ul { margin: 6px 0; padding-left: 18px; }
/* E17 : « Pour le bureau », les heures, l'envoi hors TRACE */
.dm-heures-l { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.dm-heures-l label { display: grid; gap: 4px; font-size: 13px; }
.dm-hors .v11-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* E09 : non prévenu */
.dm-non-prevenu { display: block; color: var(--texte-doux); }
.dm-lien { margin-left: 6px; }
/* E17 « Pour le bureau » (lot DÉMARRAGE) : une colonne ; chaque question à sa place, le nombre d'intervenants étroit */
.rf-bureau { grid-template-columns: minmax(0, 1fr); }
.rf-bureau .rf-bureau-l input[type="number"] { max-width: 8rem; }
.rf-bureau .ligne-champ { margin: 0; }
/* Mon terrain (A-CH13 §3) : les siennes en tête, « Arrivé », « Planifier », clos de la semaine */
.dm-a-moi { box-shadow: inset 3px 0 0 var(--accent); }
.dm-arrivee { display: block; margin-top: 4px; }
.dm-sc { display: flex; align-items: center; gap: 8px; }
.dm-sc > .rf-li { flex: 1 1 auto; min-width: 0; }
.dm-planifier { flex: 0 0 auto; min-height: 44px; }
.dm-clos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-clos a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-decoration: none; color: inherit; min-height: 44px; }
.dm-clos small { color: var(--texte-doux); }
.dm-pourquoi { white-space: nowrap; }
.dm-sous-titre { font-size: 15px; display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.rf-progres-lien { color: inherit; }
/* E35 « Ce qui est éteint » */
.dm-eteint { margin-top: 22px; }
.dm-eteint h2 { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.dm-eteint .rangs { --cols: minmax(0,1.6fr) 110px minmax(0,1.6fr) 80px; }
/* ANNONCES ET CONTACTS (lot DÉMARRAGE, étape c) */
.dm-ann .dm-ann-seg, .dm-ann-seg { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; margin: 6px 0 12px; scrollbar-width: none; }
.dm-ann-seg a { min-height: 36px; display: inline-flex; align-items: center; }
.dm-ann-liste, .dm-ann-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-ann-li p, .dm-ann-lignes p { margin: 2px 0; }
.dm-ann-li-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dm-ann-comptes { font-size: 13px; color: var(--texte-doux); }
.dm-etat-preparee { background: var(--surface-3); border: 1px solid var(--bordure-forte); }
.dm-etat-validee { border: 1px solid var(--accent); color: var(--accent); }
.dm-etat-envoyee { border: 1px solid var(--bordure); }
.dm-etat-abandonnee { border: 1px dashed var(--bordure-forte); color: var(--texte-faible); }
.dm-ann-deux { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px 24px; align-items: start; }
@container app (max-width: 900px) { .dm-ann-deux { grid-template-columns: minmax(0, 1fr); } }
.dm-ann-tel { border-radius: 18px; border: 6px solid var(--texte); background: var(--surface-2); padding: 10px; max-width: 340px; }
.dm-ann-tel-tete { margin: 0 0 8px; font-size: 13px; }
.dm-ann-bulle { margin: 0; white-space: normal; }
.dm-champ { display: grid; gap: 4px; margin: 0 0 12px; font-size: 13.5px; }
.dm-champ small { color: var(--texte-faible); }
.dm-case { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.dm-filtres { border: 1px solid var(--bordure); border-radius: 10px; padding: 8px 14px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.dm-filtres legend { padding: 0 6px; }
.dm-ann-sites, .dm-ann-groupe ul { list-style: none; margin: 0 0 12px; padding: 0; }
.dm-ann-groupe { border-top: 1px solid var(--bordure); padding-top: 8px; }
.dm-ann-groupe h3 { font-size: 15px; margin: 4px 0; }
.dm-gris { color: var(--texte-faible); }
.dm-ann-total { margin: 12px 0; }
.dm-ann-decision { display: grid; gap: 10px; }
.dm-ann-progres { display: flex; align-items: center; gap: 10px; }
.dm-barre { flex: 0 1 220px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--vert) var(--p), var(--bordure) var(--p)); }
.dm-ann-copier { display: grid; gap: 8px; }
.dm-ann-texte { margin: 0; padding: 10px; border-radius: 8px; background: var(--surface-2); user-select: all; }
.dm-fait { background: var(--surface-2); }
.dm-ann-histo { margin: 0; padding-left: 18px; }
.dm-contacts-l { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.dm-contact { border-bottom: 1px solid var(--bordure); padding-bottom: 8px; }
.dm-contact p { margin: 2px 0; }
.dm-contact-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dm-cases { display: flex; flex-wrap: wrap; gap: 4px; }
.dm-contact-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dm-retires summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.dm-contact-form .champ { width: 100%; }
.dm-contact-form fieldset { border: 0; padding: 0; display: grid; gap: 6px; }
.mq-e34 .rangs { --cols: minmax(0,1.6fr) 120px 110px 140px minmax(0,1fr); }
.mq-e34 .rf-tel-l { display: none; }
@container app (max-width: 640px) { .mq-e34 .rf-tel-l { display: inline; font-size: 12.5px; color: var(--encre-2); } }
/* contraste sur le fond sable des écrans d'atelier : 4,5:1 au moins */
.mq.dm-ann .page-tete .sous, .mq.dm-ann .page-tete .ref, .mq.dm-ann .sous, .mq .dm-etapes .dm-etape-l { color: var(--texte-doux); }
.mq .dm-etapes span.on .dm-etape-l { color: var(--texte); }
/* SUITE DES ANNONCES ET DES CONTACTS (fil ANNONCES n° 2, 04/10/2026) */
/* « Envoyé à » (E09, E17, E18, E45) */
.dm-env { margin: 10px 0 0; }
.dm-env-titre { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 0 0 8px; }
.dm-env-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-env-li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--bordure); }
.dm-env-qui { display: grid; flex: 1 1 180px; min-width: 0; }
.dm-env-qui small { color: var(--texte-doux); }
.dm-env-rep { font-size: 13px; color: var(--texte); }
.dm-env-rep small { color: var(--texte-doux); }
.dm-env-premiere { font-weight: var(--graisse-grasse); }
.dm-env-aucun { margin: 0; display: grid; gap: 2px; }
.dm-env-aucun small { color: var(--texte-doux); }
.dm-env-renvoyer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.dm-env-court { margin: 0; }
.dm-env-court .dm-env-l { gap: 2px; }
.dm-env-court .dm-env-li { padding: 1px 0; border: 0; gap: 2px 6px; }
.dm-env-court .dm-env-qui { flex: 0 1 auto; }
.dm-env-court .dm-env-renvoyer { margin-top: 4px; }
.mq-e18 .dm-env { max-width: 360px; }
/* E05 · contacts des sites */
.dm-cli-l { list-style: none; margin: 0; padding: 0 16px 8px; display: grid; }
.dm-cli-li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bordure); }
.dm-cli-li:last-child { border-bottom: 0; }
.dm-cli-qui { display: grid; min-width: 0; }
.dm-cli-qui small { color: var(--texte-doux); }
.dm-cli-sites-l summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; color: var(--accent); }
.dm-cli-sites-d { display: grid; gap: 2px; padding: 4px 0 0 12px; }
@container app (max-width: 640px) { .dm-cli-li { grid-template-columns: minmax(0, 1fr) auto; } .dm-cli-sites-l { grid-column: 1 / -1; } }
.dm-cli-client { margin-bottom: 16px; }
.dm-cli-client.mq { background: var(--surface); padding: 12px 16px; }
.dm-cli-client .dm-contacts h3 { font-size: 16px; }
/* E13 · rattacher le numéro */
.dm-rattacher { display: grid; gap: 10px; }
.dm-rat-fait { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--texte-doux); }
.dm-rat-choix { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.dm-rat-choix legend { font-weight: var(--graisse-grasse); margin-bottom: 6px; }
.dm-rat-contacts { list-style: none; margin: 0 0 0 26px; padding: 0; }
.dm-rat-contacts small { color: var(--texte-doux); }
.dm-rat-nouveau { margin-left: 26px; }
.dm-rattacher .rf-consequence { margin-left: 26px; }
/* E31 · la fiche du site par lien personnel (au téléphone d'abord) */
.app-public .contenu:has(> .dm-f31) { display: block; padding: 0; max-width: none; margin: 0; }
.dm-f31 { max-width: 560px; margin: 0 auto; padding: 16px; }
.dm-f31-marque { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dm-f31-bonjour { margin: 0; color: var(--e2); }
.dm-f31-titre { margin: 2px 0 2px; font-size: 22px; }
.dm-f31-sous { margin: 0 0 14px; color: var(--e2); }
.dm-f31 .rf-aide-q { color: var(--e2); }
.dm-f31-titre { color: var(--e); }
.dm-f31-bloc { background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.dm-f31-bloc h2 { font-size: 15px; margin: 0 0 8px; }
.dm-f31-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-f31-contact { border-bottom: 1px solid var(--bordure); padding-bottom: 8px; }
.dm-f31-contact:last-child { border-bottom: 0; padding-bottom: 0; }
.dm-f31-contact p { margin: 2px 0; }
.dm-f31-num { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dm-f31-num .mono { flex: 1 1 100%; font-size: 16px; }
.dm-f31-marque .logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--marque); }
.dm-f31-marque .logo svg { width: 18px; height: 18px; fill: none; stroke: var(--soleil); stroke-width: 2; }
.dm-f31-num .btn { min-height: 40px; }
.dm-f31-pied { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--e2); }
.dm-rattacher:not(:has(input[value="existant"]:checked)) .dm-rat-sous[data-choix="existant"],
.dm-rattacher:not(:has(input[value="nouveau"]:checked)) .dm-rat-sous[data-choix="nouveau"] { display: none; }
/* b · 4 b et la forme b du n° 16 (fil ANNONCES n° 2) */
.dm-ann-forme { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 13.5px; color: var(--texte); }
.dm-ann-bouton { margin: 4px 0 8px; max-width: 260px; text-align: center; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--bordure); color: var(--accent); font-weight: var(--graisse-grasse); font-size: 13.5px; }
.dm-ann-paras p { margin: 0 0 8px; }
.dm-ann-paras p:last-child { margin-bottom: 0; }
.dm-cli-client .dm-contacts h3, .dm-cli-lecture h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dm-cli-lecture { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--bordure); }
.dm-cli-lecture small { color: var(--texte-doux); font-weight: normal; }
.dm-cli-client.mq, .dm-cli-client.mq .rf-tag, .dm-cli-client.mq small, .dm-cli-client.mq .s { color: var(--encre-2); }
.dm-cli-client.mq b, .dm-cli-client.mq h3, .dm-cli-client.mq h4 { color: var(--encre); }
.dm-ann textarea[name="texte"] { min-height: 11em; }

/* MC-D9b · le « ? » d'un titre de bloc de contacts : sa bulle s'ouvre vers la gauche (le bloc est la colonne de droite de la fiche) ; au téléphone, sur la largeur du bloc, sans élargir la page */
.dm-contacts .rf-aide-bulle, .dm-cli-sites .rf-aide-bulle { left: auto; right: -8px; transform: none; }
/* MC-D9b (suite) le « ? » d'un titre de bloc de contacts au téléphone : sa bulle s'ouvre sur la largeur du bloc (comme celle d'un titre de carte), sans élargir la page */
@container app (max-width: 640px) {
  .dm-contacts h3, .dm-cli-sites .bloc-entete, .dm-f31-pied, .dm-rat-choix legend { position: relative; }
  .dm-contacts h3 .rf-aide, .dm-cli-sites .bloc-entete .rf-aide, .dm-f31-pied .rf-aide, .dm-rat-choix .rf-aide { position: static; }
}
@media (max-width: 640px) {
  .dm-contacts h3, .dm-cli-sites .bloc-entete, .dm-f31-pied, .dm-rat-choix legend { position: relative; }
  .dm-contacts h3 .rf-aide, .dm-cli-sites .bloc-entete .rf-aide, .dm-f31-pied .rf-aide, .dm-rat-choix .rf-aide { position: static; }
  .dm-contacts .rf-aide-bulle, .dm-cli-sites .rf-aide-bulle, .dm-f31-pied .rf-aide-bulle, .dm-rat-choix .rf-aide-bulle { left: 0; right: 0; transform: none; width: auto; max-width: none; }
}

/* MC-D10 · le « ? » d'un titre ou d'un champ des annonces : au téléphone, sa bulle s'ouvre sur la largeur du bloc, sans élargir la page ; l'étiquette « texte du message » et le texte copié se replient */
@container app (max-width: 640px) {
  .dm-ann .page-tete h1, .dm-ann .dm-champ > span, .dm-ann .dm-ann-forme, .dm-ann .rf-file-tete { position: relative; }
  .dm-ann .rf-aide { position: static; }
  .dm-ann .rf-aide-bulle { left: 0; right: 0; transform: none; width: auto; max-width: none; }
}
@media (max-width: 640px) {
  .dm-ann .page-tete h1, .dm-ann .dm-champ > span, .dm-ann .dm-ann-forme, .dm-ann .rf-file-tete { position: relative; }
  .dm-ann .rf-aide { position: static; }
  .dm-ann .rf-aide-bulle { left: 0; right: 0; transform: none; width: auto; max-width: none; }
}
.dm-ann .dm-ann-texte, .dm-ann .bulle { overflow-wrap: anywhere; }

/* ---- MC-F10 · E33 (archive v46, v45 du dessin) : le signal replié, « Plus de filtres », « Créer une entrée » en bouton ---- */
.ex-pli-signal > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.ex-pli-signal > summary::-webkit-details-marker { display: none; }
.ex-pli-signal > summary h2 { margin: 0; }
.ex-pli-signal[open] > summary .ic { transform: rotate(180deg); }
.ex-filtres { flex: 1 1 100%; }
.ex-filtres > summary { list-style: none; display: inline-flex; cursor: pointer; }
.ex-filtres > summary::-webkit-details-marker { display: none; }
.ex-filtres-corps { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 10px; }
.ex-creer > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ex-creer > summary::-webkit-details-marker { display: none; }
.mq-e33 .e33-filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.mq-e33 .e33-filtres > button[type="submit"] { order: 1; }
.mq-e33 .e33-filtres > .ex-filtres { order: 2; flex: 1 1 100%; }
.mq-e33 .ex-creer:not([open]) { background: none; border: 0; padding: 0; box-shadow: none; }
@container app (max-width: 640px) {
  .mq-e33 .e33-constat { grid-template-columns: minmax(0, 1fr) !important; row-gap: 2px; }
  /* au téléphone, une entrée tient sur deux lignes (le dessin v46 la dit, sa feuille l'empile sur quatre) : numéro et titre, puis dénominateur et rang WhatsApp */
  .mq-e33 a.e33-li { grid-template-columns: auto minmax(0, 1fr) auto !important; column-gap: 10px; row-gap: 2px; align-items: baseline; }
  .mq-e33 a.e33-li .e33-id { grid-row: 1 / span 2; }
  .mq-e33 a.e33-li .e33-titre { grid-column: 2 / span 2; }
  .mq-e33 a.e33-li .e33-denom, .mq-e33 a.e33-li .e33-wa { grid-row: 2; }
  .mq-e33 a.e33-li .e33-denom { grid-column: 2; } .mq-e33 a.e33-li .e33-wa { grid-column: 3; }
}
/* le choix de la période du signal (geste de l'application, que le dessin ne porte pas) */
.mq-e33 .e33-periodes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; font-size: 13px; }
.mq-e33 .e33-periodes a { color: var(--encre-2); text-decoration: none; padding: 4px 0; }
.mq-e33 .e33-periodes a.on { color: var(--encre); font-weight: 600; box-shadow: inset 0 -2px 0 var(--marque); }
.mq-e33 .e33-titre, .mq-e33 .e33-site, .mq-e33 .e33-cote { overflow-wrap: anywhere; min-width: 0; }
/* ---- v44 · fil EXTENSION (04/10/2026), étape a : E09 et E17 ---------------------------------------------------------- */
.mq .fiche-tete .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ex-plus { position: relative; }
.ex-plus > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ex-plus > summary::-webkit-details-marker { display: none; }
.ex-plus-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; display: flex; flex-direction: column;
  padding: 6px; background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; box-shadow: var(--ombre-panneau); }
.ex-plus-menu > button, .ex-plus-menu > a { display: block; text-align: left; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 6px;
  background: none; color: var(--texte); font: inherit; text-decoration: none; cursor: pointer; }
.ex-plus-menu > button:hover, .ex-plus-menu > a:hover, .ex-plus-menu > button:focus-visible, .ex-plus-menu > a:focus-visible { background: var(--surface-3); }
@media (max-width: 599px) {
  .ex-plus-menu { left: 0; right: auto; }
  .mq .fiche-tete .actions { width: 100%; }
  .mq .fiche-tete .actions > .principal-btn { flex: 1 1 100%; justify-content: center; min-height: 44px; }
}
.ex-estimation { margin: 0; flex: 1 1 100%; color: var(--texte-doux); }
.ex-demande .rf-precisions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.ex-cas .ex-cas-pli > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ex-cas .ex-cas-pli > summary::-webkit-details-marker { display: none; }
.ex-cas h2 { margin: 0; }
.ex-cas .ex-cas-pli > summary .ic { margin-left: auto; align-self: center; }
.ex-cas .ex-cas-pli[open] > summary .ic { transform: rotate(180deg); }
.ex-compte { color: var(--texte-doux); }
.ex-cas-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ex-cas-liste li { padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; background: var(--surface); }
.ex-cas-liste small { color: var(--texte-doux); margin-left: 6px; }
.ex-cas-sous { margin: 12px 0 0; font-weight: var(--graisse-grasse); }
.ex-vide { margin: 4px 0 0; }
.ex-cas-sous-ligne { color: var(--texte-doux); }
.ex-groupe > summary { cursor: pointer; }
.ex-groupe ul { margin: 6px 0 0; padding-left: 18px; color: var(--texte-doux); }
.ex-nom { display: block; }
.ex-conseils { margin-top: 12px; border: 1px solid var(--bordure); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.ex-conseils > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; list-style: none; }
.ex-conseils > summary::-webkit-details-marker { display: none; }
.ex-conseils > summary .ic { margin-left: auto; align-self: center; }
.ex-conseils[open] > summary .ic { transform: rotate(180deg); }
.ex-extrait { flex: 1 1 100%; color: var(--texte-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-conseils[open] .ex-extrait { display: none; }
.mq .e17-fige.ex-neutre { background: var(--surface); border-color: var(--bordure); }
.ex-corriger-heures { margin: 10px 0; }
.ex-corriger-heures > summary { cursor: pointer; color: var(--lien); }
.ex-corriger-heures form { margin-top: 8px; }
.mq .cv dd > .lien-bouton { margin-left: 6px; }

/* MC-F9 · le « ? » du Suivi d'E09 est sur la ligne du dessus de « Changer » : sa zone tactile ne déborde plus sur le bouton de la ligne suivante */
.mq #suivi .rf-aide-q::after { inset: -2px; }
/* MC-F13 · E61 catalogue et Gammes (archive v46) : le tiroir d'ajout, l'unité d'un nombre, la phrase du catalogue vide ; le bloc des gestes gardés dessous (nature d'un point) */
.ex-ajout { margin-bottom: 12px; }
.ex-unite { display: inline-flex; align-items: center; gap: 6px; }
.ex-unite .champ { width: 7em; }
.ex-ajout .filtre-large { flex: 1 1 100%; }
.ex-ajout .filtre-large .champ { width: 100%; }
.ex-vide { margin: 4px 0 0; }
/* MC-F12 · E47, la passation en six étapes (archive v46 : barre d'étapes, état dans le titre, étape ouverte) ; les règles des formulaires que le dessin ne montre pas (ajouts de MC-30 et MC-108). */
.ex-barre { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.ex-barre li { flex: 1 1 0; min-width: 0; border-top: 4px solid var(--bordure); padding-top: 6px; }
.ex-barre li.ex-barre-fait { border-top-color: var(--ok); }
.ex-barre li.ex-barre-a_completer { border-top-color: var(--attention-vif); }
.ex-barre li.ex-courante { border-top-color: var(--accent-fonce); }
.ex-barre a { display: flex; align-items: center; gap: 6px; color: var(--texte); text-decoration: none; font-size: var(--t-s); }
.ex-barre .ex-barre-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-barre .ex-courante .ex-barre-l { font-weight: var(--graisse-grasse); }
.ex-etape > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ex-etape > summary::-webkit-details-marker { display: none; }
.ex-etape > summary h2 { margin: 0; }
.ex-etat { font-size: var(--t-s); padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--texte-doux); }
.ex-etat-fait { background: var(--ok-fond); color: var(--ok); }
.ex-etat-a_completer { background: var(--attention-fond); color: var(--attention); }
.ex-sous-etape { margin: 16px 0 6px; font-size: var(--t-l); }
@container app (max-width: 640px) {
  .ex-barre li:not(.ex-courante) .ex-barre-l { display: none; }
  .ex-barre li.ex-courante { flex: 4 1 0; }
}
.mq-e47 .e47-form { display: grid; gap: 10px; margin-top: 8px; }
.mq-e47 .e47-form .filtre { display: grid; gap: 4px; min-width: 0; }
.mq-e47 .e47-form .champ { width: 100%; max-width: 100%; box-sizing: border-box; }
.mq-e47 .e47-form .btn { justify-self: start; }
.mq-e47 .e47-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.mq-e47 .e47-equipements { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; min-width: 0; }
.mq-e47 .e47-equipements legend { padding: 0; font-weight: var(--graisse-grasse); margin-bottom: 4px; }
.mq-e47 .e47-site { border-top: 1px solid var(--bordure); padding: 10px 0 4px; display: grid; gap: 8px; min-width: 0; }
.mq-e47 .e47-site h3 { margin: 0; font-size: var(--t-l); overflow-wrap: anywhere; }
.mq-e47 .e47-sites li, .mq-e47 .e47-garanties li { min-width: 0; overflow-wrap: anywhere; }
.mq-e47 form.en-ligne { display: inline; }
.mq-e47 .ex-creer > summary { list-style: none; cursor: pointer; display: inline-flex; }
.mq-e47 .ex-creer > summary::-webkit-details-marker { display: none; }
.v11-e47-eqp .v11-e47-site { border-top: 1px solid var(--bordure); padding: 8px 0 4px; display: grid; gap: 6px; min-width: 0; }
.v11-e47-eqp h3 { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.v11-e47-eqp .v11-e47-liste, .v11-e47-eqp .v11-e47-docs { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.v11-e47-eqp .v11-e47-liste li { overflow-wrap: anywhere; }
.v11-e47-eqp .v11-e47-docs-t { margin: 4px 0 0; }
.v11-e47-eqp .s { color: var(--texte-doux); }
.v11-e47-eqp .v11-e47-docs li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.v11-e47-eqp .v11-e47-date { width: 160px; max-width: 100%; }

/* ---- MC-ST2 · « Courbe des 48 h » (archive v46, partials/ex-courbe ; E09 et E24) ---- */
.ex-courbe { padding: 8px 0; border-top: 1px solid var(--filet); }
.ex-courbe-tete { margin: 0 0 6px; }
.ex-courbe-svg { width: 100%; max-width: 100%; height: auto; display: block; }
.ex-c-axe { stroke: var(--filet-fort); stroke-width: 1; }
.ex-c-lib { font-size: 11px; fill: var(--encre-3); }
.ex-c-conso { stroke: var(--encre-2); stroke-width: 1.6; }
.ex-c-pv { stroke: var(--soleil); stroke-width: 1.6; }
.ex-c-reseau { stroke: var(--mqp-1); stroke-width: 1.6; }
.ex-c-soc { stroke: var(--mqp-2); stroke-width: 1.4; stroke-dasharray: 4 3; }
.ex-c-marque { stroke: var(--encre); stroke-width: 1; stroke-dasharray: 2 2; }
.ex-courbe-leg { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--t-s); }
.ex-c-cle { display: inline-block; width: 14px; height: 0; border-top: 2px solid; margin-right: 6px; vertical-align: 3px; }
.ex-c-cle.ex-c-conso { border-color: var(--encre-2); } .ex-c-cle.ex-c-pv { border-color: var(--soleil); }
.ex-c-cle.ex-c-reseau { border-color: var(--mqp-1); } .ex-c-cle.ex-c-soc { border-color: var(--mqp-2); border-top-style: dashed; }
.ex-courbe-svg .ex-c-lib { font-size: 15px; }
.ex-c-reseau { stroke-width: 2.4; } .ex-c-conso { stroke-width: 1.3; }

/* MC-F11 · E34 (archive v46, étape b) : le tiroir « Modifier » par compte et les postes de veille en bas de page ; la grille a cinq colonnes (personne, niveau, compte, valide les annonces, Modifier) */
.ex-geste { justify-self: end; }
.ex-postes { margin-top: 24px; }
.ex-postes h2 { font-size: var(--t-xl); margin: 0 0 8px; }
.ex-postes-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ex-postes-liste > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; }
.ex-poste-nom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.ex-postes-liste .panneau-action { flex: 1 1 100%; }
.mq-e34 .rangs { --cols: minmax(0,1.6fr) 130px 100px 190px auto; }
@container app (max-width: 640px) { .mq-e34 .ex-geste { justify-self: start; } }
/* MC-NB15 · E34 : la case « valide les annonces » et son bouton « Changer » (geste de l'application, MC-D10 §3) sur une ligne, comme la case seule du dessin. */
.mq-e34 form.en-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

/* MC-F14 · E35 (archive v46, étape b) : le résumé en tête et l'encart « À surveiller » ; les règles ne sont que celles du dessin (sections A-21), le fichier v46 n'est pas recopié. */
.ex-resume { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ex-surveiller { margin: 16px 0; }
.ex-surveiller h2 { margin: 0 0 6px; font-size: var(--t-l); }
.ex-surveiller .mq-consequence { margin: 4px 0; }

/* ---- MC-RE1 · E03 « Entrées AC », case du récapitulatif, « Actions hors ticket » (archive v46, partials/ex-energie-site, ex-actions-hors) ---- */
.ex-case-recap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.ex-energie { margin-top: 12px; display: grid; gap: 10px; }
.ex-energie h3 { margin: 0; font-size: var(--t-l); }
.ex-installations, .ex-entrees { list-style: none; margin: 0; padding: 0; }
.ex-installations > li { padding: 8px 0; border-top: 1px solid var(--filet); }
.ex-installations p { margin: 0 0 4px; }
.ex-entrees li { margin: 2px 0; }
.ex-choix-entree { border: 0; padding: 0; margin: 0 0 10px; flex: 1 1 100%; }
.ex-actions-l { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ex-actions-l > li { padding: 10px 12px; background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px; }
.ex-actions-l p { margin: 0 0 4px; }
.ex-retiree .ex-texte { text-decoration: line-through; color: var(--encre-3); }
.ex-gestes { display: flex; gap: 12px; }
.ex-case-recap small { display: block; }
.ex-case-recap .e17-case span { display: block; }
.ex-case-recap .e17-case { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ex-case-recap .e17-case input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.ex-actions-l p, .ex-installations p { overflow-wrap: anywhere; }
/* MC-F15 · fil NUIT (archive v47, étape a) : E23, E55, E55b, ajout d'E08 ; seule cette section du dessin est reprise, le fichier v47 n'est pas recopié. */
/* ================================================================== fil NUIT (04/10/2026) · E23, E55, E08 (ajout) */
/* E23 — le récapitulatif replié : sa ligne dit l'essentiel */
.nt-recap { padding: var(--pas-3) var(--pas-4); }
.nt-recap > summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pas-2) var(--pas-3); cursor: pointer; list-style: none; }
.nt-recap > summary::-webkit-details-marker { display: none; }
.nt-recap > summary::after { content: "▾"; margin-left: auto; color: var(--texte-faible); }
.nt-recap[open] > summary::after { content: "▴"; }
.nt-recap-titre { min-width: 0; }
.nt-recap-ligne { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-recap-ligne .rf-puce { height: 28px; font-size: 13px; }
.nt-recap-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--pas-2); margin: var(--pas-3) 0 var(--pas-2); }
.nt-recap-cases > * { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: var(--rayon); color: var(--texte); text-decoration: none; min-width: 0; }
.nt-recap-cases b { font: var(--graisse-grasse) 24px var(--police-titre); }
.nt-recap-cases span { font-size: 13px; color: var(--texte-doux); line-height: 1.25; }
.nt-recap-cases a:hover { background: var(--rf-fond); text-decoration: none; }
.nt-recap-fort { border-color: var(--rf-geste-filet) !important; background: var(--rf-geste-fond); }
.v11 .nt-recap-fort { border-color: var(--rouge-filet) !important; background: var(--rouge-fond); }
.v11 .nt-recap-fort span { color: var(--encre-2); }
.v11 .nt-recap-ligne .rf-puce-geste b { color: inherit; }
.nt-recap-regles { margin: 0 0 var(--pas-2); }
.nt-recap-liste { margin: 0 0 var(--pas-2); padding-left: 1.1em; font-size: 13.5px; color: var(--texte-doux); }
/* E23, E55 — les onglets de la refonte, qui défilent au téléphone */
.nt-onglets, .seg.v11-onglets.nt-onglets { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin: var(--pas-2) 0; }
.nt-onglets::-webkit-scrollbar { display: none; }
.nt-onglets a { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nt-onglets .n { font-size: 12px; color: var(--texte-faible); font-weight: var(--graisse-moyenne); }
.nt-sorts { margin: var(--pas-2) 0 var(--pas-3); align-items: center; }
.nt-sorts .rf-puce { height: 30px; font-size: 13.5px; }
.nt-al-li, .nt-ar-li { grid-template-columns: minmax(0, 1fr) auto; }
.nt-al-li .etiq { margin-right: 4px; }
.nt-sort { display: flex; flex-direction: column; align-items: flex-end; text-align: right; min-width: 0; }
.nt-sort b { white-space: nowrap; }
.nt-sort b { font-size: 13.5px; }
.nt-sort small { color: var(--texte-faible); font-size: 12.5px; }
.nt-parts { margin-top: var(--pas-3); }
.nt-parts > summary { display: flex; align-items: center; gap: var(--pas-2); cursor: pointer; padding: 2px 0 var(--pas-2); }
.nt-part { grid-template-columns: minmax(0, 1fr); }
/* E55 — l'archive liée */
.nt-corriger { margin-bottom: var(--pas-2); max-width: 100%; overflow-x: auto; }
.nt-corriger a { white-space: nowrap; }
.nt-avancement { padding: var(--pas-3) var(--pas-4); }
.nt-avancement p { margin: 0; }
.nt-avancement-l { display: flex; align-items: baseline; gap: var(--pas-2); flex-wrap: wrap; }
.nt-gros { font: var(--graisse-grasse) 28px var(--police-titre); }
.nt-jauge { display: block; width: 100%; height: 8px; margin: var(--pas-2) 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--surface-3); appearance: none; -webkit-appearance: none; }
.nt-jauge::-webkit-progress-bar { background: var(--surface-3); border-radius: 4px; }
.nt-jauge::-webkit-progress-value { background: var(--rf-ok-vif); border-radius: 4px; }
.nt-jauge::-moz-progress-bar { background: var(--rf-ok-vif); border-radius: 4px; }
.nt-reserve { display: flex; align-items: center; gap: var(--pas-2); }
.nt-groupe .rf-carte-tete { flex-wrap: wrap; }
.nt-tout { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--texte-doux); cursor: pointer; min-height: 44px; }
.nt-tout input, .nt-ar-li input { width: 20px; height: 20px; accent-color: var(--rf-action); margin: 0; }
.nt-ar-li { grid-template-columns: auto minmax(0, 1fr) minmax(0, 40%); cursor: pointer; }
.nt-ar-li:has(input:checked) { background: var(--accent-clair); }
.nt-ar-site { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--texte); }
.nt-ar-site > span { display: flex; flex-direction: column; min-width: 0; }
.nt-ar-site b, .nt-ar-site small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-ar-site small { color: var(--texte-faible); font-size: 12.5px; }
.nt-ar-site .ic { flex: none; color: var(--rf-ok); }
.nt-barre-lot .nt-bouton-clair { background: var(--surface); color: var(--rf-action); border-color: var(--surface); }
.nt-retirer > summary { list-style: none; cursor: pointer; }
.nt-retirer > summary::-webkit-details-marker { display: none; }
.nt-retirer[open] { flex-basis: 100%; }
.nt-tiroir { margin-top: var(--pas-2); }
.nt-ar-fiche p { margin: 0 0 4px; }
.nt-ar-libelle { font: var(--graisse-grasse) 18px var(--police-titre); }
.nt-ar-choix fieldset { border: 0; padding: 0; margin: 0 0 var(--pas-3); display: flex; flex-direction: column; gap: var(--pas-2); }
.nt-ar-choix legend { font-weight: var(--graisse-grasse); margin-bottom: var(--pas-2); }
.nt-choix { display: flex; align-items: center; gap: var(--pas-3); padding: 12px var(--pas-3); border: 1px solid var(--bordure-forte); border-radius: var(--rayon); cursor: pointer; }
.nt-choix:has(input:checked) { border-color: var(--rf-action); background: var(--accent-clair); }
.nt-choix input { width: 20px; height: 20px; accent-color: var(--rf-action); margin: 0; }
.nt-choix span { display: flex; flex-direction: column; }
.nt-choix small { color: var(--texte-faible); }
/* E08 — « Pour le bureau » et l'export */
.nt-bureau-l { grid-template-columns: minmax(0, 1fr) auto; }
.nt-bureau-l .rf-li { grid-template-columns: minmax(0, 1fr); }
.nt-bureau-geste { margin: 0; }
.nt-bureau-geste .rf-bouton-sec { white-space: nowrap; }
.nt-export-quoi { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.nt-export-quoi legend { font-size: 13.5px; color: var(--texte-doux); margin-bottom: 4px; }
@container app (max-width: 640px) {
  .nt-recap { padding: var(--pas-3); }
  .nt-recap-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-al-li { grid-template-columns: minmax(0, 1fr); }
  .nt-sort { align-items: flex-start; text-align: left; }
  .nt-ar-li { grid-template-columns: auto minmax(0, 1fr); }
  .nt-ar-site { grid-column: 2; }
  .nt-bureau-geste span { display: none; }
  .nt-bureau-geste.rf-bouton-sec, .nt-bureau-geste .rf-bouton-sec { width: 44px; height: 44px; padding: 0; justify-content: center; }
}
.nt-groupe .rf-carte-tete .rf-compte-tete { margin-left: 0; }
.rf-li-geste:has(.nt-retirer[open]) { grid-template-columns: minmax(0, 1fr); }
.nt-retirer[open] > summary { display: none; }
.nt-motif { color: var(--texte-doux) !important; }
.nt-ar-cherche { display: flex; gap: var(--pas-2); align-items: center; padding: var(--pas-3); }
.nt-ar-cherche .rf-champ-q { flex: 1 1 auto; }
.nt-choix:has(input:checked) b::before { content: "✓ "; color: var(--rf-action); }

/* MC-F15 : l'aide de la coupure des e-mails (E23, « Manquées ») s'ouvre vers la gauche : à droite de la ligne, la bulle centrée dépassait la page à 1 280 px (le dessin ne l'a pas vu). */
.mq-e23 .v11-emails .rf-aide-bulle { left: auto; right: -8px; transform: none; }

/* ---- MC-RE2 · E46, la page 2 « Bilan énergétique » (archive v46, partials/ex-bilan ; règles du dessin reprises, sans les entrées AC neutres : E2 b) ---- */
.ex-defile { overflow-x: auto; }
.ex-bilan-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ex-bilan-t th, .ex-bilan-t td { padding: 6px 8px; border-bottom: 1px solid var(--filet); text-align: left; vertical-align: top; }
.ex-bilan-t thead th { font-size: var(--t-xs); color: var(--encre-3); font-weight: 600; }
.ex-bilan-t .num { text-align: right; white-space: nowrap; }
.ex-bilan-t tbody th { font-weight: 600; }
.ex-bilan-t tbody th small { display: block; font-weight: 400; color: var(--encre-3); }
.ex-bilan-note td { font-size: var(--t-s); color: var(--encre-2); border-bottom: 0; padding-top: 0; }
.ex-soc-inst th { font-size: var(--t-s); color: var(--encre-2); background: var(--surface-2); }
.ex-bilan h4 { margin: 14px 0 6px; font-size: var(--t-m); }
.ex-mix { display: flex; height: 18px; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.ex-mix-p { display: inline-block; height: 100%; }
.ex-mix-leg { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-s); }
.ex-mix-leg i.ex-mix-p { width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.ex-mix-solaire { background: var(--soleil); }
.ex-mix-batterie { background: var(--mqp-2); }
.ex-mix-reseau { background: var(--mqp-1); }
.ex-mix-groupe { background: var(--mqp-5); }
.ex-conso .rpp-j i { background: var(--mqp-0); }

/* ---- MC-RE3 · E46, la page 3 « Actions de Solarma » et la case de l'aperçu (archive v46, partials/ex-recap ; règles du dessin reprises) ---- */
.ex-recap h4 { margin: 14px 0 6px; font-size: var(--t-m); }
.ex-recap-comptes { margin: 0 0 8px; }
.ex-recap-int { padding: 8px 0; border-top: 1px solid var(--filet); }
.ex-recap-int ul, .ex-recap-l { margin: 4px 0 0; padding-left: 18px; }
.ex-recap-tete { margin: 0; }
.ex-recap-mois { text-transform: capitalize; }
.ex-case-recap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }

/* MC-OB3 · fil NUIT (archive v48, étape b) : l'observation après résolution ; seules les règles ajoutées par la v48 sont reprises, le fichier v48 n'est pas recopié. */
  .nt-bureau-clore span { display: inline; }
  .nt-bureau-clore .rf-bouton-sec { width: auto !important; padding: 0 12px !important; }
/* ================================================================== fil NUIT (04/10/2026) · b · l'observation après résolution */
.mq .nt-obs-encart { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--e2) var(--e3); background: var(--surveiller-fond); border-color: var(--surveiller); }
.mq .nt-obs-encart > .ic { color: var(--surveiller); flex: none; margin-top: 2px; }
.nt-obs-encart .mq-encart-texte { flex: 1 1 auto; min-width: 0; }
.nt-obs-encart p { margin: 2px 0 0; }
.nt-obs-retours { margin: 6px 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nt-obs-retours a { color: inherit; }
.mq .nt-obs-regle { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.nt-obs-gestes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: none; }
.nt-obs-gestes form, .nt-obs-tete { margin: 0; display: inline-flex; }
.mq .nt-obs-fini { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--encre-2); font-size: var(--t-m); }
.nt-obs-file { margin: 0; }
.nt-obs-file .rf-puce { height: 34px; }
.nt-obs-semaine { display: flex !important; align-items: center; gap: 4px; color: var(--texte-doux); }
.mq .nt-obs-e17 { background: var(--surveiller-fond); border-color: var(--surveiller); }
.mq .nt-obs-citation { font-style: italic; margin-top: 4px !important; }
.mq .nt-obs-e17 h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--encre-2); }
.mq .nt-obs-e17 p { margin: 0; }
.mq .nt-obs-phrase { margin: 4px 0; font-weight: 600; }
.mq .nt-obs-sugg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--surveiller-fond); }
.mq .nt-obs-sugg .btn { margin-left: auto; }
.nt-obs-tag { background: var(--surface-3); color: var(--texte-doux); }
@container app (max-width: 640px) {
  .mq .nt-obs-encart { grid-template-columns: auto minmax(0, 1fr); }
  .nt-obs-gestes { grid-column: 2; }
  .mq .nt-obs-sugg .btn { margin-left: 0; }
}

.mq .nt-obs-sugg .ref { color: var(--encre-2); font-weight: 600; }
.rf-li:has(.nt-obs-tag) { grid-template-columns: minmax(0, 1fr) auto auto; }
@container app (max-width: 640px) {
  .rf-li:has(.nt-obs-tag) { grid-template-columns: minmax(0, 1fr) auto; }
  .rf-li:has(.nt-obs-tag) .rf-li-ech { grid-column: 1; grid-row: 2; }
  .rf-li:has(.nt-obs-tag) .sd-av { display: inline-grid; grid-column: 2; grid-row: 1; }
}


/* MC-OB3 · P4 a (X-CH-OBSERVATION §9) : au téléphone, le « Suivi » de la fiche (affecté, créneau, préparation) remonte juste sous l'en-tête, avant le fil ; règle de mise en page de la fiche, les données ne changent pas. */
@container app (max-width: 640px) {
  .app.rf .mq-e09 .fiche-corps > .panneau { order: -1; }
}

/* MC-D12 · le contact venu de Notion (X-ECARTS §2) : la marque « Notion, lu le … » sur la ligne du nom, sans élargir la page à 380 px ; l'identité fermée du formulaire */
.dm-contact-tete .etiq.contour { box-shadow: inset 0 0 0 1px var(--filet-fort, currentColor); background: none; white-space: normal; }
.dm-identite-fermee { overflow-wrap: anywhere; }

/* MC-R15 · textes et petites mises en page de la recette 5 (fiches L3 : A-01, A-21 d'E42, A-26, A-27) */
.formulaire.champs-empiles label { display: block; margin-top: 8px; }
.formulaire.champs-empiles input:not([type="checkbox"]):not([type="radio"]), .formulaire.champs-empiles select, .formulaire.champs-empiles textarea { display: block; margin-top: 4px; max-width: 100%; box-sizing: border-box; }
.v11-trj .chiffre, .v11-trj .chiffre b { white-space: nowrap; }
.dm-ann .etiq { display: inline-flex; align-items: center; padding: 1px 8px; border: 0; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--ardoise-fond); color: var(--ardoise); }
.contenu > .bd-main:not(:last-child) { min-height: 0; }
/* MC-R15 · A-21 (E38) : « Commune » ne se coupe plus à 380 px ; le tableau défile dans son bloc */
.e38-table th, .e38-table td:nth-child(1), .e38-table td:nth-child(3) { white-space: nowrap; }

/* ---- MC-R18 · G-28, A-33 : les jetons de couleur des partials ex-* hors de .mq (E24 : courbes ; E46 : barre du mix) ---- */
.e24, .e46 { --soleil: #f4a100; --encre-2: #45526b; }
/* MC-R18 · A-34 : E46 trimestriel à 380 px, la première colonne du bilan garde ses mots entiers ; le tableau défile dans son bloc */
.ex-bilan-t tbody th { min-width: 9.5rem; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.ex-bilan-t .num { min-width: 4.5rem; }
/* ---- MC-R17 · A-29 : E35, noms entiers, pas de vide sous le dernier bloc, lien de couverture sur sa ligne, essai de restauration dans une carte ---- */
.sd.ch.mq-e35 { min-height: 0; padding-bottom: 24px; margin-bottom: 0; }
.mq-e35 .rang .p { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.mq-e35 .e35-lien { display: block; margin-top: 4px; }
.rf-suite .e35 { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--ombre-carte); padding: 16px 24px 24px; margin-top: 16px; }

/* ---- fil SUPPRESSION (06/10/2026) : « Supprimer » efface pour de bon (X-CH-SUPPRESSION v2 §6) ------------------------------
   Le geste est le dernier du menu « Plus », séparé par un filet, en rouge ; grisé, il dit pourquoi. La fenêtre est une vraie fenêtre
   (voile, centrée) : rien d'autre ne se touche tant qu'elle est ouverte ; au téléphone, plein écran. Le bouton rouge reste pâle et
   inactif tant que le motif, la case ou la saisie manquent. */
.sp-geste { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--bordure); }
.ex-plus-menu .sp-item, .sp-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; min-height: 40px; padding: 8px 12px; border: 0;
  border-radius: 6px; background: none; color: var(--rf-geste); font: inherit; font-weight: var(--graisse-moyenne); cursor: pointer; }
.sp-item:hover:not([disabled]), .sp-item:focus-visible { background: var(--rf-geste-fond); }
.ex-plus-menu .sp-item[disabled], .sp-item[disabled] { color: var(--texte-faible); cursor: not-allowed; }
.sp-item .ic, .sp-tete .ic, .sp-supprimer .ic, .sp-juste .ic, .sp-irreversible .ic, .mq-e34 .page-tete .ic { width: 16px; height: 16px; flex: none; fill: none;
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-raisons { margin: 0 4px 4px; padding: 8px 10px; max-width: 340px; border-radius: 6px; background: var(--surface-2); color: var(--texte-doux);
  font-size: 13px; line-height: 1.4; }
.sp-raisons p { margin: 0 0 4px; font-weight: var(--graisse-moyenne); color: var(--texte); }
.sp-raisons ul { margin: 0; padding-left: 18px; }
.sp-raisons li + li { margin-top: 3px; }
.sp-raisons .sp-issue { margin: 6px 0 0; font-weight: var(--graisse-moyenne); color: var(--rf-action); }
.sp-plus { display: inline-block; vertical-align: top; }
.sp-plus .ex-plus-menu { min-width: 260px; }

.sp-voile { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--rf-voile); }
.sp-voile[hidden] { display: none; }
body:has(.sp-voile:not([hidden])) { overflow: hidden; }
.sp-fenetre { width: min(520px, 100%); max-height: calc(100% - 16px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: 20px 22px; background: var(--surface); color: var(--texte); border-radius: 14px; box-shadow: var(--ombre-panneau);
  border-top: 4px solid var(--rf-geste); text-align: left; }
.sp-tete { display: flex; align-items: flex-start; gap: 10px; }
.sp-tete h2 { flex: 1 1 auto; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; margin: 2px 0 0; font: var(--graisse-grasse) 18px/1.3 var(--police-titre); color: var(--texte); }
.sp-pictogramme { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--rf-geste-fond);
  color: var(--rf-geste); }
.sp-pictogramme .ic { width: 20px; height: 20px; }
.sp-effet { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sp-irreversible { display: flex; align-items: center; gap: 6px; color: var(--rf-geste); }
.sp-sans-suite { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--texte-doux); }
.sp-echec { padding: 10px 12px; border-radius: 8px; background: var(--rf-geste-fond); color: var(--rf-geste); border: 1px solid var(--rf-geste-filet); }
.sp-echec ul { margin: 4px 0 0; padding-left: 18px; }
.sp-motif { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-motif legend { padding: 0; margin-bottom: 6px; font-weight: var(--graisse-moyenne); }
.sp-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-pastille { position: relative; }
.sp-pastille input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-pastille span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--rayon-pastille);
  border: 1px solid var(--bordure-forte); background: var(--surface); cursor: pointer; }
.sp-pastille input:checked + span { background: var(--rf-action); border-color: var(--rf-action); color: var(--texte-inverse); }
.sp-pastille input:focus-visible + span { box-shadow: var(--focus); }
.sp-autre[hidden], .sp-case[hidden], .sp-hors-trace-motif[hidden], .sp-juste[hidden] { display: none; }
.sp-autre .champ, .sp-saisie .champ { width: 100%; height: 44px; font-size: 16px; }
.sp-hors-trace { display: flex; flex-direction: column; gap: 6px; }
.sp-hors-trace-motif { margin: 0; color: var(--rf-relance); font-weight: var(--graisse-moyenne); }
.sp-case { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rf-relance-filet);
  background: var(--rf-relance-fond); font-weight: var(--graisse-moyenne); cursor: pointer; }
.sp-case input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.sp-saisie { display: flex; flex-direction: column; gap: 6px; }
.sp-attendu { font-family: var(--police-mono, monospace); font-weight: var(--graisse-grasse); padding: 1px 6px; border-radius: 4px;
  background: var(--surface-3); white-space: nowrap; }
.sp-saisie-champ { display: flex; flex-direction: column; gap: 4px; }
.sp-juste { display: inline-flex; align-items: center; gap: 4px; color: var(--rf-ok); font-weight: var(--graisse-moyenne); }
.sp-boutons { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.sp-boutons .btn, .sp-supprimer { min-height: 44px; }
.sp-annuler { padding: 0 16px; border: 1px solid var(--bordure-forte); border-radius: var(--rayon); background: var(--surface); color: var(--texte); }
.sp-supprimer { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 1px solid var(--rf-geste-vif); border-radius: var(--rayon);
  background: var(--rf-geste-vif); color: var(--rf-sur-geste); font: inherit; font-weight: var(--graisse-grasse); cursor: pointer; }
.sp-supprimer:hover:not([disabled]) { filter: brightness(.9); }
.sp-supprimer[disabled] { background: var(--surface-3); color: var(--texte-faible); border: 1px dashed var(--bordure-forte); cursor: not-allowed; }
@container app (max-width: 640px) {
  .sp-voile { padding: 0; align-items: stretch; }
  .sp-fenetre { width: 100%; max-height: 100%; min-height: 100%; border-radius: 0; padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .sp-boutons { position: sticky; bottom: 0; margin-top: 4px; padding-top: 10px; flex-direction: column-reverse; background: var(--surface); }
  .sp-boutons .btn, .sp-supprimer { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
  .sp-raisons { max-width: none; }
}
/* E34 : la case, l'étiquette ; E34b : la liste ; E36 */
.sp-e34-case { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.sp-e34-case .rf-consequence { flex: 1 1 100%; margin: 0; }
.sp-etiq { margin-left: 6px; color: var(--rf-geste); border-color: var(--rf-geste-filet); }
.sp-liste .sp-rangs .rangs-tete, .sp-liste .sp-rangs .rang { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
.sp-liste .cellule .p, .sp-liste .cellule .s { display: block; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.sp-liste .cellule.d, .sp-liste .rangs-tete .d { text-align: right; }
.sp-liste .sd-qui { display: inline-flex; align-items: center; gap: 6px; }
@container app (max-width: 640px) {
  .sp-liste .sp-rangs .rangs-tete { display: none; }
  .sp-liste .sp-rangs .rang { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .sp-liste .cellule, .sp-liste .cellule.d { text-align: left; width: auto; }
}
.sp-e36 a { font-weight: var(--graisse-moyenne); }
.ex-plus-menu:has(.sp-raisons) { min-width: min(340px, 88vw); }
@container app (max-width: 640px) {
  .ex-plus:has(.sp-geste) { position: static; }
  .mq .fiche-tete .actions:has(.sp-geste) { width: 100%; }
  .actions:has(.sp-geste), .page-actions:has(.sp-geste) { position: relative; }
  .ex-plus-menu:has(.sp-geste) { left: 0; right: 0; min-width: 0; }
}
.sp-liste .cellule .s.sd-qui { display: flex; align-items: center; gap: 6px; }
.ex-plus-menu .sp-item:not([disabled]) { color: var(--alerte); }
.ex-plus-menu .sp-item:hover:not([disabled]) { background: var(--alerte-fond); }
.sp-fenetre .sp-tete h2 { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }

/* MC-R22 · G-39 : « Envoyé à » de E45 sous la ligne du rapport, visible à toutes les largeurs (la cellule `cache-tel` est masquée au téléphone) */
.herite .e45 .dm-env-sous { grid-column: 1 / -1; min-width: 0; padding-top: 2px; }
.herite .e45 .dm-env-sous .dm-env-li { flex-wrap: wrap; }
/* MC-R22 · A-49 : l'onglet « n contacts, n numéros » passe à la ligne à 380 px au lieu d'être coupé */
.mq .seg.dm-ann-seg { flex-wrap: wrap; max-width: 100%; }
.mq .seg.dm-ann-seg a { white-space: normal; text-align: left; }
/* MC-R22 · réponse 3 a : l'exemple du motif de « Renvoyer au SAV » est un texte indicatif gris, le champ s'ouvre vide */
.dm-ann textarea[name="motif"]::placeholder { color: var(--encre-3); opacity: 1; }

/* ================================================================== NUIT-REVUE NR2 · accueils et file (MC-NR2) */
/* NR-011 : les lignes sans pastille de priorité (rapport à valider) gardent la place de la pastille : les titres s'alignent */
.rf-p-vide { border: 0; background: none; box-shadow: none; padding: 0; }
.rf-li:has(> .rf-p-vide) { grid-template-columns: 30px minmax(0, 1fr) auto auto; }
/* NR-012 : une visite sans heure : un tiret gris, une ligne (le texte « Sans heure » reste pour les lecteurs d'écran) */
.rf-sans-heure { color: var(--texte-faible); font-weight: 600; }
/* NR-013 : le chevron de « n tickets clos cette semaine » reste sur la ligne du texte */
.rf-progres-lien { display: inline-flex; align-items: center; gap: 4px; }
.rf-progres-lien .ic { flex: none; }
/* NR-014 : « sans date » en gris, comme le dessin */
.rf-li-ech-vide { color: var(--texte-faible); font-weight: 400; }
/* NR-016 : les boutons de ligne de « Pour le bureau » gardent leur libellé à 380 px, tous de la même façon */
@container app (max-width: 640px) {
  .nt-bureau-geste span { display: inline; }
  .nt-bureau-geste.rf-bouton-sec, .nt-bureau-geste .rf-bouton-sec { width: auto; padding: 0 12px; }
}
/* NR-071 : l'état vide de « À régulariser » comme celui d'« Archive liée » */
.nr2-rien { margin: var(--pas-4) 0; }

/* ======================================================================================================================================
   NUIT-REVUE NR1 · coquille et styles hérités (08/10/2026) : NR-001, NR-002, NR-003, NR-008. Section ajoutée en fin de fichier, rien au-dessus n'est réécrit.
   ====================================================================================================================================== */
/* NR-001 · le « ? » d'aide d'un écran hérité : la règle `.herite button` (fond bleu, 44 px) ne l'écrase plus ; la zone tactile de 44 px reste celle de ::after */
.herite .rf-aide-q { width: 20px; height: 20px; min-height: 0; padding: 0; border: 1px solid var(--bordure-forte); border-radius: 50%; background: var(--surface); color: var(--texte-faible);
  font: var(--graisse-grasse) 12px/1 var(--police); }
.herite .rf-aide-q:hover, .herite .rf-aide-q:focus-visible, .herite .rf-aide-ouverte .rf-aide-q { color: var(--accent); border-color: var(--accent); background: var(--surface); }
/* NR-002 · un seul bouton principal dans l'outil : le marine du dessin (et non le bleu vif de l'ancienne feuille) ; le secondaire est un contour gris */
.herite button { min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--rayon); background: var(--rf-action); color: var(--texte-inverse); font-weight: var(--graisse-moyenne); }
.herite button:hover:not(:disabled) { background: var(--rf-action-survol); }
.herite button.secondaire { border-color: var(--bordure-forte); background: var(--surface); color: var(--texte); }
.herite button.secondaire:hover:not(:disabled) { background: var(--rf-fond); }
.herite button:disabled { opacity: .55; cursor: not-allowed; }
.herite .carte-controles button[aria-pressed="true"] { background: var(--rf-action); color: var(--texte-inverse); }
@media (max-width: 640px) { .herite button { min-height: 44px; } }
/* NR-003 · la barre d'onglets qui défile montre qu'il y a une suite : un fondu sur le bord qui a encore du contenu (les ombres suivent le défilement, les caches restent collés au contenu) */
.rf-onglets {
  background:
    linear-gradient(to right, var(--surface) 40%, transparent) left center / 28px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 40%, transparent) right center / 28px 100% no-repeat local,
    linear-gradient(to right, color-mix(in srgb, var(--texte) 16%, transparent), transparent) left center / 14px 100% no-repeat scroll,
    linear-gradient(to left, color-mix(in srgb, var(--texte) 16%, transparent), transparent) right center / 14px 100% no-repeat scroll,
    var(--surface);
}
/* NR-008 · un anneau de focus au clavier sur les boutons dont la règle propre l'effaçait (« Se connecter », « ? », « Nommer »…) */
:root button:focus-visible, :root .btn:focus-visible, :root .rf-bouton:focus-visible, :root .rf-bouton-sec:focus-visible, :root .rf-aide-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================================================================== NUIT-REVUE NR3 · ticket, clôture, rapport client (MC-NR3) */
/* NR-032 · NR-132 : les gestes du Suivi et du bloc « Le site » d'E09 (Planifier, Changer, Préparer, Appeler, Tous les contacts, Ses tickets) ont l'aspect d'un lien
   (couleur de lien, comme « Ses tickets » du dessin) et une zone tactile de 32 px au moins, sans agrandir la ligne (même procédé que le « ? » : une zone invisible autour) ;
   « Changer » ne passe plus à la ligne avec un retrait */
.mq #suivi .lien-bouton, .mq #site .lien-bouton, .mq #site dd small a, .mq #site h3 a { color: var(--lien); position: relative; }
.mq #suivi .lien-bouton::after, .mq #site .lien-bouton::after, .mq #site dd small a::after, .mq #site h3 a::after { content: ""; position: absolute; inset: -8px -6px; }
.mq #suivi .lien-bouton:hover, .mq #site .lien-bouton:hover, .mq #site dd small a:hover { text-decoration: underline; }
.mq #suivi dd > .lien-bouton, .mq #site dd > .lien-bouton { margin-left: 0; margin-right: 8px; white-space: nowrap; }
.mq #site dd small a { white-space: nowrap; }
.mq #suivi .lien-bouton:focus-visible, .mq #site a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* NR-037 · NR-041 : le « ? » d'aide de la fiche d'un ticket et de l'envoi d'un rapport (blocs « herite ») reste le petit rond discret des écrans refaits */
#constats-causes .rf-aide-q, .carte .rf-aide-q { width: 20px; height: 20px; min-height: 0; padding: 0; background: var(--surface); color: var(--texte-faible); border: 1px solid var(--bordure-forte); border-radius: 50%; font: var(--graisse-grasse) 12px/1 var(--police); }
/* NR-033 · NR-038 : la phrase d'un bloc vide (fil, cas semblables) se lit comme un texte secondaire */
.mq-e09 #frise .ex-vide, .mq-e09 #cas-semblables .ex-vide { margin: 4px 0 0; color: var(--encre-3); }

/* ================================================================== NUIT-REVUE NR4 · le parc : sites, clients, fiche d'un site (MC-NR4) */
/* NR-051, NR-052 : une valeur inconnue s'écrit « — » ou « aucune », en gris, sur une seule ligne (la phrase est dans l'infobulle) */
.mq .rang .mq-inconnu { color: var(--encre-3); white-space: nowrap; }
/* NR-060 : dans la rangée de faits de la fiche d'un site, un séparateur ne s'affiche qu'entre deux valeurs présentes */
.mq-e03 .fiche-tete .faits > span:empty { display: none; }
.mq-e03 .fiche-tete .faits .sep:has(+ .sep), .mq-e03 .fiche-tete .faits .sep:has(+ span:empty) { display: none; }
/* NR-065 : le tableau des équipements garde ses mots entiers ; il défile si la colonne est étroite, la date ne se coupe jamais */
.v11-e03-eqp { min-width: 620px; }
.v11-e03-eqp th, .v11-e03-eqp td { overflow-wrap: normal; word-break: normal; hyphens: none; }
.v11-e03-eqp td:nth-child(1) { min-width: 9.5em; }
.v11-e03-eqp td:nth-child(2) { min-width: 12em; }
.v11-e03-eqp td:nth-child(4) { white-space: nowrap; }
.section-fiche .defile { overflow-x: auto; }
/* NR-131 : les cases à cocher de la fiche d'un site font 20 px et leur libellé entier se touche */
.herite input[type="checkbox"], .mq-e03 input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; margin: 0 8px 0 0; vertical-align: middle; }
.herite label:has(> input[type="checkbox"]), .mq-e03 label:has(> input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 0; min-height: 24px; padding: 4px 0; cursor: pointer; }
/* NR-069 : le formulaire du drapeau VIP s'ouvre derrière « Poser le drapeau » */
.vip-pose > summary { list-style: none; cursor: pointer; display: inline-block; }
.vip-pose > summary::-webkit-details-marker { display: none; }
.vip-pose[open] > summary { margin-bottom: 8px; }

/* ================================================================== NUIT-REVUE NR5 · messages, planning, préventif (MC-NR5) */
/* NR-080 : « Nouvelle annonce » (et tout bouton plein en lien d'une page .mq) garde son texte clair : `.mq a { color: inherit }` l'emportait sur `.rf-bouton` ; plus de bande grise derrière le titre (le fond de .mq n'est pas celui de la page refaite) */
.mq a.rf-bouton, .mq a.rf-bouton:hover { color: var(--texte-inverse); }
.rf-page.mq { background: transparent; }
/* NR-082 : la pastille de non-lus de la liste des conversations est un rond (ou une pilule courte), à droite de sa cellule */
.mq-conversations .boite .fils .nl { justify-self: end; align-self: center; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; line-height: 1; }
/* NR-081 : le panneau de droite sans conversation ouverte dit quoi faire (au bureau seulement ; au téléphone la liste prend la place) */
.mq-conversations .boite .conv-vide { display: flex; align-items: center; justify-content: center; color: var(--encre-3); padding: 24px; }
.mq-conversations .boite .conv-vide p { margin: 0; }
@media (max-width: 899px) { .mq-conversations .boite .conv-vide { display: none; } }
/* NR-084 · NR-085 : la phrase d'une liste vide se lit comme un texte secondaire */
.rf-vide-phrase { margin: 8px 0; color: var(--texte-faible); font-size: 14px; }
/* NR-088 : la semaine sans technicien, une phrase avec son lien */
.nr5-equipe-vide { padding: 12px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--bordure); color: var(--texte); }
.nr5-equipe-vide a { color: var(--lien); text-decoration: underline; }
/* NR-089 : au téléphone, « ‹ », « Cette semaine », « › » tiennent sur une ligne avec « Jour » */
.nr5-semaines .nr5-court { display: none; }
@media (max-width: 640px) {
  .nr5-semaines .nr5-long { display: none; }
  .nr5-semaines .nr5-court { display: inline; font-size: 18px; line-height: 1; }
  .mq-planning .page-tete .actions { flex-wrap: nowrap; }
}
/* NR-133 : « Deux zones le même jour » en rouge foncé (≥ 4,5:1), les zones nommées en infobulle (et lues par les lecteurs d'écran) plutôt que sur cinq lignes */
.mq-planning .case .conflit { color: #9b1c12; }
.mq-planning .case .conflit .nr5-zones { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* NR-090 : « Charge de la semaine », « Préventives à placer » et « Tournées » : pleine largeur, comme les autres blocs de la page */
#charge-semaine, #a-placer, #tournees-semaine { max-width: none; width: 100%; box-sizing: border-box; margin: 12px 0; background: var(--surface); }
/* NR-091 : les chiffres d'une tournée passent à la ligne, « au moins » en petit au-dessus */
.v11-trj .v11-trj-chiffres .chiffre, .v11-trj .v11-trj-chiffres .chiffre b { white-space: normal; }
.v11-trj .v11-trj-chiffres .chiffre b { font-size: 26px; overflow-wrap: anywhere; }
.v11-trj .v11-trj-chiffres .trj-aumoins { font-size: 12px; font-weight: 500; color: var(--encre-3); line-height: 1.2; }
@media (max-width: 640px) { .v11-trj .v11-trj-chiffres .chiffre b { font-size: 22px; } }
/* NR-094 : un zéro n'est pas une alerte, il reste de la couleur du texte (le rouge dit « il y en a ») */
.v11-e19 .v11-e19-chiffres > div:not(.v11-e19-alerte):not(.v11-e19-urgent) b { color: inherit; }
/* NR-098 : la liste des destinataires d'une annonce garde numéro et statut sur une ligne ; l'aperçu du téléphone passe à droite, plus étroit */
.dm-ann .dm-points td:not(:first-child), .dm-ann .dm-points thead th:not(:first-child) { width: auto; text-align: left; white-space: nowrap; }
.dm-ann .dm-ann-deux { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
@container app (max-width: 900px) { .dm-ann .dm-ann-deux { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .dm-ann .dm-ann-deux { grid-template-columns: minmax(0, 1fr); } }
/* NR-086 : un ticket sans site se range comme une ligne de la liste des messages */
.rf-sans-site .rf-message-gestes { align-items: center; flex-wrap: nowrap; }
.rf-sans-site .rf-message-gestes select { max-width: 260px; min-height: 36px; }
.rf-sans-site .rf-sans-site-ref { font-weight: 700; color: var(--lien); }
@media (max-width: 640px) { .rf-sans-site .rf-message { grid-template-columns: minmax(0, 1fr); } .rf-sans-site .rf-message-gestes { flex-wrap: wrap; justify-content: flex-start; } }
.rf-sans-site { margin-top: 16px; }
.nr5-journee-tel { margin: 12px 0 24px; }
