/* ------------------------------------------------------------------ thème */

:root {
  color-scheme: light;
  --fond: #f3f4f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f4;
  --bord: #e5e7ec;
  --bord-fort: #d0d5dd;
  --texte: #101828;
  --texte-2: #475467;
  --discret: #667085;
  --pale: #98a2b3;

  --accent: #3b5bdb;
  --accent-survol: #3049c0;
  --accent-doux: #edf1ff;
  --accent-plein: #3b5bdb;
  --accent-plein-survol: #3049c0;
  --anneau: rgba(59, 91, 219, .22);

  --alerte: #b54708;
  --alerte-doux: #fffaeb;
  --alerte-bord: #fedf89;
  --ok: #067647;
  --ok-doux: #ecfdf3;
  --ok-bord: #abefc6;
  --danger: #d92d20;
  --danger-doux: #fef3f2;

  --s-demande: #3b5bdb;
  --s-prepare: #7f56d9;
  --s-envoye: #dc6803;
  --s-livre: #079455;
  --s-annule: #98a2b3;

  --rayon: 14px;
  --rayon-p: 9px;
  --ombre: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --ombre-haute: 0 28px 60px -16px rgba(16, 24, 40, .28), 0 0 0 1px rgba(16, 24, 40, .04);
  --doux: cubic-bezier(.2, .8, .2, 1);
  --police: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --police-titre: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fond: #0c0f14;
    --surface: #151920;
    --surface-2: #1a1f27;
    --surface-3: #222833;
    --bord: #272e39;
    --bord-fort: #363e4c;
    --texte: #eef1f6;
    --texte-2: #c3c9d4;
    --discret: #8b95a6;
    --pale: #5d6677;
    --accent: #6f8cff;
    --accent-survol: #8ba2ff;
    --accent-doux: rgba(111, 140, 255, .14);
    --accent-plein: #4263eb;
    --accent-plein-survol: #4c6ef5;
    --anneau: rgba(111, 140, 255, .32);
    --alerte: #fdb022;
    --alerte-doux: rgba(253, 176, 34, .09);
    --alerte-bord: rgba(253, 176, 34, .28);
    --ok: #47cd89;
    --ok-doux: rgba(71, 205, 137, .09);
    --ok-bord: rgba(71, 205, 137, .28);
    --danger: #f97066;
    --danger-doux: rgba(249, 112, 102, .12);
    --s-demande: #6f8cff;
    --s-prepare: #a48afb;
    --s-envoye: #fd853a;
    --s-livre: #47cd89;
    --s-annule: #677184;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .02);
    --ombre-haute: 0 28px 60px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  grid-template-columns: minmax(0, 1fr); /* aucun contenu ne doit élargir la page au-delà de l'écran */
  background: var(--fond);
  color: var(--texte);
  font: 14px/1.45 var(--police);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h2, h3 { font-family: var(--police-titre); margin: 0; }

.ico { flex: none; display: block; }
[data-ico] { display: inline-flex; }

::selection { background: var(--anneau); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bord-fort); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--pale); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.01em; }
.discret { color: var(--discret); }

/* ------------------------------------------------------------------ boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--rayon-p);
  border: 1px solid var(--bord);
  background: var(--surface);
  color: var(--texte);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s, opacity .15s;
  box-shadow: var(--ombre);
}
.bouton:hover { background: var(--surface-2); border-color: var(--bord-fort); }
.bouton:active { transform: translateY(1px); }
.bouton[disabled], .bouton.inactif { opacity: .45; pointer-events: none; }

.bouton.principal { background: var(--accent-plein); border-color: transparent; color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .1), inset 0 1px 0 rgba(255, 255, 255, .12); }
.bouton.principal:hover { background: var(--accent-plein-survol); }
.bouton.fantome { background: transparent; box-shadow: none; border-color: transparent; color: var(--texte-2); }
.bouton.fantome:hover { background: var(--surface-3); }
.bouton.danger { color: var(--danger); }
.bouton.danger:hover { background: var(--danger-doux); border-color: transparent; }
.bouton.danger.plein { background: var(--danger); color: #fff; border-color: transparent; }

.icone {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--discret);
  transition: background .15s, color .15s;
}
.icone:hover { background: var(--surface-3); color: var(--texte); }

.lien { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: 13px; }
.lien:hover { text-decoration: underline; }
.lien.discret { color: var(--discret); font-weight: 500; }

kbd {
  font: 11px var(--police);
  color: var(--pale);
  border: 1px solid var(--bord);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  background: var(--surface);
}

/* ------------------------------------------------------------------ barre du haut */

