/* ===== Thèmes ===== */
:root[data-theme="dark"] {
  --bg: #0e1016;
  --bg2: #151824;
  --card: #171b28;
  --card2: #1c2131;
  --border: #262c3d;
  --text: #e7e9f0;
  --muted: #8b93a7;
  --accent: #6d7bff;      /* bleu/violet */
  --accent2: #9d7bff;
  --accent-soft: rgba(109,123,255,0.14);
  --danger: #ff5f6d;
  --ok: #3ddc97;
  --tit-mathis: #45a8ff;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}
:root[data-theme="light"] {
  --bg: #f4f5fb;
  --bg2: #eceef7;
  --card: #ffffff;
  --card2: #f7f8fd;
  --border: #e2e5f0;
  --text: #1c2030;
  --muted: #6a7285;
  --accent: #5b62f5;
  --accent2: #8a5bf5;
  --accent-soft: rgba(91,98,245,0.10);
  --danger: #e23b52;
  --ok: #16a06a;
  --tit-mathis: #1f83e0;
  --shadow: 0 10px 30px rgba(40,50,90,0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== Topbar ===== */
.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; height: 60px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .2px; }
.brand .logo {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-size: 15px; box-shadow: 0 4px 12px var(--accent-soft);
}
.brand.big { font-size: 22px; margin-bottom: 4px; }
.brand.big .logo { width: 36px; height: 36px; font-size: 19px; }
/* Le trombone remplace le dollar : même pastille, dessin au trait. */
.brand .logo svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.brand.big .logo svg { width: 21px; height: 21px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 8px 14px;
  border-radius: 9px; font-weight: 600; font-size: 14px; transition: .15s;
}
.nav a:hover { color: var(--text); background: var(--card2); }
.nav a.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
:root[data-theme="light"] .nav a.active { color: #fff; }
.topright { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.logout {
  color: var(--muted); text-decoration: none; font-size: 18px;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
}
.logout:hover { color: var(--danger); background: var(--card2); }

/* ===== Theme switch ===== */
.theme-switch {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: none; color: var(--muted); font: inherit; font-size: 13px; padding: 0;
}
.ts-track {
  width: 40px; height: 22px; border-radius: 20px; background: var(--card2);
  border: 1px solid var(--border); position: relative; transition: .2s; display: inline-block;
}
.ts-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); transition: .2s;
}
:root[data-theme="light"] .ts-thumb { transform: translateX(18px); }
.ts-label { min-width: 44px; text-align: left; }

/* ===== Layout ===== */
.content { max-width: 1180px; margin: 0 auto; padding: 30px 24px 80px; }
.content.wide { max-width: 1720px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 4px; font-size: 26px; }
.muted { color: var(--muted); margin: 0; font-size: 14px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 17px; }
.head-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filters { display: flex; align-items: center; gap: 14px; }
.filters label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

/* ===== Prévisionnel : rangée de tuiles KPI (pas un graphique) ===== */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 16px;
}
/* Voile d'accent très léger : du style, sans colorer le chiffre lui-même. */
.kpi::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}
.kpi-chip {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 18px var(--accent-soft);
}
.kpi-chip svg {
  width: 22px; height: 22px; fill: none; stroke: #fff;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.kpi-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kpi-label {
  margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 600;
  letter-spacing: .2px;
}
/* Chiffres proportionnels : tabular-nums ferait bâiller un grand nombre. */
.kpi-value {
  margin: 0; font-size: 32px; font-weight: 650; line-height: 1.15;
  color: var(--text); letter-spacing: -.6px; white-space: nowrap;
}
.kpi-value.vide { color: var(--muted); opacity: .55; letter-spacing: 0; }
.kpi-unit {
  font-size: 15px; font-weight: 500; color: var(--muted);
  letter-spacing: 0; margin-left: 3px;
}
.kpi-sub { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

@media (max-width: 780px) {
  .kpis { grid-template-columns: 1fr; }
  .kpi-value { font-size: 28px; }
}

/* ===== Recherche de projet (filtrage progressif) ===== */
.search { position: relative; display: flex; align-items: center; }
.search input {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 30px 8px 12px; font: inherit; font-size: 13px;
  width: 220px; transition: border-color .15s, width .15s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); width: 260px; }
.search input::-webkit-search-cancel-button { display: none; }
.search button {
  position: absolute; right: 6px; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 4px; border-radius: 6px;
}
.search button:hover { color: var(--text); }
.search button[hidden] { display: none; }

@media (max-width: 620px) {
  .search input, .search input:focus { width: 100%; }
  .search { width: 100%; }
}

