/* Feuille de styles de xtelia-facturation (maquette v2, issue #1).
   Bâtie sur les jetons du système de design X-TELIA (tokens.css, copié tel quel).
   Règle : aucune valeur de couleur, de rayon, de taille de texte ni d'espacement en dur ;
   tout passe par une variable --xt-* ou par un alias ci-dessous qui en dérive. */

@font-face {
  font-family: "Inter";
  src: url("polices/InterVariable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

/* Alias de l'application : chacun dérive d'un jeton X-TELIA.
   Les fonds pâles sont des mélanges d'un jeton avec du blanc (color-mix). */
:root {
  --c-texte: var(--xt-fg-1);                 /* 17,9:1 sur blanc */
  --c-texte-doux: var(--xt-neutral-600);     /* 7,8:1 */
  --c-fond: var(--xt-surface-page);
  --c-surface: var(--xt-surface-card);
  --c-inset: var(--xt-surface-inset);
  --c-bord: var(--xt-border);
  --c-bord-champ: var(--xt-neutral-500);     /* bord des champs : 4,7:1 (3:1 exigé) */
  --c-accent: var(--xt-primary-500);         /* bouton principal : texte blanc 4,7:1 */
  --c-accent-fonce: var(--xt-primary-600);   /* survol, liens : 7,2:1 */
  --c-accent-pale: var(--xt-surface-brand);
  --c-accent-bord: var(--xt-primary-200);
  --c-danger: var(--xt-red-dark);            /* texte d'erreur et de retard : 4,8:1 */
  --c-danger-bord: var(--xt-error);
  --c-danger-pale: color-mix(in srgb, var(--xt-red) 14%, var(--xt-white));
  --c-attention-bord: var(--xt-warning);     /* ambre : bords et icônes seulement (2,2:1) */
  --c-attention-pale: color-mix(in srgb, var(--xt-orange) 20%, var(--xt-white));
  --c-succes: var(--xt-green-dark);          /* 5,5:1 */
  --c-succes-pale: color-mix(in srgb, var(--xt-green) 14%, var(--xt-white));

  /* Trois tailles de texte */
  --t-titre: var(--xt-text-24);
  --t-section: var(--xt-text-18);
  --t-texte: var(--xt-text-14);

  --largeur-max: 1360px;
}

* { box-sizing: border-box; }
html { font-family: var(--xt-font-sans); font-size: var(--t-texte); letter-spacing: var(--xt-tracking); color: var(--c-texte); background: var(--c-fond); font-feature-settings: "tnum" 0; }
body { margin: 0; line-height: 1.5; }
h1 { font-size: var(--t-titre); font-weight: var(--xt-weight-semibold); margin: 0; line-height: 1.25; }
h2 { font-size: var(--t-section); font-weight: var(--xt-weight-semibold); margin: 0; line-height: 1.3; }
h3 { font-size: var(--t-texte); font-weight: var(--xt-weight-semibold); margin: 0; }
p { margin: 0; }
a { color: var(--xt-link); }
a:hover { color: var(--xt-primary-700); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }
strong, b { font-weight: var(--xt-weight-semibold); }
.doux { color: var(--c-texte-doux); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: var(--xt-space-2); top: -60px; background: var(--c-surface); padding: var(--xt-space-2) var(--xt-space-3); border-radius: var(--xt-radius-button); }
.lien-evitement:focus { top: var(--xt-space-2); }

/* Bande d'environnement de test (CA2) */
.bande-test {
  background: repeating-linear-gradient(-45deg, var(--xt-orange) 0 16px, var(--c-attention-pale) 16px 32px);
  color: var(--xt-fg-1); font-weight: var(--xt-weight-bold); text-align: center; padding: var(--xt-space-2) var(--xt-space-4);
  border-bottom: 2px solid var(--xt-orange-dark); letter-spacing: .02em;
}

/* En-tête et navigation */
.entete { background: var(--c-surface); border-bottom: 1px solid var(--c-bord); box-shadow: var(--xt-shadow-sm); }
.entete-int { max-width: var(--largeur-max); margin: 0 auto; padding: 0 var(--xt-space-6); display: flex; align-items: center; gap: var(--xt-space-8); min-height: 56px; }
.marque { font-weight: var(--xt-weight-bold); color: var(--xt-primary-700); text-decoration: none; white-space: nowrap; }
.marque span { color: var(--c-accent); font-weight: var(--xt-weight-semibold); }
.nav { display: flex; gap: var(--xt-space-1); flex: 1; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--xt-space-3); color: var(--xt-fg-2); text-decoration: none; border-bottom: 3px solid transparent; font-weight: var(--xt-weight-medium); }
.nav a[aria-current="page"] { border-bottom-color: var(--c-accent); font-weight: var(--xt-weight-semibold); color: var(--xt-primary-700); }
.nav a:hover { background: var(--c-inset); }
.compte { display: flex; align-items: center; gap: var(--xt-space-3); white-space: nowrap; }

/* Page */
main { max-width: var(--largeur-max); margin: 0 auto; padding: var(--xt-space-6); }
.fil { margin-bottom: var(--xt-space-2); color: var(--c-texte-doux); }
.tete-page { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--xt-space-4); margin-bottom: var(--xt-space-6); flex-wrap: wrap; }
.tete-page .sous-titre { margin-top: var(--xt-space-1); color: var(--c-texte-doux); }
.actions { display: flex; gap: var(--xt-space-2); flex-wrap: wrap; align-items: center; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--xt-space-2); min-height: 40px; padding: 0 var(--xt-space-4); border-radius: var(--xt-radius-button); border: 1px solid var(--c-accent); font: inherit; font-weight: var(--xt-weight-semibold); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--xt-dur-fast) var(--xt-ease); }
.btn-primaire { background: var(--c-accent); color: var(--xt-white); }
.btn-primaire:hover { background: var(--c-accent-fonce); border-color: var(--c-accent-fonce); color: var(--xt-white); }
.btn-secondaire { background: var(--c-surface); color: var(--c-accent-fonce); }
.btn-secondaire:hover { background: var(--c-accent-pale); }
.btn-lien { background: none; border-color: transparent; color: var(--xt-link); padding: 0 var(--xt-space-2); text-decoration: underline; font-weight: var(--xt-weight-medium); }
.btn-danger { background: var(--c-surface); color: var(--c-danger); border-color: var(--c-danger); }
.btn-petit { min-height: 32px; padding: 0 var(--xt-space-3); font-weight: var(--xt-weight-medium); }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }

