/* ════════════════════════════════════════════════════════════════════════════
   NEVA — Espace commercial. Même monde que le site : argent sur noir #0a0a0c,
   chrome brossé plafonné, filets métal, display Clash. Pas de boîtes quand une
   rangée-filet suffit. Mobile-first.
   ════════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Clash Display';
  src: url('./fonts/ClashDisplay-Variable.woff2') format('woff2-variations');
  font-weight: 200 700; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'General Sans';
  src: url('./fonts/GeneralSans-Variable.woff2') format('woff2-variations');
  font-weight: 200 700; font-display: swap; font-style: normal;
}

:root {
  /* 2026-07-14 (Samuel) : /admin est TOUJOURS NOIR — il ne lit ni data-theme,
     ni le localStorage du site : sa palette est la sienne, figée sur le
     velours. color-scheme force aussi les contrôles natifs (inputs,
     scrollbars, autofill) en sombre, quel que soit le thème du site ou de
     l'OS. */
  color-scheme: dark;
  --bg: #0a0a0c;
  --surface-1: #101012;
  --surface-2: #141416;
  --surface-3: #1a1a1c;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --text-1: #e9e9e6;
  --text-2: rgba(233, 233, 230, 0.72);
  --text-3: rgba(233, 233, 230, 0.48);
  --danger: #d0655c;

  /* dégradé chrome (plafonné : jamais de blanc pur en masse) */
  --chrome: linear-gradient(172deg, #f0f0f0 0%, #b2b2b6 42%, #e2e2e2 56%, #8f8f93 100%);
  --rampe: linear-gradient(90deg, rgba(58, 58, 62, 0), #3a3a3e 18%, #c8c8cc 50%, #3a3a3e 82%, rgba(58, 58, 62, 0));

  --radius: 16px;
  --radius-sm: 12px;
  --edge: 20px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 260ms;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* [hidden] doit TOUJOURS gagner, même contre un display posé par une classe */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text-1);
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

::selection { background: rgba(220, 220, 220, 0.22); }

/* ── Matière : grain + faisceaux + halos ─────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.halos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.halo { position: absolute; border-radius: 50%; filter: blur(90px); }
.halo--a {
  width: 58vw; height: 58vw; max-width: 760px; max-height: 760px; top: -24vw; right: -14vw;
  background: radial-gradient(circle, rgba(236, 236, 236, 0.07), transparent 66%);
}
.halo--b {
  width: 50vw; height: 50vw; max-width: 620px; max-height: 620px; bottom: -22vw; left: -16vw;
  background: radial-gradient(circle, rgba(236, 236, 236, 0.045), transparent 70%);
}
/* Faisceaux : le cône DOIT se dissoudre en bas, jamais s'arrêter net (le
   « light coupé » de Samuel était l'arête franche de la boîte à 62vh). Boîte
   pleine hauteur + masque de fondu vertical → la lumière s'éteint en douceur. */
.beam {
  position: absolute; top: -12vh; width: 46vw; height: 112vh; opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 82%);
}
.beam--l { left: -8vw; background: conic-gradient(from 158deg at 18% 0%, transparent 0deg, rgba(236, 236, 236, 0.05) 12deg, transparent 30deg); }
.beam--r { right: -8vw; background: conic-gradient(from 174deg at 82% 0%, transparent 0deg, rgba(236, 236, 236, 0.06) 14deg, transparent 34deg); }

/* ── Primitives ───────────────────────────────────────────────────────────── */
.logo { display: block; flex: none; }

.chrome-text {
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  --sweep: -120%;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 560; letter-spacing: 0.01em; cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow var(--dur) var(--ease), opacity 160ms;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid #dcdcdc; outline-offset: 3px; }
.btn:disabled { opacity: 0.42; cursor: default; }
.btn:disabled:active { transform: none; }
.btn--ghost:disabled:hover { background: transparent; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

.btn--metal {
  color: #0a0a0c;
  background: linear-gradient(168deg, #ffffff 0%, #dcdcdc 46%, #efefef 62%, #c4c4c8 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 14px 34px -18px rgba(0, 0, 0, 0.9);
}
.btn--metal::after {
  content: ''; position: absolute; inset: -40% -10%;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.85) 50%, transparent 58%);
  transform: translateX(var(--sweep)) skewX(-8deg); transition: transform 620ms var(--ease); pointer-events: none;
}
.btn--metal:hover::after { --sweep: 120%; }
.btn--metal[disabled] { opacity: 0.5; cursor: progress; }

.btn--ghost {
  color: var(--text-1); background: transparent; box-shadow: 0 0 0 1px var(--hairline-strong) inset;
}
.btn--ghost:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset; }
.btn--danger { color: var(--danger); box-shadow: 0 0 0 1px rgba(208, 101, 92, 0.4) inset; }
.btn--danger:hover { background: rgba(208, 101, 92, 0.1); }

.btn__spin { display: none; width: 15px; height: 15px; border: 2px solid rgba(10,10,12,.28); border-top-color: #0a0a0c; border-radius: 50%; animation: spin 620ms linear infinite; }
.btn.is-busy .btn__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.linkbtn {
  background: none; border: 0; padding: 8px 2px; min-height: 44px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--text-3);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hairline-strong);
  transition: color 160ms; -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.linkbtn:hover { color: var(--text-1); }

.iconbtn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  background: transparent; border: 1px solid var(--hairline); border-radius: 50%;
  color: var(--text-2); font-size: 15px; cursor: pointer; transition: all 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.iconbtn:hover { color: var(--text-1); border-color: var(--hairline-strong); }

.form-alert {
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: rgba(208, 101, 92, 0.1); border: 1px solid rgba(208, 101, 92, 0.32);
  color: #eda49d; font-size: 14px;
}

/* ── Champs ───────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-3); font-weight: 520;
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: var(--surface-1); color: var(--text-1);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; /* 16px = pas de zoom auto iOS */
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.field textarea { min-height: auto; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 19px) 24px, calc(100% - 13px) 24px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: rgba(233, 233, 230, 0.26); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(220, 220, 220, 0.5); background: var(--surface-2);
}
.field--full { grid-column: 1 / -1; }

.field__pw { position: relative; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 40px; padding: 0 12px; background: transparent; border: 0;
  color: var(--text-3); font: inherit; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
}
.pw-toggle:hover { color: var(--text-1); }

