/* REMOVAL TRANS DEEP — système de design commun (appli interne, espace client, signature).
   Couleurs issues du logo REMOVAL TRANS DEEP : bleu #2563EB, bleu ciel #0EA5E9, noir #0F172A.
   Les noms de classes et de variables sont ceux de la version 1 : tous les écrans en profitent sans modification. */

@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* --- Jetons de design (thème clair) ---------------------------------------------------------- */
:root {
  color-scheme: light;
  --bleu: #1E40AF;            /* marque : texte fort, titres, chiffres */
  --bleu-fond: #2563EB;       /* marque : fonds (boutons, en-têtes de document) */
  --bleu-2: #1D4ED8;
  --bleu-3: #2563EB;          /* liens, focus */
  --bleu-pale: #EEF3FF;
  --orange: #0284C7;          /* action principale */
  --orange-fonce: #0369A1;
  --orange-texte: #0369A1;    /* orange lisible sur fond clair (AA) */
  --orange-pale: #E8F6FD;
  --papier: #F6F8FB;          /* fond de page */
  --papier-2: #EEF2F7;        /* fonds discrets, survols */
  --blanc: #FFFFFF;           /* surfaces (cartes, champs) */
  --survol: #F3F6FA;
  --carton: #C9965C;
  --carton-fonce: #8A6236;
  --carton-pale: #F7EEE3;
  --encre: #0F172A;
  --gris: #475569;
  --gris-clair: #94A3B8;
  --trait: #E2E8F0;
  --trait-fort: #CBD5E1;
  --vert: #15803D;
  --vert-pale: #E9F7EF;
  --rouge: #DC2626;
  --rouge-pale: #FEF0F0;
  --jaune: #B45309;
  --jaune-pale: #FFF7E6;
  --sur-orange: #FFFFFF;      /* texte posé sur l'orange */
  --primaire: #2563EB;        /* boutons d'action principale */
  --primaire-fonce: #1E40AF;
  --primaire-pale: #EEF3FF;   /* fond des choix sélectionnés */
  --dispo: #1F9D55; --dispo-bientot: #9DB83A; --libre-4h: #F2911C; --pris: #E5484D;
  --or-1: #FFE39A; --or-2: #E2B34A; --or-3: #A8731A;

  --police: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --police-titre: "Barlow", "Segoe UI", system-ui, sans-serif;
  --police-etroite: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
  --rayon: 10px;
  --rayon-l: 16px;
  --rayon-xl: 22px;
  --ombre: 0 1px 2px rgba(15, 27, 45, .04), 0 1px 3px rgba(15, 27, 45, .06);
  --ombre-moyenne: 0 4px 14px -4px rgba(15, 27, 45, .12), 0 2px 4px rgba(15, 27, 45, .04);
  --ombre-haute: 0 24px 48px -12px rgba(15, 27, 45, .28);
  --anneau: 0 0 0 4px rgba(37, 99, 235, .16);
  --degrade-marque: linear-gradient(135deg, #1E40AF 0%, #2563EB 55%, #0EA5E9 100%);
  --rayures: linear-gradient(90deg, #2563EB, #0EA5E9);
  --transition: 160ms cubic-bezier(.3, .7, .3, 1);
}

/* --- Thème sombre : automatique (réglage du système) ou choisi dans l'application -------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bleu: #A5BEFF; --bleu-fond: #3B6EF0; --bleu-2: #3466E8; --bleu-3: #8EAEFF; --bleu-pale: #14213F;
    --orange: #38BDF8; --orange-fonce: #4FC3F7; --orange-texte: #6CCFF7; --orange-pale: #0E2A3A;
    --primaire-pale: #14213F; --primaire: #3B76F6; --primaire-fonce: #5B8DF8;
    --papier: #0B1220; --papier-2: #152033; --blanc: #111A2A; --survol: #17233A;
    --carton: #D9A86C; --carton-fonce: #E2BC8D; --carton-pale: #2D2419;
    --encre: #E7EDF6; --gris: #9DACC2; --gris-clair: #6E7F98; --trait: #213049; --trait-fort: #33455F;
    --vert: #4ADE80; --vert-pale: #0F2E1D; --rouge: #FF7B7B; --rouge-pale: #3A1618; --jaune: #F6C451; --jaune-pale: #33280D;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4); --ombre-moyenne: 0 6px 16px -6px rgba(0, 0, 0, .6);
    --ombre-haute: 0 24px 48px -12px rgba(0, 0, 0, .7); --anneau: 0 0 0 4px rgba(130, 180, 238, .22);
    --degrade-marque: linear-gradient(135deg, #0B1E4F 0%, #1E40AF 60%, #0369A1 100%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bleu: #A5BEFF; --bleu-fond: #3B6EF0; --bleu-2: #3466E8; --bleu-3: #8EAEFF; --bleu-pale: #14213F;
  --orange: #38BDF8; --orange-fonce: #4FC3F7; --orange-texte: #6CCFF7; --orange-pale: #0E2A3A; --primaire-pale: #14213F; --primaire: #3B76F6; --primaire-fonce: #5B8DF8;
  --papier: #0B1220; --papier-2: #152033; --blanc: #111A2A; --survol: #17233A;
  --carton: #D9A86C; --carton-fonce: #E2BC8D; --carton-pale: #2D2419;
  --encre: #E7EDF6; --gris: #9DACC2; --gris-clair: #6E7F98; --trait: #213049; --trait-fort: #33455F;
  --vert: #4ADE80; --vert-pale: #0F2E1D; --rouge: #FF7B7B; --rouge-pale: #3A1618; --jaune: #F6C451; --jaune-pale: #33280D;
  --ombre: 0 1px 2px rgba(0, 0, 0, .4); --ombre-moyenne: 0 6px 16px -6px rgba(0, 0, 0, .6);
  --ombre-haute: 0 24px 48px -12px rgba(0, 0, 0, .7); --anneau: 0 0 0 4px rgba(130, 180, 238, .22);
  --degrade-marque: linear-gradient(135deg, #0B1E4F 0%, #1E40AF 60%, #0369A1 100%);
}

/* --- Base ------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--police); font-size: 15px; line-height: 1.55; color: var(--encre);
  background: var(--papier); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu-3); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bleu); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bleu-3); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--primaire) 28%, transparent); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--trait-fort); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3, .titre { font-family: var(--police-titre); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin: 0; color: var(--encre); }
h1 { font-size: 28px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 .7em; }
small, .discret { color: var(--gris); font-size: 13px; }
.chiffre { font-family: var(--police-titre); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }

.ic { width: 20px; height: 20px; flex: none; }
.ic-s { width: 16px; height: 16px; flex: none; }
.ic-l { width: 28px; height: 28px; flex: none; }

/* --- Boutons ---------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--trait-fort); border-radius: var(--rayon); background: var(--blanc); color: var(--encre);
  font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--ombre);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn:hover { background: var(--survol); border-color: var(--gris-clair); color: var(--encre); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: none; box-shadow: var(--anneau); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .ic, .btn .ic-s { opacity: .9; }
.btn-principal { background: var(--primaire); border-color: transparent; color: #fff;
  box-shadow: 0 1px 2px rgba(29, 78, 216, .3), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-principal:hover { background: var(--primaire-fonce); border-color: transparent; color: #fff; }
.btn-bleu { background: var(--bleu-fond); border-color: transparent; color: #fff; }
.btn-bleu:hover { background: var(--bleu-2); border-color: transparent; color: #fff; }
.btn-danger { color: var(--rouge); border-color: color-mix(in srgb, var(--rouge) 35%, var(--trait)); }
.btn-danger:hover { background: var(--rouge-pale); color: var(--rouge); border-color: var(--rouge); }
.btn-plat { border-color: transparent; background: transparent; box-shadow: none; }
.btn-plat:hover { background: var(--papier-2); border-color: transparent; }
.btn-petit { min-height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; gap: 6px; }
.btn-grand { min-height: 54px; padding: 0 24px; font-size: 16.5px; border-radius: var(--rayon-l); }
.btn-icone { width: 40px; padding: 0; }
.btn.charge { position: relative; color: transparent !important; pointer-events: none; }
.btn.charge::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2.5px solid var(--gris-clair); border-right-color: transparent; border-radius: 50%; animation: tour .8s linear infinite; }
@keyframes tour { to { transform: rotate(360deg); } }

/* --- Formulaires ----------------------------------------------------------------------------- */
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.champ > span, .etiquette-champ { font-size: 13px; font-weight: 600; color: var(--gris); }
.champ > span .obligatoire { color: var(--orange-texte); }
.saisie, .champ input:not([type=checkbox]):not([type=radio]), .champ select, .champ textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--trait-fort); border-radius: var(--rayon);
  background: var(--blanc); color: var(--encre); transition: border-color var(--transition), box-shadow var(--transition);
}
.champ textarea { min-height: 88px; resize: vertical; }
.champ input:hover, .champ select:hover, .champ textarea:hover, .saisie:hover { border-color: var(--gris-clair); }
.champ input:focus, .champ select:focus, .champ textarea:focus, .saisie:focus { outline: none; border-color: var(--bleu-3); box-shadow: var(--anneau); }
.champ input::placeholder, .saisie::placeholder, textarea::placeholder { color: var(--gris-clair); }
.champ.erreur input, .champ.erreur select, .champ.erreur textarea { border-color: var(--rouge); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rouge) 14%, transparent); }
.champ .aide { font-size: 12.5px; color: var(--gris); }
.champ .msg-erreur { font-size: 12.5px; color: var(--rouge); font-weight: 600; }
.case { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.5px; }
.case input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primaire); flex: none; }
.grille-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 18px; }
.grille-form .large { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
select { cursor: pointer; }

/* --- Étiquettes de statut : pastilles arrondies avec point de couleur ------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px;
  font-weight: 600; font-size: 12.5px; line-height: 1.6; white-space: nowrap;
  background: var(--papier-2); color: var(--gris); border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tag-bleu { background: var(--bleu-pale); color: var(--bleu-3); }
.tag-orange { background: var(--orange-pale); color: var(--orange-texte); }
.tag-vert { background: var(--vert-pale); color: var(--vert); }
.tag-rouge { background: var(--rouge-pale); color: var(--rouge); }
.tag-jaune { background: var(--jaune-pale); color: var(--jaune); }
.tag-carton { background: var(--carton-pale); color: var(--carton-fonce); }
.tag-plein { background: var(--bleu-fond); color: #fff; border-color: transparent; }
.tag-plein::before { background: #6BE29D; box-shadow: 0 0 0 3px rgba(107, 226, 157, .25); }
.pastille-societe { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--gris); }
.pastille-societe i { width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--bleu-3)); }

/* --- Cartes ---------------------------------------------------------------------------------- */
.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-l); box-shadow: var(--ombre); }
.carte-corps { padding: 20px 22px; }
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--trait); }
.carte-tete h2, .carte-tete h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.carte-tete h2 > .ic, .carte-tete h3 > .ic { color: var(--orange-texte); background: var(--orange-pale); border-radius: 9px; padding: 5px; width: 30px; height: 30px; }