/* Cartes et sections */
.carte { background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--xt-radius-card); padding: var(--xt-space-6); box-shadow: var(--xt-shadow-sm); }
.carte + .carte, .section + .section { margin-top: var(--xt-space-6); }
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--xt-space-4); margin-bottom: var(--xt-space-4); flex-wrap: wrap; }
.carte-tete h2 .compte-sec { font-weight: var(--xt-weight-regular); color: var(--c-texte-doux); }
.carte.retard { border-left: 6px solid var(--c-danger-bord); }
.carte.attention { border-left: 6px solid var(--c-attention-bord); }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--xt-space-6); }
.grille-2 > .carte + .carte { margin-top: 0; }
.encadre { background: var(--c-inset); border: 1px solid var(--c-bord); border-radius: var(--xt-radius-card); padding: var(--xt-space-4); }
.encadre.e-attention { background: var(--c-attention-pale); border-color: var(--c-attention-bord); border-left-width: 6px; }

/* Indicateurs (tableau de suivi) */
.indicateurs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--xt-space-4); margin-bottom: var(--xt-space-6); }
.indic { display: block; background: var(--c-surface); border: 1px solid var(--c-bord); border-radius: var(--xt-radius-card); padding: var(--xt-space-4); text-decoration: none; color: var(--c-texte); box-shadow: var(--xt-shadow-sm); }
.indic:hover { border-color: var(--c-accent); }
.indic .libelle { color: var(--c-texte-doux); font-weight: var(--xt-weight-medium); }
.indic .valeur { font-size: var(--t-titre); font-weight: var(--xt-weight-bold); font-variant-numeric: tabular-nums; }
.indic .detail { color: var(--c-texte-doux); }
.indic.retard { border-left: 6px solid var(--c-danger-bord); }
.indic.retard .valeur { color: var(--c-danger); }
.indic.attention { border-left: 6px solid var(--c-attention-bord); }

/* Sélecteur de mois (segments) */
.segments { display: inline-flex; border: 1px solid var(--c-accent); border-radius: var(--xt-radius-button); overflow: hidden; }
.segments a { padding: 0 var(--xt-space-4); min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; color: var(--c-accent-fonce); background: var(--c-surface); font-weight: var(--xt-weight-medium); }
.segments a + a { border-left: 1px solid var(--c-accent); }
.segments a[aria-current="true"], .segments a[aria-current="page"] { background: var(--c-accent); color: var(--xt-white); font-weight: var(--xt-weight-semibold); }

/* Onglets de la liste Contrats (issue #42) : segments qui passent à la ligne sur mobile */
.onglets { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.onglets a { flex: 1 1 auto; justify-content: center; }

/* Tableaux de données */
.tableau { width: 100%; border-collapse: collapse; }
.tableau th, .tableau td { padding: var(--xt-space-2); border-bottom: 1px solid var(--c-bord); vertical-align: top; text-align: left; }
.tableau td { overflow-wrap: anywhere; }
.tableau thead th { font-weight: var(--xt-weight-semibold); color: var(--c-texte-doux); border-bottom: 2px solid var(--c-bord); white-space: nowrap; background: var(--xt-neutral-50); }
.tableau thead th.num, .tableau .num { text-align: right; }
.tableau tbody tr:hover { background: var(--xt-neutral-50); }
.tableau th a.tri { color: inherit; text-decoration: none; }
.tableau th a.tri::after { content: " ↕"; color: var(--xt-neutral-400); }
.tableau th a.tri[aria-sort="ascending"]::after { content: " ▲"; color: var(--c-accent); }
.tableau .principal { font-weight: var(--xt-weight-semibold); }
.tableau .sec, .sec { display: block; color: var(--c-texte-doux); }
.tableau tfoot td { font-weight: var(--xt-weight-bold); border-bottom: none; }
.tableau td:first-child { min-width: 20ch; }
.tableau td.po { white-space: nowrap; }
.tableau td.manques { min-width: 24ch; }
.tableau tr.sous-ligne td { border-top: none; padding-top: 0; }
.defile { overflow-x: auto; position: relative; } /* contient aussi les textes .visuellement-cache (#26) */
.pied-liste { display: flex; justify-content: space-between; align-items: center; margin-top: var(--xt-space-3); flex-wrap: wrap; gap: var(--xt-space-3); }
.pagination { display: flex; gap: var(--xt-space-1); }
.pagination a, .pagination span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c-bord); border-radius: var(--xt-radius-button); text-decoration: none; padding: 0 var(--xt-space-2); }
.pagination [aria-current="page"] { background: var(--c-accent); color: var(--xt-white); border-color: var(--c-accent); font-weight: var(--xt-weight-bold); }

/* Pastilles : texte + symbole, jamais la couleur seule */
.pastille { display: inline-block; padding: 1px var(--xt-space-2); border-radius: var(--xt-radius-pill); font-weight: var(--xt-weight-semibold); white-space: normal; margin: 0 var(--xt-space-1) var(--xt-space-1) 0; border: 1px solid transparent; }
.p-retard { background: var(--c-danger-pale); color: var(--c-danger); border-color: var(--xt-red); }
.p-retard::before { content: "⚠ "; }
.p-manque { background: var(--c-attention-pale); color: var(--c-texte); border-color: var(--c-attention-bord); }
.p-manque::before { content: "! "; font-weight: 800; }
.p-ok { background: var(--c-succes-pale); color: var(--c-succes); border-color: var(--xt-green); }
.p-ok::before { content: "✓ "; }
.p-neutre { background: var(--c-inset); color: var(--c-texte); border-color: var(--c-bord); }
.statut { white-space: normal; }
.aucun { color: var(--c-texte-doux); }