.check { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; color: var(--text-2); user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 20px; height: 20px; flex: none; border-radius: 6px;
  border: 1px solid var(--hairline-strong); background: var(--surface-1);
  display: grid; place-items: center; transition: all 160ms var(--ease);
}
.check__box::after {
  content: ''; width: 9px; height: 5px; border-left: 2px solid #0a0a0c; border-bottom: 2px solid #0a0a0c;
  transform: rotate(-45deg) scale(0.4); opacity: 0; transition: all 160ms var(--ease);
}
.check input:checked + .check__box { background: linear-gradient(160deg, #fff, #c8c8cc); border-color: transparent; }
.check input:checked + .check__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid #dcdcdc; outline-offset: 2px; }

/* ════════════════════  CONNEXION  ════════════════════
   Login CENTRÉ, colonne unique : le MÊME écran du mobile au desktop (seule la
   largeur du panneau change). Focale unique — marque → un titre → formulaire.
   La carte du formulaire est une surface élevée au langage métal du site ; la
   profondeur vient d'un halo argent discret. Pas de double titre display, pas
   de collapse fragile : mobile-first par construction. */
.login {
  position: relative; z-index: 2; min-height: 100dvh; overflow: hidden;
  display: grid; place-items: center;
  padding: calc(40px + var(--safe-t)) 20px calc(36px + var(--safe-b));
}
/* halo argent centré derrière le panneau (profondeur, jamais une tache) */
.login::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(720px, 132%); aspect-ratio: 1; left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(236, 236, 236, 0.06), transparent 62%);
}

.login__panel { width: 100%; max-width: 400px; display: grid; gap: 22px; }

/* ── en-tête : la marque + UN titre (montée douce) ── */
.login__head {
  display: grid; justify-items: center; text-align: center; gap: 7px;
  opacity: 0; animation: up 640ms var(--ease) 80ms forwards;
}
.login__brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.login__mark { width: 38px; height: 38px; }
.login__brandname {
  font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: 15px; letter-spacing: 0.2em; color: var(--text-1);
}
.login__title {
  font-family: 'Clash Display', sans-serif; font-weight: 560;
  font-size: clamp(1.7rem, 5.6vw, 2rem); line-height: 1.1; letter-spacing: -0.02em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login__sub { max-width: 32ch; color: var(--text-3); font-size: 14px; line-height: 1.55; }

/* ── la carte du formulaire : surface élevée (plus claire que les champs →
      ils lisent en creux), lèvre de lumière métal, ombre profonde portée ── */
.login__form {
  position: relative;
  padding: 26px clamp(20px, 5vw, 28px) 24px;
  background: linear-gradient(180deg, #17171b 0%, #141417 100%);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 40px 82px -54px rgba(0, 0, 0, 0.96);
  opacity: 0; animation: up 700ms var(--ease) 170ms forwards;
}
.login__form::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: var(--rampe); opacity: 0.72; pointer-events: none;
}
.login .btn--metal { width: 100%; margin-top: 8px; }

.login__foot {
  text-align: center; font-size: 11px; color: rgba(233, 233, 230, 0.34); letter-spacing: 0.02em;
  opacity: 0; animation: up 700ms var(--ease) 300ms forwards;
}
.login__foot code { font-family: ui-monospace, monospace; font-size: 11px; }

.login.is-out { animation: loginOut 520ms var(--ease) forwards; }
@keyframes loginOut { to { opacity: 0; transform: scale(0.98); filter: blur(6px); } }

/* ════════════════════  ACCUEIL ANIMÉ  ════════════════════ */
.welcome {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 45%, #131316 0%, #0a0a0c 62%);
  padding: 24px; text-align: center; cursor: pointer;
}
.welcome.is-out { animation: welcomeOut 620ms var(--ease) forwards; }
@keyframes welcomeOut { to { opacity: 0; transform: scale(1.05); filter: blur(10px); visibility: hidden; } }
.welcome__inner { position: relative; display: grid; justify-items: center; gap: 4px; }
.welcome__logo { width: clamp(38px, 9vw, 46px); height: auto; opacity: 0; animation: wIn 700ms var(--ease) 60ms forwards; }
.welcome__kicker {
  margin-top: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.32em;
  color: var(--text-3); opacity: 0; animation: wIn 700ms var(--ease) 200ms forwards;
}
.welcome__name {
  font-family: 'Clash Display', sans-serif; font-weight: 560;
  font-size: clamp(3rem, 13vw, 7rem); line-height: 1.06; letter-spacing: -0.03em;
  display: flex; gap: 0.02em; overflow: hidden; padding-bottom: 0.06em;
}
.welcome__name .ch {
  display: inline-block; transform: translateY(115%) rotate(3deg); opacity: 0;
  animation: chIn 820ms var(--ease) forwards;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.welcome__name .ch--sp { width: 0.28em; }
@keyframes chIn { to { transform: none; opacity: 1; } }
.welcome__line { margin-top: 12px; color: var(--text-2); font-size: clamp(14px, 3.6vw, 16px); opacity: 0; animation: wIn 800ms var(--ease) 620ms forwards; }
.welcome__rule {
  margin-top: 26px; height: 1px; width: min(340px, 74vw);
  background: var(--rampe);
  transform: scaleX(0); animation: ruleIn 900ms var(--ease) 420ms forwards;
}
@keyframes wIn { to { opacity: 1; } }
@keyframes ruleIn { to { transform: scaleX(1); } }

/* ════════════════════  STRUCTURE DE L'APP  ════════════════════ */
.app {
  position: relative; z-index: 2; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding-bottom: calc(92px + var(--safe-b)); /* place pour la nav basse */
}
[data-a] { opacity: 0; transform: translateY(14px); }
.app.is-in [data-a] { animation: up 640ms var(--ease) both; }
.app.is-in [data-a]:nth-of-type(2) { animation-delay: 60ms; }
.app.is-in .hero [data-a]:nth-child(2) { animation-delay: 80ms; }
.app.is-in .hero [data-a]:nth-child(3) { animation-delay: 160ms; }
.app.is-in .stats[data-a] { animation-delay: 200ms; }
.app.is-in .boardbar[data-a] { animation-delay: 260ms; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Barre du haut ── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--safe-t)) var(--edge) 10px;
  /* OPAQUE : à 0,88 le titre chrome de la fiche transparaissait au scroll
     (classe de bug « overlay à 0,98 » du site — l'œil lit ~1 % d'écart) */
  background: rgb(10, 10, 12);
  border-bottom: 1px solid var(--hairline);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__name {
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.16em;
}
.viewtabs { display: none; }
.topbar__search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.topbar__search .ico { position: absolute; left: 14px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.topbar__search input {
  width: 100%; min-height: 42px; padding: 9px 14px 9px 38px;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--text-1); font: inherit; font-size: 16px;
}
.topbar__search input:focus { outline: none; border-color: rgba(220, 220, 220, 0.4); }
.topbar__search input::-webkit-search-cancel-button { filter: invert(0.6); }
.topbar__actions { position: relative; display: flex; align-items: center; gap: 8px; }

.userchip {
  display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px;
  background: transparent; border: 1px solid var(--hairline);
  color: var(--text-1); font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; min-width: 44px;
  justify-content: center; -webkit-tap-highlight-color: transparent;
}
.userchip:hover { border-color: var(--hairline-strong); }
.userchip__ini {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(160deg, #ececec, #9a9a9e); color: #0a0a0c;
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 14px;
}
.userchip__name { display: none; }
.usermenu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; min-width: 230px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9); animation: up 220ms var(--ease) both;
}
.usermenu button {
  display: block; width: 100%; text-align: left; padding: 12px 14px; min-height: 44px;
  background: transparent; border: 0; border-radius: 10px; color: var(--text-1); font: inherit; font-size: 14px; cursor: pointer;
}
.usermenu button:hover { background: var(--surface-3); }
.usermenu__danger { color: var(--danger); }