/* ===== Champ à suggestions (remplace les <select> trop longs) ===== */
.picker { position: relative; display: inline-block; width: 100%; max-width: 200px; }
.picker-input {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 9px; font: inherit; font-size: 13px;
  width: 100%; cursor: text; text-overflow: ellipsis;
}
.picker-input::placeholder { color: var(--muted); }
.picker-input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.picker.vide .picker-input { color: var(--muted); }
.picker-menu {
  position: fixed; z-index: 80; max-height: 300px; overflow-y: auto;
  overscroll-behavior: contain;   /* le défilement ne déborde pas sur la page */
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); padding: 4px;
}
.picker-menu[hidden] { display: none; }
.picker-item {
  padding: 7px 10px; border-radius: 7px; font-size: 13px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.picker-item.on { background: var(--accent-soft); color: var(--accent); }
.picker-item.cur { font-weight: 600; }
.picker-none { padding: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.field .picker { max-width: none; }
.field .picker-input { padding: 10px 12px; font-size: 14px; border-radius: 9px; }

/* ===== Boutons ===== */
.btn {
  border: none; border-radius: 10px; padding: 9px 16px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: .15s; color: var(--text); background: var(--card2); font-family: inherit;
}
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.block { width: 100%; margin-top: 8px; padding: 12px; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; scrollbar-width: thin; }
.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid.wide { min-width: 1290px; }
.grid thead th {
  text-align: left; color: var(--muted); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .4px; padding: 8px 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.grid thead th.num { text-align: right; }
.grid thead th.chk { width: 34px; text-align: center; }
.grid tbody td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.grid tbody tr:last-child td { border-bottom: none; }
.grid tbody tr:hover { background: var(--card2); }
.grid td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid td.strong, .grid td .strong { font-weight: 600; }
.grid td.detail { color: var(--muted); max-width: 360px; min-width: 200px; }
.grid td.date { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.grid td.chk { text-align: center; }
.row-empty td { opacity: .5; }
.ph { color: var(--muted); opacity: .6; }
.rate { color: var(--muted); font-size: 12px; }
.empty-row td { text-align: center; color: var(--muted); padding: 26px; }
tr.done .detail { text-decoration: line-through; opacity: .55; }

/* inline controls */
.inline-sel {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; cursor: pointer; max-width: 200px;
}
.inline-sel:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.state-sel { border-left: 3px solid var(--accent); min-width: 292px; max-width: none; }
/* États hors flux : en suspens (rouge) et terminé (vert). */
.state-sel.st-hold { border-left-color: var(--danger); color: var(--danger); font-weight: 700; }
.state-sel.st-done { border-left-color: var(--ok); color: var(--ok); font-weight: 700; }
tr.row-st-hold > td:not(.cell-state) { opacity: .72; }
tr.row-st-done > td:not(.cell-state) { opacity: .6; }
tr.row-st-hold > td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
tr.row-st-done > td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.prio-sel[data-level="hi"] { border-left: 3px solid var(--danger); color: var(--danger); font-weight: 700; }
.prio-sel[data-level="mid"] { border-left: 3px solid var(--accent2); font-weight: 600; }
.prio-sel[data-level="lo"] { border-left: 3px solid var(--ok); }

.rowact { text-align: right; white-space: nowrap; }
.ic {
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px;
  width: 30px; height: 30px; border-radius: 7px; transition: .15s;
  display: inline-grid; place-items: center; vertical-align: middle;
}
.ic svg { width: 15px; height: 15px; display: block; }
.ic:hover { background: var(--card2); color: var(--text); }
.ic.danger:hover { color: var(--danger); }

input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* ===== Recap ===== */
.recap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recap-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
}
.recap-box.in { border-top: 3px solid var(--ok); }
.recap-box.out { border-top: 3px solid var(--danger); }
.recap-box.benef { border-top: 3px solid var(--accent); }
.recap-label { color: var(--muted); font-size: 13px; }
.recap-val { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.recap-box.benef .recap-val { color: var(--accent); }
.recap-box.benef .recap-val.neg { color: var(--danger); }

/* ===== Modale ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6,8,15,0.6); backdrop-filter: blur(3px);
  display: grid; place-items: center; z-index: 50; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 460px; box-shadow: var(--shadow); overflow: hidden;
  animation: pop .16s ease;
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 14px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); }

/* ===== Modale d'action (valider / supprimer) ===== */
.modal-action { max-width: 380px; }
.action-body {
  padding: 26px 24px 30px; display: flex; flex-direction: column;
  align-items: center; gap: 16px; text-align: center;
}
.action-sub {
  margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5;
  max-width: 300px; word-break: break-word;
}
.action-sub:empty { display: none; }
.action-hint { margin: 0; color: var(--muted); font-size: 12px; }
.action-circle {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  border: none; cursor: pointer; display: grid; place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.action-circle svg {
  width: 44px; height: 44px; fill: none; stroke: #fff;
  stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round;
}
.action-circle.ok { background: var(--ok); box-shadow: 0 8px 26px rgba(61,220,151,.35); }
.action-circle.ko { background: var(--danger); box-shadow: 0 8px 26px rgba(255,95,109,.35); }
.action-circle:hover { transform: scale(1.06); }
.action-circle:active { transform: scale(.97); }
.action-circle:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 4px; }
/* Onde qui part du rond au moment du clic */
.action-circle::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0; pointer-events: none;
}
.action-circle.ok::after { color: var(--ok); }
.action-circle.ko::after { color: var(--danger); }

/* --- Validation : le rond gonfle, l'onde s'échappe, le V se retrace --- */
.action-circle.ok.go { animation: okPop .5s cubic-bezier(.34,1.56,.64,1) forwards; }
.action-circle.ok.go::after { animation: okRipple .55s ease-out forwards; }
.action-circle.ok.go svg path {
  stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: okDraw .38s .1s ease-out forwards;
}
@keyframes okPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); }
  100% { transform: scale(1.06); }
}
@keyframes okRipple {
  0% { opacity: .85; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.75); }
}
@keyframes okDraw { to { stroke-dashoffset: 0; } }
/* La fenêtre s'envole vers le haut */
.modal-action.out-ok { animation: outUp .34s .22s ease-in forwards; }
@keyframes outUp {
  to { transform: translateY(-22px) scale(1.03); opacity: 0; }
}

/* --- Suppression : le rond tremble, le couvercle saute, tout retombe --- */
.action-circle.ko.go { animation: koShake .34s ease-in-out, koFall .3s .34s ease-in forwards; }
.action-circle.ko.go svg .lid { animation: lidPop .34s ease-in-out; transform-origin: 12px 7px; }
@keyframes koShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes lidPop {
  0%,100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-6px) rotate(-16deg); }
}
@keyframes koFall {
  to { transform: translateY(26px) scale(.7); opacity: 0; }
}
/* La fenêtre retombe */
.modal-action.out-ko { animation: outDown .36s .28s ease-in forwards; }
@keyframes outDown {
  to { transform: translateY(26px) scale(.95); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .action-circle.go, .action-circle.go::after, .action-circle.go svg path,
  .action-circle.go svg .lid, .modal-action.out-ok, .modal-action.out-ko {
    animation-duration: .01ms !important;
  }
}

/* Bouton « valider » dans les tableaux */
/* Discrète au repos, verte au survol : la validation ne doit pas crier. */
.ic.ok { color: var(--muted); }
.ic.ok:hover { background: rgba(61,220,151,.14); color: var(--ok); }
.ic.ok:focus-visible { color: var(--ok); }
.ic.ok svg { width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Bouton large de la modale d'action ===== */
.action-btn {
  border: none; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700;
  color: #fff; padding: 16px 40px; border-radius: 14px; letter-spacing: .2px;
  transition: transform .15s ease, filter .15s ease;
}
.action-btn.money { background: linear-gradient(135deg, #43b874, #2f9c5c);
  box-shadow: 0 10px 26px rgba(67,184,116,.36); }
.action-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.action-btn:active { transform: translateY(0) scale(.98); }
.action-btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 4px; }
.action-btn.go { animation: btnPunch .42s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes btnPunch {
  0% { transform: scale(1); }
  35% { transform: scale(1.09); }
  100% { transform: scale(.9); opacity: 0; }
}
.modal-action.out-money { animation: outFade .3s .18s ease-in forwards; }
@keyframes outFade { to { transform: scale(.94); opacity: 0; } }

/* ===== Pluie de billets ===== */
.money-rain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden;
}
.bill {
  position: fixed; width: 44px; height: 26px; margin: -13px 0 0 -22px;
  will-change: transform, opacity;
  animation: billFly var(--dur) cubic-bezier(.22,.62,.35,1) var(--delay) forwards;
}
.bill-in {
  display: block; width: 100%; height: 100%;
  animation: billFlutter var(--flut) linear infinite;
}
.bill svg { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.28)); }
/* Jaillissement, apogée, puis chute — la trajectoire d'un billet lancé. */
@keyframes billFly {
  0%   { transform: translate(0,0) rotate(0) scale(.35); opacity: 0; }
  14%  { opacity: 1; }
  38%  { transform: translate(calc(var(--dx) * .45), calc(var(--rise) * -1))
                    rotate(calc(var(--rot) * .28)) scale(var(--size)); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(var(--dx), var(--fall))
                    rotate(var(--rot)) scale(var(--size)); opacity: 0; }
}
/* Le papier se retourne en tombant */
@keyframes billFlutter {
  0%,100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bill, .bill-in, .action-btn.go, .modal-action.out-money { animation-duration: .01ms !important; }
}