.barre {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--bord);
}

.marque { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.marque strong { display: block; font: 600 15px/1.2 var(--police-titre); }
.marque small { color: var(--discret); font-size: 12px; }
.logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-plein), #6e48d8);
  box-shadow: 0 6px 16px -6px var(--accent);
  transition: transform .2s var(--doux);
}
.logo:hover { transform: rotate(-8deg) scale(1.05); }
.logo.sonne { animation: sonne .7s ease-in-out; }

.icone.grande { width: 38px; height: 38px; border-radius: 10px; }

/* ------------------------------------------------------------------ accueil */

.accueil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 24px 0;
  font-size: 14.5px;
  color: var(--texte-2);
  min-height: 46px;
}
.accueil:empty { display: none; }
.accueil .salut { font: 600 17px var(--police-titre); color: var(--texte); margin-right: 4px; }
.accueil .salut .main { display: inline-block; transform-origin: 70% 80%; animation: coucou 1.8s ease-in-out .4s 2; }
.tache {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  border: 0;
  background: color-mix(in srgb, var(--s, var(--accent)) 12%, transparent);
  color: var(--s, var(--accent));
  font-weight: 600;
  font-size: 13.5px;
  transition: transform .15s var(--doux), background .15s;
}
.tache:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--s, var(--accent)) 20%, transparent); }
.tache b { font-variant-numeric: tabular-nums; }
.tache.alerte-filtre { --s: var(--alerte); }
.bravo { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; }

/* ------------------------------------------------------------------ réglages */

.reglages {
  position: fixed;
  inset: 66px 24px auto auto;
  width: 320px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--bord);
  border-radius: 16px;
  background: var(--surface);
  color: var(--texte);
  box-shadow: var(--ombre-haute);
}
.reglages:popover-open { animation: modale-entree .25s var(--doux); }
.reglages h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.reglage { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bord); cursor: pointer; }
.reglage > span { display: flex; flex-direction: column; font-weight: 600; font-size: 13.5px; }
.reglage small { font-weight: 400; color: var(--discret); font-size: 12px; }
.segments { display: flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-3); }
.segments button { width: 40px; height: 34px; border: 0; border-radius: 8px; background: none; font-weight: 700; color: var(--discret); transition: background .15s, color .15s; }
.segments button[aria-checked="true"] { background: var(--surface); color: var(--texte); box-shadow: var(--ombre); }
.interrupteur {
  appearance: none;
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  margin: 0;
  border-radius: 99px;
  background: var(--bord-fort);
  cursor: pointer;
  transition: background .2s;
}
.interrupteur::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .25s var(--doux);
}
.interrupteur:checked { background: var(--ok); }
.interrupteur:checked::after { transform: translateX(20px); }
.bouton.plein-largeur { width: 100%; justify-content: center; margin-top: 14px; }
.compte-utilisateur { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bord); font-size: 13px; color: var(--texte-2); }

/* ------------------------------------------------------------------ connexion (version en ligne) */

.connexion {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(circle at 20% 10%, var(--accent-doux), transparent 60%), var(--fond);
  animation: apparition .3s;
}
.connexion.sortie { animation: disparition .25s forwards; }
.connexion-carte {
  display: grid;
  gap: 14px;
  width: min(380px, 100%);
  padding: 32px 28px 28px;
  border: 1px solid var(--bord);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--ombre-haute);
  text-align: center;
  animation: modale-entree .45s var(--doux);
}
.connexion-carte.secoue { animation: secoue .4s; }
.connexion-carte h1 { margin: 4px 0 0; font: 600 22px var(--police-titre); }
.connexion-carte > p { margin: -8px 0 6px; color: var(--discret); }
.connexion-carte .champ { text-align: left; }
.connexion-carte .champ input { height: 44px; font-size: 15px; }
.connexion-carte .bouton { height: 44px; justify-content: center; font-size: 15px; }
.connexion-erreur { min-height: 18px; margin: -4px 0; color: var(--danger); font-size: 13px; }
.logo.grand { justify-self: center; width: 60px; height: 60px; border-radius: 16px; }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ------------------------------------------------------------------ guide */

.guide { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.guide li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--bord);
  color: var(--texte-2);
  animation: glisse .45s var(--doux) both;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}
