/* ==========================================================================
   La boîte « À valider » (23/10/2026). Même charte que le reste : noir, Montserrat 400 et 500,
   angles vifs, aucune ombre. La liste à gauche, la pièce en grand à droite (collée en haut au
   défilement) ; sous 1024 px, la pièce s'ouvre à la place de la liste.
   ========================================================================== */

/* Le résumé à droite de l'en-tête : le nombre en grand, depuis quand dessous. */
.boite-resume { margin: 0; display: grid; justify-items: end; text-align: right; color: var(--secondaire); font-size: 14px; }
.boite-resume b { display: block; color: var(--blanc); font-weight: 500; font-size: clamp(34px, 3vw, 52px); line-height: 1; margin-bottom: 6px; }
.boite-resume span { display: block; font-size: 13px; color: var(--tenu); }
/* Les vues à gauche, les filtres à droite, sur la même ligne tant qu'ils y tiennent. */
.boite-barre { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin: 0 0 22px; border-bottom: 1px solid var(--bordure); padding-bottom: 12px; }
.boite-vues { display: flex; gap: 0; margin: 0 0 -13px; }
.boite-vues button { min-height: 44px; padding: 10px 18px 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--secondaire);
  font: 500 12px/1.2 Montserrat, system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.boite-vues button[aria-pressed="true"] { color: var(--blanc); border-bottom-color: var(--blanc); }
.boite-vues button:hover { color: var(--blanc); }
/* Le nombre : un chiffre fin à droite du mot, dans la couleur du mot en plus discret, sans
   pastille ni cadre (Youri, 23/10/2026 19:43 : « beaucoup plus élégant »). */
.boite-nb { margin-left: auto; padding-left: 14px; font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; opacity: .55; }
.boite-vues button, .boite-filtres .puces button { display: inline-flex; align-items: center; }
.boite-vues button .boite-nb { font-size: 13px; }
.boite-filtres { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; }
.boite-filtres .puces button { min-height: 40px; padding: 8px 12px; font-size: 13px; white-space: nowrap; flex: none; }

.boite-annonce { margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--blanc); font-size: 14px; }

.boite-corps { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.55fr); gap: 28px; align-items: start; }
.boite-liste ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.boite-ligne { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; text-align: left;
  border: 1px solid var(--bordure); background: var(--carte); color: var(--blanc); font: inherit; cursor: pointer; }