/* Formulaires */
.formulaire { max-width: 720px; }
.fs { border: none; padding: 0; margin: 0 0 var(--xt-space-6); }
.fs legend, .fs > h2 { font-size: var(--t-section); font-weight: var(--xt-weight-semibold); padding: 0; margin-bottom: var(--xt-space-3); }
.fs .fs { margin-bottom: var(--xt-space-4); }
.fs .fs legend { font-size: var(--t-texte); margin-bottom: var(--xt-space-1); }
.champ { margin-bottom: var(--xt-space-4); }
.champ label, .champ .libelle { display: block; font-weight: var(--xt-weight-semibold); margin-bottom: var(--xt-space-1); }
.champ .aide { color: var(--c-texte-doux); margin-top: var(--xt-space-1); }
.obligatoire::after { content: " *"; color: var(--c-danger); }
input[type="text"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  font: inherit; color: var(--c-texte); background: var(--c-surface); border: 1px solid var(--c-bord-champ); border-radius: var(--xt-radius-input); min-height: 40px; padding: var(--xt-space-2) var(--xt-space-3);
}
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--c-accent); margin: 0; }
textarea { width: 100%; min-height: 96px; }
.l-court { width: 10ch; } .l-date { width: 18ch; } .l-moyen { width: 24ch; } .l-long { width: 100%; max-width: 48ch; }
.l-pleine { width: 100%; }
textarea.l-pleine { min-height: 0; }
.ligne-champs { display: flex; gap: var(--xt-space-4); flex-wrap: wrap; align-items: flex-start; }
.ligne-champs.serree { align-items: center; gap: var(--xt-space-2); }
/* Un champ et sa liste déroulante ne dépassent jamais la ligne (320 px, issue #42) */
.ligne-champs > .champ { max-width: 100%; }
.ligne-champs select { max-width: 100%; }
.radios { display: flex; flex-direction: column; gap: var(--xt-space-2); }
.radios label, label.case { font-weight: var(--xt-weight-regular); display: flex; gap: var(--xt-space-2); align-items: center; min-height: 32px; }
label.case { font-weight: var(--xt-weight-semibold); }
.radios.en-ligne { flex-direction: row; gap: var(--xt-space-6); flex-wrap: wrap; }
.entree-montant { display: inline-flex; align-items: center; gap: var(--xt-space-2); }
.sous-champs { margin: var(--xt-space-2) 0 var(--xt-space-4) var(--xt-space-6); padding-left: var(--xt-space-4); border-left: 3px solid var(--c-accent-bord); }
[aria-invalid="true"] { border: 2px solid var(--c-danger-bord) !important; }
.erreur-champ { color: var(--c-danger); font-weight: var(--xt-weight-semibold); margin-top: var(--xt-space-1); }
.erreur-champ::before { content: "⚠ "; }
.avert-champ { color: var(--c-texte); background: var(--c-attention-pale); border-left: 4px solid var(--c-attention-bord); padding: var(--xt-space-2) var(--xt-space-3); margin-top: var(--xt-space-2); border-radius: 0 var(--xt-radius-input) var(--xt-radius-input) 0; }
.calcule { background: var(--c-inset); border-radius: var(--xt-radius-input); padding: var(--xt-space-2) var(--xt-space-3); display: inline-block; min-height: 40px; }
.barre-actions { display: flex; gap: var(--xt-space-3); align-items: center; padding-top: var(--xt-space-4); border-top: 1px solid var(--c-bord); flex-wrap: wrap; }

/* Bandeaux */
.bandeau { border-radius: var(--xt-radius-card); padding: var(--xt-space-3) var(--xt-space-4); margin-bottom: var(--xt-space-6); border: 1px solid; }
.bandeau h2 { font-size: var(--t-texte); margin-bottom: var(--xt-space-1); }
.bandeau ul { margin: var(--xt-space-1) 0 0; padding-left: var(--xt-space-6); }
.b-erreur { background: var(--c-danger-pale); border-color: var(--c-danger-bord); color: var(--c-texte); }
.b-erreur h2 { color: var(--c-danger); }
.b-erreur h2::before { content: "⚠ "; }
.b-attention { background: var(--c-attention-pale); border-color: var(--c-attention-bord); border-left-width: 6px; }
.b-attention h2::before, .e-attention h3::before { content: "! "; font-weight: 800; }
.b-info { background: var(--c-accent-pale); border-color: var(--c-accent-bord); }
.b-succes { background: var(--c-succes-pale); border-color: var(--xt-green); color: var(--c-succes); font-weight: var(--xt-weight-semibold); }
.b-succes::before { content: "✓ "; }

/* Fiches : paires libellé / valeur */
.paires { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--xt-space-4) var(--xt-space-6); margin: 0; }
.paires div { min-width: 0; }
.paires dt { color: var(--c-texte-doux); }
.paires dd { margin: 0; font-weight: var(--xt-weight-semibold); overflow-wrap: anywhere; }
.paires dd .sec { font-weight: var(--xt-weight-regular); }
.paires .pleine { grid-column: 1 / -1; }
.paires.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Étapes (déménagement) */
.etapes { display: flex; gap: var(--xt-space-2); list-style: none; padding: 0; margin: 0 0 var(--xt-space-6); counter-reset: etape; }
.etapes li { flex: 1; padding: var(--xt-space-2) var(--xt-space-3); border-top: 4px solid var(--c-bord); color: var(--c-texte-doux); counter-increment: etape; }
.etapes li::before { content: counter(etape) ". "; font-weight: var(--xt-weight-bold); }
.etapes li.faite { border-top-color: var(--xt-green); color: var(--c-succes); }
.etapes li[aria-current="step"] { border-top-color: var(--c-accent); color: var(--c-texte); font-weight: var(--xt-weight-bold); }

/* Liste simple (pièces jointes, chaîne de contrats) */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; justify-content: space-between; align-items: center; gap: var(--xt-space-3); padding: var(--xt-space-2) 0; border-bottom: 1px solid var(--c-bord); flex-wrap: wrap; }
.liste li:last-child { border-bottom: none; }

/* Comparaison X-O / tranche */
.comparaison { display: flex; gap: var(--xt-space-3); align-items: baseline; flex-wrap: wrap; }
.comparaison .chiffre { font-size: var(--t-titre); font-weight: var(--xt-weight-bold); font-variant-numeric: tabular-nums; }
.mini-tableau { border-collapse: collapse; margin-top: var(--xt-space-2); }
.mini-tableau th, .mini-tableau td { padding: var(--xt-space-1) var(--xt-space-3) var(--xt-space-1) 0; text-align: left; border-bottom: 1px solid var(--c-bord); }
.mini-tableau th { color: var(--c-texte-doux); font-weight: var(--xt-weight-semibold); }
.mini-tableau .num { text-align: right; }
details > summary { cursor: pointer; color: var(--xt-link); font-weight: var(--xt-weight-medium); min-height: 32px; display: list-item; }