/* ===== Login ===== */
.login-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), transparent), var(--bg); }
.login-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 34px 32px; width: 100%; max-width: 380px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.login-card .muted { margin-bottom: 18px; }
.login-card label { font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.login-card input {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 15px;
}
.login-card input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 8px; }
.alert.error { background: rgba(255,95,109,0.12); color: var(--danger); border: 1px solid rgba(255,95,109,0.3); }

/* ===== Contacts (projets) ===== */
.contacts-editor { display: flex; flex-direction: column; gap: 14px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-block {
  background: var(--card2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.cb-head { display: flex; align-items: center; justify-content: space-between; }
.cb-num {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent);
}
.cb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-block .field input { background: var(--card); }

.multi { display: flex; flex-direction: column; gap: 7px; }
.multi-label { font-size: 13px; color: var(--muted); }
.multi-rows { display: flex; flex-direction: column; gap: 7px; }
.multi-row { display: flex; align-items: center; gap: 6px; }
.multi-row input {
  flex: 1; min-width: 0; background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px;
  font: inherit; font-size: 14px;
}
.multi-row input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.ic.linkic { display: grid; place-items: center; text-decoration: none; flex: 0 0 30px; }
.ic.linkic[aria-disabled] { opacity: .3; pointer-events: none; }
.linkbtn {
  align-self: flex-start; background: none; border: none; padding: 2px 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent);
}
.linkbtn:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .cb-grid { grid-template-columns: 1fr; }
}

/* ===== Grande fenêtre projet (récap à gauche, fiche + contacts à droite) ===== */
.modal-wide { max-width: 1180px; }
.modal-wide .modal-body { max-height: 76vh; padding: 22px 24px; }
.proj-panes {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start;
}
.pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* Panneau gauche : blocs de notes éditables + récap Caesar en lecture seule. */
.pane-recap { min-width: 0; }

.pane-title {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent); padding-top: 6px; border-top: 1px solid var(--border);
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pane-side .contact-list { gap: 12px; }

@media (max-width: 900px) {
  .proj-panes { grid-template-columns: 1fr; gap: 18px; }
  .note-block textarea { min-height: 200px; }
  .recap-ro { max-height: 240px; }
}

/* Ligne de projet cliquable : elle ouvre la grande fenêtre. */
tr.clickable { cursor: pointer; }