.boite-ligne:hover, .boite-ligne:focus-visible { border-color: var(--secondaire); outline: none; }
.boite-ligne[aria-current="true"] { border-color: var(--blanc); box-shadow: inset 3px 0 0 var(--blanc); }
.boite-ligne__image { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; background: var(--noir); border: 1px solid var(--bordure); color: var(--tenu); }
.boite-ligne__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boite-ligne__image svg { width: 26px; height: 26px; }
.boite-ligne__corps { display: grid; gap: 2px; min-width: 0; }
.boite-ligne__type { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondaire); }
.boite-ligne__titre { font-weight: 500; font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.boite-ligne__qui { font-size: 13px; color: var(--secondaire); }

.boite-etat { justify-self: start; display: inline-block; margin-top: 4px; padding: 1px 8px; font-size: 12px; border: 1px solid var(--bordure); color: var(--secondaire); }
/* Rouge tant que ce n'est pas validé, vert une fois validé (réunion du 26/10/2026, règle de la coque). */
.boite-etat, .boite-etat--en_attente, .boite-etat--a_retoucher, .boite-etat--refusee { color: var(--a-valider); border-color: var(--a-valider); }
.boite-etat--validee { color: var(--valide); border-color: var(--valide); }
.boite-etat--refusee { text-decoration: line-through; }
.boite-etat--annulee { color: var(--secondaire); border-color: var(--bordure); }
.boite-piece__qui .boite-etat { margin: 0 0 0 4px; }
.boite-etat + .boite-etat { margin-left: 6px; }

/* La pièce : collée en haut tant qu'on parcourt la liste. Elle défile seule quand elle est longue, puis la molette
   passe à la page : jamais d'overscroll-behavior: contain ici (rendez-vous du 11/11/2026, 18:19, « sors ta souris du
   panneau et tu peux descendre normalement… bug de scroll ») ; Chrome l'applique même à une pièce qui ne déborde pas,
   et la page ne descendait plus tant que la souris restait sur la pièce. */
.boite-piece { position: sticky; top: 24px; border: 1px solid var(--bordure); background: var(--carte); padding: 24px 26px 0; min-height: 320px;
  max-height: max(440px, calc(100vh - 236px)); max-height: max(440px, calc(100dvh - 236px)); overflow-y: auto; overscroll-behavior: auto; }
/* Les décisions restent sous la main en bas de la pièce, même quand la vidéo est longue. */
.boite-pied { position: sticky; bottom: 0; margin: 0 -26px; padding: 0 26px 22px; background: var(--carte); }
.boite-piece:empty { display: none; }
.boite-retour { display: none; margin: 0 0 14px; }
.boite-retour button { border: 0; background: none; padding: 0; color: var(--secondaire); font: inherit; font-size: 13px; cursor: pointer; min-height: 44px; }
.boite-piece__type { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondaire); }
.boite-piece__type svg { width: 18px; height: 18px; }
.boite-piece__titre { margin: 0 0 6px; font-weight: 500; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.25; overflow-wrap: anywhere; }
.boite-piece__qui { margin: 0 0 18px; color: var(--secondaire); font-size: 14px; }
.boite-apercu { display: grid; gap: 12px; margin: 0 0 22px; }
.boite-media { background: #000; border: 1px solid var(--bordure); display: grid; place-items: center; }
.boite-media video { display: block; width: 100%; max-height: 52vh; background: #000; }
.boite-texte { margin: 0; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.boite-texte--idee { font-size: 17px; border-left: 3px solid var(--blanc); padding: 4px 0 4px 16px; }
.boite-meta { margin: 0; color: var(--secondaire); font-size: 13px; }
.boite-semaine { margin: 0; font-size: 16px; font-weight: 500; }
.boite-semaine::first-letter { text-transform: uppercase; }
.boite-lien a, .boite-ouvrir a:not(.bouton) { color: var(--blanc); overflow-wrap: anywhere; }
.boite-ouvrir { margin: 0; font-size: 13px; color: var(--secondaire); }
.boite-apercu audio { width: 100%; }
.boite-grille { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.boite-grille li { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--noir); border: 1px solid var(--bordure); }
.boite-grille img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boite-grille span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }

/* Les retouches demandées pièce par pièce sur une semaine (29/10/2026) : la communication les lit dans Mes demandes. */
.boite-retouches { border-left: 3px solid var(--a-valider); padding: 2px 0 2px 16px; }
.boite-retouches__titre { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-valider); }
.boite-retouches ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.boite-retouches li { display: grid; gap: 2px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.boite-retouches li b { font-weight: 500; }
.boite-retouches li span { font-size: 12px; color: var(--a-valider); }
.boite-retouches li.boite-retouche--faite span { color: var(--valide); }
/* La pièce à côté de son retour (A-0401, Lola 18/11/2026) : vignette cliquable vers son jour dans Feed. */
.boite-retouches li > div { display: grid; gap: 2px; min-width: 0; }
.boite-retouches li.boite-retouche--vue { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.boite-retouche__vignette { display: block; width: 56px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); outline-offset: 2px; }
.boite-retouche__vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.boite-retouche__vignette:hover img, a.boite-retouche__vignette:focus-visible img { opacity: .85; }

.boite-fil { display: grid; gap: 8px; margin: 0 0 18px; }
.boite-fil p { margin: 0; font-size: 14px; color: var(--secondaire); }
.boite-fil b { color: var(--blanc); font-weight: 500; }
.boite-decision { border: 1px solid var(--bordure); padding: 12px 14px; }
.boite-decision span { display: block; margin-top: 6px; color: var(--blanc); font-size: 15px; white-space: pre-wrap; }
.boite-decision--a_retoucher, .boite-decision--refusee { border-color: var(--a-valider); }
.boite-decision--validee { border-color: var(--valide); }

.boite-gestes { display: flex; flex-wrap: wrap; gap: 10px; }
.boite-gestes .bouton { min-width: 150px; }
.boite-pied > .boite-gestes { padding-top: 18px; border-top: 1px solid var(--bordure); }
.boite-motif { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--bordure); }
.boite-motif label { font-size: 12px; color: var(--secondaire); letter-spacing: 0.08em; text-transform: uppercase; }
.boite-motif textarea { width: 100%; background: var(--noir); color: var(--blanc); border: 1px solid var(--bordure); border-radius: 0; padding: 12px 14px; resize: vertical;
  font: 400 16px/1.5 Montserrat, system-ui, sans-serif; -webkit-user-select: text; user-select: text; }
.boite-motif textarea:focus { outline: none; border-color: var(--secondaire); }
/* Le rangement d'une vidéo validée (lot 2 du relevé du 08/11/2026) : nom et dossier, comme le motif. */
.boite-motif :is(input, select) { width: 100%; min-height: 42px; background: var(--noir); color: var(--blanc); border: 1px solid var(--bordure); padding: 10px 14px; font: inherit; }
.boite-motif :is(input, select):focus { outline: none; border-color: var(--secondaire); }
.boite-attente { margin: 0; padding-top: 18px; border-top: 1px solid var(--bordure); color: var(--secondaire); font-size: 14px; }
.boite-message { margin: 12px 0 0; min-height: 1.4em; font-size: 13px; color: var(--secondaire); }
.boite-message--faute { color: #ff8a80; }
html[data-theme="clair"] .boite-message--faute { color: #ff8a80; }
.boite-charge { color: var(--secondaire); margin: 0; }
.boite-repos { min-height: 280px; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: var(--secondaire); }
.boite-repos svg { width: 44px; height: 44px; color: var(--tenu); }
.boite-repos p { margin: 0; max-width: 34ch; }

@media (max-width: 1023px) {
  .boite-corps { grid-template-columns: minmax(0, 1fr); }
  .boite-piece { position: static; padding: 18px 18px 0; max-height: none; overflow: visible; }
  .boite-pied { margin: 0 -18px; padding: 0 18px calc(18px + env(safe-area-inset-bottom)); }
  .boite-retour { display: block; }
  /* La pièce ouverte prend la place de la liste et des filtres. */
  body.boite--piece .boite-liste, body.boite--piece .boite-barre, body.boite--piece .boite .tete { display: none; }
  body:not(.boite--piece) .boite-piece { display: none; }
}
@media (max-width: 520px) {
  .boite-filtres { gap: 10px; }
  .boite-filtres .puces { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .boite-gestes .bouton { flex: 1 1 100%; }
  .boite-resume { justify-items: start; text-align: left; }
  .boite-vues button { flex: 1; padding-inline: 8px; }
}

/* Les catégories en tête (28/10/2026, réunion du 26/10) : de grands onglets, le nombre qui attend
   en rouge ; la vue et la société passent dessous, en petit. */
/* Les catégories en pilule, comme les onglets des estimations et du tableau des ventes (allure, 28/10/2026). */
.boite-categories { display: flex; gap: 4px; padding: 4px; margin: 8px 0 18px; border-radius: 999px; background: var(--puce); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.boite-categories button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; flex: none;
  background: transparent; color: var(--tenu); font: 600 12px/1 Montserrat, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.boite-categories button[aria-pressed="true"] { background: var(--encre); color: var(--noir); }
.boite-categories button:hover { color: var(--encre); }
.boite-categories button[aria-pressed="true"]:hover { color: var(--noir); }
.boite-categories .boite-nb { font-size: 12px; padding-left: 8px; }
.boite-nb--attend { color: var(--a-valider); opacity: 1; }
/* Sur la catégorie choisie (pilule à l'encre), le corail tombait à 2,8:1 (TR2, mesuré au viewer le 11/11/2026) : un rouge
   plus profond, 5,6:1 sur le blanc ; en clair la pilule est noire et le corail y reste. */
html:not([data-theme="clair"]) .boite-categories button[aria-pressed="true"] .boite-nb--attend { color: #C62828; }
html[data-theme="clair"] .boite-categories button[aria-pressed="true"] .boite-nb--attend { color: #FF8A80; }
.boite-societe select { min-height: 40px; padding: 8px 34px 8px 12px; border: 1px solid var(--bordure); border-radius: 0; background: var(--noir); color: var(--blanc);
  font: 400 13px/1.2 Montserrat, system-ui, sans-serif; cursor: pointer; }
/* Valider en grand, sur toute la largeur de la pièce ; À retoucher et Refuser dessous. */
.boite .boite-gestes .bouton.boite-valider, html.allure .accueil.boite .boite-gestes .bouton.boite-valider { flex: 1 1 100%; min-height: 58px; height: auto; font-size: 15px; letter-spacing: .14em; }

/* Les semaines de publication (24/10/2026, en lignes depuis le 28/10) : la même ligne que les
   demandes, le bouton à droite. */
.boite-feeds { margin: 0 0 26px; }
.boite-feeds__titre { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--secondaire); }
.boite-feeds ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.boite-feed { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px 18px; align-items: center; padding: 12px 16px 12px 12px; border: 1px solid var(--bordure); background: var(--carte); }
.boite-feed[hidden] { display: none; }
/* Les trois premières images de la semaine, en bande comme la grille du compte (28/10/2026). */
.boite-feed { grid-template-columns: 150px minmax(0, 1fr) auto auto; }
.boite-ligne__image.boite-feed__grille { width: 150px; height: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0; background: var(--puce, var(--noir)); }
.boite-feed__grille img { width: 100%; height: 100%; object-fit: cover; }
.boite-feed > .boite-ligne__image:not(.boite-feed__grille) { width: 150px; }
.boite-feed .boite-etat { margin: 0; white-space: nowrap; }
.boite-feed .bouton { white-space: nowrap; min-width: 190px; text-align: center; }
@media (max-width: 640px) {
  .boite-feed { grid-template-columns: 96px minmax(0, 1fr); }
  .boite-ligne__image.boite-feed__grille { width: 96px; height: 44px; }
  .boite-feed .boite-etat { grid-column: 2; justify-self: start; }
  .boite-feed .bouton { grid-column: 1 / -1; }
}
/* Téléphone : les trois catégories tiennent sur la largeur, la vue sur une ligne. */
@media (max-width: 520px) {
  .boite-categories { width: 100%; }
  .boite-categories button { flex: 1 1 auto; justify-content: center; padding: 0 8px; letter-spacing: .08em; }
  .boite-categories .boite-nb { padding-left: 6px; }
  .boite-vues button { white-space: nowrap; letter-spacing: .08em; }
}

/* Les derniers débits d'un frais à confirmer (30/10/2026). */
.boite-debits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bordure); font-size: 13px; }
.boite-debits li { display: grid; grid-template-columns: 3.5em 1fr auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--bordure); }
.boite-debits li span:nth-child(2) { overflow-wrap: anywhere; }
.boite-debits li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Le rappel du vendredi, en tête (31/10/2026). */
.boite-relances { margin: 0 0 22px; padding: 18px 20px; border: 1px solid var(--bordure); border-radius: 14px; }
.boite-relances h2 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.boite-relances-note { margin: 0 0 8px; font-size: 13px; color: var(--secondaire); }
.boite-relances ul { list-style: none; margin: 0; padding: 0; }
.boite-relances li { padding: 12px 0; border-top: 1px solid var(--bordure); }
.boite-relances li a { display: block; color: inherit; text-decoration: none; }
.boite-relances li b { font-weight: 500; }
.boite-relances li small { display: block; margin-top: 3px; font-size: 12px; color: var(--secondaire); }

/* L'attribution : les fiches candidates, une à cocher (31/10/2026). */
.boite-choix { margin: 14px 0 0; padding: 0; border: 0; display: grid; gap: 8px; }
.boite-choix legend { margin-bottom: 8px; font-size: 13px; color: var(--secondaire); }
.boite-choix label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--bordure); border-radius: 12px; cursor: pointer; }
.boite-choix label:has(input:checked) { border-color: var(--blanc); }
.boite-choix input { margin-top: 3px; accent-color: var(--blanc); }
.boite-choix b { display: block; font-weight: 500; }
.boite-choix small { display: block; margin-top: 2px; font-size: 12px; color: var(--secondaire); }

.boite-vignette { display: block; width: 100%; max-width: 320px; margin-top: 12px; border-radius: 12px; }

/* ==========================================================================
   Disposition 1 (Youri, 06/11/2026 : « beaucoup plus simple d'utilisation ») : une seule liste pleine largeur, le geste
   sur la ligne ; la pièce s'ouvre au clic, à droite sur grand écran, à la place de la liste au téléphone.
   ========================================================================== */
body:not(.boite--piece) .boite-corps { grid-template-columns: minmax(0, 1fr); }
body:not(.boite--piece) .boite-piece { display: none; }
.boite-rang { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 14px;
  border: 1px solid var(--bordure); background: var(--carte); }
/* Ligne 637 (audit des gestes du 22/11/2026) : à 1280 et 1440, les sept gestes d'une demande de l'équipe écrasaient le titre
   dans une colonne d'environ 100 px. Le titre garde au moins 31em (465 px) ; les gestes qui ne tiennent plus à côté passent dessous,
   sur toute la largeur, à droite. Mesure au banc en pixels CSS (texte à 15 px, page au zoom 0,875) : sept gestes 859 px dans une
   rangée de 1303 px à 1440, donc dessous au-delà de 430 px de base ; quatre gestes (frais) 617 px dans 1129 px à 1280, à côté
   jusqu'à 498 ; deux gestes (offres) toujours à côté. */
@media (min-width: 761px) {
  body:not(.boite--piece) .boite-rang { display: flex; flex-wrap: wrap; }
  body:not(.boite--piece) .boite-rang > .boite-ligne { flex: 1 1 31em; width: auto; min-width: 0; }
  body:not(.boite--piece) .boite-rang > .boite-ligne__gestes { flex: 0 1 auto; margin-left: auto; }
}
.boite-rang:has(.boite-ligne[aria-current="true"]) { border-color: var(--blanc); box-shadow: inset 3px 0 0 var(--blanc); }
.boite-rang:hover { border-color: var(--secondaire); }
.boite-rang > .boite-ligne { border: 0; background: none; box-shadow: none; }
.boite-rang > .boite-ligne[aria-current="true"] { box-shadow: none; }
.boite-ligne__gestes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 14px 12px 0; }
.boite-ligne__gestes .bouton { min-height: 36px; padding: 0 14px; font-size: 12px; white-space: nowrap; }
/* Pièce ouverte, ou écran étroit : les gestes passent sous la ligne. */
body.boite--piece .boite-rang { grid-template-columns: minmax(0, 1fr); }
body.boite--piece .boite-ligne__gestes { justify-content: flex-start; padding: 0 12px 12px 90px; }
@media (max-width: 760px) {
  .boite-rang { grid-template-columns: minmax(0, 1fr); }
  .boite-ligne__gestes { justify-content: flex-start; padding: 0 12px 12px; }
  .boite-ligne__gestes .bouton { flex: 1 1 auto; }
}