/* ── En-tête éditorial ── */
.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: clamp(26px, 5vh, 44px) var(--edge) 6px;
}
.hero__eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--text-3);
  margin-bottom: 10px;
}
.hero__title {
  font-family: 'Clash Display', sans-serif; font-weight: 560;
  font-size: clamp(2.5rem, 9.5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.028em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.hero__sub { margin-top: 6px; color: var(--text-3); font-size: clamp(13px, 3.4vw, 15px); }
.hero__sub b { color: var(--text-2); font-weight: 520; }
.hero__cta { display: none; }

/* ── Bande de chiffres (rangée-filets, pas de boîtes) ── */
.stats {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 22px var(--edge) 4px;
  border-top: 1px solid var(--hairline);
}
.stat { position: relative; padding: 16px 14px 14px 0; border-bottom: 1px solid var(--hairline); }
.stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--hairline); }
.stat__value {
  font-family: 'Clash Display', sans-serif; font-weight: 600;
  font-size: clamp(2.1rem, 8.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label {
  margin-top: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-2); font-weight: 520;
}
.stat__meta { margin-top: 2px; font-size: 12px; color: var(--text-3); }

/* ── Barre du tableau ── */
.boardbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px var(--edge) 12px;
}
/* sur mobile le réglage du tableau vit dans le menu utilisateur */
.boardbar .linkbtn { display: none; }
@media (min-width: 900px) { .boardbar .linkbtn { display: block; } }
.coltabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.coltabs::-webkit-scrollbar { display: none; }
.coltab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 42px; padding: 0 15px;
  background: transparent; border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--text-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: all 200ms var(--ease); -webkit-tap-highlight-color: transparent;
}
.coltab__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #9a9a9e); flex: none; }
.coltab__n { font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 13px; }
.coltab.is-active { background: var(--surface-3); border-color: rgba(220, 220, 220, 0.36); color: var(--text-1); }
.coltab.is-active .coltab__n { color: var(--text-1); }