/* ===== Visios (issues de Calendly, lecture seule) ===== */
.visio-list { display: flex; flex-direction: column; gap: 10px; }
.visio-empty { margin: 0; color: var(--muted); font-size: 13px; }
.visio-row {
  background: var(--card2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
  border-left: 3px solid var(--accent);
}
.visio-row.off { border-left-color: var(--danger); opacity: .7; }
.v-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v-when { font-weight: 600; font-size: 14px; }
.v-sub { color: var(--muted); font-size: 12px; display: flex; gap: 5px; flex-wrap: wrap; }
.v-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.v-badge.next { background: var(--accent-soft); color: var(--accent); }
.v-badge.past { background: var(--card); color: var(--muted); }
.v-badge.ko { background: rgba(255,95,109,.14); color: var(--danger); }
.v-link {
  align-self: flex-start; font-size: 13px; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.v-link:hover { text-decoration: underline; }

/* Retrait manuel d'une visio : discret, il ne doit pas concurrencer
   « Rejoindre la visio ». */
.v-del {
  background: none; border: 0; padding: 2px; cursor: pointer; line-height: 0;
  color: var(--muted); opacity: .55; border-radius: 6px; flex-shrink: 0;
}
.v-del svg { width: 15px; height: 15px; }
.v-del:hover { opacity: 1; color: var(--danger); background: rgba(255,95,109,.12); }
.visio-done { display: flex; align-items: center; gap: 8px; }

/* ===== Relances d'un prospect sans visio ===== */
.relance-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.relance-item { display: flex; align-items: center; gap: 10px; }
.relance-btn {
  flex: 1; justify-content: flex-start; gap: 8px; font-size: 13px;
  padding: 9px 13px; text-align: left;
}
.relance-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
/* Faite : verte et figée. Le geste n'est plus proposé, l'information reste. */
.relance-btn.ok, .relance-btn.ok:disabled {
  background: rgba(61,220,151,.12); border-color: var(--ok);
  color: var(--ok); opacity: 1; cursor: default;
}
.relance-btn:disabled:not(.ok) { opacity: .45; cursor: not-allowed; }
.relance-when {
  font-size: 12px; color: var(--muted); white-space: nowrap; flex-shrink: 0;
}

/* Aperçu du mail avant envoi : on montre exactement ce qui va partir. */
.mail-preview {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; font-size: 13px;
}
.mail-preview p { margin: 0 0 8px; }
.mail-preview span {
  display: inline-block; min-width: 46px; color: var(--muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
}
.mp-subj { font-weight: 600; }
.mail-preview.busy { opacity: .5; }
.mp-body {
  margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--border);
  white-space: pre-wrap; font: inherit; color: var(--ink);
  max-height: 46vh; overflow-y: auto;
}

/* ===== Bandeau des visios sans projet ===== */
.orphan-band {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent2); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.orphan-band[hidden] { display: none; }
.ob-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.ob-head strong { font-size: 15px; }
.ob-head .muted { font-size: 13px; }
.ob-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent2);
  box-shadow: 0 0 0 4px var(--accent-soft); flex: 0 0 auto;
}
.ob-list { display: flex; flex-direction: column; gap: 8px; }
.ob-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; flex-wrap: wrap;
}
.ob-info { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.ob-when { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ob-who { font-size: 14px; }
.ob-mail { color: var(--muted); font-size: 12px; }
.ob-act { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* ===== Coche « visio calée » (colonne du tableau) ===== */
.vchk { display: inline-grid; place-items: center; line-height: 0; }
.vchk svg { width: 20px; height: 20px; }
.vchk svg rect { fill: none; stroke-width: 1.6; }
.vchk svg path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vchk-none svg rect { stroke: var(--border); }
.vchk-upcoming svg rect { stroke: var(--ok); }
.vchk-upcoming svg path { stroke: var(--ok); }
.vchk-past svg rect { stroke: var(--muted); opacity: .8; }
.vchk-past svg path { stroke: var(--muted); opacity: .8; }

/* Visio déjà tenue : plus de lien ni de badge, juste la trace écrite. */
.visio-done {
  margin: 0; padding: 8px 12px; font-size: 13px; color: var(--muted);
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; border-left: 3px solid var(--muted);
}

/* ===== Pastille de titulaire ===== */
.tit-dot { position: relative; display: inline-block; }
.tit-dot::before {
  content: ''; position: absolute; top: -4px; left: -4px;
  width: 10px; height: 10px; border-radius: 50%; z-index: 2;
  border: 2px solid var(--card); box-sizing: content-box;
}
.tit-julian::before { background: var(--ok); }
.tit-mathis::before { background: var(--tit-mathis); }
.tit-none::before { background: var(--muted); opacity: .55; }
.grid tbody tr:hover .tit-dot::before { border-color: var(--card2); }
.field.tit-dot::before { top: 18px; left: -4px; }

/* ===== Blocs de notes + récap en lecture seule ===== */
.note-block { display: flex; flex-direction: column; gap: 7px; }
.nb-num {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--accent);
}
.note-block textarea {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; padding: 12px 13px; font: inherit; font-size: 14px;
  line-height: 1.6; min-height: 300px; resize: vertical; width: 100%;
}
.note-block textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.recap-ro {
  background: var(--card2); border: 1px solid var(--border); border-radius: 9px;
  padding: 12px 13px; font-size: 13.5px; line-height: 1.6; color: var(--muted);
  white-space: pre-wrap; word-break: break-word;
  max-height: 340px; overflow-y: auto; user-select: text;
}

/* ===== Détail de la demande (projets saisis à la main) ===== */
.pane-recap .field > span {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--accent);
}
.pane-recap .field textarea {
  min-height: 300px; line-height: 1.6; resize: vertical;
}

/* ===== Tâches liées à un projet ===== */
.tcount { font-variant-numeric: tabular-nums; font-weight: 600; }
.tcount.vide { color: var(--muted); opacity: .6; font-weight: 400; }
.tcount.faites { color: var(--ok); }
.tlink-list { display: flex; flex-direction: column; gap: 7px; }
.tlink {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px;
}
.tlink-txt { flex: 1; min-width: 0; font-size: 13.5px; }
.tlink-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
/* Pastille de priorité : même code couleur que le select de la page Tâches. */
.tprio {
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 24px; text-align: center; padding: 2px 8px; border-radius: 999px;
  flex: 0 0 auto;
}
.tprio-hi { color: var(--danger); background: rgba(255,95,109,.15); }
.tprio-mid { color: var(--accent2); background: var(--accent-soft); }
.tprio-lo { color: var(--ok); background: rgba(61,220,151,.15); }
.tlink .ic { flex: 0 0 auto; width: 26px; height: 26px; font-size: 13px; }
.tlink.done .tlink-txt { text-decoration: line-through; opacity: .55; }

/* Ajout d'une tâche depuis la fiche projet (formulaire en ligne) */
.tadd { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.tadd-detail {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 14px; width: 100%;
}
.tadd-detail:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.tadd-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tadd-row .inline-sel { flex: 1; min-width: 96px; max-width: none; }
.tadd-row .btn { flex: 0 0 auto; }

/* ===== Colonne Projet de la page Tâches ===== */
.cell-projet .inline-sel { max-width: 190px; }

@media (max-width: 720px) {
  .recap { grid-template-columns: 1fr; }
  .nav a { padding: 8px 10px; }
  .topbar { gap: 12px; padding: 0 14px; }
  .brand span:not(.logo) { display: none; }
  .ts-label { display: none; }
}

/* ==========================================================================
   Téléphone : les tableaux deviennent des fiches empilées.
   Dix colonnes ne tiennent pas sur 390 px, et le défilement horizontal cachait
   l'essentiel (montants, état, boutons) sans que rien ne le laisse deviner.
   ========================================================================== */
@media (max-width: 700px) {
  .content { padding: 20px 14px 64px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 22px; }
  .card { padding: 16px 14px; border-radius: 14px; margin-bottom: 16px; }

  /* Barre d'outils d'une carte : tout sur la largeur, rien qui déborde. */
  .card-head { gap: 10px; }
  .head-tools { width: 100%; gap: 10px; }
  .head-tools .search { flex: 1 1 100%; }
  .filters { width: 100%; gap: 10px; flex-wrap: wrap; }
  .filters label { flex: 1 1 140px; min-width: 0; }
  .filters .inline-sel { flex: 1; min-width: 0; max-width: none; }
  .head-tools > .btn { width: 100%; }

  /* --- Le tableau en fiches ---------------------------------------------- */
  .table-wrap { overflow-x: visible; }
  .grid, .grid.wide { display: block; min-width: 0; }
  .grid thead { display: none; }
  .grid tbody { display: block; }

  .grid tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  .grid tbody tr:hover { background: var(--card2); }

  .grid tbody td {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border: 0;
    text-align: right;
  }
  /* `margin-right: auto` plutôt que `space-between` : une cellule à deux
     morceaux (17,80 € puis « (20%) ») reste groupée à droite. */
  .grid tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    margin-right: auto;
    text-align: left;
    color: var(--muted);
    font-size: 11px; font-weight: 700;
    letter-spacing: .4px; text-transform: uppercase;
  }

  /* Le nom en tête de fiche : pleine largeur, sans étiquette. */
  .grid tbody td.fiche-titre {
    display: block;
    text-align: left;
    font-size: 15px; font-weight: 700;
    padding: 0 0 9px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  .grid tbody td.fiche-titre::before { content: none; }
  .grid tbody td.fiche-titre { order: -1; }
  .grid tbody td.chk:first-child { order: 1; }   /* « terminer » près des boutons */
  .grid tbody td.rowact { order: 2; }

  /* Les boutons de la ligne : une barre en bas de fiche, alignée à droite. */
  .grid tbody td.rowact {
    justify-content: flex-end;
    padding: 10px 0 0;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
  .grid tbody td.rowact::before { content: none; }

  /* Les contrôles prennent la largeur qui reste, sans forcer le débordement. */
  /* Un paragraphe de trois lignes aligné à droite se lit mal : on le pose
     sous son étiquette, au fil du texte. */
  .grid tbody td.detail {
    display: block;
    max-width: none; min-width: 0;
    text-align: left;
  }
  .grid tbody td.detail::before { display: block; margin-bottom: 2px; }
  .grid td.chk { text-align: right; }
  .grid tbody td .inline-sel,
  .grid tbody td .picker {
    flex: 0 1 auto;
    width: auto; min-width: 130px; max-width: 66%;
  }
  .grid tbody td .state-sel { min-width: 0; }

  /* Un liseré d'état sur toute la fiche plutôt que sur la première cellule. */
  tr.row-st-hold > td:first-child,
  tr.row-st-done > td:first-child { box-shadow: none; }
  .grid tbody tr.row-st-hold { border-left: 3px solid var(--danger); }
  .grid tbody tr.row-st-done { border-left: 3px solid var(--ok); }

  .empty-row td, .grid tbody tr.empty-row {
    display: block; text-align: center; border: 0; padding: 18px 0;
  }
  .empty-row td::before { content: none; }

  /* Les tuiles du prévisionnel et les totaux Money : une colonne. */
  .kpis { grid-template-columns: 1fr; gap: 12px; }
  .kpi { padding: 16px 16px; }
}

/* ==========================================================================
   Facturation (Paperclip AI) — émission, réception, compta, frais km
   ========================================================================== */
.content.fact { max-width: 1480px; }

/* Bannière rouge « relevé bancaire » : sur toutes les pages, collée sous
   la barre du haut. « Y aller » est un lien texte, pas un bouton. */
.compta-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 24px; background: #c81e3a; color: #fff;
  font-size: 14px; line-height: 1.4;
  position: sticky; top: 60px; z-index: 19;
  box-shadow: 0 6px 18px rgba(200, 30, 58, .28);
}
.cb-ico {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: #c81e3a; display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
}
.cb-txt { flex: 1 1 320px; min-width: 0; }
.cb-h { white-space: nowrap; }
.cb-go {
  flex: 0 0 auto; color: #fff; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px;
}
.cb-go:hover { text-decoration-thickness: 2px; }

/* Sous-onglets */
.fact-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  margin: -6px 0 22px; overflow-x: auto; scrollbar-width: none;
}
.fact-tabs a {
  padding: 10px 16px; color: var(--muted); text-decoration: none; font-weight: 600;
  font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
}
.fact-tabs a:hover { color: var(--text); }
.fact-tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.ft-badge {
  background: var(--accent2); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 7px;
}

/* Contenu + colonne de droite (les sous-parties de l'émission, les réglages) */
.fact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.fact-main { min-width: 0; }
.fact-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-nav {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow);
}
.side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 14px;
}
.side-nav a:hover { background: var(--card2); color: var(--text); }
.side-nav a.on { background: var(--accent-soft); color: var(--accent); }
.sn-n {
  font-size: 12px; font-weight: 700; color: var(--muted); background: var(--card2);
  border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums;
}
.sn-n:empty { display: none; }
.side-nav a.on .sn-n { background: var(--card); color: var(--accent); }
.side-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  gap: 10px; font-size: 13px;
}
.side-card h3 {
  margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted);
}
.sc-row { display: flex; justify-content: space-between; gap: 10px; }
.sc-row span { color: var(--muted); }
.sc-row strong { text-align: right; word-break: break-all; }
.side-logo {
  background: #fff; border-radius: 10px; padding: 12px; display: grid;
  place-items: center; border: 1px solid var(--border);
}
.side-logo img { max-height: 40px; max-width: 100%; }
.side-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0; }
.side-note strong { color: var(--text); }
.side-note.warn { color: var(--danger); }
.side-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.side-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
.side-list strong { color: var(--text); }
.side-card .field input, .side-card .field select { padding: 8px 10px; font-size: 13.5px; }
.exp-add { display: flex; flex-direction: column; gap: 6px; }
.exp-add input {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; width: 100%;
}
.exp-add input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