/* La boîte de la direction rangée par société (lot 4 du relevé du 08/11/2026, proposition 2) : un titre par bloc avec la
   société aux couleurs de sa charte, la nature de la pièce en pastille devant chaque ligne. */
.boite-bloc { list-style: none; display: flex; align-items: center; gap: 12px; margin: 26px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--bordure); }
.boite-bloc:first-child { margin-top: 4px; }
.boite-bloc b { font-size: 13px; color: #E86A7A; }
html[data-theme="clair"] .boite-bloc b { color: #B3261E; } /* 3,1:1 sur le blanc avant (TR2, 11/11/2026) */
.boite-bloc span:not(.boite-soc) { font-size: 12px; color: var(--secondaire); }
.boite-soc { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.boite-soc--titre { padding: 5px 13px; font-size: 12.5px; }
.boite-soc--llinares { background: #fff; color: #0b0b0b; }
.boite-soc--golf { background: #1c3b2a; color: #efe8d6; }
.boite-soc--pezzo { background: #ffe4e8; color: #a3122a; }
/* La feuille blanche du cadre sombre (crm-allure.css, html.crm-sombre main : fond, rayon, aucune marge intérieure) : chez David
   le titre, la phrase et les onglets collaient au bord gauche de la feuille (tournée E-10 n° 1, 27/11/2026). */
html.crm-sombre main.boite { box-sizing: border-box; padding-inline: clamp(18px, 2.8vw, 44px); }
/* 7faa9e0e (Youri 28/11 22:50, « il y a un bug d'écran ») : la phrase sous « À valider » s'arrêtait à 80 caractères
   (allure.css:772) et laissait « clic. » seul sur sa ligne, à mi-largeur de la feuille ; elle prend la largeur de la feuille. */
html.allure main.boite.accueil:not(.agenda) .chapeau { max-width: none; text-wrap: pretty; }
/* « Plusieurs sociétés » et les sociétés hors charte : l'encre et la pastille du thème ; en blanc fixe elles disparaissaient
   sur le fond clair (contraste 1,00, tournée E-10 n° 2, 27/11/2026). */
.boite-soc--autre { background: var(--puce, rgba(255, 255, 255, .12)); color: var(--encre, #fff); box-shadow: inset 0 0 0 1px var(--bordure, transparent); }
.boite-nature { display: inline-flex; margin-right: 10px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; background: rgba(255, 255, 255, .1); color: #fff; }
.boite-nature--communication { background: rgba(76, 89, 255, .25); color: #cdd2ff; }
.boite-nature--banque { background: rgba(232, 176, 74, .22); color: #f3d9a6; }
/* En clair, les pastilles écrivaient en blanc ou en pâle sur le blanc (1:1 à 1,6:1, mesuré au viewer le 11/11/2026, TR2). */
html[data-theme="clair"] .boite-nature { background: rgba(0, 0, 0, .06); color: #0A0A0A; }
html[data-theme="clair"] .boite-nature--communication { background: rgba(76, 89, 255, .14); color: #2B35B8; }
html[data-theme="clair"] .boite-nature--banque { background: rgba(232, 176, 74, .22); color: #6B4A00; }
.boite-ligne__type:has(.boite-nature) { display: flex; align-items: center; flex-wrap: wrap; }

/* L'Offre (revue avec David du 08/11/2026, point 11) : les deux nets vendeur alignés, l'écart et la diminution dessous. */
.boite-offre { width: 100%; margin: 14px 0 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.boite-offre th, .boite-offre td { padding: 9px 8px; border-bottom: 1px solid var(--bordure); text-align: right; white-space: nowrap; font-weight: 400; }
.boite-offre thead th { font-size: 12px; color: var(--secondaire); }
.boite-offre th[scope="row"], .boite-offre thead th:first-child { text-align: left; color: var(--secondaire); }
.boite-offre b { font-weight: 600; }
.boite-offre__bilan { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; }
.boite-offre__bilan b { font-weight: 600; }
/* Au téléphone, le libellé passe au-dessus de ses trois chiffres : le tableau tient dans 390 px sans rien couper. */
@media (max-width: 520px) {
  .boite-offre thead tr, .boite-offre tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boite-offre thead th:first-child { display: none; }
  .boite-offre th[scope="row"] { grid-column: 1 / -1; padding: 10px 0 0; border-bottom: 0; }
  .boite-offre th, .boite-offre td { padding: 4px 0 10px; font-size: 14px; }
  .boite-offre thead th { padding-bottom: 4px; }
}

/* Le drapeau rouge « plus tard » (David, revue du 08/11/2026, point 15) : à droite des gestes, rouge quand il est posé. */
.boite-drapeau { display: inline-flex; align-items: center; gap: 8px; }
.boite-drapeau svg { width: 15px; height: 15px; color: #E5484D; }
.boite-drapeau--pose { background: color-mix(in srgb, #E5484D 22%, var(--puce, transparent)); }
.boite-gestes .boite-drapeau { margin-left: auto; }

/* La pièce en grand (David, revue du 08/11/2026, point 16) : la liste se replie, la pièce prend la largeur et la hauteur de
   l'écran, ses gestes toujours en bas ; Agrandir et Réduire en pilule dans son en-tête. */
.boite-piece__type { position: relative; }
.boite-grand-bouton { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--puce, transparent); color: inherit; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.boite-grand-bouton:hover { background: color-mix(in srgb, var(--encre) 14%, var(--puce, transparent)); }
.boite-grand-bouton svg { width: 14px; height: 14px; }
/* Le repli de la liste ne vaut que pièce ouverte (AV1, David, 10/11/2026 11:53 : « j'ai validé… j'arrive plus à rien voir, ça
   bug… je voulais revoir les trucs et je peux plus ») : sans pièce (dernière décision, onglet Fait, rechargement), la liste
   revient ; le mode reste gardé pour la prochaine pièce ouverte. */
@media (min-width: 1024px) {
  .boite-piece:not(:empty) { cursor: zoom-in; }
  .boite--grand.boite--piece .boite-piece { cursor: auto; }
  .boite--grand.boite--piece .boite-corps { grid-template-columns: minmax(0, 1fr); }
  .boite--grand.boite--piece .boite-liste { display: none; }
  .boite--grand.boite--piece .boite-piece { max-width: 1280px; width: 100%; margin: 0 auto; padding: 30px 40px 0; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
  .boite--grand.boite--piece .boite-pied { margin: 0 -40px; padding: 0 40px 26px; }
  .boite--grand .boite-piece__titre { font-size: clamp(22px, 1.6vw, 30px); }
  .boite--grand .boite-texte, .boite--grand .boite-offre { font-size: 17px; }
  .boite--grand .boite-vignette { max-width: min(100%, 720px); }
}
@media (max-width: 1023px) { .boite-grand-bouton { display: none; } }

/* Le taux des honoraires à côté du montant (David, WhatsApp CRM du 10/11/2026 09:55). */
.boite-offre__taux { margin-left: 4px; color: var(--encre); }

/* L'offre dans À valider (David, rendez-vous du 11/11/2026 20:19) : la photo du bien et son descriptif en tête, l'écart au
 * mandat en grand en euros à droite, le pourcentage dessous. */
.boite-offre__tete { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 10px; }
.boite-offre__photo { display: block; width: 96px; height: 72px; border-radius: 12px; object-fit: cover; }
.boite-offre__photo--vide { background: color-mix(in srgb, var(--encre) 8%, transparent); }
.boite-offre__tete .boite-texte, .boite-offre__tete .boite-meta { margin: 0; }
.boite-offre__ecart { margin: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.boite-offre__ecart b { font: 300 24px/1.1 Montserrat, sans-serif; white-space: nowrap; }
.boite-offre__ecart small { font-size: 12px; color: var(--secondaire); }
@media (max-width: 640px) { .boite-offre__tete { grid-template-columns: 72px minmax(0, 1fr); } .boite-offre__photo { width: 72px; height: 56px; } .boite-offre__ecart { grid-column: 2; align-items: flex-start; text-align: left; } }

/* La vente à saisir (17/11/2026) : pièces à gauche, champs de la feuille de Lilou à droite, sur toute la largeur de la carte. */
.boite-vente { display: grid; grid-template-columns: minmax(clamp(160px, 16vw, 320px), .28fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 40px); width: 100%; margin: 6px 0 12px; align-items: start; }
.boite-vente h4 { margin: 0 0 8px; font-size: clamp(12px, .8vw, 15px); font-weight: 600; color: var(--secondaire); }
.boite-vente__pieces ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.boite-vente__pieces li { padding: 8px 10px; border: 1px solid var(--filet, rgba(0, 0, 0, .14)); font-size: clamp(14px, .95vw, 18px); }
.boite-vente__absente { color: var(--secondaire); }
.boite-vente__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 15vw, 300px), 1fr)); gap: 10px clamp(10px, 1.2vw, 24px); margin-bottom: 14px; }
.boite-vente__com { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 8px; }
.boite-vente__champ { display: grid; gap: 3px; min-width: 0; }
.boite-vente__champ span { font-size: clamp(12px, .8vw, 14px); color: var(--secondaire); }
.boite-vente__champ input, .boite-vente__champ select { width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit; font-size: clamp(14px, .95vw, 18px); border: 1px solid var(--filet, rgba(0, 0, 0, .25)); background: #fff; }
.boite-vente__champ small { font-size: clamp(11px, .75vw, 13px); color: var(--secondaire); }
.boite-vente__champ--manque input, .boite-vente__champ--manque select { border-color: #ff8a80; }
.boite-vente__champ--manque small { color: #ff8a80; }
@media (max-width: 720px) { .boite-vente { grid-template-columns: minmax(0, 1fr); } }

/* Documents et textos prêts à partir (ligne 42) : le bloc occupe toute la largeur de la boîte, comme la liste dessous. */
.boite-prets.ap { width: 100%; max-width: none; margin: 0 0 26px; padding: 0; gap: 14px; }
/* Au-dessus de 760 px seulement : en dessous, la carte reste sur une colonne (a-partir.css), sinon l'heure se coupe et
   « Valider » passe sur le nom (Lilou, 393 px, 27/11/2026, tache:ca05fa7c). */
@media (min-width: 761px) { .boite-prets .ap-carte { grid-template-columns: clamp(120px, 11vw, 220px) minmax(0, 1fr) auto; } }
.boite-prets .ap-valider { background: var(--encre, #FFFFFF); color: var(--noir, #000000); }
/* Replié sur une ligne (renvoi crm-2, tache:87edde21) : titre, compte et « Voir les messages » ; les deux volets suivent. */
.boite-prets.ap { margin-bottom: 18px; }
.boite-prets__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.boite-prets__tete .boite-feeds__titre, .boite-prets__tete .ap-resume { margin: 0; }
.boite-prets__ouvrir { margin-left: auto; }
#pr-corps { display: grid; gap: 14px; }
#pr-corps[hidden] { display: none; }

/* Nouveaux produits (N-1048-2, 24/11/2026) : la ligne est un lien vers la fiche, écrite comme les autres lignes ; le prix en
   gris neutre, jamais la couleur d'une pièce à trancher. */
a.boite-nouveau, a.boite-nouveau:hover, a.boite-nouveau * { text-decoration: none; color: inherit; }
.boite-nouveau .boite-nouveau__prix { display: inline-block; margin-top: 4px; font: 600 12px/1.4 Montserrat, system-ui, sans-serif; letter-spacing: .04em; opacity: .85; }

/* L'offre en validation (lot 30 des Offres, 27/11/2026) : qui l'a soumise en plus gros, le bouton du bien juste sous « Soumise par »,
   la discussion sous l'offre (N-1624, N-1835, tache:0ef95d3e, 4d4c57ca). */
.boite-piece__qui--grand { font-size: 17px; color: var(--blanc); font-weight: 600; }
.boite-offre__ouvrir { margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.boite-offre__bien, .boite-offre__lettre { display: inline-flex; font-size: 15px; padding: 12px 22px; }
@media (max-width: 640px) { .boite-offre__bien, .boite-offre__lettre { flex: 1 1 100%; justify-content: center; } }
.boite-discussion { clear: both; display: grid; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bordure); }
.boite-discussion h4 { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--secondaire); }
.boite-discussion__fil { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.boite-discussion__message { margin: 0; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 10px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.boite-discussion__message b { margin-right: 8px; }
.boite-discussion__message small { color: var(--secondaire); font-size: 12px; }
.boite-discussion__message span { display: block; margin-top: 4px; white-space: pre-wrap; }
.boite-discussion__message--geste { border-color: var(--a-valider); }
.boite-discussion__ecrire { display: grid; gap: 8px; }
.boite-discussion__label { font-size: 13px; color: var(--secondaire); }

/* Les onglets de la direction (lot 03 de la session R, 27/11/2026) : Nouveaux biens, Baisses de prix, Rappeler contact.
   Une ligne s'ouvre à droite ; le rappel dû se lit en couleur d'alerte ; la fiche à droite montre ses faits en deux colonnes. */
button.boite-nouveau { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.boite-suivi__rappel { display: block; margin-top: 3px; font: 600 12px/1.4 Montserrat, system-ui, sans-serif; color: var(--secondaire); }
.boite-suivi__rappel--due { color: var(--a-valider); }
.boite-suivi__photo { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; margin: 12px 0 4px; }
.boite-suivi__faits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14em), 1fr)); gap: 10px 18px; margin: 14px 0; }
.boite-suivi__faits div { min-width: 0; }
.boite-suivi__faits dt { font-size: 12px; color: var(--secondaire); }
.boite-suivi__faits dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.boite-suivi__question { margin: 0 0 8px; font-weight: 600; }
.boite-suivi__avis label { display: block; margin-top: 12px; }
.boite-categories__suivi { margin-left: 18px; }
@media (max-width: 1023px) { .boite-suivi__photo { max-height: 150px; } }

/* La relecture automatique d'une fiche à publier (tache:2dc551e5) : un cadre sous la demande, erreurs à la couleur
   « à valider », points à regarder en gris, une fiche sans erreur à la couleur « validé ». 13 px au moins (12 px minimum). */
.boite-relecture { margin: 4px 0 0; padding: 12px 14px; border: 1px solid var(--bordure); font-size: 14px; line-height: 1.45; }
.boite-relecture p { margin: 0; }
.boite-relecture ul { margin: 6px 0 0; padding-left: 18px; }
.boite-relecture li + li { margin-top: 2px; }
.boite-relecture--erreur { border-color: var(--a-valider); }
.boite-relecture--erreur > p b, .boite-relecture__erreurs { color: var(--a-valider); }
.boite-relecture__regarder { color: var(--secondaire); font-size: 13px; }
.boite-relecture--ok { border-color: var(--valide); }
.boite-relecture--ok b { color: var(--valide); }

/* Tournée E-10 du 27/11/2026, n° 5 : la rangée des catégories était coupée net au bord droit à 1440 (« OFFRE D'A… », « CO… »),
   sans indice qu'elle défile. Sur grand écran elle passe à la ligne ; sur téléphone elle défile, un fondu au bord droit le dit. */
@media (min-width: 761px) { .boite-categories { flex-wrap: wrap; border-radius: 22px; overflow: visible; } }
@media (max-width: 760px) { .boite-categories { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); padding-right: 32px; } }
/* N° 3 : au téléphone, le titre d'une ligne se lit en entier (« 473 Chemin du Perthus, 13008 MARSEILLE : passe en… » était coupé à deux lignes). */
@media (max-width: 760px) { .boite-ligne__titre { display: block; -webkit-line-clamp: unset; overflow: visible; } }

/* Les pièces jointes d'une idée (tache:fb464dcf, Lilou 27/11/2026 09:41) : l'une sous l'autre, la vidéo ou la photo puis son nom. */
.boite-pj { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.boite-pj li { min-width: 0; }
.boite-pj .boite-meta a { color: inherit; }

/* Demande d'estimation (N-1322, tache:57c66f85, 27/11/2026) : autour de l'adresse et commentaire du transfert ; 12 px au moins. */
.boite-autour { display: grid; gap: 8px; margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--bordure); border-radius: 12px; }
.boite-autour__liens { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.boite-autour__ventes { margin: 4px 0 0; padding-left: 18px; font-size: 14px; white-space: normal; }
.boite-choix label.boite-transfert { display: grid; gap: 6px; padding: 0; border: 0; cursor: default; }
.boite-transfert span { font-size: 13px; color: var(--secondaire); }
.boite-transfert textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 12px; background: transparent; color: inherit; resize: vertical; }

/* « Traiter les estimations » en tête de À faire (lot 52, tache:c4541425) : une ligne, sans liste, vers l'onglet Estimations Vanessa. */
.boite-vanessa { list-style: none; margin: 0 0 12px; }
.boite-vanessa a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 12px; border: 1px solid #FF6B5E; color: inherit; text-decoration: none; box-shadow: inset 3px 0 0 #FF6B5E; }
.boite-vanessa a:hover, .boite-vanessa a:focus-visible { outline: none; background: rgba(255, 107, 94, .08); }
.boite-vanessa b { font-size: 15px; color: #FF6B5E; }
.boite-vanessa span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--secondaire); }
html[data-theme="clair"] .boite-vanessa a { border-color: #B3261E; box-shadow: inset 3px 0 0 #B3261E; }
html[data-theme="clair"] .boite-vanessa b { color: #B3261E; }