.guide b { display: block; color: var(--texte); font-size: 14.5px; margin-bottom: 2px; }
.guide .emoji { font-size: 26px; line-height: 1; animation: rebond .6s var(--doux) both; animation-delay: calc(var(--i) * 90ms + 250ms); }
.titre-raccourcis { font-size: 14px; font-weight: 600; margin: 20px 0 10px; }
.raccourcis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0; }
.raccourcis div { display: flex; align-items: center; gap: 10px; }
.raccourcis dt { min-width: 92px; }
.raccourcis dd { margin: 0; color: var(--texte-2); font-size: 13px; }
.raccourcis kbd { font-size: 12px; color: var(--texte-2); }

/* ------------------------------------------------------------------ petits plaisirs */

.confettis { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
.badge.pop { animation: pop .5s var(--doux); }
.etapes .pastille.arrive { animation: rebond .6s var(--doux); }
#importer:hover .ico { animation: hop .6s var(--doux); }
.bouton[download]:hover .ico { animation: plonge .6s var(--doux); }
.zone-docs:hover .ico, .depot-cadre.survol .ico { animation: fretille .6s ease-in-out; }
.zone-depot .rond { animation: flotte 3.2s ease-in-out infinite; }
.pilule:hover { transform: translateY(-1px); }
.recap .barre-pile { transform-origin: left; animation: pousse .8s var(--doux) both; }
.encart.ok > .ico { animation: pop .5s var(--doux); }
.toast .emoji { font-size: 18px; line-height: 1; animation: rebond .6s var(--doux); }

.recherche {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--bord);
  background: var(--surface-2);
  color: var(--pale);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.recherche:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--anneau); color: var(--accent); }
.recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--texte); }
.recherche input::placeholder { color: var(--pale); }
.recherche input::-webkit-search-cancel-button { display: none; }

.actions { display: flex; gap: 8px; margin-left: auto; }

/* ------------------------------------------------------------------ onglets & filtres */

.outils {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px 0;
  min-height: 58px;
}

.onglets { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface-3); }
.onglet {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--discret);
  transition: color .2s;
}
.onglet.actif { color: var(--texte); }
.onglet-curseur {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--ombre);
  transition: transform .3s var(--doux), width .3s var(--doux);
}

.filtres { display: flex; flex-wrap: wrap; gap: 6px; transition: opacity .2s; }
.filtres.cache { opacity: 0; pointer-events: none; }

.pilule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 99px;
  border: 1px solid var(--bord);
  background: var(--surface);
  color: var(--texte-2);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.pilule:hover { border-color: var(--bord-fort); }
.pilule .nb { font-variant-numeric: tabular-nums; color: var(--pale); font-weight: 600; font-size: 12px; }
.pilule.actif { background: var(--texte); border-color: var(--texte); color: var(--surface); }
.pilule.actif .nb { color: inherit; opacity: .65; }
.pilule.nul { opacity: .5; }
.pilule .point { width: 7px; height: 7px; border-radius: 50%; background: var(--s); }
.pilule.alerte-filtre { --s: var(--alerte); }

/* ------------------------------------------------------------------ mise en page */

main { position: relative; min-height: 0; padding: 14px 24px 24px; }

.vue { display: none; height: 100%; }
.vue.active { display: flex; flex-direction: column; animation: apparition .3s var(--doux); }

.carte {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  min-height: 0;
}

.partage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0px;
  gap: 0;
  height: 100%;
  transition: grid-template-columns .38s var(--doux), gap .38s var(--doux);
}
.partage.ouvert { grid-template-columns: minmax(0, 1fr) 470px; gap: 16px; }

.liste { display: flex; flex-direction: column; overflow: hidden; }
.partage.ouvert .col-maj { display: none; }
.defilement { overflow: auto; flex: 1; min-height: 0; }

/* ------------------------------------------------------------------ tableau */