/* --- Tableaux -------------------------------------------------------------------------------- */
.tableau-conteneur { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tableau { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.tableau th { text-align: left; font-weight: 600; font-size: 12.5px; letter-spacing: .02em; color: var(--gris); padding: 11px 14px;
  border-bottom: 1px solid var(--trait); white-space: nowrap; background: var(--survol); position: sticky; top: 0; z-index: 1; }
.tableau td { padding: 12px 14px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tr.cliquable { cursor: pointer; }
.tableau tr.cliquable td { transition: background var(--transition); }
.tableau tr.cliquable:hover td { background: var(--survol); }
.tableau .droite, .droite { text-align: right; }
.tableau tfoot td { font-weight: 700; border-top: 1px solid var(--trait-fort); border-bottom: 0; background: var(--survol); }

/* --- Divers ---------------------------------------------------------------------------------- */
.rangee { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pile { display: flex; flex-direction: column; gap: 14px; }
.espace { flex: 1; }
.separateur { height: 1px; background: var(--trait); margin: 18px 0; border: 0; }
.vide { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 20px; color: var(--gris); }
.vide svg.illus { width: 112px; height: 84px; color: var(--gris-clair); padding: 14px; background: var(--papier-2); border-radius: 50%; box-sizing: content-box; }
.vide strong { font-size: 17px; color: var(--encre); }
.bandeau { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--rayon); background: var(--bleu-pale); color: var(--bleu); font-size: 14.5px;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.bandeau .ic { margin-top: 1px; }
.bandeau-alerte { background: var(--rouge-pale); color: var(--rouge); }
.bandeau-orange { background: var(--orange-pale); color: var(--orange-texte); }
.bandeau-vert { background: var(--vert-pale); color: var(--vert); }
.rayures { height: 4px; background: var(--rayures); border-radius: 4px; }
.barre { height: 8px; border-radius: 99px; background: var(--papier-2); overflow: hidden; }
.barre > i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--primaire), #60A5FA); border-radius: 99px; transition: width .5s; }
.squelette { background: linear-gradient(90deg, var(--papier-2) 25%, var(--survol) 50%, var(--papier-2) 75%); background-size: 200% 100%; animation: squelette 1.2s infinite; border-radius: var(--rayon); min-height: 18px; }
@keyframes squelette { to { background-position: -200% 0; } }

/* --- Fenêtres modales et notifications ------------------------------------------------------------- */
.voile { position: fixed; inset: 0; background: rgba(8, 15, 28, .5); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center;
  padding: 7vh 16px 16px; z-index: 70; overflow-y: auto; animation: apparait .15s ease-out; }
.modale { width: min(640px, 100%); background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-xl); box-shadow: var(--ombre-haute); overflow: hidden; animation: monte .22s cubic-bezier(.2, .8, .3, 1); }
.modale-large { width: min(940px, 100%); }
.modale-tete { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--trait); }
.modale-tete > .ic { color: var(--orange-texte); }
.modale-tete h2 { flex: 1; font-size: 18px; }
.modale-corps { padding: 22px; }
.modale-pied { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; background: var(--survol); border-top: 1px solid var(--trait); flex-wrap: wrap; }
@keyframes apparait { from { opacity: 0; } }
@keyframes monte { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 90; max-width: min(400px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: #10203A; color: #EEF3FA; box-shadow: var(--ombre-haute);
  font-size: 14.5px; animation: monte .22s; border: 1px solid rgba(255, 255, 255, .08); }
.toast > .ic-s:first-child { margin-top: 2px; color: #8EC1FF; }
.toast.erreur > .ic-s:first-child { color: #FF8A80; }
.toast.ok > .ic-s:first-child { color: #6BE29D; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; opacity: .6; padding: 2px; border-radius: 6px; }
.toast button:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #fff; }
  .pas-imprimer { display: none !important; }
}

.texte-brut { white-space: pre-wrap; margin: 0; }
p .ic-s, small .ic-s, a .ic-s, span.discret .ic-s, li .ic-s, td .ic-s { display: inline-block; vertical-align: -3px; }

/* --- Icônes d'état ----------------------------------------------------------------------------- */
svg.ic:has(use[href$="#euro"]), svg.ic-s:has(use[href$="#euro"]), svg.ic-l:has(use[href$="#euro"]) { color: var(--or-3); }
.piece-or { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(140deg, var(--or-1), var(--or-2) 55%, var(--or-3)); color: #6B4700 !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.piece-or svg { width: 22px; height: 22px; stroke-width: 2.2; position: relative; color: #5C3D00 !important; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 8px; border-radius: 999px; background: var(--pris); color: #fff; font-weight: 700; font-size: 11.5px; letter-spacing: .08em; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: battement 1.2s ease-in-out infinite; }
@keyframes battement { 50% { opacity: .25; transform: scale(.7); } }
.jeton { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--fond, var(--bleu-pale)); color: var(--trait-c, var(--bleu-3)); }
.jeton svg { width: 22px; height: 22px; }
.jeton.vif { --fond: var(--pris); --trait-c: #fff; }
.jeton.vif::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--pris); animation: onde 1.8s ease-out infinite; }
@keyframes onde { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.jeton.orange { --fond: var(--orange-pale); --trait-c: var(--orange-texte); }
.jeton.vert { --fond: var(--vert-pale); --trait-c: var(--vert); }
.jeton.gris { --fond: var(--papier-2); --trait-c: var(--gris-clair); }
.jeton.rouge { --fond: var(--pris); --trait-c: #fff; }
.dispo-pastille { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12.5px; }
.dispo-pastille::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c-dispo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-dispo) 22%, transparent); }
.etat-dispo { --c-dispo: var(--dispo); }
.etat-1h { --c-dispo: var(--dispo-bientot); }
.etat-4h { --c-dispo: var(--libre-4h); }
.etat-pris { --c-dispo: var(--pris); }
.etat-atelier { --c-dispo: #8C959C; }
svg.ic:has(use[href$="#suivi"]), svg.ic-s:has(use[href$="#suivi"]) { color: var(--pris); }
.jeton svg:has(use[href$="#suivi"]) { color: #fff; }

/* --- Téléphone : tableaux en fiches empilées (titres de colonnes posés par lib.js) ------------------ */
@media (max-width: 640px) {
  table.tableau.empilable, table.tableau.empilable > tbody, table.tableau.empilable > tfoot, table.tableau.empilable tr { display: block; width: 100%; }
  table.tableau.empilable > thead { display: none; }
  table.tableau.empilable tr { padding: 12px 16px; border-bottom: 1px solid var(--trait); }
  table.tableau.empilable tbody tr:last-child { border-bottom: 0; }
  table.tableau.empilable td { display: block; padding: 4px 0; border: 0; text-align: right; overflow: hidden; min-height: 26px; }
  table.tableau.empilable td::before { content: attr(data-label); float: left; max-width: 42%; margin: 2px 12px 0 0; text-align: left;
    font-size: 12px; font-weight: 600; color: var(--gris); }
  table.tableau.empilable td > .rangee, table.tableau.empilable td > .equipe-initiales { justify-content: flex-end; }
  table.tableau.empilable td > small, table.tableau.empilable td > br + small { display: block; }
  table.tableau.empilable td:first-child { display: block; text-align: left; font-size: 15px; font-weight: 600; padding-bottom: 6px; }
  table.tableau.empilable td:first-child::before, table.tableau.empilable td[data-label=""]::before { display: none; }
  table.tableau.empilable td:empty { display: none; }
  table.tableau.empilable td input, table.tableau.empilable td select { max-width: 58%; }
  table.tableau.empilable td:first-child input, table.tableau.empilable td:first-child select { max-width: 100%; width: 100%; }
  table.tableau.empilable > tfoot tr { background: var(--survol); }
  table.tableau.empilable tr.cliquable:active { background: var(--survol); }
  .tableau-conteneur:has(> table.empilable) { overflow-x: visible; }
}
/* Écrans tactiles : cibles d'au moins 40 px. */
@media (pointer: coarse), (max-width: 640px) {
  .btn-petit { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
  .btn-icone { min-width: 40px; min-height: 40px; }
}