/* ── Le tableau ── */
.board { flex: 1; padding: 2px var(--edge) 0; }
.col { margin-bottom: 22px; min-width: 0; }
.col.is-hidden { display: none; }
.col__head {
  display: none; position: relative; align-items: baseline; gap: 9px;
  padding: 8px 2px 10px; margin-bottom: 12px;
}
.col__head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--c, #55555a), rgba(255, 255, 255, 0.06) 62%, transparent);
  opacity: 0.75;
}
.col__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; align-self: center; }
.col__name {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-2); font-weight: 560;
}
.col__n {
  margin-left: auto; font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 19px;
  font-variant-numeric: tabular-nums;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.col__list { display: grid; gap: 10px; min-height: 40px; }
.col.is-drop .col__list { outline: 1px dashed rgba(220, 220, 220, 0.5); outline-offset: 6px; border-radius: var(--radius); }
.col__empty {
  padding: 30px 16px; text-align: center; color: rgba(233, 233, 230, 0.3); font-size: 13px;
  border: 1px dashed var(--hairline); border-radius: var(--radius);
}

.card {
  position: relative; overflow: hidden; padding: 15px 16px 14px; text-align: left; width: 100%;
  background: linear-gradient(180deg, #131315, #0e0e10);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  color: var(--text-1); font: inherit; cursor: pointer; display: grid; gap: 8px;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  animation: up 420ms var(--ease) both; -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 12px; right: 40%; height: 1px;
  background: linear-gradient(90deg, var(--c, rgba(220, 220, 220, 0.4)), transparent);
  opacity: 0.6;
}
.card:hover { transform: translateY(-3px); border-color: var(--hairline-strong); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.95); }
.card:focus-visible { outline: 2px solid #dcdcdc; outline-offset: 2px; }
.card.is-ghost { opacity: 0.3; }
.card.is-drag {
  position: fixed; z-index: 70; width: var(--w); pointer-events: none; cursor: grabbing;
  transform: rotate(-1.4deg) scale(1.02); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95);
  border-color: rgba(220, 220, 220, 0.5); animation: none;
}
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__name { font-family: 'Clash Display', sans-serif; font-weight: 560; font-size: 17.5px; line-height: 1.22; letter-spacing: -0.005em; color: #dcdcdc; }
.card__age { font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card__company { font-size: 13px; color: var(--text-2); margin-top: -4px; }
.card__contact { font-size: 12px; color: var(--text-3); word-break: break-word; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 9px;
  border-radius: 999px; border: 1px solid var(--hairline); color: var(--text-3); white-space: nowrap;
}
.tag--sim { color: #0a0a0c; background: linear-gradient(160deg, #ececec, #b6b6ba); border-color: transparent; font-weight: 560; }
.tag--budget { color: var(--text-2); border-color: var(--hairline-strong); }

/* ════════════════════  VUE TÂCHES  ════════════════════ */
.view { display: flex; flex-direction: column; flex: 1; }

.todoadd { padding: 6px var(--edge) 0; display: grid; gap: 10px; }
.todoadd input {
  width: 100%; min-height: 54px; padding: 14px 18px;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  color: var(--text-1); font: inherit; font-size: 16px;
}
.todoadd input::placeholder { color: rgba(233, 233, 230, 0.26); }
.todoadd input:focus { outline: none; border-color: rgba(220, 220, 220, 0.5); background: var(--surface-2); }
.todoadd__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.assign { display: flex; gap: 6px; flex-wrap: wrap; }
.assign__opt {
  min-height: 38px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--hairline); color: var(--text-3);
  font: inherit; font-size: 13px; transition: all 160ms var(--ease); -webkit-tap-highlight-color: transparent;
}
.assign__opt.is-on { background: linear-gradient(160deg, #ececec, #b6b6ba); color: #0a0a0c; border-color: transparent; font-weight: 560; }

.todofilters { display: flex; gap: 8px; padding: 16px var(--edge) 4px; }
.todofilter {
  min-height: 40px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--hairline); color: var(--text-2);
  font: inherit; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px;
  transition: all 180ms var(--ease); -webkit-tap-highlight-color: transparent;
}
.todofilter .n { font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 12.5px; }
.todofilter.is-active { background: var(--surface-3); border-color: rgba(220, 220, 220, 0.36); color: var(--text-1); }

.todos { list-style: none; padding: 4px var(--edge) 24px; }
.todo {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 2px; border-bottom: 1px solid var(--hairline);
  animation: up 380ms var(--ease) both;
}
.todo:first-child { border-top: 1px solid var(--hairline); }
.todo__check {
  width: 26px; height: 26px; flex: none; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--hairline-strong); background: var(--surface-1);
  display: grid; place-items: center; transition: all 200ms var(--ease);
  -webkit-tap-highlight-color: transparent; padding: 0;
}
.todo__check::after {
  content: ''; width: 11px; height: 6px; border-left: 2px solid #0a0a0c; border-bottom: 2px solid #0a0a0c;
  transform: rotate(-45deg) scale(0.4) translateY(-1px); opacity: 0; transition: all 200ms var(--ease);
}
.todo__check:focus-visible { outline: 2px solid #dcdcdc; outline-offset: 2px; }
.todo.is-done .todo__check { background: linear-gradient(160deg, #ececec, #a8a8ac); border-color: transparent; }
.todo.is-done .todo__check::after { opacity: 1; transform: rotate(-45deg) scale(1) translateY(-1px); }
.todo__body { flex: 1; min-width: 0; cursor: pointer; }
.todo__title { font-size: 15.5px; line-height: 1.4; transition: color 200ms; overflow-wrap: break-word; }
.todo.is-done .todo__title { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(233, 233, 230, 0.35); }
.todo__meta { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.todo__del {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%; color: var(--text-3);
  font-size: 16px; cursor: pointer; transition: all 160ms; -webkit-tap-highlight-color: transparent;
}
.todo__del:hover { color: var(--danger); background: rgba(208, 101, 92, 0.08); }
.todos__empty { padding: 42px 16px; text-align: center; color: rgba(233, 233, 230, 0.3); font-size: 14px; }

/* ════════════════════  NAV BASSE (mobile)  ════════════════════ */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px max(18px, env(safe-area-inset-left)) calc(8px + var(--safe-b));
  /* OPAQUE : le contenu ne doit jamais transparaître sous la nav basse */
  background: rgb(11, 11, 13); border-top: 1px solid var(--hairline);
}
.bottomnav__item {
  display: grid; justify-items: center; gap: 3px; min-width: 84px; min-height: 52px;
  background: none; border: 0; padding: 6px 10px; cursor: pointer;
  color: var(--text-3); font: inherit; font-size: 11.5px; letter-spacing: 0.04em;
  transition: color 180ms; -webkit-tap-highlight-color: transparent;
}
.bottomnav__item svg { width: 21px; height: 21px; }
.bottomnav__item.is-active { color: #dcdcdc; }
.bottomnav__add {
  width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(160deg, #fff, #d2d2d6); color: #0a0a0c;
  font-size: 30px; font-weight: 300; line-height: 1;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.32) inset;
  transition: transform 200ms var(--ease); -webkit-tap-highlight-color: transparent;
}
.bottomnav__add:active { transform: scale(0.92); }

/* ════════════════════  FICHES (sheets)  ════════════════════ */
.scrim {
  position: fixed; inset: 0; z-index: 45; background: rgba(6, 6, 7, 0.72);
  animation: fade 260ms var(--ease) both;
}
@keyframes fade { from { opacity: 0; } }

.sheet {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; top: 8vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #131315, #0c0c0e);
  border-top: 1px solid var(--hairline-strong);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, 0.95);
  animation: sheetUp 380ms var(--ease) both;
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet::before {
  content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 4px; border-radius: 99px; background: var(--hairline-strong);
}
.sheet__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 26px 20px 14px; border-bottom: 1px solid var(--hairline);
}
.sheet__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-3); }
.sheet__title {
  font-family: 'Clash Display', sans-serif; font-weight: 560;
  font-size: clamp(1.5rem, 6vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; margin-top: 4px;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px; display: grid; gap: 18px; align-content: start; -webkit-overflow-scrolling: touch; }
.sheet__hint { color: var(--text-3); font-size: 13.5px; max-width: 52ch; }
.sheet__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text-1);
  text-decoration: none; font-size: 14px; font-weight: 520;
}
.quick:hover { border-color: var(--hairline-strong); background: var(--surface-3); }
.sheet__legend { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); margin-bottom: -8px; }
.statuses { display: flex; flex-wrap: wrap; gap: 8px; }
.status {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer;
  transition: all 180ms var(--ease); -webkit-tap-highlight-color: transparent;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.status.is-on { color: #0a0a0c; background: var(--c); border-color: transparent; font-weight: 560; }
.status.is-on .status__dot { background: rgba(10, 10, 12, 0.45); }
.sheet__meta { font-size: 12px; color: var(--text-3); }
.sheet__foot {
  display: flex; gap: 10px; padding: 14px 20px calc(14px + var(--safe-b));
  border-top: 1px solid var(--hairline); background: rgba(10, 10, 12, 0.6);
}
.sheet__foot .btn { flex: 1; }
.sheet__foot .btn--danger { flex: 0 0 auto; padding: 0 20px; }

/* ── Éditeur de colonnes ── */
.colsedit { list-style: none; display: grid; gap: 8px; }
.coledit {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--surface-1);
}
.coledit__color {
  width: 34px; height: 34px; flex: none; border-radius: 50%; cursor: pointer; border: 0;
  background: transparent; display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.coledit__color i {
  width: 14px; height: 14px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
  transition: transform 160ms var(--ease);
}
.coledit__color:hover i { transform: scale(1.2); }
.coledit__label {
  flex: 1; min-width: 0; min-height: 40px; padding: 8px 10px;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  color: var(--text-1); font: inherit; font-size: 15px;
}
.coledit__label:hover { border-color: var(--hairline); }
.coledit__label:focus { outline: none; border-color: rgba(220, 220, 220, 0.45); background: var(--surface-2); }
.coledit__n { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.coledit__btn {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 8px; color: var(--text-3);
  font-size: 15px; cursor: pointer; transition: all 150ms; -webkit-tap-highlight-color: transparent;
}
.coledit__btn:hover { color: var(--text-1); background: var(--surface-3); }
.coledit__btn:disabled { opacity: 0.25; cursor: default; }
.coledit__btn--del:hover { color: var(--danger); background: rgba(208, 101, 92, 0.08); }

/* ── Toast / squelettes ── */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 999px;
  background: linear-gradient(160deg, #f4f4f4, #c8c8cc); color: #0a0a0c;
  font-size: 14px; font-weight: 520; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); animation: toastIn 320ms var(--ease) both;
}
.toast.is-err { background: linear-gradient(160deg, #e58b83, #cf5f56); color: #1a0c0b; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }

.skel { height: 96px; border-radius: var(--radius-sm); background: linear-gradient(100deg, #101012 30%, #17171a 50%, #101012 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* ════════════════════  BUREAU  ════════════════════ */
@media (min-width: 900px) {
  :root { --edge: clamp(28px, 4vw, 64px); }

  .app { padding-bottom: 40px; }
  .bottomnav { display: none; }

  .topbar { gap: 26px; padding: 13px var(--edge); }
  .viewtabs { display: flex; gap: 22px; margin-left: 6px; }
  .viewtab {
    position: relative; background: none; border: 0; padding: 10px 2px; cursor: pointer;
    font: inherit; font-size: 14.5px; font-weight: 520; color: var(--text-3);
    letter-spacing: 0.01em; transition: color 200ms; display: inline-flex; align-items: center; gap: 7px;
  }
  .viewtab::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
    background: var(--rampe); transform: scaleX(0); transform-origin: left;
    transition: transform 420ms var(--ease);
  }
  .viewtab:hover { color: var(--text-1); }
  .viewtab.is-active { color: #e4e4e4; }
  .viewtab.is-active::after { transform: scaleX(1); }
  .viewtab__badge {
    min-width: 19px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center;
    background: linear-gradient(160deg, #ececec, #b0b0b4); color: #0a0a0c;
    border-radius: 999px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  }
  .topbar__search { max-width: 380px; margin-left: auto; }
  .userchip { padding: 4px 14px 4px 4px; }
  .userchip__name { display: block; }

  .hero { padding: clamp(34px, 6vh, 58px) var(--edge) 10px; }
  .hero__cta { display: inline-flex; }

  .stats { grid-template-columns: repeat(4, 1fr); margin: 30px var(--edge) 8px; }
  .stat { padding: 22px 20px 20px 0; border-bottom: 0; }
  .stat + .stat { padding-left: 26px; border-left: 1px solid var(--hairline); }
  .stat:nth-child(even) { padding-left: 26px; }
  .stats { border-bottom: 1px solid var(--hairline); }

  .boardbar { padding: 26px var(--edge) 14px; }
  .boardbar .coltabs { display: none; } /* le kanban desktop montre toutes ses colonnes */
  .boardbar .linkbtn { margin-left: auto; }

  .board {
    display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(230px, 1fr)); gap: 16px;
    padding: 4px var(--edge) 30px; align-items: start;
    /* au-delà de ~5 colonnes le kanban se scrolle horizontalement, comme Trello */
    overflow-x: auto; overscroll-behavior-x: contain;
  }
  .col { min-width: 230px; }
  .col { margin: 0; }
  .col.is-hidden { display: block; }
  .col__head { display: flex; }
  .col__list { min-height: 140px; align-content: start; }
  .card { cursor: grab; }
  .card.is-drag { cursor: grabbing; }

  .todoadd { padding: 14px var(--edge) 0; max-width: 980px; grid-template-columns: 1fr auto auto; align-items: center; }
  .todoadd__row { display: contents; }
  .todofilters { padding: 22px var(--edge) 6px; }
  .todos { padding: 6px var(--edge) 40px; max-width: 980px; }
  .todo { padding: 17px 4px; gap: 16px; }
  .todo__del { opacity: 0; }
  .todo:hover .todo__del, .todo__del:focus-visible { opacity: 1; }

  .scrim { background: rgba(6, 6, 7, 0.6); }
  .sheet {
    top: 0; bottom: 0; left: auto; right: 0; width: min(560px, 100%);
    border-radius: 0; border-left: 1px solid var(--hairline-strong); border-top: 0;
    animation: sheetRight 380ms var(--ease) both;
  }
  @keyframes sheetRight { from { transform: translateX(100%); } }
  .sheet::before { display: none; }
  .sheet__head { padding: 24px 28px 18px; }
  .sheet__body { padding: 24px 28px; }
  .sheet__foot { padding: 16px 28px; }
  .form--grid { grid-template-columns: 1fr 1fr; }
  .toast { bottom: 28px; }

  /* bureau : le login reste CENTRÉ (même écran qu'en mobile) ; on élargit juste
     un peu le panneau et le titre pour occuper l'espace sans le remplir de vide */
  .login__panel { max-width: 408px; gap: 24px; }
  .login__title { font-size: clamp(1.95rem, 2.3vw, 2.15rem); }
  .login__form { padding: 30px 30px 26px; }
}

@media (min-width: 1500px) {
  .board { grid-template-columns: repeat(var(--cols, 5), minmax(250px, 1fr)); }
}

/* ════════════════════════════════════════════════════════════════════════════
   SESSION 2026-07-15 — CRM : fiches d'entretien, pipeline projets, devis,
   paramètres. Même monde : rangées-filets, chrome plafonné, pills.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── avertissement de configuration (ACIER, pas de doré — DA argent) ── */
.configwarn {
  display: flex; align-items: center; gap: 10px;
  margin: 12px var(--edge) 0; padding: 11px 15px;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}
.configwarn__dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #b58f74; }
.configwarn__text { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ── vue Projets : cartes de fiche ── */
.card__late {
  font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--hairline-strong); color: var(--text-2);
}
.card__late.is-late { color: #eda49d; border-color: rgba(208, 101, 92, 0.5); }
.card__prog {
  height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden;
}
.card__prog i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #8f8f93, #e2e2e2);
  transition: width 400ms var(--ease);
}
/* priorité haute : brique DÉSATURÉE (un seul signal chaud, très rabattu), pas de doré */
.tag--prio { color: #cf9d94; border-color: rgba(191, 125, 117, 0.42); }
.tag--req { color: var(--text-2); border-color: var(--hairline-strong); }
.tag--devis { color: var(--text-2); border-color: var(--hairline-strong); }

/* ── vue Devis ── */
.devisbar { display: flex; align-items: center; gap: 12px; padding: 14px var(--edge) 12px; }
.devislist { list-style: none; padding: 2px var(--edge) 30px; display: grid; gap: 10px; }
.devislist__vide {
  padding: 42px 16px; text-align: center; color: rgba(233, 233, 230, 0.3); font-size: 14px;
  border: 1px dashed var(--hairline); border-radius: var(--radius);
}
.drow { animation: up 380ms var(--ease) both; }
.drow__btn {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 15px 18px; cursor: pointer;
  background: linear-gradient(180deg, #131315, #0e0e10);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  color: var(--text-1); font: inherit;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.drow__btn:hover { transform: translateY(-2px); border-color: var(--hairline-strong); }
.drow__btn:focus-visible { outline: 2px solid #dcdcdc; outline-offset: 2px; }
.drow__left { flex: 1; min-width: 0; }
.drow__num {
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 16px;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.drow__client { font-size: 13px; color: var(--text-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drow__mid { text-align: right; flex: none; }
.drow__total { font-size: 15px; font-weight: 560; font-variant-numeric: tabular-nums; }
.drow__date { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.dchip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 560;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c, #9a9a9e) 55%, transparent);
  color: var(--c, #9a9a9e); white-space: nowrap;
}
.dchip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #9a9a9e); }
.dchip--lg { font-size: 12px; padding: 7px 14px; }

/* ── écran FICHE (l'entretien) ── */
.view--fiche { padding-bottom: 20px; }
.fiche { padding: 10px var(--edge) 30px; }
.fiche__head {
  display: grid; gap: 16px; padding: 12px 0 18px;
  border-bottom: 1px solid var(--hairline); margin-bottom: 20px;
}
.fiche__back {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--hairline); color: var(--text-2);
  font: inherit; font-size: 13px; transition: all 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.fiche__back:hover { color: var(--text-1); border-color: var(--hairline-strong); }
.fiche__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-3); }
.fiche__title {
  margin-top: 4px;
  font-family: 'Clash Display', sans-serif; font-weight: 560;
  font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.07em;
}
.fiche__sub { margin-top: 3px; font-size: 13px; color: var(--text-3); }
.fiche__gauge { max-width: 460px; }
.fiche__gauge-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fiche__pct {
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 22px;
  font-variant-numeric: tabular-nums;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fiche__statut {
  font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 560;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c, #9a9a9e) 55%, transparent);
  color: var(--c, #9a9a9e);
}
.fiche__bar {
  margin-top: 8px; height: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.07); overflow: hidden;
}
.fiche__bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #8f8f93, #e8e8ec);
  transition: width 500ms var(--ease);
}
.fiche__manque { margin-top: 7px; font-size: 12px; color: var(--text-3); }

.fiche__cols { display: grid; gap: 22px; }
.fbloc {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: linear-gradient(180deg, #111113, #0d0d0f);
  padding: 20px 18px;
}
.fbloc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fbloc__titre {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-3); font-weight: 560; margin-bottom: 16px;
}
.fbloc__save { font-size: 11px; color: #9fd15c; letter-spacing: 0.06em; }
.fbloc__grid { display: grid; gap: 14px; }
.fbloc__hint { font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; max-width: 52ch; }
.fbloc--danger { border-color: rgba(208, 101, 92, 0.2); }

.fq__groupe {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-2); font-weight: 560;
  padding: 14px 0 4px; margin-top: 6px; border-bottom: 1px solid var(--hairline);
}
.fq__groupe:first-child { margin-top: 0; padding-top: 0; }
.fq { padding: 14px 0 4px; }
.fq__head { display: flex; align-items: baseline; gap: 10px; }
.fq__label { font-size: 14.5px; font-weight: 540; line-height: 1.4; }
.fq__help { margin-top: 2px; font-size: 12px; color: var(--text-3); max-width: 60ch; }
.fq__input {
  width: 100%; margin-top: 9px; min-height: 46px; padding: 11px 14px;
  background: var(--surface-1); color: var(--text-1);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; transition: border-color 160ms var(--ease);
}
textarea.fq__input { resize: vertical; line-height: 1.5; }
.fq__input:focus { outline: none; border-color: rgba(220, 220, 220, 0.5); background: var(--surface-2); }
.fq__input--num, .fq__input--date { max-width: 220px; }
.fq__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fq__chip {
  min-height: 40px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--hairline); color: var(--text-2);
  font: inherit; font-size: 13.5px; transition: all 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.fq__chip:hover { border-color: var(--hairline-strong); }
.fq__chip.is-on {
  background: linear-gradient(160deg, #ececec, #b6b6ba); color: #0a0a0c;
  border-color: transparent; font-weight: 560;
}
.fq__chip:focus-visible { outline: 2px solid #dcdcdc; outline-offset: 2px; }

.fdevis { display: grid; gap: 8px; margin-bottom: 14px; }
.fdevis__vide { font-size: 12.5px; color: var(--text-3); }
.fdevis__row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 46px; padding: 8px 12px; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  color: var(--text-1); font: inherit; transition: border-color 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.fdevis__row:hover { border-color: var(--hairline-strong); }
.fdevis__num {
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 14px;
  font-variant-numeric: tabular-nums;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fdevis__tot { margin-left: auto; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ── sheet devis ── */
.sheet--large { }
.quick--fiche { width: 100%; }
.sheet__foot--wrap { flex-wrap: wrap; }
.sheet__foot--wrap .btn { flex: 1 1 auto; }
.sheet__foot--wrap .btn--sm { flex: 0 1 auto; }
.dmeta { display: grid; gap: 12px; }
.dmeta .dchip--lg { justify-self: start; }
.dmeta__rows { display: grid; gap: 7px; }
.dmeta__row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--text-3); }
.dmeta__row b { color: var(--text-1); font-weight: 520; text-align: right; font-variant-numeric: tabular-nums; }
.dlines { display: grid; gap: 8px; }
.dline { display: grid; grid-template-columns: 1fr 64px 96px auto 36px; gap: 8px; align-items: center; }
.dline input {
  min-height: 44px; padding: 9px 12px; width: 100%;
  background: var(--surface-1); color: var(--text-1);
  border: 1px solid var(--hairline); border-radius: 10px; font: inherit; font-size: 14px;
}
.dline input:focus { outline: none; border-color: rgba(220, 220, 220, 0.5); }
.dline__qty, .dline__price { text-align: right; font-variant-numeric: tabular-nums; }
.dline__eur { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.dline__del {
  width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-3); cursor: pointer; font-size: 14px;
  transition: all 150ms; -webkit-tap-highlight-color: transparent;
}
.dline__del:hover { color: var(--danger); background: rgba(208, 101, 92, 0.08); }
.linkbtn--left { text-align: left; align-self: start; }
.dpay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dtotal {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.dframe {
  width: 100%; height: 520px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: #dfe1e6;
}
.devents { display: grid; gap: 6px; }
.devents__row { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.devents__quand { color: var(--text-3); min-width: 96px; font-variant-numeric: tabular-nums; }
.dedit { display: grid; gap: 10px; }

/* ── paramètres ── */
.rtabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rtab {
  min-height: 40px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--hairline); color: var(--text-2);
  font: inherit; font-size: 13.5px; transition: all 180ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.rtab.is-active { background: var(--surface-3); border-color: rgba(220, 220, 220, 0.36); color: var(--text-1); }
.rpanel { display: grid; gap: 14px; align-content: start; }
.rpresets { display: flex; flex-wrap: wrap; gap: 8px; }
.rqlist { list-style: none; display: grid; gap: 8px; }
.rq {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--surface-1);
}
.rq.is-off { opacity: 0.55; }
.rq.is-dragrow { border-color: rgba(220, 220, 220, 0.5); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9); }
.rq__grip {
  width: 30px; height: 38px; flex: none; display: grid; place-items: center;
  background: transparent; border: 0; color: var(--text-3); cursor: grab;
  touch-action: none; -webkit-tap-highlight-color: transparent;
}
.rq__grip:active { cursor: grabbing; }
.rq__main { flex: 1; min-width: 200px; }
.rq__head { display: grid; gap: 6px; }
.rq__label { font-size: 14px; font-weight: 520; line-height: 1.35; }
.rq__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.rqadd { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rqedit {
  width: 100%; display: grid; gap: 12px; padding: 14px;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.rqedit__rule { display: grid; grid-template-columns: 1fr auto 90px; gap: 8px; }
.rqedit__rule select, .rqedit__rule input {
  min-height: 44px; padding: 8px 10px; background: var(--surface-1); color: var(--text-1);
  border: 1px solid var(--hairline); border-radius: 10px; font: inherit; font-size: 13.5px;
}
.rqedit .btn { justify-self: start; }
.rline { padding: 6px 0; }
.field--inline { max-width: 220px; }
.rbrow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--hairline);
}
.rbrow__nom { flex: 1; min-width: 0; font-size: 14px; }
.rbrow__prix {
  width: 110px; min-height: 42px; padding: 8px 12px; text-align: right;
  background: var(--surface-1); color: var(--text-1); font-variant-numeric: tabular-nums;
  border: 1px solid var(--hairline); border-radius: 10px; font: inherit; font-size: 14px;
}
.rbrow__prix:focus { outline: none; border-color: rgba(220, 220, 220, 0.5); }
.rbrow__eur { font-size: 13px; color: var(--text-3); width: 28px; }
.rbrow__weeks { font-size: 12px; color: var(--text-3); white-space: nowrap; }
#rb-save, #rf-save, #rr-save { justify-self: start; }

/* ── journal d'audit ── */
.auditlist { list-style: none; display: grid; gap: 8px; }
.audit {
  padding: 11px 13px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: var(--surface-1);
}
.audit__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.audit__action { font-size: 13.5px; font-weight: 560; letter-spacing: 0.01em; }
.audit__quand { font-size: 11.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.audit__detail { margin-top: 3px; font-size: 12.5px; color: var(--text-3); word-break: break-word; }

/* ── bureau ── */
@media (min-width: 900px) {
  .board--projets { grid-template-columns: repeat(var(--cols, 5), minmax(230px, 1fr)); }
  .fiche { padding-top: 18px; }
  .fiche__head { grid-template-columns: auto 1fr minmax(300px, 420px); align-items: end; gap: 26px; }
  .fiche__back { align-self: start; }
  .fiche__cols { grid-template-columns: minmax(340px, 5fr) 7fr; gap: 26px; align-items: start; }
  .fiche__col--infos { display: grid; gap: 18px; position: sticky; top: 84px; }
  .fbloc { padding: 24px 22px; }
  .fbloc__grid { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .fbloc__grid .field--full { grid-column: 1 / -1; }
  .devislist { max-width: 1080px; }
  .sheet--large { width: min(760px, 100%); }
  .dframe { height: 640px; }
  .rqedit { grid-template-columns: 1fr 1fr; }
  .rqedit .field:first-child { grid-column: 1 / -1; }
  .rqedit .check, .rqedit .btn { grid-column: 1 / -1; }
}

/* POLITIQUE V10 du projet : les animations tournent TOUJOURS — Windows coupe
   « Effets d'animation » par défaut chez beaucoup d'utilisateurs et le
   dashboard paraissait mort. On ne lit plus prefers-reduced-motion ici. */

/* ════════════════════════════════════════════════════════════════════════════
   SESSION 2026-07-16 — CHAT D'ÉQUIPE, ANNONCES (« déballe »), COMPTES.
   Même monde : argent sur velours, chrome plafonné, rangées-filets, pills.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── badges de vue : compteur chrome (devis/tâches) vs pastille douce (chat) ── */
.viewtab__badge--soft {
  background: rgba(220, 220, 220, 0.16);
  color: var(--text-1); box-shadow: 0 0 0 1px var(--hairline-strong) inset;
}
/* la pastille d'annonces neuves est un simple point d'acier, pas un nombre */
#annonce-badge {
  min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; line-height: 0;
  background: linear-gradient(160deg, #ececec, #9a9a9e); box-shadow: none; align-self: center;
}

/* ── nav basse : 6 entrées tiennent sur 360px (labels compacts, plus de FAB) ── */
.bottomnav { justify-content: space-between; gap: 2px; padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
.bottomnav__item {
  position: relative; flex: 1 1 0; min-width: 0; padding: 6px 2px; gap: 4px;
  font-size: 10px; letter-spacing: 0.01em;
}
.bottomnav__item svg { width: 22px; height: 22px; }
.bottomnav__dot {
  position: absolute; top: 3px; left: 50%; margin-left: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(160deg, #f2f2f2, #b6b6ba); box-shadow: 0 0 0 2px rgb(11, 11, 13);
}

/* ════════════════════  CHAT  ════════════════════ */
/* le chat prend toute la hauteur : la page ne scrolle pas, seul le flux défile */
body[data-view="chat"] { overflow: hidden; }
body[data-view="chat"] .app { height: 100dvh; min-height: 0; padding-bottom: 0; }

.view--chat { flex: 1; min-height: 0; display: flex; }
.chat {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  width: 100%; max-width: 880px; margin: 0 auto;
}
.chat__stream {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px var(--edge) 8px; scroll-behavior: smooth;
}
.chat__stream::-webkit-scrollbar { width: 8px; }
.chat__stream::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.chat__empty {
  margin: auto; max-width: 34ch; text-align: center; color: var(--text-3);
  font-size: 14px; line-height: 1.6; padding: 40px 0;
}
.chat__day { display: flex; align-items: center; gap: 12px; margin: 14px 2px 8px; }
.chat__day::before, .chat__day::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.chat__day span {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-3);
  white-space: nowrap;
}

.msg { display: flex; align-items: flex-end; gap: 9px; padding: 2px 0; animation: msgIn 260ms var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg--grouped { margin-top: -1px; }
.msg__avatar {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(160deg, #d8d8dc, #8f8f93); color: #0a0a0c;
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 12.5px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.msg__avatar.is-ghost { background: none; box-shadow: none; }
.msg__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: min(74%, 560px); }
.msg__author { font-size: 11.5px; font-weight: 560; color: var(--text-2); margin: 2px 0 1px 12px; letter-spacing: 0.01em; }
.msg__bubble {
  position: relative; align-self: flex-start; padding: 9px 13px 8px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 16px 16px 16px 5px; color: var(--text-1);
  font-size: 14.5px; line-height: 1.42;
}
.msg__text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg__time {
  display: inline-block; margin: 3px 0 -1px 8px; float: right;
  font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
  position: relative; top: 4px;
}
.msg--grouped .msg__bubble { border-radius: 5px 16px 16px 5px; }

/* mes messages : bulle chrome, à droite (l'écho du toast / de la pastille owner) */
.msg--mine { flex-direction: row-reverse; }
.msg--mine .msg__col { align-items: flex-end; }
.msg--mine .msg__bubble {
  align-self: flex-end; border: 0; color: #0a0a0c;
  background: linear-gradient(158deg, #ededed 0%, #cfcfd3 55%, #bcbcc0 100%);
  border-radius: 16px 16px 5px 16px;
}
.msg--mine.msg--grouped .msg__bubble { border-radius: 16px 5px 5px 16px; }
.msg--mine .msg__time { color: rgba(10, 10, 12, 0.5); }

.msg__del {
  align-self: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: transparent; border: 0; color: var(--text-3); cursor: pointer;
  font-size: 12px; opacity: 0; transition: opacity 160ms, color 160ms, background 160ms;
  -webkit-tap-highlight-color: transparent;
}
.msg:hover .msg__del, .msg__del:focus-visible { opacity: 1; }
.msg__del:hover { color: var(--danger); background: rgba(208, 101, 92, 0.1); }
@media (hover: none) { .msg__del { opacity: 0.5; } }

.chat__composer {
  flex: none; display: flex; align-items: flex-end; gap: 10px;
  padding: 12px var(--edge) calc(12px + var(--safe-b));
  margin-bottom: calc(66px + var(--safe-b)); /* dégage la nav basse fixe (mobile) */
  border-top: 1px solid var(--hairline); background: rgba(10, 10, 12, 0.72);
  backdrop-filter: none;
}
.chat__input {
  flex: 1; min-width: 0; resize: none; max-height: 140px;
  padding: 11px 15px; min-height: 46px;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 22px;
  color: var(--text-1); font: inherit; font-size: 16px; line-height: 1.4;
}
.chat__input:focus { outline: none; border-color: rgba(220, 220, 220, 0.4); background: var(--surface-2); }
.chat__input::placeholder { color: var(--text-3); }
.chat__send {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #0a0a0c;
  background: linear-gradient(160deg, #f2f2f2, #c4c4c8);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  transition: transform 180ms var(--ease); -webkit-tap-highlight-color: transparent;
}
.chat__send svg { width: 19px; height: 19px; margin-left: -1px; }
.chat__send:hover { transform: scale(1.06); }
.chat__send:active { transform: scale(0.94); }

/* ════════════════════  ANNONCES (« déballe »)  ════════════════════ */
.annoncesbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--edge) 8px;
}
.annoncesbar .coltabs { flex: 1; min-width: 0; }
.annoncesbar__new { flex: none; }

.annonces {
  display: grid; gap: 12px; grid-template-columns: 1fr;
  padding: 6px var(--edge) 30px;
}
.annonces__vide {
  grid-column: 1 / -1; text-align: center; color: var(--text-3);
  font-size: 14px; padding: 46px 0;
}
.annonce {
  position: relative; overflow: hidden; padding: 17px 18px 15px 20px;
  background: linear-gradient(180deg, #131315, #0e0e10);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  animation: up 460ms var(--ease) both;
}
.annonce::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--c, #8a8a8e), transparent 82%);
}
.annonce.is-pinned {
  border-color: rgba(220, 220, 220, 0.22);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.9);
}
.annonce.is-pinned::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 100% 0%, rgba(236, 236, 236, 0.05), transparent 60%);
}
.annonce__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.annonce__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.annonce__pin {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(220, 220, 220, 0.1); border: 1px solid var(--hairline-strong);
  color: #d8d8dc; font-size: 10.5px; font-weight: 560; text-transform: uppercase; letter-spacing: 0.1em;
}
.annonce__pin svg { color: #d8d8dc; }
.annonce__cat {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); font-weight: 520;
}
.annonce__cat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #8a8a8e); }
.annonce__actions { display: flex; gap: 4px; flex: none; }
.annonce__act {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px;
  background: transparent; border: 0; color: var(--text-3); cursor: pointer; font-size: 14px;
  transition: all 150ms; -webkit-tap-highlight-color: transparent;
}
.annonce__act:hover { color: var(--text-1); background: var(--surface-3); }
.annonce__act.is-on { color: #dcdcdc; }
.annonce__title {
  font-family: 'Clash Display', sans-serif; font-weight: 560; font-size: 1.18rem;
  line-height: 1.2; letter-spacing: -0.01em; color: var(--text-1); margin-bottom: 6px;
}
.annonce__body { color: var(--text-2); font-size: 14.5px; line-height: 1.58; white-space: pre-wrap; word-wrap: break-word; }
.annonce__meta { margin-top: 11px; font-size: 12px; color: var(--text-3); }

/* ════════════════════  COMPTES (paramètres, owner)  ════════════════════ */
.comptes { list-style: none; display: grid; gap: 10px; }
.compte {
  display: grid; gap: 12px; padding: 14px 15px;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--surface-1);
}
.compte.is-off { opacity: 0.62; }
.compte__top { display: flex; align-items: center; gap: 12px; }
.compte__av {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(160deg, #d8d8dc, #8f8f93); color: #0a0a0c;
  font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 15px;
}
.compte.is-off .compte__av { background: linear-gradient(160deg, #6a6a6e, #46464a); }
.compte__idc { flex: 1; min-width: 0; }
.compte__name { font-size: 15px; font-weight: 540; display: flex; align-items: center; gap: 8px; }
.compte__you {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 1px 7px; font-weight: 500;
}
.compte__id { font-size: 12.5px; color: var(--text-3); word-break: break-all; }
.compte__role {
  flex: none; min-height: 38px; padding: 6px 30px 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text-1);
  font: inherit; font-size: 13px; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px; background-repeat: no-repeat;
}
.compte__role:disabled { opacity: 0.6; cursor: default; }
.compte__role:focus { outline: none; border-color: rgba(220, 220, 220, 0.4); }
.compte__acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.compte__acts .linkbtn { display: block; }

/* ── bureau : chat centré, annonces en deux colonnes, comptes aérés ── */
@media (min-width: 900px) {
  .chat__composer { margin-bottom: 0; padding: 14px var(--edge) 20px; }
  .chat__stream { padding-inline: clamp(20px, 4vw, 40px); }
  .annonces { grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1080px; }
  .annonce { padding: 20px 22px 18px 24px; }
  .annonce__act { opacity: 0; }
  .annonce:hover .annonce__act, .annonce__act:focus-visible, .annonce__act.is-on { opacity: 1; }
}
