/*
 * L'application de rapports : une feuille de style sobre, pour un outil de cabinet. La palette (revue du designer,
 * validée par Michael le 13/11, conception/design-portail/revue-design.md §2) : six neutres (fond, carte, texte, texte
 * discret, trait fin, bord de champ), un accent, cinq états. L'accent est la couleur du cabinet : web/theme.js la pose
 * en deux valeurs, --accent-j (assombrie, pour le clair) et --accent-n (éclaircie, pour le sombre), que la feuille lit
 * selon le mode ; sans couleur, un bleu. Le texte n'est jamais réglé par un cabinet.
 * La police : Century Gothic quand elle est installée (Office sous Windows), sinon une géométrique proche.
 */
:root {
  color-scheme: light;
  --fond: #f4f5f7; --carte: #ffffff; --texte: #24272c; --doux: #5c6370; --ligne: #dfe2e7; --bord: #7d8490;
  --accent: var(--accent-j, #2b5fb3); --sur-accent: var(--sur-accent-j, #ffffff);
  --accent-fond: color-mix(in srgb, var(--accent) 12%, var(--carte));
  --action: #8a5300; --action-fond: #fbedd2; --cours: #1d4f91; --cours-fond: #e3edf9;
  --attente: #5c6370; --attente-fond: #eceef1; --fini: #1d6a4f; --fini-fond: #dcefe6; --erreur: #b3361f; --erreur-fond: #f8ded8;
  --ombre: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 14px rgba(20, 30, 50, .06);
  --rayon: 12px;
  --nav-h: 64px;
  --police: "Century Gothic", "CenturyGothic", "URW Gothic", "Avenir Next", "Avenir", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fond: #0f1115; --carte: #1f2228; --texte: #e9ebef; --doux: #a2a7b0; --ligne: #3a404c; --bord: #6b7382;
    --accent: var(--accent-n, #8fb0ec); --sur-accent: var(--sur-accent-n, #0f1115);
    --accent-fond: color-mix(in srgb, var(--accent) 16%, var(--carte));
    --action: #e3a640; --action-fond: #3d3020; --cours: #9bbcf0; --cours-fond: #1f2f4a;
    --attente: #a2a7b0; --attente-fond: #2a2e36; --fini: #6cc6a2; --fini-fond: #1d3a30; --erreur: #f08a74; --erreur-fond: #452420;
    --ombre: none;
  }
}
/* Les anciens noms (revue §2) : plus rien dans web/ ne les lit, mais la maquette gelée (conception/refonte-installation/
   maquette) emprunte cette feuille et les lit encore dans maquette.css. */
:root {
  --principale: var(--accent); --principale-fonce: var(--accent); --sur-principale: var(--sur-accent);
  --ambre: var(--action); --ambre-doux: var(--action-fond); --rouge: var(--erreur); --rouge-doux: var(--erreur-fond);
  --vert: var(--fini); --vert-doux: var(--fini-fond);
}
/* La maquette gelée pose la couleur de chaque portail en --principale / --principale-fonce sur html[data-portail="…"]
   (maquette.css, chargée après cette feuille, l'emporte à spécificité égale) : l'accent la suit, pour qu'elle garde ses
   couleurs. Les valeurs ci-dessous ne servent qu'à un portail que maquette.css ne colore pas (sans elles, l'accent et
   son alias se citeraient l'un l'autre). La page de l'application ne pose jamais data-portail. */
html[data-portail] { --principale: var(--accent-j, #2b5fb3); --principale-fonce: var(--accent-j, #2b5fb3); --accent: var(--principale-fonce); }
@media (prefers-color-scheme: dark) {
  html[data-portail] { --principale: var(--accent-n, #8fb0ec); --principale-fonce: var(--accent-n, #8fb0ec); }
}
/* Dans la maquette, « en cours » gardait la couleur du portail (l'application, elle, a son bleu d'état fixe). */
html[data-portail] .ton-cours { --ton: var(--principale-fonce); --ton-doux: color-mix(in srgb, var(--principale) 18%, var(--carte)); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--police); font-size: 16px; line-height: 1.45;
  color: var(--texte); background: var(--fond);
  -webkit-font-smoothing: antialiased; text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin-top: 14px; }
p { margin: 0; }
a { color: var(--accent); }
code, .chemin { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .875rem; overflow-wrap: anywhere; }
.doux { color: var(--doux); }
.petit-texte { font-size: .875rem; }
.centre-texte { text-align: center; }
[hidden] { display: none !important; }

/* ── les boutons : plein (un seul par écran), contour, lien, et l'action grave en contour rouge (revue §5) ──
   Une icône à côté d'un texte vit dans un parent inline-flex centré ; dans une phrase, elle prend .ico (plus bas). */
.bouton, .lien-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; }
.bouton {
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--sur-accent); font-weight: 700; text-decoration: none; cursor: pointer;
}
.bouton.second { background: transparent; color: var(--accent); }
.bouton.large { width: 100%; min-height: 50px; }
.bouton.petit { min-height: 34px; padding: 0 12px; font-size: .9rem; }
.bouton.danger, .bouton.second.danger { background: transparent; color: var(--erreur); border-color: var(--erreur); }
/* Un bouton fermé se voit : lisible, contour pointillé (maquette, tour 3). Un bouton qui travaille (web/dom.js, pendant())
   n'est pas un bouton qui refuse : il garde son aspect. */
.bouton:disabled, .bouton[aria-disabled="true"] {
  background: var(--carte); color: var(--doux); border: 1.5px dashed var(--doux); opacity: 1; cursor: not-allowed;
}
.bouton:disabled[aria-busy="true"] { background: var(--accent); color: var(--sur-accent); border-style: solid; border-color: var(--accent); cursor: progress; }
.bouton.second:disabled[aria-busy="true"], .bouton.danger:disabled[aria-busy="true"] { background: transparent; color: var(--accent); }
.bouton.danger:disabled[aria-busy="true"] { color: var(--erreur); border-color: var(--erreur); }
.bouton svg, .lien-bouton svg { width: 20px; height: 20px; }
.lien-bouton {
  min-height: 44px; padding: 0 8px; background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: none;
}
.lien-bouton.danger { color: var(--erreur); }
.rond {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--carte); color: var(--texte); box-shadow: var(--ombre); cursor: pointer;
}
.rond svg { width: 22px; height: 22px; }
.rond.discret { box-shadow: none; background: transparent; }

/* ── les champs : un bord à 3 pour 1 au moins contre la carte ── */
.champ { display: grid; gap: 5px; font-weight: 700; font-size: .9rem; }
.champ small { font-weight: 400; }
.champ input, .champ select, .ligne-champs input {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1.5px solid var(--bord); background: var(--carte); font-weight: 400; font-size: 1rem;
}
.champ input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }
.champ input:focus, .champ select:focus, .ligne-champs input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.case { display: flex; align-items: center; gap: 10px; margin: 8px 0; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--accent); }
/* Relecture du lot 5, I4 : un élément appris refusé par le serveur (un nom, une adresse…), décoché, et pourquoi. */
.case.refuse { flex-wrap: wrap; cursor: default; }
.case.refuse > span { text-decoration: line-through; color: var(--doux); }
.case.refuse .raison { flex-basis: 100%; color: var(--erreur); font-size: .875rem; font-weight: 700; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ligne-champs { display: flex; gap: 10px; align-items: center; }
.ligne-champs input { flex: 1; }
.message { min-height: 1.2em; font-weight: 700; font-size: .92rem; margin: 6px 0; }
.message.erreur { color: var(--erreur); }

/* ── l'entrée ── */
.ecran.entree { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 28px; padding: 32px 18px; }
.marque { display: grid; justify-items: center; gap: 10px; text-align: center; }
.marque .logo { border-radius: 18px; }
.marque h1 { font-size: 1.8rem; }
.marque .sous-titre { color: var(--doux); max-width: 30ch; }
.pile { display: grid; gap: 12px; width: min(380px, 100%); }
.formulaire h2 { text-align: center; }
.accueil { text-align: center; font-size: 1.05rem; }

/* ── la coque : navigation en bas (téléphone), sur le côté (PC) ── */
.coque { min-height: 100dvh; }
.contenu { padding: 16px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); max-width: 980px; margin: 0 auto; }
.navigation {
  position: fixed; inset: auto 0 0 0; z-index: 20; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: flex; justify-content: space-around; align-items: stretch;
  background: var(--carte); border-top: 1px solid var(--ligne);
}
.nav-marque { display: none; }
.onglet {
  flex: 1; display: grid; justify-items: center; align-content: center; gap: 2px;
  text-decoration: none; color: var(--doux); font-size: .75rem; font-weight: 700;
}
.onglet svg { width: 24px; height: 24px; }
.onglet[aria-current="page"] { color: var(--accent); }
@media (min-width: 900px) {
  .coque { display: grid; grid-template-columns: 240px 1fr; }
  .navigation {
    position: sticky; top: 0; inset: auto; height: 100dvh; padding: 18px 12px; flex-direction: column;
    justify-content: flex-start; gap: 4px; border-top: 0; border-right: 1px solid var(--ligne);
  }
  /* Le nom du cabinet aligné sur les icônes des onglets. */
  .nav-marque { display: block; padding: 8px 12px 18px; text-decoration: none; color: inherit; }
  .onglet { flex: none; display: flex; justify-content: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
  .onglet[aria-current="page"] { background: var(--accent-fond); color: var(--accent); }
  /* La colonne de lecture centrée dans l'espace à droite de la navigation. */
  .contenu { padding: 28px 32px 48px; margin: 0 auto; width: 100%; }
  .entete-droite .marque-cabinet { display: none; }   /* la colonne de gauche porte déjà la marque */
}

/* ── la marque du cabinet ── */
.marque-cabinet { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-cabinet { max-height: 40px; max-width: 120px; object-fit: contain; }
.nom-cabinet { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marque-cabinet.grande .logo-cabinet { max-height: 64px; }
.entete-droite .marque-cabinet .nom-cabinet { display: none; }
.entete-droite .marque-cabinet .nom-cabinet:only-child { display: inline; }

/* ── en-tête, sections, listes : en sombre, un trait fin détache les cartes du fond ── */
.entete { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.entete-titres { flex: 1; min-width: 0; }
.entete h1 { font-size: 1.5rem; }
.entete .sous-titre { color: var(--doux); }
.carte-section { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px; margin-bottom: 14px; display: grid; gap: 10px; }
.liste-simple { list-style: none; margin: 0; padding: 0; display: grid; }
.ligne-simple { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ligne); }
.ligne-simple:last-child { border-bottom: 0; }
.ligne-personne { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.ligne-personne:last-child { border-bottom: 0; }
.ligne-personne.retiree { opacity: .55; }
.ligne-texte { display: grid; gap: 2px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.actions.pied { justify-content: space-between; margin: 18px 0 10px; }
.actions-ligne { display: flex; gap: 4px; }
.formulaire-ligne { display: grid; gap: 10px; padding: 12px; margin: 8px 0; border: 1.5px dashed var(--ligne); border-radius: var(--rayon); }
.apercu-logo { max-height: 72px; max-width: 220px; object-fit: contain; justify-self: start; }

/* ── états ── */
/* L'alerte du PC des rapports : une carte ambre douce, sans gras (maquette, .alerte.maq-legere). */
.alerte {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--rayon);
  background: var(--action-fond); color: var(--texte); font-weight: 400; font-size: .9375rem;
}
.alerte svg { width: 22px; height: 22px; flex: none; color: var(--action); margin-top: 1px; }
.etat-poste { font-weight: 700; font-size: .875rem; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.etat-poste.en-ligne { background: var(--fini-fond); color: var(--fini); }
.etat-poste.hors-ligne { background: var(--action-fond); color: var(--action); }
.postes-etat { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.vide-etat { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 16px; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); }
.grande-icone { width: 56px; height: 56px; color: var(--accent); }

/* ── les bandeaux du haut : de la couleur de la page, posés sur un trait (revue §4) ; seul celui d'AIT est en couleur ── */
#bandeaux { position: sticky; top: 0; z-index: 30; }
.bandeau {
  display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 10px 16px;
  background: var(--carte); color: var(--texte); border-bottom: 1px solid var(--ligne); font-weight: 600; font-size: .9375rem;
}
.bandeau.hors-ligne { background: var(--action-fond); }
.bandeau.version { background: var(--accent-fond); }
.bandeau .bouton { margin-left: auto; }
/* Le bandeau d'AIT dans le portail d'un cabinet (web/app.js) : aux couleurs d'AIT, fixes (charte d'AIT : bleu nuit,
   blanc cassé, filet bronze), les mêmes en mode sombre et quelles que soient les couleurs du cabinet ; le logo à
   gauche, le texte, le bouton. Au téléphone : le logo et le bouton sur une ligne, le texte dessous. */
.bandeau.entre {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo texte bouton";
  justify-content: stretch; align-items: center; gap: 8px 16px; padding: 10px 18px;
  background: #162e5a; color: #f0eeeb; border-bottom: 3px solid #c18631; font-weight: 600;
}
.bandeau.entre .logo-ait { grid-area: logo; display: block; width: 100px; height: 21px; }
.bandeau.entre .bandeau-texte { grid-area: texte; max-width: 80ch; }
.bandeau.entre .bouton {
  grid-area: bouton; justify-self: end; white-space: nowrap;
  background: #f0eeeb; color: #162e5a; border: 2px solid #c18631;
}
.bandeau.entre .bouton:hover, .bandeau.entre .bouton:focus-visible { background: #ffffff; outline: 2px solid #c18631; outline-offset: 1px; }
@media (max-width: 600px) {
  .bandeau.entre { grid-template-columns: auto 1fr; grid-template-areas: "logo bouton" "texte texte"; padding: 8px 14px; font-size: .875rem; }
  .bandeau.entre .logo-ait { width: 86px; height: 18px; }
}

/* ── les icônes (dom.js) : des traits, à la couleur du texte ; dans une phrase, centrées sur la ligne ── */
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.22em; }

/* ── feuilles, questions, annonces, liens à partager (dom.js) ── */
dialog.feuille, dialog.boite { border: 0; padding: 0; color: var(--texte); background: transparent; }
dialog::backdrop { background: rgba(10, 14, 20, .45); }
dialog.feuille { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; display: grid; align-items: end; }
dialog.feuille:not([open]) { display: none; }
.feuille .interieur {
  background: var(--carte); border: 1px solid var(--ligne); border-radius: 18px 18px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 90dvh; overflow: auto; width: min(560px, 100%); margin: 0 auto; display: grid; gap: 12px;
}
.feuille-tete { display: flex; justify-content: space-between; align-items: center; }
@media (min-width: 700px) { dialog.feuille { align-items: center; } .feuille .interieur { border-radius: 18px; } }
dialog.boite { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px; width: min(420px, 92vw); box-shadow: var(--ombre); }
dialog.boite p { margin-bottom: 14px; }
.annonce {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%); z-index: 50;
  padding: 10px 16px; border-radius: 10px; background: var(--texte); color: var(--fond); font-weight: 700; box-shadow: var(--ombre);
}
.carte-lien { display: grid; gap: 8px; padding: 12px; border-radius: var(--rayon); background: var(--accent-fond); }
.carte-lien .adresse { font-family: ui-monospace, Consolas, monospace; font-size: .875rem; overflow-wrap: anywhere; }

/* ── les tons d'un état de dossier : une paire texte / fond fixe par état, la même quel que soit le cabinet ── */
.ton-action { --ton: var(--action); --ton-doux: var(--action-fond); }
.ton-cours { --ton: var(--cours); --ton-doux: var(--cours-fond); }
.ton-attente { --ton: var(--attente); --ton-doux: var(--attente-fond); }
.ton-fini { --ton: var(--fini); --ton-doux: var(--fini-fond); }
.ton-erreur { --ton: var(--erreur); --ton-doux: var(--erreur-fond); }
.pastille { width: 12px; height: 12px; border-radius: 50%; background: var(--ton, var(--doux)); flex: none; }
.puce-orange { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--action-fond); color: var(--action); font-weight: 700; font-size: .875rem; white-space: nowrap; }
/* En grand, sur la fiche, c'est une phrase : elle passe à la ligne (elle débordait de l'écran du téléphone). */
.puce-orange.grande { margin: 0 0 12px; font-size: .9rem; padding: 6px 12px; white-space: normal; align-items: flex-start; border-radius: var(--rayon); }
.puce-orange.grande svg { margin-top: 2px; flex: none; }
.puce-orange svg { width: 16px; height: 16px; }

/* ── le tableau de bord ── */
.barre-tableau { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.barre-tableau .recherche { flex: 1; min-width: 200px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--bord); background: var(--carte); }
.groupe-dossiers { margin-bottom: 18px; }
.titre-groupe { display: flex; align-items: center; gap: 8px; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); margin: 0 4px 8px; }
.titre-groupe .compte { background: var(--attente-fond); color: var(--attente); border-radius: 999px; padding: 0 8px; font-size: .875rem; letter-spacing: 0; }
.liste-dossiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ligne-dossier {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); color: inherit; text-decoration: none;
}
.ligne-dossier:hover { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.ligne-dossier-texte { display: grid; gap: 2px; min-width: 0; }
.reprise-envoi { margin: 6px 0 4px; }   /* lot 8 : « Reprendre l'envoi » sous la ligne du dossier */
.reprise-envoi > .doux { flex-basis: 100%; text-align: right; }   /* « Reprendre l'envoi : », puis les deux boutons */
.nom-dossier { overflow-wrap: anywhere; }
.adresse-dossier { font-size: .9rem; overflow-wrap: anywhere; }
/* « Adresse à vérifier », sur la ligne du dessous : du texte ambre et l'icône, sans pastille (revue §3). */
.a-verifier { color: var(--action); font-weight: 700; white-space: nowrap; }
/* L'étiquette d'état : une ligne, centrée, jamais coupée ; le détail est sous le nom (revue §3). */
.etat-dossier {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap;
  min-height: 30px; padding: 2px 12px; border-radius: 999px;
  font-size: .875rem; font-weight: 700; color: var(--ton); background: var(--ton-doux);
}
.chevron { color: var(--doux); display: grid; }
.vide-recherche { padding: 24px; text-align: center; }
.premiers-pas h2 { font-size: 1.05rem; }
.liste-pas { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: pas; }
.liste-pas li { display: flex; align-items: center; gap: 10px; counter-increment: pas; }
.pas-marque { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ligne); flex: none; font-weight: 700; font-size: .875rem; }
.pas-marque:empty::before { content: counter(pas); color: var(--doux); }
.liste-pas li.fait .pas-marque { background: var(--fini); border-color: var(--fini); color: var(--carte); }
.liste-pas li.fait .pas-texte { color: var(--doux); text-decoration: line-through; }
.pas-texte { flex: 1; }
.pas-marque svg { width: 16px; height: 16px; }

/* ── le dépôt ── */
.zone-depot {
  display: grid; justify-items: center; gap: 8px; text-align: center; padding: 32px 18px; margin-bottom: 14px;
  border: 2px dashed var(--accent); border-radius: var(--rayon); background: var(--accent-fond);
}
.zone-depot.survol { border-style: solid; }
.zone-depot.petite { padding: 14px; gap: 6px; margin: 6px 0 0; }
.zone-depot-titre { font-weight: 700; font-size: 1.1rem; }
.actions.centre { justify-content: center; }
.actions.gauche { justify-content: flex-start; }
@media (pointer: coarse) {
  .seulement-pc { display: none; }
  .zone-depot .bouton-fichiers { background: var(--accent); color: var(--sur-accent); }   /* au téléphone, c'est LE bouton */
}
@media (pointer: fine), (pointer: none) { .seulement-tactile { display: none; } }
/* « Envoyer » reste visible pendant qu'on relit le récapitulatif, au-dessus de la barre du bas au téléphone. */
.ecran.nouveau .actions.pied {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 10;
  margin: 12px -16px 0; padding: 10px 16px; background: var(--fond); border-top: 1px solid var(--ligne);
}
@media (min-width: 900px) { .ecran.nouveau .actions.pied { bottom: 0; margin: 12px 0 0; padding: 10px 0; } }
.ligne-final { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fini); }
.ligne-final svg { width: 20px; height: 20px; }
.carte-etat .petit-texte { max-width: 70ch; }
.liste-recap { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.carte-recap { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; display: grid; gap: 10px; }
.carte-recap.a-rattacher { border: 2px solid var(--action); }
.carte-recap-tete { display: flex; gap: 8px; align-items: flex-end; }
.champ-nom { flex: 1; }
.comptes-recap { font-weight: 600; }
.signalements { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.signal { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--doux); }
.signal.fort { color: var(--action); font-weight: 600; }
.signal svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.progres { display: grid; gap: 4px; }
.progres progress { width: 100%; height: 10px; accent-color: var(--accent); }
.progres-texte { font-size: .875rem; font-weight: 700; color: var(--doux); }

/* ── la fiche ── */
.carte-etat { border-left: 6px solid var(--ton); }
.etat-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 1.05rem; }
.question-brouillons { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: var(--action-fond); }
.grille-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.grille-pages img { width: 100%; border: 1px solid var(--ligne); border-radius: 6px; background: #fff; }
details > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.ecoute { display: grid; gap: 4px; }
.lecteur { width: 100%; }
.liste-bilan { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.liste-bilan li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.liste-bilan li svg { width: 18px; height: 18px; }
.marque-jaune { background: #ffe94d; color: #24272c; padding: 0 6px; border-radius: 4px; font-weight: 700; }
.marque-vert { background: #9be7a6; color: #24272c; padding: 0 6px; border-radius: 4px; font-weight: 700; }
.liste-restes { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.message-fil { padding: 10px 12px; border-radius: 12px; background: var(--attente-fond); max-width: 92%; display: grid; gap: 4px; }
.message-fil.moi { justify-self: end; background: var(--accent-fond); }
.message-fil.assistant { border: 1px solid var(--ligne); background: var(--carte); }
.message-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.message-texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge { font-size: .875rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--attente-fond); color: var(--attente); }
.badge.question { background: var(--action-fond); color: var(--action); }
.badge.correction { background: var(--accent-fond); color: var(--accent); }
.pieces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; }
.pieces a, .pieces span { display: inline-flex; align-items: center; gap: 4px; }
.pieces svg { width: 16px; height: 16px; }
.composer { display: grid; gap: 8px; margin-top: 8px; border-top: 1px solid var(--ligne); padding-top: 12px; }
.composer textarea { width: 100%; min-height: 84px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--bord); background: var(--carte); resize: vertical; }
.composer textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Les fichiers déposés : le nom, puis « Voir » (une photo) et « Télécharger » ; au téléphone, les boutons passent sous le nom. */
.liste-fichiers { list-style: none; margin: 6px 0 0; padding: 0; display: grid; font-size: .9rem; }
.liste-fichiers .manquant { color: var(--action); padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.fichier-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; border-bottom: 1px solid var(--ligne); }
.liste-fichiers > li:last-child { border-bottom: 0; }
.fichier-nom { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.fichier-actions { display: flex; gap: 4px; margin-left: auto; }
.historique { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.historique li { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
/* Le dépôt en plusieurs fois : la zone d'ajout de la fiche, « Tout y est », les deux boutons du récapitulatif. */
.zone-depot.petite .zone-depot-titre { font-size: 1rem; }
.actions.envois { gap: 8px; }
.info-plus-tard { margin: 10px 4px 0; }
/* Le nom du dossier et son crayon ; en édition, le champ prend la ligne. */
.titre-nom { display: inline; }
.titre-nom .nom-titre { overflow-wrap: anywhere; }
.crayon-nom { width: 36px; height: 36px; vertical-align: middle; margin-left: 2px; color: var(--doux); }
.crayon-nom svg { width: 18px; height: 18px; }
.titre-nom.en-edition { display: flex; align-items: center; gap: 6px; width: 100%; }
.champ-renommer {
  flex: 1; min-width: 0; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--bord);
  background: var(--carte); color: var(--texte); font: inherit; font-size: 1rem; font-weight: 700;
}
.champ-renommer:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* La visionneuse : la photo en grand, toujours sur fond sombre (le noir du fond sombre, pas un noir de plus). */
dialog.visionneuse {
  border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: #0f1115; color: #f1f2f4;
}
dialog.visionneuse[open] { display: grid; grid-template-rows: auto 1fr; }
dialog.visionneuse::backdrop { background: #0f1115; }
.visionneuse-tete { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.visionneuse-legende { flex: 1; min-width: 0; display: grid; }
.visionneuse-position { font-weight: 700; }
.visionneuse-nom { font-size: .875rem; color: #b9bdc4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visionneuse .bouton.second { color: #ffffff; border-color: rgba(255, 255, 255, .6); }
.visionneuse .rond { background: rgba(255, 255, 255, .14); color: #ffffff; box-shadow: none; }
.visionneuse-scene { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: pinch-zoom; }
.visionneuse-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.visionneuse-message { padding: 24px 68px; text-align: center; max-width: 52ch; }
.visionneuse-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; z-index: 1; }
.visionneuse-fleche.gauche { left: 10px; }
.visionneuse-fleche.droite { right: 10px; }
.visionneuse-fleche:disabled { opacity: .25; cursor: default; }
@media (max-width: 600px) {
  .bouton.lancer { width: 100%; }
  .ecran.nouveau .actions.pied { flex-direction: column; align-items: stretch; gap: 4px; }
  .ecran.nouveau .actions.pied .envois { order: -1; flex-direction: column-reverse; align-items: stretch; }
  .ecran.nouveau .actions.pied > .lien-bouton { align-self: center; }
  .visionneuse-telecharger { padding: 0 10px; }
}

@media (max-width: 520px) {
  .grille-2 { grid-template-columns: 1fr; }
  .ligne-champs { flex-wrap: wrap; }
  .entete h1 { font-size: 1.3rem; }
  .ligne-dossier { grid-template-columns: auto 1fr; }
  .ligne-dossier .etat-dossier { grid-column: 2; justify-self: start; }
  .ligne-dossier .chevron { display: none; }
  .historique li { grid-template-columns: 1fr; gap: 0; }
}

/* ── les tiroirs : une étape ou un réglage qu'on rouvre pour le refaire (décision du 13/11, 09:40 ; web/dom.js),
      les étiquettes, une zone où glisser des fichiers ── */
.tiroir { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre); margin-bottom: 10px; }
.tiroir > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 400; }
.tiroir > summary::-webkit-details-marker { display: none; }
.tiroir > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--rayon); }
.tiroir-tete { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.tiroir-vide { box-shadow: none; border: 1px solid var(--ligne); background: transparent; }
.tiroir-marque {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--ligne); font-weight: 700; font-size: .875rem; color: var(--doux);
}
.tiroir-marque svg { width: 16px; height: 16px; }
.tiroir.etat-fait .tiroir-marque { background: var(--fini); border-color: var(--fini); color: var(--carte); }
.tiroir.etat-encours .tiroir-marque { border-color: var(--accent); color: var(--accent); }
.tiroir-titre { flex: 1; display: grid; gap: 2px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.tiroir-resume { font-weight: 400; font-size: .88rem; color: var(--doux); }
.tiroir-chevron { color: var(--doux); display: grid; transition: transform .15s; }
.tiroir[open] .tiroir-chevron { transform: rotate(90deg); }
.tiroir-corps { padding: 0 16px 16px 56px; display: grid; gap: 10px; }
.tiroir-corps h3 { margin-top: 6px; }
@media (max-width: 600px) { .tiroir-corps { padding-left: 16px; } }
.etiquette {
  display: inline-block; font-size: .875rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: middle;
  background: var(--accent-fond); color: var(--accent);
}
.etiquette.vert { background: var(--fini-fond); color: var(--fini); }
.etiquette.ambre { background: var(--action-fond); color: var(--action); }
.zone-glisser {
  display: grid; justify-items: center; gap: 8px; padding: 20px 14px; text-align: center; border-radius: var(--rayon);
  border: 2px dashed var(--accent); background: var(--accent-fond);
}
.zone-glisser.survol { border-style: solid; }

/* ── l'impression : la fiche, sans la navigation ni les gestes ── */
@media print {
  .navigation, #bandeaux, .composer, .zone-depot, .actions, .barre-tableau { display: none !important; }
  .coque { display: block; }
  .contenu { padding: 0; }
  .carte-section, .ligne-dossier, .carte-recap { box-shadow: none; border: 1px solid #ccc; }
}

/* ── lot 3 : entrer (les codes à scanner, le lien d'accès, l'invitation) ──
   Le QR code reste sombre sur clair en mode sombre aussi (un appareil photo lit mal l'inverse) ; l'adresse en clair
   dessous (plan v3, partie 5.5). Bloc à part, en fin de feuille, pour croiser le moins possible le lot design. */
.bloc-qr { display: grid; justify-items: center; gap: 6px; }
.bloc-qr .dessin-qr { display: block; width: 200px; height: 200px; max-width: 70vw; max-height: 70vw; border-radius: 8px; box-shadow: 0 0 0 1px var(--ligne); }
.adresse-qr { font-family: ui-monospace, Consolas, monospace; font-size: .875rem; color: var(--doux); text-align: center; overflow-wrap: anywhere; margin: 0; }
.code-court { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; white-space: nowrap; color: var(--texte); }
.adresse-grande { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.champ-court { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; letter-spacing: .12em; max-width: 12ch; }
.lien-bouton.discret { color: var(--doux); }
.message-invitation { white-space: pre-line; overflow-wrap: anywhere; }
.carte-qr { display: grid; gap: 10px; justify-items: center; }
.vue-pc { width: 100%; }
.entre-comme { font-weight: 700; font-size: 1.15rem; }

/* ── lot 4 : le Paramétrage (deux onglets, l'équipe en une liste, les signatures) ──
   Le « ! » d'un onglet et d'un tiroir requis : l'ambre des choses à faire (contraste 6,3:1 en clair, 7,4:1 en sombre).
   L'aperçu d'une signature reste noir sur blanc en mode sombre aussi : c'est ainsi qu'elle sortira dans le rapport. */
.onglet-icone { position: relative; display: inline-grid; place-items: center; }
.onglet .signe {
  position: absolute; top: -5px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; background: var(--action); color: var(--carte); font-size: .75rem; font-weight: 700; line-height: 1;
}
.tiroir.etat-requis .tiroir-marque { background: var(--action); border-color: var(--action); color: var(--carte); }
.tiroir.etat-conseil .tiroir-marque { border-style: dashed; }
.tiroir.etat-info .tiroir-marque { border-color: transparent; background: var(--attente-fond); color: var(--doux); }
.alerte.confirmation { background: var(--fini-fond); }
.alerte.confirmation svg { color: var(--fini); }
.ferme-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ferme-note > span:not(.bouton) { color: var(--texte); font-size: .9375rem; }
.choix-visite { display: grid; gap: 2px; font-weight: 400; font-size: 1rem; }
/* Dans le récapitulatif, la liste est dans un .champ : ses boutons radio ne prennent pas la forme d'un champ de texte. */
.champ .choix-visite input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; }
.choix-visite .case { margin: 4px 0; }
.case.choix-gris { cursor: default; color: var(--doux); }
.case.choix-gris input { cursor: default; }
.case-info { align-items: flex-start; }
.case-info input { margin-top: 2px; flex: none; }
.case-info > span { display: grid; gap: 2px; }
.case-info small { font-size: .875rem; }
.etiquettes { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; }
.apercu-signature {
  justify-self: start; display: grid; justify-items: start; gap: 4px; max-width: 100%; padding: 12px 16px;
  background: #ffffff; color: #24272c; border: 1px solid var(--ligne); border-radius: 8px;
}
.apercu-signature img { display: block; max-width: min(320px, 100%); max-height: 120px; object-fit: contain; }
.apercu-signature span { font-size: .875rem; }
.menu-actions { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-actions > li { border-bottom: 1px solid var(--ligne); }
.menu-actions > li:last-child { border-bottom: 0; }
.menu-actions .lien-bouton { width: 100%; justify-content: flex-start; text-align: left; padding: 12px 0; min-height: 44px; }
.ligne-personne .actions-ligne { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (max-width: 600px) {
  .ligne-personne { flex-wrap: wrap; }
  .ligne-personne .actions-ligne { width: 100%; justify-content: flex-start; }
}
/* La zone où glisser une signature est pour le PC : au doigt, elle laisse la place à « Prendre une photo ». */
@media (pointer: coarse) { .zone-glisser.seulement-pc { display: none; } }
/* Sur PC, le libellé de l'onglet suit l'icône de près : le « ! » se pose sur l'icône, sans toucher le libellé. */
@media (min-width: 900px) { .onglet .signe { top: -6px; right: -6px; } }
/* ── lot 5 : « Vos rapports » (C-pref) et « Ce que le portail a appris » ── */
/* « Enregistrer » reste visible en bas pendant qu'on parcourt les réglages (maquette : « Enregistrer » fixe en bas). */
.ecran.preferences .actions.pied {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 10;
  margin: 12px -16px 0; padding: 10px 16px; background: var(--fond); border-top: 1px solid var(--ligne);
}
@media (min-width: 900px) { .ecran.preferences .actions.pied { bottom: 0; margin: 12px 0 0; padding: 10px 0; } }
.ecran.preferences .champ { margin: 10px 0; }
.ecran.preferences > .actions.gauche { margin: 4px 0 14px; }
.ligne-formules { gap: 10px; }
.ecran.preferences textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--bord); background: var(--carte); resize: vertical; }
.ecran.preferences textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.liste-appris .ligne-texte > span:first-child { overflow-wrap: anywhere; }

/* ── lot Q1, la fiche de la maquette des questions (validée le 15/11) : le rapport à côté des questions sur PC, avant
      elles au téléphone ; une carte par question ; le résumé compté ; le reste replié ; les textes du moteur mis en forme ── */
.contenu:has(> .ecran.dossier.large) { max-width: 1240px; }
.fiche-colonnes, .col-rapport, .col-suite { display: grid; gap: 14px; min-width: 0; align-content: start; }
.fiche-colonnes { margin-bottom: 14px; }
.fiche-colonnes .carte-section { margin-bottom: 0; min-width: 0; }
.bande-rapport { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.vignette-rapport { width: 62px; height: 88px; padding: 0; border: 1px solid var(--ligne); border-radius: 4px; background: #fff; overflow: hidden; cursor: pointer; }
.vignette-rapport img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lecteur-pages { display: none; }
.page-rapport { display: block; width: 100%; padding: 0; border: 1px solid var(--ligne); border-radius: 3px; background: #fff; cursor: zoom-in; }
.page-rapport img { display: block; width: 100%; }
/* Le PC (la navigation à gauche prend 240 px) : deux colonnes, le rapport se lit page après page à côté des questions. */
@media (min-width: 1100px) {
  .fiche-colonnes.avec-rapport { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .fiche-colonnes.avec-rapport .col-rapport { position: sticky; top: 12px; }
  .fiche-colonnes.avec-rapport .bande-rapport { display: none; }
  .fiche-colonnes.avec-rapport .lecteur-pages {
    display: grid; gap: 12px; padding: 12px; border-radius: var(--rayon); background: var(--attente-fond);
    max-height: calc(100vh - 220px); overflow: auto;
  }
}
.questions-liste { display: grid; gap: 12px; min-width: 0; }
.question-carte { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1.5px solid var(--ligne); border-radius: var(--rayon); }
.question-carte.faite { border-color: var(--fini); }
.question-carte.manque { border-color: var(--erreur); }
.question-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; font-size: .875rem; font-weight: 700; color: var(--doux); }
.question-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--fini); }
.question-ok svg { width: 16px; height: 16px; }
.question-texte { font-size: 1.08rem; font-weight: 700; overflow-wrap: anywhere; }
.question-aide { white-space: pre-line; overflow-wrap: anywhere; }
.question-passe { min-height: 36px; justify-self: start; padding-left: 0; font-weight: 600; }
.question-passe[aria-pressed="true"] { color: var(--texte); text-decoration: underline; }
.champ textarea { width: 100%; min-height: 72px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--bord); background: var(--carte); font-weight: 400; font-size: 1rem; resize: vertical; }
.champ textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.comptes { display: flex; flex-wrap: wrap; gap: 8px; }
.compte-pastille { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--attente-fond); font-weight: 700; font-size: .9rem; }
.compte-pastille svg { width: 18px; height: 18px; }
details.repli { border-top: 1px solid var(--ligne); min-width: 0; }
details.repli > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0; }
details.repli > summary::-webkit-details-marker { display: none; }
details.repli > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.repli-titre { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.repli-chevron { display: grid; color: var(--doux); transition: transform .15s; }
.repli-chevron svg { width: 20px; height: 20px; }
details.repli[open] > summary .repli-chevron { transform: rotate(90deg); }
.repli-corps { display: grid; gap: 10px; padding: 2px 0 12px; min-width: 0; }
.liste-qr { display: grid; }
.qr-ligne { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--ligne); overflow-wrap: anywhere; }
.qr-ligne:last-child { border-bottom: 0; }
.liste-appris-dossier { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.texte-propre { display: grid; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.texte-propre ul, .texte-propre ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.md-titre { font-weight: 700; }
.md-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .875em; padding: 0 4px; border-radius: 4px; background: var(--attente-fond); }
.message-detail > summary { font-size: .875rem; color: var(--accent); }
.message-detail > .texte-propre, .message-detail > .liste-qr, .message-detail > .message-texte { margin-top: 6px; font-size: .9rem; }

/* ── lot Q1b, corriger sur la ligne (décisions du 15/11, 14:53 à 14:59) : chaque ligne à vérifier porte ses gestes ;
      cibles de 44 px au moins ; un écart relevé n'est pas une alerte (couleur neutre) ── */
.liste-verif { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.verif-ligne { display: grid; gap: 8px; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--ligne); border-left-width: 5px; border-radius: 10px; }
.verif-ligne.jaune { border-left-color: #e8c900; }
.verif-ligne.vert { border-left-color: #4fbf63; }
.verif-ligne.photo, .verif-ligne.ecart { border-left-color: var(--bord); }
/* Lot Q5 : un oubli possible, une phrase sans trace dans la dictée. */
.verif-ligne.oubli, .verif-ligne.sans_trace { border-left-color: var(--accent); }
.verif-ligne.faite { border-color: var(--fini); background: var(--fini-fond); }
.verif-ligne.envoyee { border-color: var(--ligne); border-left-color: var(--fini); }
.verif-ligne.joue { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-fond); }
.verif-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.verif-texte { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.verif-note { display: block; }
.verif-nom { font-weight: 600; }
.verif-etat { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 700; color: var(--fini); overflow-wrap: anywhere; }
.verif-etat:empty { display: none; }
.verif-etat svg { width: 16px; height: 16px; flex: none; }
.verif-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; min-width: 0; }
.verif-actions .bouton { min-height: 44px; }
.verif-actions .bouton[aria-pressed="true"] { background: var(--fini); border-color: var(--fini); color: var(--carte); }
.verif-champ { flex: 1 1 14rem; display: grid; gap: 2px; min-width: 0; }
.verif-champ input { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--bord); background: var(--carte); color: var(--texte); font-size: 1rem; }
.verif-champ input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.verif-tete .bouton-ecoute { min-height: 44px; min-width: 6.5rem; justify-content: center; font-variant-numeric: tabular-nums; }
.verif-tete .bouton-ecoute.joue { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.marque-ecart { display: grid; color: var(--doux); }
.marque-ecart svg { width: 20px; height: 20px; }
.verif-vignette { display: contents; }
.vignette-photo { width: 64px; height: 64px; flex: none; padding: 0; border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; background: var(--attente-fond); cursor: zoom-in; display: grid; place-items: center; color: var(--doux); }
.vignette-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette-photo.vide { cursor: default; }
.vignette-photo.vide svg { width: 24px; height: 24px; }
.verif-pied { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.message-fil.version { border: 1.5px solid var(--fini); }
.badge.version { background: var(--fini-fond); color: var(--fini); }
.voir-version { justify-self: start; min-height: 44px; }

/* ── lot Q1d : le choix de la version en haut du rapport ; l'aperçu qui suit la ligne ; le temps sur la ligne qui joue ;
      sur PC, la colonne du rapport tient dans l'écran (jamais un contenu caché sous une colonne qui défile seule) ── */
.choix-versions { display: flex; flex-wrap: wrap; gap: 6px; }
.puce-version { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--bord); background: var(--carte); color: var(--texte); font: inherit; font-weight: 600; cursor: pointer; }
.puce-version.choisie { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.puce-version:disabled { opacity: .55; cursor: default; }
.puce-version:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bandeau-version { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; background: var(--action-fond); color: var(--texte); font-weight: 600; }
.bandeau-version .lien-bouton { min-height: 44px; }
.lecteur-pages { position: relative; }
.page-rapport { position: relative; }
.repere-page { position: absolute; left: 0; right: 0; top: calc(var(--y, 0) * 100%); height: 0; border-top: 3px solid #e8a400; box-shadow: 0 0 0 2px rgba(232, 164, 0, .35); pointer-events: none; }
.repere-page::before { content: ""; position: absolute; left: -2px; top: -9px; border: 7px solid transparent; border-left: 10px solid #e8a400; }
.visionneuse-repere { position: absolute; height: 0; border-top: 3px solid #e8a400; box-shadow: 0 0 0 2px rgba(232, 164, 0, .45); pointer-events: none; z-index: 1; }
.verif-texte.suit { cursor: pointer; }
.voir-passage { min-height: 44px; }
.temps-ecoute { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; background: var(--attente-fond); color: var(--texte); font-weight: 700; font-variant-numeric: tabular-nums; }
.temps-ecoute[hidden] { display: none; }
.temps-ecoute.au-doute { background: #ffe94d; color: #24272c; }
.verif-ligne.au-doute { border-color: #e8c900; box-shadow: 0 0 0 3px rgba(232, 201, 0, .45); }
@media (min-width: 1100px) {
  .fiche-colonnes.avec-rapport .col-rapport { max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
  .fiche-colonnes.avec-rapport .col-rapport > .carte-section { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  .fiche-colonnes.avec-rapport .lecteur-pages { flex: 1 1 auto; min-height: 0; max-height: none; }
}