.tableau { width: 100%; border-collapse: separate; border-spacing: 0; }
.tableau th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--discret);
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--bord);
  white-space: nowrap;
  user-select: none;
}
.tableau th[data-tri] { cursor: pointer; transition: color .15s; }
.tableau th[data-tri]:hover { color: var(--texte); }
.tableau th .fleche { display: inline-block; vertical-align: -2px; margin-left: 4px; opacity: 0; transition: opacity .15s, transform .2s; }
.tableau th.trie { color: var(--texte); }
.tableau th.trie .fleche { opacity: 1; }
.tableau th.trie.asc .fleche { transform: rotate(180deg); }
.tableau td { padding: 11px 14px; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .num { text-align: right; font-variant-numeric: tabular-nums; }
.tableau .etroit { width: 92px; }
.marques { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.marque-bl {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-doux);
}
.marque-bl.manque { color: var(--alerte); background: var(--alerte-doux); border: 1px dashed var(--alerte-bord); }
.marque-bl.photo { color: var(--s-prepare); background: color-mix(in srgb, var(--s-prepare) 12%, transparent); }

#lignes tr { cursor: pointer; transition: background .12s; }
#lignes tr:hover { background: var(--surface-2); }
#lignes tr.selection { background: var(--accent-doux); }
#lignes tr.selection td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
#lignes.entree tr { animation: glisse .35s var(--doux) both; animation-delay: calc(min(var(--i), 20) * 18ms); }
#lignes tr.flash { animation: flash 1.4s var(--doux); }

.etab { font-weight: 600; }
.sous { color: var(--discret); font-size: 12.5px; margin-top: 1px; }
.vide-cell { color: var(--pale); }

.badge {
  --s: var(--s-annule);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--s);
  background: color-mix(in srgb, var(--s) 11%, transparent);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.s-demande { --s: var(--s-demande); }
.s-envoye { --s: var(--s-envoye); }
.s-prepare { --s: var(--s-prepare); }
.s-livre { --s: var(--s-livre); }
.s-annule { --s: var(--s-annule); }

.marque-alerte {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--alerte);
  background: var(--alerte-doux);
}

/* ------------------------------------------------------------------ états vides */

.vide { display: none; padding: 48px 24px; text-align: center; color: var(--discret); }
.vide.visible { display: block; animation: apparition .3s var(--doux); }
.vide h3 { color: var(--texte); font-size: 17px; margin-bottom: 4px; }

.zone-depot {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 44px 24px;
  border: 2px dashed var(--bord-fort);
  border-radius: 18px;
  background: var(--surface-2);
  transition: border-color .2s, background .2s, transform .2s;
  cursor: pointer;
}
.zone-depot:hover { border-color: var(--accent); background: var(--accent-doux); transform: translateY(-2px); }
.zone-depot .rond {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  color: var(--accent);
  background: var(--accent-doux);
}

/* ------------------------------------------------------------------ panneau de détail */

.panneau { overflow: hidden auto; opacity: 0; transform: translateX(24px); transition: opacity .3s var(--doux), transform .38s var(--doux); }
.partage.ouvert .panneau { opacity: 1; transform: none; }
.panneau-contenu { padding: 20px 22px 22px; min-width: 468px; }
.panneau-contenu.change { animation: fondu .28s var(--doux); }

.p-tete { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.p-tete > div { flex: 1; min-width: 0; }
.p-tete h2 { font-size: 20px; line-height: 1.25; font-weight: 600; margin: 8px 0 3px; }
.p-tete p { margin: 0; color: var(--discret); font-size: 13px; }

.puce-ticket {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--bord);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--texte-2);
  transition: border-color .15s, color .15s;
}
.puce-ticket:hover { border-color: var(--accent); color: var(--accent); }

.p-section { padding: 16px 0; border-top: 1px solid var(--bord); }
.p-titre { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--discret); text-transform: uppercase; margin-bottom: 12px; }
.p-titre .compte { text-transform: none; letter-spacing: 0; font-weight: 500; }

.encart {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--alerte-bord);
  background: var(--alerte-doux);
  color: var(--alerte);
  font-size: 13px;
  margin-bottom: 16px;
}
.encart ul { margin: 0; padding: 0; list-style: none; }
.encart.ok { border-color: var(--ok-bord); background: var(--ok-doux); color: var(--ok); }
.encart.info { border-color: var(--bord); background: var(--surface-2); color: var(--texte-2); }

/* étapes d'avancement */
.etapes {
  --avance: 0;
  --n: 3;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.etapes::before, .etapes::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% / var(--n));
  height: 2px;
  border-radius: 2px;
}
.etapes::before { right: calc(50% / var(--n)); background: var(--bord); }
.etapes::after { width: calc((100% - 100% / var(--n)) * var(--avance)); background: var(--accent); transition: width .5s var(--doux); }
.etapes.annule { filter: grayscale(1); opacity: .5; }

