
:root {
  --fond: #f4f6f9;
  --surface: #ffffff;
  --ardoise: #2c3e50;
  --ardoise-clair: #34495e;
  --texte: #2c3e50;
  --gris-fonce: #666666;
  --gris-moyen: #999999;
  --bordure: #dddddd;
  --fond-clair: #eeeeee;
  --accent: #2980b9;
  --accent-pale: #eaf4fe;
  --vert: #1e8449;        --vert-pale: #e8f8f0;
  --ambre: #b9770e;       --ambre-pale: #fef6e4;
  --rouge: #c0392b;       --rouge-pale: #fdecea;
  --bleu: #3498db;
  --violet: #9b59b6;
  --vert-nicotine: #27ae60;
  --orange: #e67e22;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
.bandeau-vue {
  background: #fef6e4; color: #b9770e;
  padding: 14px 32px; font-size: 1em;
}
.bandeau-vue a { color: #b9770e; text-decoration: underline; margin-left: 10px; }
.comptoir { min-height: 100vh; display: flex; flex-direction: column; }
.comptoir-haut {
  background: var(--ardoise); color: #fff;
  min-height: 84px; display: flex; align-items: center; gap: 20px; padding: 0 36px;
}
.comptoir-haut.zone-privee, .comptoir-haut.zone-publique {
  background: var(--module, var(--ardoise));
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.25);
}
.comptoir-haut.zone-privee .fil a, .comptoir-haut.zone-publique .fil a,
.comptoir-haut.zone-privee .fil-rub, .comptoir-haut.zone-publique .fil-rub,
.comptoir-haut.zone-privee span, .comptoir-haut.zone-publique span { color: rgba(255, 255, 255, 0.82); }
.comptoir-haut.zone-privee .fil-sep, .comptoir-haut.zone-publique .fil-sep { color: rgba(255, 255, 255, 0.5); }
.comptoir-haut.zone-privee .fil-ici, .comptoir-haut.zone-publique .fil-ici { color: #fff; }
.comptoir-haut.zone-privee .fil a:hover, .comptoir-haut.zone-publique .fil a:hover {
  background: rgba(255, 255, 255, 0.16); color: #fff;
}
.comptoir-haut.zone-privee .retour, .comptoir-haut.zone-publique .retour {
  background: rgba(0, 0, 0, 0.22); color: #fff;
}
.comptoir-haut b { font-size: 1.5em; }
.comptoir-haut span { color: #bdc3c7; font-size: 1.05em; }
.fil { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fil a {
  color: #bdc3c7; text-decoration: none; min-height: 48px;
  display: flex; align-items: center; padding: 0 10px; border-radius: 10px;
}
.fil a:hover { background: var(--ardoise-clair); color: var(--surface); }
.fil-sep { color: #7f8c8d; }
.fil-rub { color: #bdc3c7; }
.fil-ici { color: var(--surface); font-weight: 600; }
.comptoir-haut .retour {
  margin-left: auto; background: var(--ardoise-clair); color: #fff;
  min-height: 56px; display: flex; align-items: center;
  padding: 0 24px; border-radius: 12px; font-weight: 600;
}
.comptoir-corps { flex: 1; padding: 32px 36px 40px; }
.comptoir-tete { margin-bottom: 26px; }
.comptoir-tete h1 { font-size: 2.2em; letter-spacing: -.015em; }
.comptoir-tete p { color: var(--gris-fonce); font-size: 1.2em; margin-top: 4px; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.tuile {
  background: var(--accent-pale); border-radius: 18px; padding: 28px 30px;
  display: grid; gap: 12px; align-content: start; position: relative;
  min-height: 200px; border: 2px solid transparent;
}
.tuile:hover, .tuile:focus-visible { border-color: var(--accent); outline: none; }
.tuile h2 { font-size: 1.5em; }
.tuile p { color: #444; line-height: 1.45; }
.tuile-icone { display: inline-flex; vertical-align: -0.1em; }
.icone-svg { width: 1.05em; height: 1.05em; color: var(--accent); flex: 0 0 auto; }
.titre-icone { display: inline-block; margin-right: 2px; }
.tuile-double {
  background: transparent; padding: 0; gap: 2px; border: 0;
  grid-template-rows: 1fr 1fr; align-content: stretch;
}
.tuile-moitie {
  position: relative; display: grid; gap: 6px; align-content: center;
  background: var(--accent-pale); padding: 12px 30px;
  border: 2px solid transparent;
}
.tuile-moitie:first-child { border-radius: 18px 18px 0 0; }
.tuile-moitie:last-child { border-radius: 0 0 18px 18px; }
.tuile-moitie:hover, .tuile-moitie:focus-visible { border-color: var(--accent); outline: none; }
.tuile-moitie p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tuile-types:hover { border-color: transparent; }
.tuile-types-rang { display: flex; flex-wrap: wrap; gap: 12px; }
.tuile-type {
  display: grid; justify-items: center; gap: 4px; min-width: 88px; min-height: 64px; padding: 10px 12px;
  border-radius: 14px; background: var(--surface); border: 2px solid var(--bordure); color: var(--texte);
  text-decoration: none; font-weight: 600;
}
.tuile-type:hover, .tuile-type:focus-visible { border-color: var(--accent); outline: none; }
.tuile-type-icone { font-size: 2em; line-height: 1; }
.comptoir-vide {
  background: var(--surface); border-radius: 18px; padding: 40px;
  color: var(--gris-fonce); font-size: 1.15em;
}
.comptoir-detail { background: var(--surface); border-radius: 18px; padding: 32px 36px; }
.vocation { display: grid; gap: 24px; position: relative; }
.vocation > header { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.vocation .fil { font-size: 0.85em; color: var(--gris-moyen); }
.vocation h1 { font-size: 2em; }
.vocation h2 { font-size: 0.95em; color: var(--gris-fonce); margin-bottom: 10px; }
.vocation .phrase { font-size: 1.2em; line-height: 1.55; }
.vocation section { border-top: 1px solid var(--bordure); padding-top: 20px; }
.idees { padding-left: 22px; display: grid; gap: 9px; }
.note { color: var(--gris-fonce); }
.etiq { font-size: 0.85em; font-weight: 600; padding: 7px 15px; border-radius: 99px; white-space: nowrap; }
.e-idee     { background: var(--fond-clair); color: var(--gris-fonce); }
.e-chantier { background: #fef6e4; color: #b9770e; }
.e-pret     { background: #e8f8f0; color: #1e8449; }
.bases { display: grid; gap: 12px; }
.base {
  background: var(--fond); border-radius: 12px; padding: 16px 18px;
  display: grid; gap: 5px; border-left: 4px solid var(--bordure);
}
.base .tete { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.base code { font-family: "Cascadia Mono", Consolas, monospace; font-weight: 600; }
.base .utilite { color: var(--gris-fonce); font-size: 0.95em; }
.fam { font-size: 0.78em; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 5px; }
.f-anous    { background: var(--accent-pale); color: var(--accent); }
.f-copie    { background: var(--fond-clair); color: var(--gris-fonce); }
.f-calculee { background: #e8f8f0; color: #1e8449; }
.base.f-b-anous    { border-left-color: var(--accent); }
.base.f-b-calculee { border-left-color: #1e8449; }
.duo { display: flex; gap: 10px; margin-left: auto; }
.duo-b {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--bordure); background: var(--surface);
  color: var(--gris-fonce); font: inherit; font-size: 1.2em; cursor: pointer;
}
.duo-b:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bulle {
  position: absolute; top: 74px; right: 0; width: min(620px, 96%);
  background: var(--ardoise); color: #eee;
  border-radius: 16px; padding: 24px 28px; display: grid; gap: 10px;
  box-shadow: 0 10px 30px rgba(44, 62, 80, .35); z-index: 5;
}
.bulle h4 { color: #fff; font-size: 1.2em; }
.bulle p { line-height: 1.5; }
.bulle::before {
  content: ""; position: absolute; top: -10px; right: 28px;
  border: 10px solid transparent; border-top: 0; border-bottom-color: var(--ardoise);
}
.bulle[hidden] { display: none; }
.dock {
  position: sticky; bottom: 0;
  background: var(--surface); border-top: 1px solid var(--bordure);
}
.dock-rang { display: flex; gap: 10px; padding: 12px 20px; flex-wrap: nowrap; overflow-x: auto;
             scrollbar-width: none; }
.dock-rang::-webkit-scrollbar { display: none; }
.dock-rang > a { flex: 0 0 auto; white-space: nowrap; }
.dock-appel a {
  min-height: 64px; min-width: 160px; padding: 0 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; text-align: center; font-size: 1.02em;
}
.dock-outils {
  background: var(--fond); border-top: 1px solid var(--bordure);
  padding-block: 8px;
}
.dock-outils a {
  min-height: 48px; min-width: 130px; padding: 0 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; text-align: center; font-size: 0.96em;
  color: var(--gris-fonce);
}
.dock-deux { overflow: hidden; }
.dock-piste {
  display: flex; width: 200%;
  transition: transform .26s ease;
}
@media (prefers-reduced-motion: reduce) { .dock-piste { transition: none; } }
.dock-piste[data-sur="magasin"] { transform: translateX(-50%); }
.dock-piste > .dock-menu {
  flex: 0 0 50%; min-width: 0;
  background: var(--module-pale, var(--surface));
  border-top: 4px solid var(--module, var(--bordure));
}
.dock-file {
  display: flex; gap: 8px; padding: 8px 44px 8px 20px;
  flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none;
}
.dock-file::-webkit-scrollbar { display: none; }
.dock-file a {
  min-height: 48px; padding: 0 16px; white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 0.95em; color: var(--gris-fonce);
}
.dock-file a.actif { background: var(--module-pale, var(--accent-pale)); color: var(--module, var(--accent)); }
.dock-fleche {
  position: absolute; top: 0; bottom: 0; z-index: 3;
  width: 48px; border: none; background: none;
  color: var(--gris-moyen); font-size: 1.8em; line-height: 1;
  cursor: pointer; padding: 0;
}
.dock-fleche:hover { color: var(--texte); background: rgba(0, 0, 0, 0.04); }
.dock-fleche { right: 0; }
.dock a:hover { background: var(--fond); }
.dock-outils a:hover { background: var(--surface); }
.dock a.actif { background: var(--accent-pale); color: var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .comptoir-corps { padding: 22px 18px 30px; }
  .tuiles { grid-template-columns: 1fr; }
  .dock-appel a, .dock-outils a { min-width: 128px; }
}
.melangeur { max-width: 900px; margin: 0 auto; padding-bottom: calc(var(--dock-h, 96px) + 40px); }
.mel-tete h1 { font-size: 1.9em; }
.mel-tete p { color: var(--gris-fonce); font-size: 1.15em; margin-top: 4px; }
.mel-bloc {
  background: var(--surface); border: 1px solid var(--bordure);
  border-radius: 18px; padding: 22px 24px; margin-top: 18px;
}
.mel-bloc h2 {
  font-size: 1.25em; display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.mel-num {
  background: var(--module, var(--accent)); color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85em; flex: 0 0 auto;
}
.mel-aide { color: var(--gris-fonce); margin: 10px 0; line-height: 1.5; }
.mel-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mel-chip {
  min-height: 56px; min-width: 88px; padding: 0 18px;
  border: 2px solid var(--bordure); border-radius: 14px;
  background: var(--surface); color: var(--texte);
  font-size: 1.05em; font-weight: 600; cursor: pointer;
}
.mel-chip:hover { border-color: var(--module, var(--accent)); }
.mel-ligne {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-top: 14px;
}
.mel-ligne label { color: var(--gris-fonce); }
.mel-ligne input {
  min-height: 56px; width: 8em; padding: 0 14px; font-size: 1.15em;
  border: 2px solid var(--bordure); border-radius: 12px;
  background: var(--surface); color: var(--texte);
}
.mel-ligne input:focus {
  outline: none; border-color: var(--module, var(--accent));
}
.mel-unite { color: var(--gris-fonce); }
.mel-btn-secondaire {
  min-height: 56px; padding: 0 22px; border-radius: 12px;
  border: 2px solid var(--module, var(--accent));
  background: var(--surface); color: var(--module, var(--accent));
  font-size: 1.02em; font-weight: 600; cursor: pointer;
}
.mel-retenus { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mel-vide { color: var(--gris-moyen); font-style: italic; }
.mel-retenu {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--module-pale, var(--accent-pale));
  color: var(--module, var(--accent));
  border-radius: 12px; padding: 10px 8px 10px 16px;
  font-weight: 600; min-height: 48px;
}
.mel-retenu small { font-weight: 400; opacity: 0.8; }
.mel-x {
  min-width: 48px; min-height: 48px; border: none; border-radius: 9px;
  background: transparent; color: inherit; font-size: 1.3em; cursor: pointer;
}
.mel-x:hover { background: var(--surface); }
.mel-valider {
  position: sticky; bottom: var(--dock-h, 0px); padding: 16px 0 6px;
  background: linear-gradient(to bottom, transparent, var(--fond) 32%);
  z-index: 2;
}
.mel-btn {
  width: 100%; min-height: 68px; border: none; border-radius: 16px;
  background: var(--module, var(--accent)); color: #fff;
  font-size: 1.25em; font-weight: 600; cursor: pointer;
}
.mel-compte { color: var(--gris-fonce); margin-bottom: 14px; }
.mel-combo {
  border: 1px solid var(--bordure); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 12px;
}
.mel-combo-mieux {
  border: 2px solid var(--module, var(--accent));
  background: var(--module-pale, var(--accent-pale));
}
.mel-recette { font-size: 1.3em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mel-plus { color: var(--gris-moyen); }
.mel-type {
  font-size: 0.62em; font-weight: 600; letter-spacing: 0.04em;
  background: var(--surface); border: 1px solid var(--bordure);
  border-radius: 8px; padding: 4px 10px; color: var(--gris-fonce);
}
.mel-genere, .mel-volumes { color: var(--gris-fonce); margin-top: 8px; line-height: 1.5; }
.mel-ratio { color: var(--gris-moyen); margin-top: 6px; font-size: 0.95em; }
.mel-erreur {
  background: #fdecea; color: #c0392b; border-radius: 12px;
  padding: 16px 18px; font-weight: 600;
}
.mel-trivial {
  background: var(--accent-pale); color: var(--accent);
  border-radius: 12px; padding: 16px 18px; font-weight: 600;
}
@media (max-width: 760px) {
  .mel-ligne input { width: 100%; }
  .mel-bloc { padding: 18px 16px; }
}
.mel-onglets { display: flex; gap: 8px; margin-top: 18px; }
.mel-onglet {
  min-height: 56px; padding: 0 26px; border: none; cursor: pointer;
  border-radius: 14px 14px 0 0; font-size: 1.08em; font-weight: 600;
  background: var(--fond-clair); color: var(--gris-fonce);
}
.mel-onglet.actif { background: var(--module, var(--accent)); color: #fff; }
.mel-panneau[hidden] { display: none; }
.mel-bascules { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.mel-bascule {
  min-height: 52px; padding: 0 20px; cursor: pointer;
  border: 2px solid var(--bordure); border-radius: 12px;
  background: var(--surface); color: var(--gris-fonce); font-size: 1em;
}
.mel-bascule.actif {
  border-color: var(--module, var(--accent));
  background: var(--module-pale, var(--accent-pale));
  color: var(--module, var(--accent)); font-weight: 600;
}
.mel-case { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.mel-case input { width: 26px; height: 26px; }
.mel-unite small { color: var(--gris-moyen); }
.diy-total {
  background: var(--module-pale, var(--accent-pale));
  color: var(--module, var(--accent));
  border-radius: 14px; padding: 16px 18px; font-size: 1.3em; margin-bottom: 14px;
}
.diy-total small { display: block; font-size: 0.62em; opacity: 0.85; margin-top: 4px; }
.diy-ligne {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--bordure); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 10px;
}
.diy-icone { font-size: 1.7em; flex: 0 0 auto; }
.diy-ml {
  font-size: 1.6em; font-weight: 600; min-width: 3.6em; text-align: right;
  color: var(--texte); flex: 0 0 auto;
}
.diy-ml small { font-size: 0.5em; font-weight: 400; color: var(--gris-moyen); margin-left: 3px; }
.diy-nom { display: flex; flex-direction: column; gap: 2px; }
.diy-nom span { color: var(--gris-fonce); font-size: 0.95em; line-height: 1.4; }
.diy-resultat-corps { display: flex; gap: 22px; align-items: flex-start; }
.diy-fiole { flex: 0 0 auto; }
.diy-lignes { flex: 1 1 auto; min-width: 0; }
.diy-pipeline { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.diy-mesure {
  flex: 1 1 220px; background: var(--fond); border-radius: 14px;
  padding: 14px 18px; display: flex; flex-direction: column; gap: 3px;
}
.diy-mesure-nom { color: var(--gris-fonce); font-size: 0.95em; }
.diy-mesure b { font-size: 1.45em; }
.diy-mesure-note { color: var(--gris-moyen); font-size: 0.88em; line-height: 1.4; }
@media (max-width: 760px) {
  .diy-resultat-corps { flex-direction: column; align-items: center; }
}
.mel-tete-ligne { display: flex; align-items: center; gap: 14px; }
.mel-icone {
  min-width: 48px; min-height: 48px; cursor: pointer; font-size: 1.35em;
  border: 1px solid var(--bordure); border-radius: 12px;
  background: var(--surface); color: var(--gris-fonce);
}
.mel-icone:hover { border-color: var(--module, var(--accent)); color: var(--module, var(--accent)); }
.bulle-reglages {
  display: grid; gap: 16px; margin-top: 14px;
  background: var(--surface); border: 1px solid var(--bordure);
  border-radius: 16px; padding: 20px 22px;
}
.bulle-reglages[hidden] { display: none; }
.reglage-note { color: var(--gris-fonce); font-weight: 600; }
.reglage-groupe h4 { font-size: 1.02em; margin-bottom: 8px; color: var(--module, var(--accent)); }
.reglage {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px;
  padding: 8px 0; border-top: 1px solid var(--fond-clair);
}
.reglage-nom { color: var(--texte); }
.reglage-valeur { font-weight: 600; font-size: 1.1em; text-align: right; white-space: nowrap; }
.reglage-valeur small { color: var(--gris-moyen); font-weight: 400; margin-left: 4px; }
.reglage-aide { grid-column: 1 / -1; color: var(--gris-moyen); font-size: 0.9em; line-height: 1.4; }
.reglage-lecture, .reglage-source {
  color: var(--gris-fonce); font-size: 0.92em; line-height: 1.5;
  border-top: 1px solid var(--fond-clair); padding-top: 12px;
}
.reglage-source code { background: var(--fond); padding: 2px 6px; border-radius: 6px; }
.mel-live {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 18px;
  background: var(--fond-clair); border-radius: 14px;
}
.mel-live-note { color: var(--gris-fonce); font-size: 0.94em; }
.mel-live-attente { background: #fef6e4; }
.mel-live-attente .mel-live-note { color: #b9770e; }
.mel-amont {
  background: var(--accent-pale); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 14px;
}
.mel-amont[hidden] { display: none; }
.mel-etiquette { color: var(--gris-fonce); min-width: 9em; }
.mel-trouve {
  display: block; width: 100%; text-align: left; cursor: pointer;
  min-height: 56px; padding: 10px 16px; margin-top: 8px;
  border: 1px solid var(--bordure); border-radius: 12px;
  background: var(--surface); color: var(--texte); font-size: 1em;
}
.mel-trouve:hover { border-color: var(--accent); }
.mel-trouve span { display: block; color: var(--gris-fonce); font-size: 0.88em; margin-top: 2px; }
.mel-chip small { display: block; font-weight: 400; font-size: 0.7em; color: var(--gris-moyen); }
.mel-chip.actif {
  border-color: var(--module, var(--accent));
  background: var(--module-pale, var(--accent-pale));
  color: var(--module, var(--accent));
}
.bandeau-page {
  display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap;
  padding: 10px 18px; background: #fef6e4; color: #b9770e;
  border-bottom: 1px solid #f0dcb0; font-size: 0.92em;
}
.bandeau-titre {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.85em; opacity: 0.75;
}
.bandeau-groupe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bandeau-groupe b { color: var(--ambre); }
.bandeau-groupe .manque { color: var(--rouge); font-style: italic; }
.pastille {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--ambre); background: var(--ambre-pale); color: var(--ambre);
  text-decoration: none; line-height: 1.5; white-space: nowrap;
}
.pastille:hover { border-color: var(--ambre); }
.pastille.on { background: var(--ambre); border-color: var(--ambre); color: var(--surface); font-weight: 600; }
.btn-comptoir {
  min-height: 48px; padding: 0 22px; border: none; border-radius: 10px;
  background: var(--module, var(--accent)); color: var(--surface);
  font-size: 1em; font-weight: 600; cursor: pointer;
}
.btn-comptoir:hover { filter: brightness(1.06); }
.btn-comptoir:active { transform: scale(0.98); }
.btn-comptoir[disabled] { opacity: 0.45; cursor: not-allowed; }
.champ-comptoir {
  min-height: 48px; padding: 0 16px;
  border: 2px solid var(--bordure); border-radius: 10px;
  background: var(--surface); color: var(--texte); font-size: 1em;
}
.champ-comptoir:focus { outline: none; border-color: var(--module, var(--accent)); }
.champ-comptoir:disabled { background: var(--fond-clair); color: var(--gris-moyen); cursor: wait; }
.comptoir-outil { max-width: 900px; position: relative; }
.comptoir-outil.large { max-width: 1320px; }
.comptoir-outil > .comptoir-tete {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 4px;
}
.comptoir-outil.large > .comptoir-tete,
.comptoir-outil.large > .comptoir-recherche,
.comptoir-outil.large > .phrase,
.comptoir-outil.large > .outil-etat,
.comptoir-outil.large > .outil-note { max-width: 860px; }
.comptoir-recherche { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.comptoir-recherche .champ-comptoir { flex: 1 1 18rem; }
.comptoir-grille {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px; align-items: start;
}
@media (max-width: 1000px) { .comptoir-grille { grid-template-columns: 1fr; } }
.comptoir-carte {
  border: 1px solid var(--bordure); border-radius: 12px;
  background: var(--surface); padding: 14px 16px; margin-bottom: 10px;
}
.comptoir-grille > .comptoir-carte { margin-bottom: 0; }
.comptoir-carte.a-voir { border-left: 5px solid var(--ambre); }
.comptoir-carte.faite { border-left: 5px solid var(--vert); }
.comptoir-identite { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.comptoir-num { font-size: 0.82em; color: var(--gris-moyen); }
.comptoir-infos {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  margin: 8px 0 12px; font-size: 0.88em; color: var(--gris-fonce);
}
.comptoir-remarque { display: block; margin: 6px 0 10px; font-size: 0.86em; color: var(--ambre); }
.comptoir-remarque.neutre { color: var(--gris-moyen); font-style: italic; }
.comptoir-statut {
  font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px;
  background: var(--fond-clair); color: var(--gris-moyen);
}
.faite .comptoir-statut { background: var(--vert-pale); color: var(--vert); }
.comptoir-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.comptoir-carte .comptoir-actions { margin: 0; }
.comptoir-actions[hidden] { display: none; }
.btn-comptoir.secondaire {
  background: var(--surface); color: var(--gris-fonce);
  border: 1px solid var(--bordure); text-decoration: none;
  display: inline-flex; align-items: center;
}
.comptoir-historique { margin-top: 12px; border-top: 1px solid var(--bordure); padding-top: 12px; }
.comptoir-entete { margin: 0 0 10px; font-size: 0.88em; color: var(--gris-fonce); }
.comptoir-vente { padding: 10px 12px; border-radius: 10px; background: var(--fond); margin-bottom: 8px; }
.comptoir-vente.autre { background: var(--ambre-pale); }
.comptoir-vente-date { font-weight: 700; font-size: 0.88em; }
.comptoir-badge {
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--ambre); color: var(--surface); font-size: 0.75em;
}
.comptoir-vente-articles { margin-top: 6px; font-size: 0.9em; line-height: 1.5; }
.comptoir-vente-paiement { margin-top: 4px; font-size: 0.82em; color: var(--gris-moyen); }
.comptoir-vente-magasin { margin-top: 2px; font-size: 0.82em; color: var(--gris-moyen); font-weight: 600; }
.outil-table-conteneur { overflow-x: auto; }
.outil-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; }
.outil-table th {
  text-align: left; font-weight: 600; color: var(--gris-fonce);
  padding: 10px 12px; border-bottom: 2px solid var(--bordure); white-space: nowrap;
}
.outil-table td { height: 52px; padding: 6px 12px; border-bottom: 1px solid var(--fond-clair); vertical-align: middle; }
.outil-table tbody tr:has(.outil-choix:checked) td { background: var(--accent-pale); }
.tri-b {
  font: inherit; font-weight: 600; color: inherit; background: none; border: 0;
  min-height: 48px; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.chevron { font-size: 0.8em; opacity: .35; }
.trie .chevron { opacity: 1; color: var(--accent); }
.trie { color: var(--texte); }
.col-choix { width: 44px; }
.outil-choix { width: 24px; height: 24px; accent-color: var(--accent); cursor: pointer; }
.outil-num { font-variant-numeric: tabular-nums; color: var(--gris-fonce); white-space: nowrap; }
.outil-lettres, .outil-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.lettre {
  font: inherit; font-weight: 600; min-width: 48px; min-height: 48px; padding: 0 8px;
  border: 1px solid var(--bordure); border-radius: 10px; background: var(--surface);
  color: var(--texte); cursor: pointer;
}
.lettre.on { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.lettre[disabled] { opacity: .3; cursor: default; }
.outil-pages .outil-note { margin-left: 8px; }
.comptoir-bloc {
  margin-top: 14px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--bordure); background: var(--surface); display: grid; gap: 10px;
}
.comptoir-bloc h2 { font-size: 1.15em; }
.comptoir-bloc.a-voir { border-left: 5px solid var(--ambre); }
.comptoir-question { padding: 10px 0; border-top: 1px solid var(--bordure); display: grid; gap: 8px; }
.comptoir-pastille { display: inline-block; padding: 2px 8px; margin: 2px 2px 2px 0; border-radius: 999px; background: var(--fond); }
.comptoir-reponse { display: flex; flex-wrap: wrap; gap: 10px; }
.comptoir-reponse .champ-comptoir { flex: 1 1 14rem; }
.comptoir-question.appris .champ-comptoir { background: var(--vert-pale); }
.duo-b.voyant { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.voyant-rond { width: 20px; height: 20px; border-radius: 50%; background: var(--gris-moyen); }
.voyant[data-etat="ok"] .voyant-rond { background: var(--vert); }
.voyant[data-etat="ko"] .voyant-rond { background: var(--rouge); }
.voyant-pastille {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 999px; background: var(--rouge); color: var(--surface);
  font-size: 0.75em; font-weight: 700; line-height: 22px; box-sizing: border-box;
}
.voyant-pastille[hidden] { display: none; }
.temoin {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 10px; max-width: min(640px, 92vw);
  padding: 10px 18px; border-radius: 999px;
  background: var(--ardoise); color: #fff; font-size: 0.95em;
  box-shadow: 0 6px 20px rgba(44, 62, 80, .35);
}
.temoin[hidden] { display: none; }
.temoin-texte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.temoin-duree { font-variant-numeric: tabular-nums; opacity: .8; white-space: nowrap; }
.temoin-point {
  flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  animation: temoin-pouls 1s ease-in-out infinite;
}
@keyframes temoin-pouls { 50% { transform: scale(1.6); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .temoin-point { animation: none; } }
.outil-etat { font-weight: 600; min-height: 1.5em; margin: 8px 0; }
.outil-etat[data-sorte="cours"],
.outil-etat[data-sorte="consigne"] { color: var(--gris-fonce); }
.outil-etat[data-sorte="ecrit"] { color: var(--vert); }
.outil-etat[data-sorte="supprime"] { color: var(--ambre); }
.outil-etat[data-sorte="erreur"] { color: var(--rouge); }
.outil-bulles {
  position: fixed; z-index: 60; right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  display: grid; gap: 10px; width: min(460px, calc(100vw - 32px));
}
.outil-bulle {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px;
  border-radius: 12px; border: 1px solid var(--bordure); border-left: 6px solid var(--gris-fonce);
  background: var(--surface); color: var(--texte); font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  animation: outil-bulle-entree .2s ease-out;
}
.outil-bulle[data-sorte="cours"] { border-left-color: var(--accent); }
.outil-bulle[data-sorte="ecrit"] { border-left-color: var(--vert); background: var(--vert-pale); }
.outil-bulle[data-sorte="supprime"] { border-left-color: var(--ambre); background: var(--ambre-pale); }
.outil-bulle[data-sorte="erreur"] { border-left-color: var(--rouge); background: var(--rouge-pale); }
.outil-bulle-texte { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.outil-bulle-fermer {
  flex: none; min-width: 48px; min-height: 48px; font-size: 1.4em; line-height: 1;
  border: 0; background: none; color: var(--gris-fonce); cursor: pointer;
}
@keyframes outil-bulle-entree { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .outil-bulle { animation: none; } }
.outil-note { font-size: 0.9em; color: var(--gris-fonce); }
.outil-vide { color: var(--gris-moyen); font-style: italic; }
.btn-comptoir.btn-arme { background: var(--ambre); color: var(--surface); border-color: var(--ambre); }
.f-ecriture { background: var(--rouge-pale); color: var(--rouge); }
.lien-ecrit { border-left: 4px solid var(--rouge); }
.comptoir-borne .comptoir-corps { padding-top: 24px; }
.comptoir-borne { min-height: 100vh; }
.chantier {
  margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid var(--accent);
  background: var(--accent-pale); color: var(--accent);
}
.modale-fond { overflow: hidden; }
.modale-voile {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20, 24, 31, .45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px 12px; overflow-y: auto;
}
.modale {
  background: var(--surface); border-radius: 14px; width: min(760px, 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3); overflow: hidden;
  max-height: calc(100vh - 80px);
  display: flex; flex-direction: column;
}
.modale-large { width: min(980px, 100%); }
.modale-tete {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--bordure);
  background: var(--fond-clair);
}
.modale-tete h2 { margin: 0; font-size: 1.15em; }
.modale-corps { padding: 18px; overflow-y: auto; flex: 1 1 auto; }
.modale-fermer { min-width: 48px; min-height: 48px; font-size: 1.2em; }
.opt {
  font: inherit; font-size: 1em; padding: 12px 20px; min-height: 48px;
  border-radius: 10px; border: 1px solid var(--bordure);
  background: var(--surface); color: var(--texte); cursor: pointer;
}
.opt.on { border-color: var(--accent); background: var(--accent-pale); color: var(--accent); font-weight: 600; }
.opt[disabled] { opacity: .5; cursor: not-allowed; }
.outil-champ {
  font: inherit; padding: 12px 14px; min-height: 48px; width: 100%;
  border: 1px solid var(--bordure); border-radius: 10px;
  background: var(--surface); color: var(--texte);
}
.outil-champ:focus { outline: none; border-color: var(--accent); }
.outil-note { font-size: 0.9em; color: var(--gris-moyen); }
.cal-champ { cursor: pointer; }
.cal-boite {
  position: fixed; z-index: 400; background: var(--surface);
  border: 1px solid var(--bordure); border-radius: 8px; padding: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); width: 372px; max-width: calc(100vw - 16px);
}
.cal-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-fleche {
  border: 1px solid var(--bordure); background: var(--fond-clair); color: var(--texte);
  border-radius: 6px; width: 48px; height: 48px; cursor: pointer; font-size: 1.3em; line-height: 1;
}
.cal-fleche:hover { background: var(--accent-pale); }
.cal-noms, .cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-noms span { text-align: center; font-size: .8em; color: var(--gris-moyen); padding: 2px 0; }
.cal-jour {
  border: 1px solid transparent; background: none; color: var(--texte);
  border-radius: 6px; min-height: 48px; cursor: pointer; font: inherit; font-size: 1em;
}
.cal-jour:hover { background: var(--accent-pale); }
.cal-aujourdhui { border-color: var(--accent); font-weight: 600; }
.cal-choisi { background: var(--accent); color: var(--surface); }
.cal-vide { min-height: 48px; }
.cal-clos, .cal-clos:hover {
  background: var(--fond-clair); color: var(--gris-moyen);
  text-decoration: line-through; cursor: not-allowed;
}
.cal-pied { display: flex; justify-content: space-between; margin-top: 8px; }
.cal-lien {
  border: 0; background: none; color: var(--accent); cursor: pointer;
  font: inherit; min-height: 48px; padding: 0 8px; text-decoration: underline;
}
.code-redemande { text-align: center; }
.code-pourquoi { margin: 0 0 12px; }
.code-points { display: flex; gap: 14px; justify-content: center; min-height: 22px; margin: 8px 0 16px; }
.code-points span {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--texte); border: 2px solid var(--texte);
}
.code-pave {
  display: grid; grid-template-columns: repeat(3, minmax(64px, 96px));
  gap: 10px; justify-content: center;
}
.code-pave button {
  min-height: 64px; border-radius: 12px; border: 1px solid var(--bordure);
  background: var(--surface); color: var(--texte); font: inherit; font-size: 1.5em; cursor: pointer;
}
.code-pave button:active { background: var(--fond-clair); }
.code-pave .code-valider {
  font-size: 1.05em; font-weight: 600; border: none;
  background: var(--module, var(--accent)); color: var(--surface);
}
.code-pave .code-valider[disabled] { opacity: 0.4; cursor: not-allowed; }
.ampoule {
  border: 1px solid transparent; background: none; cursor: pointer;
  font-size: 1em; line-height: 1; min-width: 48px; min-height: 48px; border-radius: 10px;
  vertical-align: middle; margin-left: 4px;
}
.ampoule.ouverte { background: var(--accent-pale); border-color: var(--accent); }
.ampoule-bulle {
  position: fixed; z-index: 600; max-width: min(420px, calc(100vw - 16px));
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 12px; padding: 14px 16px; color: var(--texte);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.ampoule-bulle p { margin: 0 0 8px; }
.ampoule-bulle p:last-child { margin-bottom: 0; }
.comptoir-outil [hidden] { display: none !important; }
.acc-titre { font-size: 1.1em; margin: 0 0 10px; }
.acc-champ { display: grid; gap: 4px; font-size: 0.9em; color: var(--gris-fonce); }
.acc-champ textarea { min-height: 72px; padding: 10px 14px; font: inherit; resize: vertical; }
.acc-notes { list-style: none; margin: 14px 0; padding: 0; color: var(--gris-fonce); }
.acc-notes li { margin: 4px 0; }
.visite-bulle, .visite-invite {
  position: fixed; z-index: 390; width: min(520px, calc(100vw - 24px));
  background: var(--ardoise); color: #eee; border-radius: 12px;
  padding: 18px 20px; display: grid; gap: 8px;
  box-shadow: 0 10px 30px rgba(44, 62, 80, .35);
}
.visite-libre, .visite-invite { left: 50%; bottom: 24px; transform: translateX(-50%); }
.visite-titre { font-weight: 600; color: #fff; }
.visite-dit { line-height: 1.45; }
.visite-compte { font-weight: 400; color: var(--ardoise-pale); font-size: .9em; margin-left: 6px; }
.visite-attente { color: var(--ambre-pale); }
.visite-attente[hidden] { display: none; }
.visite-actions, .visite-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.visite-choix { flex-direction: column; }
.visite-b {
  min-height: 48px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--ardoise-pale); background: transparent; color: #fff; font: inherit;
}
.visite-principal { background: var(--accent); border-color: var(--accent); }
.visite-discret { border-color: transparent; color: var(--ardoise-pale); margin-left: auto; }
.visite-b:focus-visible { outline: 2px solid var(--accent-pale); outline-offset: 2px; }
.visite-cible {
  outline: 3px solid var(--accent) !important; outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--accent-pale) !important; border-radius: 6px;
  position: relative; z-index: 380;
}
.visite-ici { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px;
              transition: outline-color .6s; }
.bandeau-entrainement {
  margin: 0; padding: 8px 16px; text-align: center; font-size: .95em;
  background: var(--ambre-pale); color: var(--texte); border-bottom: 2px solid var(--ambre);
}
.pf-reference { display: flex; justify-content: space-between; align-items: center; gap: 12px;
                padding: 6px 0; border-bottom: 1px solid var(--bordure); }
.outil-table tbody tr:nth-child(even) td { background: var(--fond-clair); }
.outil-table tbody tr:has(.outil-choix:checked) td { background: var(--accent-pale); }
.pf-icone { position: relative; display: inline-block; line-height: 1; font-size: 1.25em; }
.pf-icone::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 50%;
  border-top: 2px solid var(--rouge); transform: rotate(-35deg);
}
.pf-icone-libre::after { content: none; }
.franco-atteint > summary { background: var(--vert-pale); border-radius: 6px; }
.franco-mot { color: var(--vert); }
.franco-camion { display: inline-block; animation: franco-roule 1.6s ease-in-out infinite alternate; }
@keyframes franco-roule { from { transform: translateX(0); } to { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .franco-camion { animation: none; } }
.opt.pf-compact { padding: 0 12px; min-width: 48px; }
.tuiles-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .tuiles-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tuiles-grille { grid-template-columns: 1fr; } .tuile-vide { display: none; } }
.tuile-vide { min-height: 200px; }
.tuile-double.tuile-3 { grid-template-rows: 1fr 1fr 1fr; }
.tuile-mention {
  position: absolute; bottom: 14px; right: 18px; font-size: 0.8em; font-weight: 600;
  color: var(--ambre); border: 1px solid var(--ambre); border-radius: 999px; padding: 2px 10px;
}
.rr-photo { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
@media (max-width: 760px) { .rr-photo { grid-template-columns: 1fr; } }
.rr-photo-image { display: flex; align-items: center; justify-content: center; width: 180px; height: 180px;
  border: 1px solid var(--bordure); border-radius: 12px; background: var(--surface); }
.rr-photo-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rr-photo-gestes { display: grid; gap: 10px; min-width: 0; }
.rr-fichier { display: inline-flex; align-items: center; cursor: pointer; }
.rr-photo-apercu { display: flex; align-items: center; gap: 12px; }
.rr-photo-apercu:empty { display: none; }
.rr-photo-apercu img { max-width: 96px; max-height: 96px; border: 1px solid var(--bordure); border-radius: 6px; }