/* Tablette (1024 px et moins) */
@media (max-width: 1100px) {
  .entete-int { gap: var(--xt-space-4); padding: 0 var(--xt-space-4); }
  main { padding: var(--xt-space-4); }
  .indicateurs { grid-template-columns: repeat(3, 1fr); }
  .grille-2 { grid-template-columns: 1fr; }
  .paires { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masque-tablette, .compte .doux { display: none; }
  .nav a { padding: 0 var(--xt-space-2); }
  .tableau td:first-child { min-width: 16ch; }
}

/* Corrections après autocritique des captures v2 */
.p-retard { white-space: nowrap; }
.statut .p-retard { white-space: normal; }
.encadre .fs legend { font-size: var(--t-texte); }
.tableau td.verif { min-width: 36ch; }

/* Ajouts de l'application (PR 1A-1) : classes qui remplacent les styles en ligne de la
   maquette (interdits par la politique de sécurité des contenus) et écrans de connexion.
   Mêmes règles : seulement des jetons --xt-* ou des alias ci-dessus. */
.marge-nulle { margin: 0; }
.marge-bas { margin-bottom: var(--xt-space-4); }
.aligne-champ { margin-top: calc(var(--t-texte) * 1.5 + var(--xt-space-1)); }
.l-recherche { width: 36ch; max-width: 100%; }
.l-numero { width: 12ch; }
.notes { white-space: pre-line; }
.compte form { margin: 0; }
.page-centree { display: flex; justify-content: center; padding-top: var(--xt-space-8); }
.carte-connexion { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: var(--xt-space-4); }
.carte-connexion .bandeau { margin-bottom: 0; }
.marque-connexion { font-size: var(--t-titre); font-weight: var(--xt-weight-bold); color: var(--xt-primary-700); }
.marque-connexion span { color: var(--c-accent); font-weight: var(--xt-weight-semibold); }
.btn-large { width: 100%; }
.connexion-essai { border-top: 1px solid var(--c-bord); padding-top: var(--xt-space-4); }
.connexion-essai h2 { font-size: var(--t-texte); margin-bottom: var(--xt-space-2); }
main:focus { outline: none; }
.tableau-centre td { vertical-align: middle; }
.tableau td form { margin: 0; }

/* Ajouts de la PR 1A-2 (contrats), repris de ajouts-v3.css de la maquette v3.
   Mêmes règles : seulement des jetons --xt-* ou des alias ci-dessus. */
.marge-haut { margin-top: var(--xt-space-4); }
.marge-haut-2 { margin-top: var(--xt-space-2); }
.marge-haut-6 { margin-top: var(--xt-space-6); }
.bloc { display: block; }
.radios.detailles { gap: var(--xt-space-3); }
.radios.detailles label { align-items: flex-start; }
.radios.detailles input { margin-top: 2px; flex: none; }
.radios .aide-choix { display: block; color: var(--c-texte-doux); font-weight: var(--xt-weight-regular); }
.radios .titre-choix { font-weight: var(--xt-weight-semibold); }
.fs-erreur { border-left: 4px solid var(--c-danger-bord); padding-left: var(--xt-space-3); }
.cle { font-size: var(--t-section); font-weight: var(--xt-weight-bold); font-variant-numeric: tabular-nums; }
dialog.fenetre { border: 1px solid var(--c-bord); border-radius: var(--xt-radius-card); padding: var(--xt-space-6); max-width: 560px; width: calc(100% - 2 * var(--xt-space-6)); box-shadow: var(--xt-shadow-sm); color: var(--c-texte); background: var(--c-surface); }
dialog.fenetre::backdrop { background: color-mix(in srgb, var(--xt-fg-1) 45%, transparent); }
dialog.fenetre h2 { margin-bottom: var(--xt-space-3); }
/* Dérivés de la PR 1A-2 : champ de montant, lien de suppression et formulaires en ligne. */
.l-montant { width: 14ch; }
.btn-lien.texte-danger { color: var(--c-danger); }
.actions form, .paires dd form { display: inline; margin: 0; }
[hidden] { display: none !important; }

/* Ajouts de la PR 1A-3 (facturations notées, suivi, liste), repris de ajouts-v3.css de la
   maquette v3. Mêmes règles : seulement des jetons --xt-* ou des alias ci-dessus. */
.marge-bas-3 { margin-bottom: var(--xt-space-3); }
.titre-texte { font-size: var(--t-texte); }
/* Plusieurs numéros de facture passent à la ligne plutôt que d'élargir le tableau (issue #22, CA12). */
.a-copier { display: block; color: var(--c-texte-doux); }
.a-copier strong { color: var(--c-texte); }
.tableau tr.excedent td { background: var(--c-inset); }
.p-excedent { background: var(--c-surface); color: var(--c-texte); border-color: var(--c-bord-champ); }
.p-excedent::before { content: "+ "; font-weight: 800; }
/* Dérivés de la PR 1A-3 : ligne « dans la tranche » (couleur de .p-ok), alerte de tranche
   sur fond blanc (maquette v2, style en ligne converti) et note sous un tableau. */
.ligne-ok { color: var(--c-succes); font-weight: var(--xt-weight-semibold); }
.ligne-ok::before { content: "✓ "; }
.encadre.e-attention.sur-blanc { background: var(--c-surface); }
.encadre .case { margin-top: var(--xt-space-3); }
.encadre .champ.note-ecart { margin: var(--xt-space-2) 0 0; }
.tableau th a.tri[aria-sort="descending"]::after { content: " ▼"; color: var(--c-accent); }
.tableau td.statut { min-width: 22ch; }

/* Ajouts de la PR 1B (déménagement Excel). Mêmes règles : seulement des jetons --xt-* ou
   des alias ci-dessus. Carte finale « Confirmer le déménagement » à bord bleu (maquette v1),
   dérivée de .carte.attention ; indicateur sans lien, dérivé de .indic. */
.carte.a-confirmer { border-left: 6px solid var(--c-accent); }
div.indic:hover { border-color: var(--c-bord); }
.tableau td.type { min-width: 14ch; overflow-wrap: normal; }

/* Ajouts de la PR 1C-3 (décisions de dépassement), repris de ajouts-v3.css de la maquette
   v3. Mêmes règles : seulement des jetons --xt-* ou des alias ci-dessus. */
.tableau td.decision { min-width: 30ch; }
.rappel { display: block; color: var(--c-texte-doux); margin-top: var(--xt-space-1); }
.tableau tr[data-focus-ancre]:focus { outline: 2px solid var(--c-accent); outline-offset: -2px; }

/* Liste Contrats : choix rapide du type de renouvellement dans la colonne Conditions
   (issue #17, maquette v1). Limité à cette liste ; rien ne déborde à 1024 px. */
.tableau.liste-contrats td.conditions { min-width: 22ch; }
.tableau.liste-contrats td.conditions .actions { margin-bottom: var(--xt-space-1); }
.tableau.liste-contrats td.conditions .btn { white-space: normal; overflow-wrap: normal; text-align: left; line-height: 1.3; padding-top: var(--xt-space-1); padding-bottom: var(--xt-space-1); }
@media (max-width: 1100px) {
  .tableau.liste-contrats td.statut { min-width: 14ch; }
  .tableau.liste-contrats td.manques { min-width: 20ch; }
  .tableau.liste-contrats td.conditions { min-width: 15ch; }
}

/* Suivi : « En retard », « À facturer » et « Contrats à compléter » tiennent sans défilement
   à 1024 px, même avec un nom de client de 80 caractères, trois numéros de facture et un PO
   de 20 caractères (issue #22, CA12). Limité à ces trois tableaux ; sans effet visible quand
   la place suffit. */
.tableau.suivi-factures td.manques { min-width: 16ch; }

/* Issue #26, lot A : Suivi lisible. Le retard tient sur une ligne (« ⚠ 285 j », texte
   rouge sans fond) et le PO n'est jamais coupé dans un mot (« Aucun » et « Non requis »
   portent aussi la classe po). Les pastilles ont des coins de bouton : une pastille qui
   passe à la ligne reste un rectangle net au lieu d'une bulle. */
.pastille { border-radius: var(--xt-radius-button); }
.retard-court { color: var(--c-danger); font-weight: var(--xt-weight-semibold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau td.retard { white-space: nowrap; }
.tableau td.po { white-space: nowrap; overflow-wrap: normal; }
/* Une période (« 2025-01-01 au 2025-12-31 ») reste sur une ligne quand la place le permet. */
@media (min-width: 1200px) {
  .tableau.suivi-factures .periode { white-space: nowrap; }
}

/* Issue #26, lot B : pastilles réglables d'un clic et fenêtre « Type de contrat »
   (maquette v1, règles proposées par le designer). Même couleur que la pastille de
   manque ; le soulignement et le chevron la distinguent sans la couleur (CA10). */
.pastille.p-action { color: var(--c-texte); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pastille.p-action::after { content: "\a0›"; font-weight: var(--xt-weight-bold); }
.pastille.p-action:hover { background: color-mix(in srgb, var(--xt-orange) 38%, var(--xt-white)); border-color: var(--xt-orange-dark); color: var(--c-texte); }
.pastille.p-action:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
/* « À confirmer › » de la colonne Type tient sur une ligne. */
.tableau td.type .pastille { white-space: nowrap; }
.avis-suite { margin-top: var(--xt-space-4); margin-bottom: var(--xt-space-4); }
.avis-suite p { font-weight: var(--xt-weight-semibold); }
.avis-suite .liste li { padding: var(--xt-space-1) 0; }
.contrat-vise { margin-bottom: var(--xt-space-4); }
.fenetre .fs { margin-bottom: 0; }
/* Une période de la suite reste sur une ligne (précision du chef de projet). */
.avis-suite .periode-maillon { white-space: nowrap; }
/* Sous 1100 px, dans les tableaux resserrés du Suivi (#22, CA12), « À confirmer › » peut
   passer à la ligne : sinon la colonne Type s'élargit et le tableau défile à 1024 px. */
@media (max-width: 1100px) {
  .tableau.suivi-factures td.type .pastille { white-space: normal; }
}

/* Commentaires d'essai (issue #30, maquette v1 : ajouts-30.css du designer). Lien ambre,
   comme la bande de test : il appartient à l'essai, pas à l'outil. Cible de 40 px. */
.lien-commenter { display: inline-flex; align-items: center; gap: var(--xt-space-2); min-height: 40px; padding: 0 var(--xt-space-3); border: 1px solid var(--xt-orange-dark); border-radius: var(--xt-radius-button); background: var(--c-attention-pale); color: var(--c-texte); font-weight: var(--xt-weight-semibold); text-decoration: none; white-space: nowrap; }
.lien-commenter:hover { background: color-mix(in srgb, var(--xt-orange) 38%, var(--xt-white)); color: var(--c-texte); }
.lien-commenter svg { width: 16px; height: 16px; flex: none; }
/* L'en-tête passe à la ligne plutôt que de déborder quand la place manque. */
.entete-int { flex-wrap: wrap; row-gap: 0; }
.page-commentee { margin: 0 0 var(--xt-space-4); }
.page-commentee dt { color: var(--c-texte-doux); }
.page-commentee dd { margin: 0; }
.page-commentee .adresse { color: var(--c-texte-doux); overflow-wrap: anywhere; }
/* Liste « Commentaires d'essai » (lot B) : dérivée de .tableau, comme Clients. */
.tableau.liste-commentaires td.envoye { white-space: nowrap; }
.tableau.liste-commentaires td.par { min-width: 13ch; overflow-wrap: normal; }
.tableau.liste-commentaires td.texte-commentaire { min-width: 40ch; overflow-wrap: anywhere; }
.tableau.liste-commentaires td.suivi-issue { white-space: nowrap; }
.tableau.liste-commentaires td.suivi-issue .pastille { white-space: nowrap; }
/* Bouton de reprise : passe à la ligne sur un écran très étroit plutôt que de déborder. */
.reprise-commentaires { max-width: 100%; }
.reprise-commentaires .btn { white-space: normal; text-align: left; }
/* Tablette : « Commenter » seul à l'écran, la suite reste lue par le lecteur d'écran. */
@media (max-width: 1100px) {
  .lien-commenter .suite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Issue #26, lot C : fenêtre « Type de renouvellement » (les deux choix de #17 côte à côte)
   et encadré « À confirmer pour ce contrat » de la page « Facture Acomba » (maquette v1,
   règles proposées par le designer). */
dialog.fenetre.fenetre-large { max-width: 720px; }
.choix-renouv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--xt-space-4); margin-bottom: var(--xt-space-4); }
.choix-renouv .encadre, .choix-renouv form { display: flex; flex-direction: column; gap: var(--xt-space-3); margin: 0; }
.choix-renouv .encadre > form { flex: 1; }
.choix-renouv .btn { align-self: flex-start; margin-top: auto; }
.choix-renouv .champ { margin-bottom: 0; }
.a-confirmer-facture { margin-top: var(--xt-space-6); }
.a-confirmer-facture h2 { font-size: var(--t-texte); font-weight: var(--xt-weight-semibold); margin: 0; }
.a-confirmer-facture h2::before { content: "! "; font-weight: 800; }
.a-confirmer-facture .aide-encadre { color: var(--c-texte-doux); margin-top: var(--xt-space-1); }
.lignes-a-confirmer { list-style: none; margin: var(--xt-space-3) 0 0; padding: 0; }
.lignes-a-confirmer li { display: grid; grid-template-columns: 30ch 1fr; gap: var(--xt-space-2) var(--xt-space-4); align-items: center; padding: var(--xt-space-2) 0; border-top: 1px solid var(--c-attention-bord); }
.lignes-a-confirmer .etiquette { font-weight: var(--xt-weight-semibold); }
.lignes-a-confirmer .etiquette span { font-weight: var(--xt-weight-regular); color: var(--c-texte-doux); }
@media (max-width: 700px) {
  .choix-renouv, .lignes-a-confirmer li { grid-template-columns: 1fr; }
}
/* Issue #55 : aucune page ne défile de côté, de 320 à 1 920 px. Rien ne change au-delà de
   1 100 px. Champ de fichier et grilles à une colonne : ils ne forcent plus la largeur. */
input[type="file"] { max-width: 100%; }
@media (max-width: 1100px) {
  .grille-2 { grid-template-columns: minmax(0, 1fr); }
}
/* Trois indicateurs par rangée jusqu'à 480 px : marge intérieure resserrée pour que
   « Renouvellements » et un montant à 7 chiffres tiennent dans la case. */
@media (max-width: 700px) {
  .indic { padding: var(--xt-space-3); }
}
/* Petit écran (moins de 480 px, RA1). En-tête : logo à gauche, « Commenter » et
   « Se déconnecter » à droite (ou sous le logo s'il manque de place), puis le menu sur
   toute la largeur ; l'ordre de tabulation reste celui du gabarit. */
@media (max-width: 479.98px) {
  .entete-int { gap: 0 var(--xt-space-3); padding: var(--xt-space-1) var(--xt-space-4) 0; }
  .marque { line-height: 44px; }
  .compte { order: 1; margin-left: auto; min-height: 44px; }
  .nav { order: 2; flex: 1 1 100%; gap: 0 var(--xt-space-1); margin: 0 calc(-1 * var(--xt-space-2)); }
  .nav a { white-space: nowrap; }
  .lien-commenter, .compte .btn { padding: 0 var(--xt-space-2); }
  /* Indicateurs du Suivi : un par rangée, version compacte (libellé et détail à gauche,
     chiffre à droite). */
  .indicateurs { grid-template-columns: minmax(0, 1fr); gap: var(--xt-space-2); }
  .indic { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "libelle valeur" "detail valeur"; column-gap: var(--xt-space-3); align-items: center; padding: var(--xt-space-2) var(--xt-space-3); }
  .indic .libelle { grid-area: libelle; }
  .indic .valeur { grid-area: valeur; text-align: right; }
  .indic .detail { grid-area: detail; }
  .etapes { flex-wrap: wrap; }
  /* Bouton d'une tête de carte (« Voir les contrats avec au moins un manque ») : passe à
     la ligne plutôt que d'élargir la carte. */
  .carte-tete .btn { white-space: normal; text-align: center; }
}

/* Issue #44 : changements de prix (maquette v1 du designer).
   Mêmes règles que styles.css : seulement des jetons --xt-* ou des alias. */

/* Pastille « Nouveau prix » : couleurs d'attention de .p-manque, mais symbole « $ »
   au lieu de « ! » : elle n'est pas un manque (CA8) et se distingue sans la couleur. */
.p-nouveau-prix { background: var(--c-attention-pale); color: var(--c-texte); border-color: var(--c-attention-bord); white-space: nowrap; }
.p-nouveau-prix::before { content: "$ "; font-weight: 800; }
.tableau td.num .p-nouveau-prix { margin: var(--xt-space-1) 0 0; }

/* Tableau des changements de prix de la fiche */
.tableau.changements-prix td:first-child { min-width: 16ch; }
.tableau.changements-prix td.etat { min-width: 22ch; }
.tableau.changements-prix tr.depart td { color: var(--c-texte-doux); }
.tableau.changements-prix tr.depart td strong { color: var(--c-texte); }

/* Rappel en tête du bloc « À faire dans Acomba » de « Noter la facture » */
.b-info .avert-champ { margin: 0 0 var(--xt-space-3); }
.b-info .avert-champ strong { display: block; }

/* Issue #39 : pause d'un contrat (maquette v1, règles proposées par le designer). La note
   se coupe sur une ligne avec « … » visible ; le texte complet reste dans le DOM. */
.note-courte { display: block; max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tableau td.note-pause { min-width: 20ch; }
.tableau td.depuis { white-space: nowrap; }
.encadre.pause .notes { margin-top: var(--xt-space-2); }
@media (max-width: 1100px) {
  .note-courte { max-width: 26ch; }
}

/* Issue #35 : Factures Acomba à confirmer (maquette v1). Tient sans défilement à 1024 px. */
.tableau.factures-acomba td:first-child { min-width: 10ch; white-space: nowrap; }
.tableau.factures-acomba td.client { min-width: 18ch; }
@media (min-width: 1200px) { .tableau.factures-acomba .periode { white-space: nowrap; } }
/* Issue #35, lot 3 : colonne « Actions » (maquette v1), pastille au-dessus de « Confirmer ». */
.tableau.factures-acomba td.actions-ligne { min-width: 16ch; }
.tableau.factures-acomba td.actions-ligne .actions { gap: var(--xt-space-1) var(--xt-space-2); }
.tableau.factures-acomba td.actions-ligne .btn-lien { padding-left: 0; }
.tableau.factures-acomba td.actions-ligne .pastille { white-space: normal; }
.tableau.factures-acomba td.actions-ligne .bloc { margin-bottom: var(--xt-space-1); }
.tableau.factures-acomba td.actions-ligne form { margin: 0 0 var(--xt-space-1); }

/* Carte « Produits » de la fiche d'un contrat à plusieurs produits (issue #28, lot 1b). */
.tableau.produits-fiche td:first-child { min-width: 16ch; }
.tableau.produits-fiche td.num { white-space: nowrap; }
.tableau.produits-fiche td.num .sec { white-space: normal; }
.tableau.produits-fiche .bloc { margin-top: var(--xt-space-1); }
.tableau.produits-fiche tfoot th { text-align: left; border-bottom: none; }
.tableau.produits-fiche tr.total-produits th, .tableau.produits-fiche tr.total-produits td { border-top: 2px solid var(--c-bord); }

/* Formulaire du contrat : une carte par produit (issue #28, lot 1c, maquette v1). */
.produits { min-width: 0; }
.produits > .doux { margin: 0 0 var(--xt-space-3); }
fieldset.produit { position: relative; min-width: 0; margin: 0 0 var(--xt-space-4); border-left: 4px solid var(--c-accent-bord); }
fieldset.produit.en-erreur { border-left-color: var(--c-danger-bord); }
fieldset.produit > legend { float: left; width: 100%; padding: 0 18ch var(--xt-space-3) 0; font-size: var(--t-texte); font-weight: var(--xt-weight-semibold); }
fieldset.produit > legend .alerte { color: var(--c-danger); }
fieldset.produit > .retirer { position: absolute; top: var(--xt-space-3); right: var(--xt-space-3); min-height: 0; }
fieldset.produit > .corps { clear: both; }
fieldset.produit .fs:last-child { margin-bottom: 0; }
.l-precision { width: 32ch; max-width: 100%; }
.ajout-produit { margin: 0 0 var(--xt-space-4); }
.total-produits { display: flex; flex-wrap: wrap; align-items: center; gap: var(--xt-space-3); border-top: 1px solid var(--c-bord); padding-top: var(--xt-space-3); }
.total-produits .calcule { font-weight: var(--xt-weight-bold); }

/* Formulaire de facturation par produit et évolution par produit (issue #28, lot 2b). */
.fs[data-produits-facture-ensemble] { min-width: 0; }
.tableau.produits-facture td .champ { margin: 0; }
.tableau.produits-facture td:first-child { min-width: 16ch; }
.tableau.produits-facture tfoot td { text-align: right; }
.tableau.produits-facture tfoot td:first-child { text-align: left; }
.tableau.evolution-produits th, .tableau.evolution-produits td { min-width: 12ch; }
.tableau.evolution-produits tbody th { font-weight: var(--xt-weight-regular); text-align: left; white-space: nowrap; }

/* Facturation par produit sur petit écran : chaque produit forme un bloc empilé (A1, A2 de la QA). */
.fs[data-produits-facture-ensemble] { margin-bottom: var(--xt-space-4); }
@media (max-width: 600px) {
  .tableau.produits-facture, .tableau.produits-facture tbody, .tableau.produits-facture tfoot,
  .tableau.produits-facture tr, .tableau.produits-facture td { display: block; width: 100%; box-sizing: border-box; }
  .tableau.produits-facture thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tableau.produits-facture td:first-child { min-width: 0; }
  .tableau.produits-facture td[data-etiquette]::before { content: attr(data-etiquette); display: block; font-weight: var(--xt-weight-bold); margin-bottom: var(--xt-space-1); }
  .tableau.produits-facture td.num { text-align: left; }
  .tableau.produits-facture tfoot td, .tableau.produits-facture tfoot td:first-child { text-align: left; }
}

/* Liste à puces de la fenêtre « Supprimer ce contrat » (issue #69). */
dialog.fenetre ul.a-detruire { margin: var(--xt-space-2) 0 0; padding-left: var(--xt-space-6); }
dialog.fenetre ul.a-detruire li { margin-bottom: var(--xt-space-1); }

/* Issue #70 : déplacer les facturations, puis supprimer le contrat (maquette v1 du designer).
   Seulement des jetons --xt-* ou leurs alias. */

/* Choix du contrat qui reçoit : la pastille Ouvert / Clos suit le nom, la ligne d'aide
   donne les produits et le nombre de facturations. Un nom long passe à la ligne. */
.choix-cible .titre-choix { overflow-wrap: anywhere; }
.choix-cible .titre-choix .pastille { margin: 0 0 0 var(--xt-space-2); white-space: nowrap; }
.associations { margin-top: var(--xt-space-6); padding-top: var(--xt-space-4); border-top: 1px solid var(--c-bord); }
.associations > h3 { margin-bottom: var(--xt-space-3); }
/* Pleine largeur de la carte : le nom de produit choisi reste lisible en entier (A1, PR #73). */
.associations .champ select { width: 100%; max-width: 100%; }

/* Résumé au-dessus de l'aperçu : « 6 fusionnées, 2 ajoutées » en pastilles. */
.resume-apercu { display: flex; flex-wrap: wrap; align-items: center; gap: var(--xt-space-2); margin-bottom: var(--xt-space-3); }
.resume-apercu .pastille { margin: 0; }

/* Tableau d'aperçu : largeurs minimales sur grand écran ; empilé sous 600 px (plus bas). */
.tableau.apercu-deplacement td:first-child { min-width: 13ch; }
.tableau.apercu-deplacement td.factures { min-width: 10ch; }
.tableau.apercu-deplacement td.resultat { min-width: 30ch; }
.tableau.apercu-deplacement td.apres { min-width: 16ch; }
.tableau.apercu-deplacement td.apres .sec { white-space: normal; }
/* Ligne en conflit : filet rouge à gauche et texte rouge sur blanc (4,8:1). Pas de fond
   rouge pâle : le rouge foncé n'y atteindrait pas 4,5:1. */
.tableau.apercu-deplacement tr.en-conflit td:first-child { box-shadow: inset 4px 0 0 var(--c-danger-bord); padding-left: var(--xt-space-3); }
.texte-conflit { display: block; color: var(--c-danger); font-weight: var(--xt-weight-semibold); }
.texte-conflit::before { content: "⚠ "; }
.tableau.apercu-deplacement .actions-conflit { display: flex; flex-wrap: wrap; gap: 0 var(--xt-space-3); margin-top: var(--xt-space-1); }
.tableau.apercu-deplacement .actions-conflit .btn-lien { padding-left: 0; }

/* Carte de confirmation : bord rouge, comme une carte de retard (geste définitif). */
.carte.a-supprimer { border-left: 6px solid var(--c-danger-bord); }
.carte.a-supprimer form > p, .carte.a-supprimer form > .encadre, .carte.a-supprimer > p { margin-bottom: var(--xt-space-4); }
.carte.a-supprimer ul.a-detruire { margin: var(--xt-space-2) 0 0; padding-left: var(--xt-space-6); }

/* Bouton d'une barre d'actions qui passe à la ligne au lieu de déborder à 320 px. */
.barre-actions .btn.retour-ligne { white-space: normal; text-align: center; line-height: 1.3; padding-top: var(--xt-space-2); padding-bottom: var(--xt-space-2); }

/* Fenêtre « Supprimer le contrat » : l'autre chemin, au-dessus de la case (CA1). */
dialog.fenetre .chemin-deplacer { margin: var(--xt-space-4) 0; }

/* Petit écran : chaque facturation devient un bloc empilé, comme les produits d'une
   facturation (#28). Le résultat reste visible sans défilement de côté. */
@media (max-width: 600px) {
  .tableau.apercu-deplacement, .tableau.apercu-deplacement tbody,
  .tableau.apercu-deplacement tr, .tableau.apercu-deplacement td { display: block; width: 100%; }
  .tableau.apercu-deplacement thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tableau.apercu-deplacement tr { border-bottom: 2px solid var(--c-bord); padding: var(--xt-space-2) 0; }
  .tableau.apercu-deplacement td { border-bottom: none; padding: var(--xt-space-1) var(--xt-space-2); min-width: 0; }
  .tableau.apercu-deplacement td:first-child, .tableau.apercu-deplacement td.resultat, .tableau.apercu-deplacement td.factures, .tableau.apercu-deplacement td.apres { min-width: 0; }
  .tableau.apercu-deplacement td[data-etiquette]::before { content: attr(data-etiquette); display: block; color: var(--c-texte-doux); font-weight: var(--xt-weight-semibold); }
  .tableau.apercu-deplacement td.num { text-align: left; white-space: normal; }
  .tableau.apercu-deplacement tr.en-conflit td:first-child { box-shadow: none; }
  .tableau.apercu-deplacement tr.en-conflit { box-shadow: inset 4px 0 0 var(--c-danger-bord); padding-left: var(--xt-space-2); }
  .tableau.apercu-deplacement td:first-child { font-weight: var(--xt-weight-semibold); }
  .tableau.apercu-deplacement td:first-child::before { display: none; }
  .tableau.apercu-deplacement td.factures::before, .tableau.apercu-deplacement td.num:not(.apres)::before { display: inline; content: attr(data-etiquette) "\a0: "; }
}
/* Grand écran : la période reste sur une ligne. */
@media (min-width: 1100px) {
  .tableau.apercu-deplacement td:first-child { white-space: nowrap; }
}
.tableau td .p-excedent { white-space: nowrap; }

/* Pièces jointes : zone de dépôt par glisser-déposer (issue #76). Sans JavaScript, ou sur un
   écran tactile, le formulaire reste tel quel, sans cadre. */
.zone-depot.active { border: 2px dashed var(--c-bord-champ); border-radius: var(--xt-radius-card); padding: var(--xt-space-4); }
.zone-depot.active.fichier-sur-page { border-color: var(--c-accent); }
.zone-depot.active.survol { border-style: solid; border-color: var(--c-accent); background: var(--c-accent-pale); }
.zone-depot.active[aria-busy="true"] { border-style: solid; border-color: var(--c-bord-champ); background: var(--c-inset); cursor: progress; }
.depot-invite { display: flex; align-items: center; gap: var(--xt-space-2); margin: 0 0 var(--xt-space-2); font-weight: var(--xt-weight-semibold); }
.depot-invite[hidden], .depot-ou[hidden] { display: none; }
.depot-icone { flex: none; }
.depot-ou { margin: 0 0 var(--xt-space-3); }
.resultat-depot { margin-top: var(--xt-space-3); }
.resultat-depot:empty { margin-top: 0; }
.resultat-depot .bandeau { overflow-wrap: anywhere; }
.resultat-depot .bandeau:last-child { margin-bottom: 0; }
.b-erreur h3 { font-size: var(--t-texte); margin-bottom: var(--xt-space-1); color: var(--c-danger); }
.b-erreur h3::before { content: "⚠ "; }
.liste-refus { list-style: disc; margin: var(--xt-space-1) 0 0; padding-left: var(--xt-space-6); overflow-wrap: anywhere; }
.liste-refus strong { font-weight: var(--xt-weight-semibold); }
@media (pointer: coarse) {
  .zone-depot.active { border: none; padding: 0; }
  .zone-depot.active .depot-invite, .zone-depot.active .depot-ou { display: none; }
}

/* Issue #93 : note pour la facturation (maquette v1). Au Suivi, sous la période : largeur
   bornée pour ne pas élargir la colonne, minimum sur téléphone pour ne pas l'écraser. */
.note-facturation { display: block; max-width: 44ch; margin: var(--xt-space-1) 0 var(--xt-space-2); }
@media (max-width: 600px) { .note-facturation { min-width: 26ch; } }
.encadre.note-fact .carte-tete { margin-bottom: 0; }
.encadre.note-fact .notes { margin-top: var(--xt-space-1); overflow-wrap: anywhere; }
.bandeau.note-fact .notes { overflow-wrap: anywhere; }

/* Issue #96 : écran « Préparer la soumission de renouvellement » (maquette v1, lot A).
   Bouton désactivé distinct : texte doux sur fond inset (raison écrite à côté). */
.btn:disabled, .btn:disabled:hover { background: var(--c-inset); color: var(--c-texte-doux); border-color: var(--c-bord); cursor: not-allowed; }
.grille-soumission { align-items: start; }
.comparaison-contrat { margin-top: var(--xt-space-4); }
.tableau.produits-proposes { width: auto; min-width: min(720px, 100%); }
.tableau.produits-proposes td:first-child { min-width: 0; }
.tableau.produits-proposes td { overflow-wrap: normal; }
.tableau.produits-proposes td.an-passe { white-space: nowrap; }
.tableau.produits-proposes input.champ-court { width: 9ch; }
.tableau.produits-proposes .non-incluse { display: none; }
.tableau.produits-proposes tr.exclue .non-incluse { display: block; }
.tableau.produits-proposes tr.exclue .barrable { text-decoration: line-through; color: var(--c-texte-doux); }
/* A5 (QA de la PR #103) : sur la fiche du contrat, « En retard de 648 jours » passe à la
   ligne entre deux mots plutôt que de déborder de sa case sous 420 px. */
.paires dd .pastille.p-retard { white-space: normal; }
@media (max-width: 479.98px) {
  .paires.paires-an-passe { grid-template-columns: minmax(0, 1fr); }
  .tableau.produits-proposes th, .tableau.produits-proposes td { padding: var(--xt-space-2) var(--xt-space-1); }
  .tableau.produits-proposes td.an-passe, .tableau.produits-proposes thead th { white-space: normal; }
  .tableau.produits-proposes input.champ-court { width: 7ch; }
}

/* Issue #96, lot B : écran « Valider la soumission de renouvellement » (maquette E) et
   carte « Soumissions à valider » du Suivi (maquette A). Jetons `--xt-*` et alias seulement. */
.titre-essai .prefixe-essai { display: block; margin-bottom: var(--xt-space-1); }
.titre-essai textarea { display: block; min-height: 0; max-width: 90ch; resize: none; field-sizing: content; }
.periode-validation { display: flex; flex-wrap: wrap; align-items: center; gap: var(--xt-space-2); }
.champ-date { width: 12ch; }
.tableau.produits-valides td { overflow-wrap: normal; vertical-align: top; }
.tableau.produits-valides td.an-passe { white-space: nowrap; }
.tableau.produits-valides input.champ-court { width: 9ch; }
.tableau.produits-valides input.champ-prix { width: 13ch; }
#sv-augmentation { width: 9ch; }
.tableau.produits-valides .non-incluse { display: none; }
.tableau.produits-valides tr.exclue .non-incluse { display: block; }
.tableau.produits-valides tr.exclue .barrable { text-decoration: line-through; color: var(--c-texte-doux); }
.tableau.produits-valides tfoot td { text-align: left; }
.tableau.produits-valides tfoot td.num { text-align: right; }
.total-soumission { font-size: var(--t-section); }
.note-courte { display: block; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .tableau.produits-valides, .tableau.produits-valides tbody, .tableau.produits-valides tfoot,
  .tableau.produits-valides tr, .tableau.produits-valides td { display: block; width: 100%; box-sizing: border-box; }
  .tableau.produits-valides thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tableau.produits-valides td[data-etiquette]::before { content: attr(data-etiquette); display: block; font-weight: var(--xt-weight-bold); margin-bottom: var(--xt-space-1); }
  .tableau.produits-valides td.num, .tableau.produits-valides tfoot td.num { text-align: left; }
  .tableau.produits-valides td.an-passe { white-space: normal; }
  .note-courte { max-width: 24ch; }
}