.etapes button {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
}
.pastille {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bord);
  background: var(--surface);
  color: var(--pale);
  font-size: 12px;
  font-weight: 700;
  transition: all .3s var(--doux);
}
.etapes button:hover .pastille { border-color: var(--s); color: var(--s); transform: scale(1.08); }
.etapes .fait .pastille { background: var(--accent); border-color: var(--accent); color: #fff; }
.etapes .actuel .pastille { border-color: var(--s); color: var(--s); background: var(--surface); box-shadow: 0 0 0 5px color-mix(in srgb, var(--s) 16%, transparent); }
.etapes .nom { font-size: 12.5px; font-weight: 600; color: var(--discret); }
.etapes .actuel .nom { color: var(--texte); }
.etapes.termine .actuel .pastille { background: var(--s); border-color: var(--s); color: #fff; }
.etapes .date { font-size: 11.5px; color: var(--pale); min-height: 16px; font-variant-numeric: tabular-nums; }
.etapes .preuve { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--ok); }
.etapes .preuve.manque { color: var(--alerte); }

/* documents joints */
.documents { margin: 0 0 10px; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.documents li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px 7px 8px;
  border: 1px solid var(--bord);
  border-radius: 10px;
  background: var(--surface);
  animation: glisse .3s var(--doux);
  transition: border-color .15s, background .15s;
}
.documents li:hover { border-color: var(--bord-fort); }
.documents li.bl { border-color: var(--ok-bord); background: var(--ok-doux); }
.doc-ouvrir {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--discret);
  transition: color .15s, background .15s;
}
.documents li.bl .doc-ouvrir { background: var(--surface); color: var(--ok); }
.doc-ouvrir:hover { color: var(--accent); }
.documents li.photo { border-color: color-mix(in srgb, var(--s-prepare) 35%, transparent); background: color-mix(in srgb, var(--s-prepare) 6%, var(--surface)); }
.doc-ouvrir.vignette { width: 52px; height: 52px; padding: 0; overflow: hidden; border-radius: 9px; background: var(--surface-3); }
.doc-ouvrir.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--doux); }
.doc-ouvrir.vignette:hover img { transform: scale(1.12); }

.ajouts { display: flex; gap: 8px; }
.ajouts .zone-docs { flex: 1; }
.bouton-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
  width: 104px;
  border: 1.5px solid var(--bord);
  border-radius: 12px;
  background: var(--surface);
  color: var(--s-prepare);
  font-size: 12px;
  font-weight: 600;
  transition: border-color .2s, background .2s, transform .15s;
}
.bouton-photo:hover { border-color: var(--s-prepare); background: color-mix(in srgb, var(--s-prepare) 8%, var(--surface)); transform: translateY(-1px); }
.bouton-photo:hover .ico { animation: hop .6s var(--doux); }
.bouton-photo.attendu { border-color: var(--s-prepare); background: color-mix(in srgb, var(--s-prepare) 10%, var(--surface)); }
.zone-docs.attendu-photo { border-color: color-mix(in srgb, var(--s-prepare) 45%, transparent); background: color-mix(in srgb, var(--s-prepare) 6%, var(--surface)); color: var(--s-prepare); }
.zone-docs.attendu-photo b { color: var(--s-prepare); }

/* appareil photo */
.modale.camera { width: min(900px, calc(100vw - 48px)); }
.camera-cadre { position: relative; display: grid; place-items: center; background: #0b0d12; aspect-ratio: 16 / 9; max-height: calc(100vh - 220px); }
.camera-cadre video, .camera-cadre img { width: 100%; height: 100%; object-fit: contain; }
.camera-cadre img { animation: apparition .3s; }
.camera-message { position: absolute; inset: auto 24px; text-align: center; color: #e5e7ec; font-size: 15px; }
.camera-message:empty { display: none; }
.camera-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.camera-flash.flash { animation: flash-photo .45s ease-out; }
.declencheur { min-width: 190px; justify-content: center; }
@keyframes flash-photo { 0% { opacity: .9; } 100% { opacity: 0; } }

/* visionneuse de photos */
.visionneuse {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 10, 14, .92);
  color: #fff;
}
.visionneuse[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: apparition .25s; }
.visionneuse.sortie { animation: disparition .18s forwards; }
.visionneuse::backdrop { background: transparent; }
.visionneuse img { place-self: center; max-width: 94%; max-height: 94%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: modale-entree .3s var(--doux); }
.visionneuse-barre { display: flex; align-items: center; gap: 6px; padding: 14px 24px 20px; }
.visionneuse-barre span { flex: 1; font-weight: 600; }
.visionneuse .icone { color: #d0d5dd; width: 40px; height: 40px; }
.visionneuse .icone:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.visionneuse [data-action=precedente] .ico { transform: rotate(90deg); }
.visionneuse [data-action=suivante] .ico { transform: rotate(-90deg); }
.doc-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-nom { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-nom:hover { color: var(--accent); text-decoration: underline; }
a.doc-nom { display: block; color: inherit; text-decoration: none; }
.doc-infos small { color: var(--discret); font-size: 11.5px; }
.documents select {
  flex: none;
  width: 182px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--bord);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
}
.documents li.bl select { border-color: var(--ok-bord); color: var(--ok); font-weight: 600; }

.zone-docs {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px dashed var(--bord-fort);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--discret);
  text-align: left;
  transition: border-color .2s, background .2s, color .2s;
}
.zone-docs:hover { border-color: var(--accent); background: var(--accent-doux); color: var(--accent); }
.zone-docs span { display: flex; flex-direction: column; }
.zone-docs b { color: var(--texte); font-size: 13px; }
.zone-docs small { font-size: 12px; }
.zone-docs.attendu { border-color: var(--alerte-bord); background: var(--alerte-doux); color: var(--alerte); }
.zone-docs.attendu b { color: var(--alerte); }
.zone-docs.envoi { pointer-events: none; opacity: .7; }
.etapes-pied { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }

/* champs */
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ > span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--texte-2); }
.champ input, .champ textarea {
  width: 100%;
  padding: 8px 11px;
  border-radius: var(--rayon-p);
  border: 1px solid var(--bord-fort);
  background: var(--surface);
  outline: 0;
  transition: border-color .15s, box-shadow .15s, background .3s;
}
.champ textarea { resize: vertical; min-height: 40px; line-height: 1.45; }
.champ input:focus, .champ textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--anneau); }
.champ input::placeholder, .champ textarea::placeholder { color: var(--pale); }

