/* Atelia · console · cadre commun des pages de processus (screens/processus-commun.js) et page Restaurants.
   Palette inchangée : var(--…) uniquement, composants existants (.card, .kpi, .st, .note, .empty, .btn).
   Largeur ordinateur seulement (console : 1280 px, Saleh 03/10) : aucune mise en page pour téléphone. */

.pc { display: flex; flex-direction: column; gap: 14px; }
.pc .h-row { margin-bottom: 0; }
.pc-lu { font-size: 12px; margin-right: 8px; }
.pc-aide { margin: 10px 0 0; font-size: 12.5px; }
.pc-urgent { color: var(--rouge); }
.pc-nowrap { white-space: nowrap; }

/* En-tête : le mode du processus. */
.pc-mode { display: flex; flex-direction: column; gap: 4px; }
.pc-mode:empty { display: none; }
.pc-mode-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-mode-l { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pc-mode-eff { font-size: 12.5px; font-weight: 600; color: var(--orange); }
.pc-mode-aide { font-size: 12.5px; color: var(--muted); }
.pc-mode-absent { font-size: 12.5px; color: var(--muted); }
.pc-mode-choix { display: inline-flex; align-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.pc-mode-b { font: inherit; font-size: 12.5px; padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; }
.pc-mode-b:hover:not([disabled]) { background: var(--surface-2); }
.pc-mode-b[disabled] { cursor: not-allowed; opacity: .6; }
.pc-mode-b.on { font-weight: 700; color: #fff; background: var(--blue); }
.pc-mode-b.on.m-automatique { background: var(--vert); }
.pc-mode-b.on.m-arret { background: var(--navy); }
.pc-mode-reglages .pc-mode-choix { margin-left: 12px; }
/* Mode par réseau (0050) : une ligne par réseau réglé à part sous le sélecteur, et le tableau de l'onglet « Réglages ». */
.pc-mode-reseaux { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.pc-mode-reseau { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pc-reseaux td { vertical-align: middle; }
.pc-mode-choix.pc-mode-choix-reseau { margin-left: 0; flex-wrap: wrap; }
.pc-reseaux .pc-mode-eff, .pc-reseaux .pc-mode-aide { display: block; margin-top: 3px; }
.pc-seuil-champ { width: 72px; font: inherit; font-size: 13.5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--navy); box-sizing: border-box; }
.pc-seuil-champ:disabled { background: var(--surface-2); }

/* Raison chiffrée d'un changement de carte proposé (page Menu, onglet « Carte »). */
.pc-raison { max-width: 110ch; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.pc-table tr.pc-raison-tr > td { padding-top: 0; }
.pc-table tbody tr:has(+ tr.pc-raison-tr) > td { border-bottom: 0; }

/* Bandeaux : suspension pour risque, pause, interrupteur coupé ; le bandeau fixe « Envoi réel coupé ». */
.pc-bandeaux { display: flex; flex-direction: column; gap: 8px; }
.pc-bandeaux:empty { display: none; }
.pc-bandeau-risque { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--r-sm, 12px);
  background: var(--rouge-bg); border: 1px solid var(--rouge-bd); color: var(--rouge); font-size: 13px; }
.pc-bandeau-risque span { color: var(--ink-2); font-size: 12.5px; }
.pc-bandeau-risque .btn { flex: none; }
.pc-pause { border-color: var(--orange-bd); background: var(--orange-bg); }
.pc-bandeau { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 9px 14px; border-radius: var(--r-sm, 12px);
  background: var(--rouge-bg); border: 1px solid var(--rouge-bd); color: var(--rouge); font-size: 13px; }
.pc-bandeau span { color: var(--ink-2); font-size: 12.5px; }
.pc-construction { border-style: dashed; }

/* Chiffres clés : une case cliquable ouvre son onglet. */
.pc-kpis { margin-bottom: 0; }
/* Le texte sous la valeur se lit comme une phrase (la règle commune .kpi .sub le met en ligne flexible). */
.pc-kpi-sub { display: block; line-height: 1.45; }
.pc-kpi-lien { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pc-kpi-lien:hover { border-color: var(--blue-bd); box-shadow: var(--shadow-raised, var(--shadow)); }
.pc-kpi-lien:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Onglets. */
.pc-onglets { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.pc-onglet { font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent; color: var(--ink-2); cursor: pointer; }
.pc-onglet:hover { color: var(--navy); }
.pc-onglet.on { color: var(--blue); border-bottom-color: var(--blue); }
.pc-onglet-n { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 800; color: var(--navy); text-align: center; }
.pc-corps { display: flex; flex-direction: column; gap: 14px; }

/* Étapes : six tuiles reliées par des flèches, de gauche à droite. */
.pc-etapes-cadre { container-type: inline-size; }
.pc-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 24px; row-gap: 16px; }
@container (max-width: 900px) {
  .pc-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-etapes > .pc-etape-li:nth-child(3n + 1) > .pc-fleche { display: none; }
}
.pc-etape-li { position: relative; display: flex; min-width: 0; }
.pc-fleche { position: absolute; left: -23px; top: 50%; width: 22px; height: 10px; margin-top: -5px; display: flex; color: var(--na); }
.pc-fleche svg { display: block; width: 22px; height: 10px; overflow: visible; }
.pc-etape { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; min-height: 230px; box-sizing: border-box; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: box-shadow .15s, border-color .15s; }
.pc-etape:hover { border-color: var(--blue-bd); box-shadow: var(--shadow-raised, var(--shadow)); }
.pc-etape:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pc-etape-nom { font-size: 13.5px; font-weight: 800; color: var(--navy); }
.pc-etape-qui { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pc-etape-quoi { font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.pc-etape-ch { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.pc-etape-ligne { font-size: 12px; color: var(--ink-2); }
.pc-etape-ligne b { color: var(--navy); }
.pc-etape-ligne b.na { color: var(--na); font-weight: 600; font-style: italic; }
.pc-etape-ligne b.t-red { color: var(--rouge); }
.pc-etape-ligne b.t-green { color: var(--vert); }
.pc-etape-ligne b.t-orange { color: var(--orange); }
.pc-etape-voir { font-size: 12px; font-weight: 700; color: var(--blue); }

/* Tableaux du cadre et des pages (onglets « Fait par le robot », « Historique », « Réglages », listes propres). */
.pc-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.pc-table th, .pc-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.pc-table th { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.pc-table th.r, .pc-table td.r { text-align: right; }
.pc-table td b { color: var(--navy); }
.pc-table .muted { font-size: 12px; }
.pc-table tbody tr:last-child td { border-bottom: 0; }
.pc-brut summary { cursor: pointer; font-size: 12px; color: var(--blue); font-weight: 600; }
.pc-brut pre { margin: 6px 0 0; max-height: 260px; overflow: auto; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.pc-liste { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.pc-dl { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 10px 0 0; }
.pc-dl div { display: flex; flex-direction: column; }
.pc-dl dt { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pc-dl dd { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.pc-tiroir { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink-2); }
.pc-tiroir p { margin: 0; }

/* Filtres en pastilles (historique, listes propres). */
.pc-filtres { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.pc-filtre { font: inherit; font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--navy); cursor: pointer; }
.pc-filtre.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.pc-filtre b { margin-left: 4px; }
.pc-filtres-aide { font-size: 12px; }

/* Section « À valider » en haut de chaque page de processus (screens/processus-commun.js) : les restaurants à gauche, les
   petites cartes du restaurant choisi à droite (une seule colonne sous 600 px). */
.av2 { padding: 0; }
.av2 .card-h { padding: 14px 16px 6px; }
.av2 .card-h h2 { margin: 0; font-size: 18px; }
.av2 .card-h { align-items: flex-start; }
.av2 .card-h .card-act { align-self: flex-start; }
.av2-vide { margin: 8px 16px 16px; }
.av2-corps { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.av2-restos { display: flex; flex-direction: column; border-right: 1px solid var(--line); max-height: 640px; overflow-y: auto; background: var(--surface-2); }
/* Écran étroit (téléphone, sous 600 px) : une seule colonne, la liste des restaurants au-dessus de la carte ouverte, pour que la carte garde
   toute la largeur (à 390 px, la colonne de 250 px ne lui laissait qu'environ 140 px et la faisait sortir de l'écran). Écrit APRÈS la règle de
   base de .av2-restos : même spécificité, la dernière gagne (avant elle, la liste gardait 640 px et sa bordure de droite à 390 px). */
@media (max-width: 600px) {
  .av2-corps { grid-template-columns: minmax(0, 1fr); }
  .av2-restos { border-right: 0; border-bottom: 1px solid var(--line); max-height: 240px; }
}
.av2-resto { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; text-align: left; font: inherit; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--navy); cursor: pointer; }
.av2-resto:hover { background: var(--surface); }
.av2-resto.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--blue); font-weight: 700; }
.av2-resto-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av2-resto-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.av2-resto-compte { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.av2-resto-compte.legacy { color: var(--rouge); }
.av2-resto-av { font-size: 11.5px; color: var(--blue); text-align: right; }
.av2-panneau { padding: 14px 16px 16px; min-width: 0; }
.av2-resto-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.av2-resto-tete h3 { margin: 0 0 4px; font-size: 17px; }
.av2-resto-gestes { display: flex; gap: 8px; flex-wrap: wrap; }
.av2-regle { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); }
.av2-regle:empty { display: none; }
.av2-bilan { margin-top: 10px; }
.av2-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; margin-top: 12px; align-items: start; }
.av2-carte { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.av2-carte.ouverte { grid-column: 1 / -1; }
.av2-carte.av2-repentir { border-color: var(--rouge); }
.av2-carte.av2-prouve { border-color: var(--vert); }
.av2-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; text-align: left; font: inherit; padding: 0; border: 0; background: transparent; color: var(--navy); cursor: pointer; }
.av2-titre { font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.av2-resume { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.av2-err { font-size: 12.5px; color: var(--rouge); }
.av2-detail { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px dashed var(--line); }
.av2-dl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
.av2-dl dt { color: var(--muted); }
.av2-dl dd { margin: 0; overflow-wrap: anywhere; }
.av2-texte { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; }
.av2-texte textarea { font: inherit; font-weight: 400; font-size: 13.5px; line-height: 1.5; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--navy); resize: vertical; width: 100%; box-sizing: border-box; }
.av2-texte textarea[readonly] { background: var(--surface-2); }
.av2-compteur { font-weight: 400; }
.av2-robot { font-size: 12px; }
.av2-gestes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.av2-obs { font-size: 12px; margin-left: auto; }
.av2-offre { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.av2-hors { color: var(--rouge); font-weight: 600; }
.av2-plus { margin-top: 12px; text-align: center; }

/* Les confirmations de la section « À valider » : chaque élément avec son texte entier, dans un cadre qui défile. */
.av2-conf { display: block; max-height: 340px; overflow-y: auto; margin: 10px 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--navy); text-align: left; }
.av2-conf-l { display: block; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.45; }
.av2-conf-l:last-child { border-bottom: 0; }
.av2-conf-sous { display: block; color: var(--ink-2); font-size: 12.5px; }
.av2-conf-texte { display: block; margin-top: 3px; padding: 6px 8px; border-left: 3px solid var(--blue); background: var(--surface); color: var(--navy); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.av2-conf-robot { font-size: 11.5px; font-weight: 600; color: var(--blue); }
.modal .mbox:has(.av2-conf) { width: min(680px, 92vw); }
.av2-conf-resto { margin: 8px 0; text-align: left; }
.av2-conf-resto summary { cursor: pointer; font-size: 14px; }
.av2-conf-resto .av2-conf { margin-top: 6px; }

/* Le texte exact que le restaurateur recevrait d'une proposition (section « À valider », Marketing). */
.av2-apercu { border: 1px solid var(--blue); border-radius: 10px; background: var(--surface-2); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.av2-apercu-titre { font-size: 13px; color: var(--blue); }
.av2-apercu p { margin: 0; font-size: 12.5px; }
.av2-apercu-lib { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.av2-apercu-nom { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.av2-apercu-carte { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.av2-apercu-carte ul { margin: 0; padding-left: 18px; }
.av2-apercu-rep { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.av2-apercu-bouton { border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); }
.av2-apercu-notif { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin-bottom: 6px; font-size: 13px; }
.av2-roi { border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; background: var(--surface-2); padding: 8px 12px; margin-top: 8px; font-size: 12.5px; }
.av2-roi p { margin: 4px 0; }
.av2-roi ul { margin: 2px 0 4px; padding-left: 18px; }
.av2-roi li { margin-bottom: 3px; }
.av2-roi-titre { font-size: 12.5px; color: var(--blue); }
.av2-roi-manque { color: var(--orange, #b45309); font-weight: 600; }
/* Éléments Deliveroo de la section « À valider » (0083) : essai à blanc, étiquetés. */
.av2-plateforme{display:inline-block;font-size:11.5px;font-weight:700;padding:1px 8px;margin:0 6px;border-radius:999px;border:1px solid var(--blue);color:var(--blue);background:var(--blue-soft,var(--surface-2));white-space:nowrap}
.av2-carte.av2-dlv{border-left:3px solid var(--blue)}
.av2-dlv-essai{color:var(--ink-2);font-size:12.5px;border-top:1px dashed var(--line);padding-top:6px}

/* ---- Lisibilité (Saleh, 09/10/2026) : dates et périodes en pastille, fiches libellé/valeur, textes en points, sections ---- */
.pl-date { display: inline-block; padding: 1px 8px; margin: 0 1px; border-radius: var(--r-pill, 999px); background: var(--blue-soft, #eef3ff);
  border: 1px solid var(--blue-bd, #c9d7f5); color: var(--blue-strong, #1f3f8a); font-size: 12.5px; font-weight: 600; line-height: 1.6;
  white-space: nowrap; vertical-align: baseline; }
.pl-info { display: inline-block; padding: 1px 9px; border-radius: var(--r-pill, 999px); font-size: 12.5px; font-weight: 600; line-height: 1.6;
  white-space: nowrap; background: var(--surface-2, #f4f5f7); border: 1px solid var(--line, #e3e5ea); color: var(--ink, #1c2330); }
.pl-info.pl-vert { background: var(--vert-bg); border-color: var(--vert-bd); color: var(--vert); }
.pl-info.pl-orange { background: var(--orange-bg); border-color: var(--orange-bd); color: var(--orange); }
.pl-info.pl-rouge { background: var(--rouge-bg); border-color: var(--rouge-bd); color: var(--rouge); }
.pl-info.pl-bleu { background: var(--blue-soft); border-color: var(--blue-bd); color: var(--blue-strong); }
.pl-nombre { font-weight: 700; color: var(--ink, #1c2330); white-space: nowrap; }
.pl-texte { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2, #2b3443); }
.pl-points { margin: 2px 0 6px; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2, #2b3443); }
.pl-points li { margin: 0 0 5px; padding-left: 2px; }
.pl-points li::marker { color: var(--muted, #8a93a3); }
.pl-suite > summary, .pl-replie > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue-strong, #1f3f8a); margin: 2px 0 6px; }
.pl-fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin: 6px 0 10px; }
.pl-fiche .pl-ligne.pl-large { grid-column: 1 / -1; }
.pl-fiche.pl-une { grid-template-columns: minmax(0, 1fr); }
.pl-fiche .pl-ligne { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; border-radius: var(--r-sm, 8px); background: var(--surface-2, #f7f8fa);
  border: 1px solid var(--line, #e8eaee); min-width: 0; }
.pl-fiche dt { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #8a93a3); }
.pl-fiche dd { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--ink, #1c2330); overflow-wrap: anywhere; }
.pl-fiche dd .muted { font-weight: 500; font-size: 13px; }
.pl-section { margin: 10px 0 12px; padding: 10px 14px 6px; border-left: 4px solid var(--line-2, #d4d8e0); border-radius: 0 var(--r-sm, 8px) var(--r-sm, 8px) 0;
  background: var(--surface, #fff); }
.pl-section .pl-titre { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2, #2b3443); }
.pl-section.pl-ton-constat { border-left-color: var(--blue, #3b6fe0); }
.pl-section.pl-ton-constat .pl-titre { color: var(--blue-strong, #1f3f8a); }
.pl-section.pl-ton-pourquoi { border-left-color: var(--orange, #d9822b); }
.pl-section.pl-ton-pourquoi .pl-titre { color: var(--orange, #b86a1c); }
.pl-section.pl-ton-proposition { border-left-color: var(--vert, #2e9e5b); background: var(--vert-bg, #f1faf4); }
.pl-section.pl-ton-proposition .pl-titre { color: var(--vert, #22804a); }
.pl-section.pl-ton-verifier { border-left-color: var(--muted, #8a93a3); }
.pl-section.pl-ton-alerte { border-left-color: var(--rouge, #d64545); background: var(--rouge-bg, #fdf2f2); }
.pl-section.pl-ton-alerte .pl-titre { color: var(--rouge, #b83232); }
.pl-section.pl-replie > summary.pl-titre { list-style: revert; margin-bottom: 6px; }
.pl-section .pl-corps > :last-child { margin-bottom: 4px; }

/* Correctifs de lisibilité (09/10/2026) : la liste de phrases d'une raison chiffrée n'est plus une rangée flex (les pastilles cassaient les phrases),
   et le titre d'une carte « À valider » garde une largeur lisible : la pastille d'état passe à la ligne au lieu de l'écraser. */
.raison-chiffree ul.pl-points { display: block; list-style: disc; margin: 2px 0 6px; padding-left: 20px; }
.raison-chiffree ul.pl-points li { display: list-item; justify-content: initial; gap: 0; margin: 0 0 5px; font-size: 14px; line-height: 1.6; }
.raison-chiffree .pl-texte, .raison-chiffree p { font-size: 14px; line-height: 1.6; }
.av2-tete { flex-wrap: wrap; row-gap: 6px; }
.av2-tete .av2-titre { flex: 1 1 18em; min-width: 0; }

/* Un tableau plus large que sa carte défile dans la carte au lieu d'être coupé à droite (colonne « Ce que le robot en a fait »). */
.card-b:has(> .pc-table) { overflow-x: auto; }

/* En-tête d'une carte « À valider » (équipe, 09/10/2026) : la décision du robot est une pastille, à droite, à côté de la pastille d'état. */
.av2-pastilles { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; margin-left: auto; flex: 0 1 auto; }
.av2-decision { font-weight: 600; }

/* Détails de carte plus serrés (équipe, 09/10/2026) : deux informations par ligne, moins d'air entre les lignes, un texte plus court à écrire. */
.av2-carte { gap: 5px; padding: 9px 12px; }
.av2-detail { gap: 6px; padding-top: 6px; }
.av2-detail .pl-fiche { gap: 5px 8px; margin: 0 0 2px; }
.av2-detail .pl-fiche .pl-ligne { gap: 0; padding: 4px 10px; }
.av2-detail .pl-fiche dt { font-size: 10.5px; }
.av2-detail .pl-fiche dd { font-size: 14px; line-height: 1.35; }
.av2-detail .pl-section { margin: 2px 0 4px; padding: 6px 12px 2px; }
.av2-detail .pl-section .pl-titre { margin-bottom: 3px; }
.av2-detail .pl-texte, .av2-detail .pl-points { font-size: 13.5px; line-height: 1.5; }
.av2-detail .pl-points li { margin-bottom: 3px; }
.av2-detail .raison-chiffree ul.pl-points li, .av2-detail .raison-chiffree .pl-texte, .av2-detail .raison-chiffree p { font-size: 13.5px; line-height: 1.5; margin-bottom: 3px; }
.av2-detail .av2-apercu, .av2-detail .av2-roi { margin-top: 2px; padding: 8px 10px; gap: 6px; }
.av2-texte textarea { padding: 6px 10px; line-height: 1.45; }
.av2-robot { line-height: 1.35; }

/* Une suggestion sur Uber Eats ET sur Deliveroo (équipe, 09/10 après-midi) : une carte, les plateformes en pastilles, une section repliée par plateforme. */
.av2-pastilles .av2-plateforme { margin: 0; }
.av2-pf-uber { border-color: var(--navy, var(--ink-2)); color: var(--navy, var(--ink-2)); background: var(--surface-2); }
.av2-multi-resume { margin: 0; overflow-wrap: anywhere; }   /* 31/10 : la phrase entière, elle passe à la ligne au lieu d'être coupée */
.av2-multi-detail { gap: 8px; }
/* « Le robot ne sait pas encore faire » : le texte proposé se lit en entier, sur sa propre ligne (31/10). */
.av2-pas-seul-texte { display: block; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.av2-pas-seul .nc-ligne:focus { outline: 2px solid var(--blue, #2563eb); outline-offset: 2px; border-radius: 8px; }
.av2-carte.av2-sec { background: var(--surface-2, var(--surface)); }
.av2-carte.av2-sec > .av2-tete { align-items: center; }
.av2-carte.av2-sec > .av2-tete > .av2-plateforme { margin: 0; flex: 0 0 auto; }
.av2-carte.av2-sec.ouverte > .av2-tete { border-bottom: 1px solid var(--line); padding-bottom: 6px; }

/* ---- Suivi d'un envoi (Saleh, 09/10/2026) : la section « En cours », barre de progression et grille de trois colonnes, un indicateur par case ---- */
.av2-corps[hidden] { display: none; }
.av2-suivi { padding: 12px 16px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.av2-suivi-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.av2-suivi-compte { font-size: 15px; }
.av2-suivi-gestes { display: flex; gap: 6px; }
.av2-suivi-bilan { margin: 0; }
.av2-suivi-bilan.warn { color: var(--orange); background: var(--orange-bg); border-color: var(--orange-bd); border-style: solid; }
.av2-barre { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.av2-barre > span { display: block; height: 100%; background: var(--vert); border-radius: 999px; transition: width .4s ease; }
.av2-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.av2-case { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--navy); cursor: pointer; min-width: 0; }
.av2-case:hover { border-color: var(--blue); }
.av2-case:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.av2-case-ind { flex: 0 0 22px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); }
.av2-case-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.av2-case-ligne { display: flex; align-items: center; gap: 6px; min-width: 0; }
.av2-case-type { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 999px; border: 1px solid var(--blue); color: var(--blue); background: var(--blue-soft, var(--surface-2)); line-height: 1.6; }
.av2-case-resto { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.av2-case-ref { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av2-case-etat { font-size: 12px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av2-case-raison { font-size: 11.5px; color: var(--rouge); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av2-case-attente .av2-case-ind { color: var(--muted); }
.av2-case-roue { border-color: var(--blue); }
.av2-case-roue .av2-case-etat { color: var(--blue); }
.av2-case-ok .av2-case-ind, .av2-case-vu .av2-case-ind { color: var(--vert); }
.av2-case-ok .av2-case-etat, .av2-case-vu .av2-case-etat { color: var(--vert); }
.av2-case-vu { border-color: var(--vert); }
.av2-case-echec { border-color: var(--rouge); }
.av2-case-echec .av2-case-ind, .av2-case-echec .av2-case-etat { color: var(--rouge); }
.av2-case-manager { border-color: var(--orange); background: var(--orange-bg); }
.av2-case-manager .av2-case-ind, .av2-case-manager .av2-case-etat { color: var(--orange); }
.av2-case-manager .av2-case-raison { color: var(--ink-2); white-space: normal; overflow: visible; text-overflow: clip; }
.av2-case-annule { background: var(--surface-2); opacity: .75; }
.av2-roue { display: inline-block; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--blue-soft, var(--line)); border-top-color: var(--blue); animation: av2-tourne .9s linear infinite; }
@keyframes av2-tourne { to { transform: rotate(360deg); } }
.av2-reste { padding: 4px 16px 10px; }
/* Visiteur qui réduit les animations : ni roue qui tourne ni barre qui glisse ; un anneau fixe avec un point plein dit « en cours ». */
@media (prefers-reduced-motion: reduce) {
  .av2-roue { animation: none; border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 2.5px, transparent 3px); }
  .av2-barre > span { transition: none; }
}