@media (max-width: 1000px) {
  .fact-layout { grid-template-columns: 1fr; }
  .fact-side { position: static; order: -1; }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
}

/* Barre du haut d'une vue : navigation par mois + action principale */
.fact-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.fact-bar-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fact-month {
  display: inline-flex; align-items: center; gap: 4px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 5px; box-shadow: var(--shadow);
}
.fm-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  color: var(--text); text-decoration: none; font-size: 20px; line-height: 1;
}
.fm-btn:hover { background: var(--card2); }
.fm-btn.off { opacity: .25; pointer-events: none; }
.fm-label { min-width: 150px; text-align: center; font-weight: 700; font-size: 15px; }
.fm-today { font-size: 12.5px; color: var(--accent); text-decoration: none; font-weight: 600; padding: 0 10px 0 4px; }
.pill-lock {
  font-size: 12.5px; color: var(--muted); border: 1px dashed var(--border);
  padding: 7px 12px; border-radius: 999px;
}

.kpis.k3 { grid-template-columns: repeat(3, 1fr); }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); }
.kpi.plain { padding: 16px 20px; }
.kpi.plain .kpi-value { font-size: 26px; }
.kpi-value.neg { color: var(--danger); }
@media (max-width: 1100px) { .kpis.k4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px) { .kpis.k3, .kpis.k4 { grid-template-columns: 1fr; } }