.etiquette {
  display: none;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
}
.champ.manquant .etiquette.manque, .champ.invalide .etiquette.invalide { display: inline-flex; color: var(--alerte); background: var(--alerte-doux); }
.champ.auto .etiquette.auto { display: inline-flex; color: var(--accent); background: var(--accent-doux); }
.champ.manquant input, .champ.manquant textarea, .champ.invalide input { border-color: var(--alerte-bord); background: var(--alerte-doux); }
.champ.rempli input { animation: rempli 1.2s var(--doux); }

.ligne-suivi { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-bottom: 12px; }
.sauvegarde { display: inline-flex; align-items: center; gap: 6px; height: 36px; font-size: 12.5px; color: var(--pale); opacity: 0; transition: opacity .25s; }
.sauvegarde.visible { opacity: 1; }
.sauvegarde.ok { color: var(--ok); }

.materiel { margin: 0; padding: 0; list-style: none; }
.materiel li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--bord); }
.materiel li:last-child { border-bottom: 0; }
.materiel .modele { flex: 1; min-width: 0; }
.qte {
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-3);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; }
.infos dt { font-size: 12px; color: var(--discret); }
.infos dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }

.texte-libre { margin: 0 0 10px; white-space: pre-wrap; color: var(--texte-2); }
.texte-libre b { display: block; font-size: 12px; color: var(--discret); font-weight: 600; margin-bottom: 2px; }

.p-actions { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--bord); }
.p-actions .bouton.danger { margin-left: auto; }

/* ------------------------------------------------------------------ récap */

.indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.indicateur { padding: 16px 18px; position: relative; overflow: hidden; }
.indicateur::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--s); }
.indicateur small { color: var(--discret); font-weight: 600; font-size: 12.5px; }
.indicateur strong { display: block; font: 600 30px/1.15 var(--police-titre); font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.indicateur span { color: var(--pale); font-size: 12.5px; }

#vue-recap > .carte:last-child { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.carte-tete { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--bord); }
.carte-tete h3 { font-size: 15px; font-weight: 600; }
.legende { display: flex; gap: 14px; font-size: 12.5px; color: var(--discret); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 8px; height: 8px; border-radius: 3px; background: var(--s); }

.recap td.zero { color: var(--pale); }
.recap td.fort { font-weight: 700; }
.recap tfoot td { position: sticky; bottom: 0; background: var(--surface-2); font-weight: 700; border-top: 1px solid var(--bord); }
.recap .col-barre { width: 28%; }
.barre-pile { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.barre-pile > span { height: 100%; background: var(--s); transition: flex .4s var(--doux); }
.barre-pile > span + span { margin-left: 2px; }

/* ------------------------------------------------------------------ dépôt de fichier */

.depot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px;
  background: color-mix(in srgb, var(--fond) 70%, transparent);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.depot.visible { opacity: 1; pointer-events: auto; }
.depot-cadre {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  width: min(440px, 100%);
  min-height: 280px;
  padding: 40px;
  border: 2px dashed var(--bord-fort);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--ombre-haute);
  color: var(--discret);
  text-align: center;
  transform: scale(.96);
  transition: transform .3s var(--doux), border-color .2s, color .2s, background .2s;
}
.depot-cadre[hidden] { display: none; }
.depot.visible .depot-cadre { transform: none; }
.depot-cadre * { pointer-events: none; }
.depot-cadre.survol, .depot.seule .depot-cadre { border-color: var(--accent); color: var(--accent); }
.depot-cadre.survol { background: var(--accent-doux); transform: scale(1.02); }
.depot-cadre p { margin: 8px 0 0; font: 600 18px var(--police-titre); color: var(--texte); }
.depot-cadre small { color: var(--discret); }

/* ------------------------------------------------------------------ modales */

.modale {
  width: min(820px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--texte);
  box-shadow: var(--ombre-haute);
  overflow: hidden;
}
.modale.petite { width: min(440px, calc(100vw - 48px)); }
.modale[open] { display: flex; flex-direction: column; animation: modale-entree .32s var(--doux); }
.modale.sortie { animation: modale-sortie .18s ease-in forwards; }
.modale::backdrop { background: rgba(10, 14, 22, .45); backdrop-filter: blur(3px); animation: apparition .25s; }
.modale.sortie::backdrop { animation: disparition .18s forwards; }

.m-tete { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid var(--bord); }
.m-tete > div { flex: 1; }
.m-tete h2 { font-size: 19px; font-weight: 600; }
.m-tete p { margin: 3px 0 0; color: var(--discret); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.m-corps { padding: 18px 24px; overflow: auto; min-height: 0; flex: 1; }
.m-pied { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--bord); background: var(--surface-2); }
.m-pied .note { flex: 1; font-size: 12.5px; color: var(--discret); }
.m-pied .note.alerte { color: var(--alerte); }

.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.formulaire .plein { grid-column: 1 / -1; }

.annuaire { grid-column: 1 / -1; margin-top: -4px; min-height: 0; font-size: 13px; }
.annuaire:empty { display: none; }
.annuaire .ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--bord); animation: apparition .25s var(--doux); }
.annuaire .ok { color: var(--ok); }
.annuaire .alerte { color: var(--alerte); }
.annuaire .candidats { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.candidat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--bord);
  background: var(--surface);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.candidat:hover { border-color: var(--accent); background: var(--accent-doux); }
.candidat b { font-size: 12.5px; }
.candidat small { color: var(--discret); font-size: 11.5px; }

.titre-section { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 8px; }
.titre-section h3 { font-size: 14px; font-weight: 600; }
.titre-section span { font-size: 12.5px; color: var(--discret); }

.lignes-import { margin: 0; padding: 0; list-style: none; border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; }
.lignes-import li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--bord); transition: opacity .2s, background .2s; }
.lignes-import li:last-child { border-bottom: 0; }
.lignes-import li.zero { opacity: .45; }
.lignes-import li.zero .modele { text-decoration: line-through; }
.lignes-import .modele { flex: 1; min-width: 0; }
.lignes-import .vide-liste { justify-content: center; padding: 20px; color: var(--alerte); background: var(--alerte-doux); }

.compteur { display: inline-flex; align-items: center; border: 1px solid var(--bord-fort); border-radius: 9px; overflow: hidden; background: var(--surface); }
.compteur button { width: 30px; height: 30px; border: 0; background: none; color: var(--discret); font-size: 16px; transition: background .15s, color .15s; }
.compteur button:hover { background: var(--surface-3); color: var(--texte); }
.compteur input { width: 44px; height: 30px; border: 0; border-inline: 1px solid var(--bord); text-align: center; font-weight: 700; background: none; outline: 0; -moz-appearance: textfield; }
.compteur input::-webkit-inner-spin-button { display: none; }

.confirmation-corps { padding: 22px 24px 8px; }
.confirmation-corps h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.confirmation-corps p { margin: 0; color: var(--texte-2); }

/* ------------------------------------------------------------------ toasts */