/* Étiquettes */
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap; background: var(--card2); color: var(--muted); vertical-align: middle;
}
.tag.ok { background: rgba(61, 220, 151, .14); color: var(--ok); }
.tag.info { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: rgba(245, 158, 11, .15); color: #b45309; }
:root[data-theme="dark"] .tag.warn { color: #fbbf24; }
.tag.ko { background: rgba(255, 95, 109, .14); color: var(--danger); }
td .tag + .tag { margin-left: 4px; }
.lnk { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 13px; }
.lnk:hover { text-decoration: underline; }
.cell-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
tr.row-warn > td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.rowact .lnk { margin-right: 8px; }
.cell-piece { white-space: nowrap; }

/* Champs de fichier et formulaires des modales */
.filefield {
  border: 2px dashed var(--border); border-radius: 12px; padding: 16px; text-align: center;
  color: var(--muted); font-size: 13px; cursor: pointer; background: var(--card2);
  transition: .15s; word-break: break-all;
}
.filefield:hover, .filefield.over { border-color: var(--accent); color: var(--accent); }
.filefield.has { border-style: solid; border-color: var(--ok); color: var(--text); }
.filefield input { display: none; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: var(--muted); font-size: 12px; margin: -4px 0 0; }
.hint.ok { color: var(--ok); }
.warn-txt { color: #b45309; margin-top: 14px; }
:root[data-theme="dark"] .warn-txt { color: #fbbf24; }
.field input[type="color"] { height: 42px; padding: 4px; cursor: pointer; }

/* Lignes d'une facture récurrente */
.lignes { display: flex; flex-direction: column; gap: 8px; }
.ligne, .lignes-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 64px 104px 64px 30px; gap: 6px; align-items: center;
}
.lignes-head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.ligne input {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 9px; font: inherit; font-size: 13px; width: 100%; min-width: 0;
}
.ligne input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.rec-total { text-align: right; font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.rec-total strong { color: var(--text); }

.rec-list { display: flex; flex-direction: column; gap: 12px; }
.rec-card {
  background: var(--card2); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
}
.rec-card.off { opacity: .6; }
.rec-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-top strong { font-size: 15px; }
.rec-obj { color: var(--muted); font-size: 13px; }
.rec-lines { font-size: 13px; line-height: 1.5; }
.rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rec-amount { font-weight: 700; }
.rec-amount span { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.rec-act { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.warn { color: #fff; background: linear-gradient(135deg, #16a06a, #0f8a5a); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* Dossier compta */
.dossier-status {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--card);
  box-shadow: var(--shadow); margin-bottom: 18px; border-left: 4px solid var(--accent);
}
.dossier-status.ok { border-left-color: var(--ok); }
.dossier-status.ko { border-left-color: var(--danger); }
.ds-txt { flex: 1 1 320px; display: flex; flex-direction: column; gap: 3px; }
.ds-txt strong { font-size: 15px; }
.ds-txt > span { color: var(--muted); font-size: 13px; }
.ds-warn { color: var(--danger) !important; font-weight: 600; }
.ds-act { display: flex; gap: 8px; flex-wrap: wrap; }
.dossier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1250px) { .dossier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .dossier-grid { grid-template-columns: 1fr; } }
.dcol {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.dcol-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dcol-head h3 { margin: 0; font-size: 14px; }
.dcol-head span { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.dlist { display: flex; flex-direction: column; gap: 6px; }
.ditem {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card2);
  border: 1px solid var(--border); border-radius: 10px; font-size: 13px; min-width: 0;
}
.di-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); text-decoration: none;
}
a.di-name:hover { color: var(--accent); }
.di-val { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ditem.miss { border-style: dashed; }
.ditem.miss .di-name { color: var(--muted); }
.ditem .ic { width: 24px; height: 24px; flex: 0 0 auto; }
.dempty { color: var(--muted); font-size: 13px; margin: 0; }
.dfoot { margin-top: auto; padding-top: 4px; }
.dropzone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 18px 12px; text-align: center;
  color: var(--muted); font-size: 13px; cursor: pointer; transition: .15s; background: var(--card2);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.dropzone strong { display: block; font-size: 22px; line-height: 1; margin-bottom: 4px; }
.dropzone.urgent { border-color: var(--danger); color: var(--danger); background: rgba(255, 95, 109, .07); }

/* Petites listes de la colonne de droite */
.mini-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.mini-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; background: var(--card2);
  border: 1px solid var(--border); border-radius: 9px; font-size: 13px; color: var(--text);
}
a.mini-item { text-decoration: none; }
a.mini-item:hover, a.mini-item.on { border-color: var(--accent); }
.mi-main { flex: 1; min-width: 0; }
.mi-main span {
  display: block; color: var(--muted); font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mi-val { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-item .ic { width: 24px; height: 24px; flex: 0 0 auto; }

/* Frais km */
.km-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .km-layout { grid-template-columns: 1fr; } .km-layout .fact-side { position: static; order: 0; } }
.seg {
  display: inline-flex; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; gap: 2px; box-shadow: var(--shadow);
}
.seg a {
  padding: 8px 16px; border-radius: 9px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 9px;
}
.seg a.on { background: var(--accent-soft); color: var(--accent); }
.seg .tit-dot::before { position: static; display: inline-block; border: 0; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.form-row[hidden], .form-row .field[hidden] { display: none; }
.form-row .field { flex: 1 1 150px; min-width: 0; }
.form-row .field.grow { flex: 2 1 260px; }
.form-row .field .picker { max-width: none; }
.form-row .field .picker-input { padding: 10px 12px; font-size: 14px; border-radius: 9px; }
.km-foot { justify-content: space-between; align-items: center; margin-bottom: 0; }
.km-preview { font-size: 13px; color: var(--muted); margin: 0; }
.km-preview strong { color: var(--text); font-size: 15px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.form-row .check { padding-bottom: 11px; }
tr.mois-row td {
  background: var(--card2); font-weight: 700; font-size: 13px; color: var(--text);
  padding: 8px 12px; border-bottom: 1px solid var(--border);
}
tr.mois-row td.num { color: var(--muted); text-align: right; }

@media (max-width: 700px) {
  .compta-banner { padding: 10px 14px; top: 60px; }
  .fm-label { min-width: 120px; }
  .form-grid2 { grid-template-columns: 1fr; }
  .ligne, .lignes-head { grid-template-columns: minmax(0, 1fr) 48px 78px 48px 26px; }
  tr.mois-row { flex-direction: row !important; justify-content: space-between; }
  tr.mois-row td { background: none; border: 0; padding: 0; }
  tr.mois-row td::before { content: none !important; }
}

/* Six onglets dans la barre du haut : sur un écran moyen, ils défilent
   plutôt que de pousser le thème et la déconnexion hors de l'écran. */
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }
.brand, .topright { flex-shrink: 0; }
@media (max-width: 900px) {
  .brand span:not(.logo) { display: none; }   /* le trombone suffit */
  .ts-label { display: none; }
}

/* Frais km : illustration du véhicule, posée sur une petite scène avec son
   ombre au sol. Clic ou glisser-déposer pour la changer. */
.car-stage {
  position: relative; display: grid; place-items: center; min-height: 150px;
  border-radius: 14px; cursor: pointer; overflow: hidden; transition: .15s;
  background: radial-gradient(120% 90% at 50% 100%, var(--accent-soft), transparent 70%), var(--card2);
  border: 1px dashed var(--border);
}
.car-stage.has { border-style: solid; }
.car-stage:hover, .car-stage.over { border-color: var(--accent); }
.car-stage.has::after {
  content: ''; position: absolute; left: 16%; right: 16%; bottom: 14px; height: 16px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .38), transparent);
}
.car-stage img {
  position: relative; z-index: 1; max-width: 92%; max-height: 150px; object-fit: contain;
  margin: 10px 0 18px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25));
  transition: transform .25s ease;
}
.car-stage:hover img { transform: translateX(4px); }
.car-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 0 16px; line-height: 1.5; }
.car-empty strong { display: block; font-size: 22px; line-height: 1; margin-bottom: 4px; }
.car-del { align-self: center; margin-top: -4px; font-size: 12px; color: var(--muted); }

/* Bouton Tiime : blanc, texte noir, logo à gauche — dans les deux thèmes. */
.btn.tiime {
  background: #fff; color: #111; border: 1px solid #d9dce3;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn.tiime:hover { background: #f4f5f8; transform: translateY(-1px); }
.btn.tiime img { width: 18px; height: 18px; border-radius: 4px; display: block; }

/* Nouveau client saisi depuis la fenêtre de facture récurrente */
.client-new {
  margin-top: 10px; padding: 12px; border: 1px dashed var(--border);
  border-radius: 12px; display: flex; flex-direction: column; gap: 10px;
}
.client-new[hidden] { display: none; }
.card-head .card-sub { margin: 2px 0 0; font-size: 13px; }
a.ic { text-decoration: none; }

/* Tablette et téléphone : dans l'onglet Facturation, seul le menu des
   sous-parties passe au-dessus du contenu ; les cartes de réglages vont
   dessous (sinon elles repoussent les factures d'un écran entier). */
@media (max-width: 1000px) {
  .fact-side { display: contents; }
  .fact-side > .side-nav { order: -1; }
  .fact-side > .side-card { order: 2; }
}

/* Téléphone : quatre onglets dans la barre du haut, on resserre et on laisse
   défiler plutôt que de couper « Facturation ». */
@media (max-width: 480px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .topbar .brand { display: none; }      /* la place de « Facturation » */
  .nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-left: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 8px; font-size: 13px; white-space: nowrap; }
  /* Marge de fin : sans elle, le dernier onglet reste rogné au bout du défilement. */
  .nav::after { content: ''; flex: 0 0 10px; }
  .topright { gap: 4px; }
  .fact-tabs a { padding: 10px 10px; font-size: 13.5px; }
}

/* Réception : factures mensuelles attendues (abonnements sortants de Money) */
.att-compte {
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: rgba(245, 158, 11, .15); color: #b45309; white-space: nowrap;
}
:root[data-theme="dark"] .att-compte { color: #fbbf24; }
.att-compte.ok { background: rgba(61, 220, 151, .14); color: var(--ok); }
.att-compte:empty { display: none; }
.att-list { display: flex; flex-direction: column; }
.att-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 120px 120px; gap: 12px;
  align-items: center; padding: 10px 8px; border-top: 1px solid var(--border); cursor: pointer;
}
.att-row:hover { background: var(--card2); }
.att-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.att-row .strong { font-weight: 700; }
.att-head {
  cursor: default; border-top: 0; padding-top: 0; font-size: 12px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .4px;
}
.att-head:hover { background: none; }
.att-nom { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.att-nom .tag { margin-left: 6px; vertical-align: 1px; }
.att-row.recue { box-shadow: inset 3px 0 0 var(--ok); }
.att-row.recue .att-nom, .att-row.recue .num { color: var(--muted); }
.att-row:not(.recue):not(.att-head) { box-shadow: inset 3px 0 0 #f59e0b; }
.att-vide { margin: 0; }
@media (max-width: 700px) {
  .att-head { display: none; }
  .att-row { grid-template-columns: 28px minmax(0, 1fr) auto; row-gap: 2px; }
  .att-row .num { grid-column: 2 / 4; display: flex; justify-content: space-between; }
  .att-row .num::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .att-row .att-nom { grid-column: 2 / 4; }
}
.termines-toggle { margin-top: 10px; font-size: 13px; }

/* ===== Téléchargements ===== */
.ic.dl { text-decoration: none; }
.ic.dl:hover { color: var(--accent); }
.btn svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
a.btn[hidden] { display: none; }
/* En-tête de colonne Compta : titre, compteur dessous, téléchargement à droite. */
.dcol-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.dcol-head h3 { grid-column: 1; }
.dcol-head span { grid-column: 1; }
.dcol-head .ic.dl { grid-column: 2; grid-row: 1 / 3; width: 30px; height: 30px; }
.ditem .ic.dl { width: 24px; height: 24px; }
.cell-piece .ic.dl { width: 26px; height: 26px; margin-left: 4px; }

/* ===== Extraction ===== */
.ex-periode { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.ex-periode .field { flex: 0 1 220px; margin: 0; }
@media (max-width: 700px) { .ex-periode .field { flex: 1 1 100%; } }
.ex-periode select {
  width: 100%; background: var(--card2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px; font: inherit;
}
.ex-presets { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 2px; }
.chip {
  background: var(--card2); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.ex-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.ex-tile {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; cursor: pointer; transition: .15s; min-width: 0;
}
.ex-tile:hover { border-color: var(--accent); }
.ex-tile.tout {
  grid-column: 1 / -1; color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.ex-tile.off { opacity: .45; pointer-events: none; }
.ex-ico {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.ex-tile.tout .ex-ico { background: rgba(255,255,255,.18); color: #fff; }
.ex-ico svg { width: 20px; height: 20px; }
.ex-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ex-txt strong { font-size: 15px; }
.ex-txt span { color: var(--muted); font-size: 12.5px; }
.ex-tile.tout .ex-txt span { color: rgba(255,255,255,.82); }
.ex-n { font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.ex-tile.tout .ex-n { color: #fff; }
@media (max-width: 900px) { .ex-actions { grid-template-columns: 1fr; } }

/* ===== Tâches : historique ===== */
.ft-badge.n { background: var(--card2); color: var(--muted); }
.fact-tabs a.on .ft-badge.n { background: var(--accent-soft); color: var(--accent); }
.h-q { min-width: 180px; }
.h-compte { margin: -4px 0 10px; font-size: 13px; }
.btn.danger-txt:not(:disabled):hover { color: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: .45; cursor: default; }
tr.hist-abandonnee .detail { color: var(--muted); }
.filters { flex-wrap: wrap; }
@media (max-width: 700px) {
  .hist-filters label { flex: 1 1 100%; justify-content: space-between; }
  .hist-filters select { flex: 0 0 60%; }
  .hist-filters .h-q { flex: 1 1 100%; min-width: 0; }
  #h-vider { width: 100%; }
}

/* ===== Alertes ===== */
.nav a { position: relative; }
.nav-pastille {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 6px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px;
}
.al-card .card-head h2 { display: flex; align-items: center; gap: 10px; }
.al-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.al-dot.visio { background: var(--accent); }
.al-dot.retard { background: var(--danger); }
.al-dot.jour { background: #f59e0b; }
.al-list { display: flex; flex-direction: column; gap: 8px; }
.al-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--card2); border: 1px solid var(--border);
}
.al-item.passe { opacity: .55; }
.al-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.al-main strong { font-size: 14.5px; overflow-wrap: anywhere; }
.al-main .tag { align-self: flex-start; }
.al-sub { color: var(--muted); font-size: 12.5px; }
.al-retard { color: var(--danger); font-weight: 700; }
.al-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.al-heure {
  flex: 0 0 auto; width: 64px; text-align: center; font-weight: 700; font-size: 17px;
  font-variant-numeric: tabular-nums; display: flex; flex-direction: column;
}
.al-heure span { font-size: 12px; color: var(--muted); font-weight: 600; }
.al-item .ic.ok { flex: 0 0 auto; }
.al-vide {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 48px 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
}
.al-vide-ico {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(61, 220, 151, .14); color: var(--ok); font-size: 26px; font-weight: 700; margin-bottom: 6px;
}
@media (max-width: 700px) {
  .al-item { flex-wrap: wrap; }
  .al-main { flex-basis: calc(100% - 90px); }
  .al-act { width: 100%; }
}
/* Tâches : date « à faire le » */
.ech-inp { min-width: 140px; }
.ech-inp:not([data-etat]), .ech-inp[data-etat=""] { color: var(--muted); }
.ech-inp[data-etat="retard"] { border-color: var(--danger); color: var(--danger); font-weight: 700; }
.ech-inp[data-etat="jour"] { border-color: #f59e0b; color: #b45309; font-weight: 700; }
:root[data-theme="dark"] .ech-inp[data-etat="jour"] { color: #fbbf24; }
tr.row-retard > td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.tlink-ech { margin-left: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tlink-ech.retard { color: var(--danger); }
.tlink-ech.jour { color: #f59e0b; }
:root[data-theme="dark"] .ech-inp { color-scheme: dark; }
.al-vide[hidden], .al-card[hidden] { display: none; }
/* Champs date : toute la case est cliquable (ouvre le calendrier). */
input[type="date"], input[type="month"], input[type="time"] { cursor: pointer; }
td.cell-ech { cursor: pointer; }
/* Connexion : champ du code (second facteur) */
.login-card input.login-code {
  margin-top: 6px; text-align: center; font-family: Menlo, Consolas, monospace;
  font-size: 20px; letter-spacing: 2px; text-transform: uppercase;
}

/* ---- Annuaire des entreprises : suggestions sous le nom d'un client ----
   (FACT.annuaire, repris de l'inscription Pureclean Gestion). Liste dans le
   flux et non en surimpression : la modale défile, elle serait rognée. */
.form-grid2 > .field:has(.ac-liste) { grid-column: 1 / -1; }
.ac-liste { border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  box-shadow: var(--shadow); overflow: hidden; max-height: 300px; overflow-y: auto; }
.ac-item { display: block; width: 100%; text-align: left; border: 0; background: none;
  font: inherit; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--border); }
.ac-item:last-child { border-bottom: 0; }
.ac-item b { display: block; font-size: 13.5px; color: var(--text); font-weight: 650; }
.ac-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ac-item.on, .ac-item:hover { background: var(--accent-soft); }
.ac-item.ac-autre { color: var(--muted); font-size: 12.5px; }
.ac-etat { padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.ac-choix { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 9px;
  background: var(--accent-soft); border: 1px solid var(--border); font-size: 12.5px;
  color: var(--text); line-height: 1.45; }
.ac-choix svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--ok); }
.ac-choix button { margin-left: auto; background: none; border: 0; color: var(--accent); font: inherit;
  font-weight: 600; text-decoration: underline; cursor: pointer; flex: none; }
.field .hint { margin: 0; }
.ac-liste[hidden], .ac-choix[hidden] { display: none; }