.toasts { position: fixed; bottom: 22px; left: 50%; z-index: 60; display: grid; gap: 8px; justify-items: center; transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  background: #101828;
  color: #fff;
  font-weight: 500;
  font-size: 13.5px;
  box-shadow: var(--ombre-haute);
  animation: toast-entree .35s var(--doux);
  pointer-events: auto;
}
.toast.sortie { animation: toast-sortie .25s ease-in forwards; }
.toast .ico { color: #47cd89; }
.toast.erreur .ico { color: #f97066; }
@media (prefers-color-scheme: dark) { .toast { background: #eef1f6; color: #101828; } .toast .ico { color: #067647; } .toast.erreur .ico { color: #d92d20; } }

/* ------------------------------------------------------------------ chargement */

.rotation { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: tourne .7s linear infinite; flex: none; }

/* ------------------------------------------------------------------ animations */

@keyframes apparition { from { opacity: 0; } }
@keyframes disparition { to { opacity: 0; } }
@keyframes fondu { from { opacity: 0; transform: translateY(6px); } }
@keyframes glisse { from { opacity: 0; transform: translateY(8px); } }
@keyframes flash { 0%, 30% { background: var(--accent-doux); } }
@keyframes rempli { 0% { background: var(--accent-doux); border-color: var(--accent); } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes modale-entree { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes modale-sortie { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes toast-entree { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-sortie { to { opacity: 0; transform: translateY(8px); } }

@keyframes pop { 40% { transform: scale(1.22); } }
@keyframes rebond { 0% { transform: scale(.4); opacity: 0; } 55% { transform: scale(1.18); opacity: 1; } 80% { transform: scale(.94); } }
@keyframes hop { 30% { transform: translateY(-4px); } 60% { transform: translateY(1px); } }
@keyframes plonge { 30% { transform: translateY(3px); } 60% { transform: translateY(-1px); } }
@keyframes fretille { 20% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-5deg); } }
@keyframes flotte { 50% { transform: translateY(-6px); } }
@keyframes pousse { from { transform: scaleX(0); } }
@keyframes coucou { 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } 50% { transform: none; } }
@keyframes sonne {
  10%, 30%, 50%, 70% { transform: rotate(-16deg) scale(1.08); }
  20%, 40%, 60%, 80% { transform: rotate(16deg) scale(1.08); }
}

/* Mouvement réduit : réglage Windows, ou animations coupées dans les réglages de l'app */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.calme *, .calme *::before, .calme *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

/* ------------------------------------------------------------------ fenêtre étroite */

@media (max-width: 1150px) {
  .partage.ouvert { grid-template-columns: minmax(0, 1fr) 0px; gap: 0; }
  .panneau { position: absolute; top: 14px; right: 24px; bottom: 24px; width: 470px; z-index: 5; box-shadow: var(--ombre-haute); pointer-events: none; }
  .partage.ouvert .panneau { pointer-events: auto; }
  .indicateurs { grid-template-columns: repeat(2, 1fr); }
  .marque { min-width: 0; }
  .marque div { display: none; }
}

/* ------------------------------------------------------------------ téléphone */

.ticket-mobile { display: none; }

@media (max-width: 760px) {
  body { font-size: 14px; }
  .barre { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .recherche { order: 3; flex-basis: 100%; max-width: none; }
  .recherche kbd, .actions .texte { display: none; }
  .actions { gap: 4px; }
  .actions .bouton { padding: 0 11px; }
  .accueil { padding: 10px 12px 0; font-size: 13.5px; }
  .accueil .salut { flex-basis: 100%; }
  .outils { flex-wrap: wrap; gap: 10px; padding: 10px 12px 0; min-height: 0; }
  .filtres { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .pilule { flex: none; }
  main { padding: 10px 12px 12px; }

  /* liste : statut, établissement (avec n° de ticket), marques */
  #table th:is(:nth-child(2), :nth-child(n+4):nth-child(-n+7)),
  #lignes td:is(:nth-child(2), :nth-child(n+4):nth-child(-n+7)) { display: none; }
  .tableau td, .tableau th { padding: 10px; }
  .tableau .etroit { width: auto; }
  .ticket-mobile { display: block; font-size: 12px; color: var(--discret); }

  /* détail en plein écran */
  .panneau, .partage.ouvert .panneau { position: fixed; inset: 0; width: auto; border-radius: 0; z-index: 40; }
  .panneau-contenu { min-width: 0; padding: 16px; }
  .p-actions { flex-wrap: wrap; }
  .documents select { width: 128px; }
  .bouton-photo { width: 92px; }
  .infos { grid-template-columns: 1fr; }

  .modale, .modale.camera, .modale.petite { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .formulaire { grid-template-columns: 1fr; }
  .m-pied { flex-wrap: wrap; }
  .m-pied .note { flex-basis: 100%; }
  .raccourcis { grid-template-columns: 1fr; }
  .reglages { inset: 60px 8px auto 8px; width: auto; }
  .depot { flex-direction: column; padding: 16px; }
  .depot-cadre { min-height: 160px; }
  .indicateurs { grid-template-columns: 1fr; gap: 8px; }
  .indicateur strong { font-size: 24px; }
  .recap .col-barre, .recap td:last-child { display: none; }
}
