/* Prospection — verre spatial sombre */
:root {
  --fond: #05070a;
  --texte: #f2f5f4;
  --texte-2: rgba(232, 240, 237, .70);
  --texte-3: rgba(232, 240, 237, .46);
  --texte-4: rgba(232, 240, 237, .28);
  --verre: rgba(255, 255, 255, .07);
  --verre-fort: rgba(255, 255, 255, .12);
  --verre-creux: rgba(0, 0, 0, .22);
  --bord: rgba(255, 255, 255, .11);
  --bord-fort: rgba(255, 255, 255, .22);
  --flou: 28px;
  --accent: #3ddc97;
  --accent-doux: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-texte: color-mix(in srgb, var(--accent) 80%, white);
  --danger: #ff6b6b;
  --alerte: #ffc857;
  --c-instagram: #ff7ab2;
  --c-whatsapp: #34d27b;
  --c-email: #6ea8ff;
  --c-sellbird: #ffb547;
  --c-telephone: #4fd6ea;
  --c-terrain: #ff8a5c;
  --c-visiopix: #f2f5f4;
  --c-kadrilis: #ffb547;
  --r-grand: 24px;
  --r-moyen: 16px;
  --r-petit: 11px;
  --ombre: 0 24px 60px -24px rgba(0, 0, 0, .75), 0 2px 6px -2px rgba(0, 0, 0, .4);
  --police: "Inter", -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --titre: "Instrument Serif", "New York", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { overflow-x: hidden; }
body {
  font-family: var(--police);
  font-size: 14px;
  line-height: 1.45;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.chiffres, .num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- fond : scène sombre floutée */
.scene {
  position: fixed; inset: -10vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 34% at 18% 16%, rgba(28, 128, 92, .62), transparent 70%),
    radial-gradient(30% 32% at 82% 12%, rgba(52, 86, 128, .50), transparent 70%),
    radial-gradient(40% 38% at 74% 86%, rgba(150, 98, 40, .40), transparent 72%),
    radial-gradient(34% 30% at 28% 82%, rgba(18, 78, 84, .55), transparent 70%),
    radial-gradient(26% 24% at 52% 48%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(180deg, #0a1012 0%, #06080a 55%, #040506 100%);
  filter: blur(36px) saturate(125%);
  animation: derive 46s ease-in-out infinite alternate;
}
.scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(14% 18% at 64% 30%, rgba(255, 214, 150, .14), transparent 70%),
    radial-gradient(10% 12% at 36% 40%, rgba(160, 255, 220, .10), transparent 70%);
  animation: derive 30s ease-in-out infinite alternate-reverse;
}
.grille-fond {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes derive {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .scene, .scene::after { animation: none; } }

/* ---------------------------------------------------------------- verre */
.verre {
  position: relative;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .045) 38%, rgba(255, 255, 255, .03) 62%, rgba(255, 255, 255, .07) 100%);
  background-color: var(--verre);
  -webkit-backdrop-filter: blur(var(--flou)) saturate(170%);
  backdrop-filter: blur(var(--flou)) saturate(170%);
  border-radius: var(--r-grand);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(255, 255, 255, .04),
    inset 1px 0 0 rgba(255, 255, 255, .06),
    var(--ombre);
  isolation: isolate;
}
.verre::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 26%, rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, .06) 74%, rgba(255, 255, 255, .30));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  z-index: 1;
}
.verre::after {
  /* reflet spéculaire en haut à gauche */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, .10), transparent 45%);
}
.verre > * { position: relative; z-index: 2; }
.verre-creux {
  background: var(--verre-creux);
  border-radius: var(--r-moyen);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), inset 0 -1px 0 rgba(255, 255, 255, .05);
}
.liquide { -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: url(#verre-liquide) blur(10px) saturate(180%); }

/* ---------------------------------------------------------------- structure */
.appli { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 18px; padding: 18px; min-height: 100vh; }
.dock {
  position: sticky; top: 18px; height: calc(100vh - 36px); display: flex; flex-direction: column; padding: 18px 12px 14px;
}
.marque-logo { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; }
.marque-logo svg { width: 34px; height: 34px; flex: none; }
.marque-logo b { display: block; font-size: 15px; letter-spacing: -.01em; }
.marque-logo small { color: var(--texte-3); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-titre { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-4); padding: 16px 12px 6px; }
.nav-lien {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 13px; color: var(--texte-2);
  transition: background .2s, color .2s; position: relative;
}
.nav-lien svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-lien:hover { background: rgba(255, 255, 255, .06); color: var(--texte); }
.nav-lien.actif {
  color: var(--texte);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 6px 18px -8px rgba(0, 0, 0, .7);
}
.nav-lien .pastille-nb {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 600;
  display: grid; place-items: center; background: var(--accent-doux); color: var(--accent-texte);
}
.nav-lien .pastille-nb.alerte { background: rgba(255, 200, 87, .16); color: var(--alerte); }
.dock-pied { margin-top: auto; display: grid; gap: 8px; }
.carte-panneau {
  display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-doux), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.carte-panneau svg { width: 22px; height: 22px; color: var(--accent-texte); }
.carte-panneau b { font-size: 13px; display: block; }
.carte-panneau small { font-size: 11.5px; color: var(--texte-3); }

.principal { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.barre { display: flex; align-items: center; gap: 14px; padding: 6px 4px 0; flex-wrap: wrap; }
.barre-titre { min-width: 0; flex: 1; }
.barre-titre h1 { margin: 0; font-family: var(--titre); font-weight: 400; font-style: italic; font-size: 40px; line-height: 1; letter-spacing: -.01em; }
.barre-titre p { margin: 6px 0 0; color: var(--texte-3); font-size: 13px; }
.barre-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }
.s2 { grid-column: span 2; }
@media (max-width: 1280px) { .s3 { grid-column: span 6; } .s4, .s5, .s7, .s8 { grid-column: span 12; } .s2 { grid-column: span 4; } }

.bloc { padding: 20px 22px; min-width: 0; }
.bloc-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bloc-tete h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.bloc-tete .sous { color: var(--texte-3); font-size: 12.5px; }
.bloc-tete .droite { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.etiquette-section { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); }

/* ---------------------------------------------------------------- tuiles chiffrées */
.tuile { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 132px; }
.tuile .libelle { display: flex; align-items: center; gap: 8px; color: var(--texte-2); font-size: 12.5px; }
.tuile .libelle svg { width: 15px; height: 15px; opacity: .8; }
.tuile .valeur { font-size: 38px; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tuile .valeur small { font-size: 16px; font-weight: 500; color: var(--texte-3); letter-spacing: 0; margin-left: 2px; }
.tuile .bas { display: flex; align-items: center; gap: 8px; color: var(--texte-3); font-size: 12px; margin-top: auto; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 8px; font-size: 11.5px; font-weight: 600;
  background: var(--accent-doux); color: var(--accent-texte); }
.delta.neutre { background: rgba(255, 255, 255, .07); color: var(--texte-2); }

/* ---------------------------------------------------------------- boutons et champs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border: 0; border-radius: 12px; cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 500;
  color: var(--texte);
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 14px -6px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .15s, background .2s, box-shadow .2s, opacity .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .19), rgba(255, 255, 255, .09)); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.accent {
  color: #04140d; font-weight: 600;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn.accent:hover { filter: brightness(1.06); }
.btn.danger { color: #ffd6d6; background: linear-gradient(180deg, rgba(255, 107, 107, .26), rgba(255, 107, 107, .14)); }
.btn.fantome { background: transparent; box-shadow: none; color: var(--texte-2); }
.btn.fantome:hover { background: rgba(255, 255, 255, .07); color: var(--texte); }
.btn.petit { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn.icone { width: 36px; padding: 0; }
.btn.petit.icone { width: 30px; }
.btn.grand { height: 46px; padding: 0 20px; font-size: 14.5px; border-radius: 15px; }
.kbd { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--texte-3);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); font-family: inherit; }

.champ, .choix, .zone {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 12px; border: 0; outline: none;
  background: rgba(0, 0, 0, .26); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: box-shadow .2s, background .2s;
}
.zone { height: auto; min-height: 110px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.champ:focus, .choix:focus, .zone:focus { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.choix { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cfd8d4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
.choix option { background: #121719; }
.champ::placeholder, .zone::placeholder { color: var(--texte-4); }
label.etiq { display: grid; gap: 6px; font-size: 12px; color: var(--texte-3); }
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.formulaire .plein { grid-column: 1 / -1; }

.segment {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 13px;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.segment button {
  border: 0; background: transparent; height: 30px; padding: 0 13px; border-radius: 10px; cursor: pointer; color: var(--texte-2);
  font-size: 12.5px; font-weight: 500; transition: all .2s;
}
.segment button.actif {
  color: var(--texte);
  background: linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 10px -4px rgba(0, 0, 0, .6);
}

/* ---------------------------------------------------------------- étiquettes */
.statut {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 8px; font-size: 11.5px;
  font-weight: 500; background: rgba(255, 255, 255, .07); color: var(--texte-2); white-space: nowrap;
}
.statut::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--point, #9aa5a1); }
.st-a_qualifier { --point: #7d8a86; } .st-a_contacter { --point: #cfd8d4; } .st-contacte { --point: var(--c-email); }
.st-relance { --point: #8fb8ff; } .st-repondu { --point: var(--alerte); } .st-interesse { --point: var(--accent); }
.st-demo { --point: #5ff0d0; } .st-gagne { --point: #b8ff6a; } .st-perdu { --point: var(--danger); } .st-ecarte { --point: #4a5552; }
.st-gagne, .st-interesse { color: var(--texte); }
.canal { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--texte-2); white-space: nowrap; }
.canal svg { width: 14px; height: 14px; color: var(--c); }
.c-instagram { --c: var(--c-instagram); } .c-whatsapp { --c: var(--c-whatsapp); } .c-email { --c: var(--c-email); }
.c-sellbird { --c: var(--c-sellbird); } .c-telephone { --c: var(--c-telephone); } .c-terrain { --c: var(--c-terrain); }
.puce-marque { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.puce-marque.kadrilis { color: var(--c-kadrilis); }
.etiq-libre { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px;
  background: rgba(255, 255, 255, .06); color: var(--texte-2); }
.discret { color: var(--texte-3); }
.tres-discret { color: var(--texte-4); }

/* ---------------------------------------------------------------- listes */
.liste { display: flex; flex-direction: column; }
.liste-ligne {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, .05); transition: background .15s;
}
.liste-ligne:first-child { border-top: 0; }
.liste-ligne:hover { background: rgba(255, 255, 255, .05); }
.liste-ligne .corps { flex: 1; min-width: 0; }
.liste-ligne .corps b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liste-ligne .corps span { display: block; font-size: 12px; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  color: var(--texte); background: linear-gradient(135deg, color-mix(in srgb, var(--c, #8aa) 45%, transparent), rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.vide { padding: 22px 8px; text-align: center; color: var(--texte-3); font-size: 13px; }

/* ---------------------------------------------------------------- tableau */
.tableau-cadre { overflow: auto; border-radius: 18px; max-height: calc(100vh - 260px); }
table.tableau { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tableau th {
  position: sticky; top: 0; z-index: 3; text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .04em; color: var(--texte-3);
  padding: 11px 12px; background: rgba(14, 19, 20, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .07); white-space: nowrap; cursor: pointer; user-select: none;
}
.tableau th.trie { color: var(--texte); }
.tableau td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .045); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.tableau tr { cursor: pointer; transition: background .15s; }
.tableau tbody tr:hover { background: rgba(255, 255, 255, .045); }
.tableau tr.choisi { background: var(--accent-doux); }
.case { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.barre-lot {
  position: sticky; bottom: 18px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: -4px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- pipeline */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; scroll-snap-type: x proximity; }
.colonne { flex: 0 0 278px; width: 278px; min-width: 0; padding: 14px 10px 10px; scroll-snap-align: start; max-height: calc(100vh - 200px); display: flex; flex-direction: column; }
.colonne-tete { display: flex; align-items: center; gap: 8px; padding: 0 6px 12px; }
.colonne-tete .nb { margin-left: auto; font-size: 12px; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.colonne-corps { min-width: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px; padding: 2px; border-radius: 14px; transition: background .2s; }
.colonne-corps.survol { background: var(--accent-doux); }
.carte {
  padding: 11px 12px; border-radius: 14px; cursor: grab;
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 6px 16px -10px rgba(0, 0, 0, .8);
  transition: transform .15s, box-shadow .2s;
}
.carte:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .09), 0 10px 22px -10px rgba(0, 0, 0, .8); }
.carte.glisse { opacity: .4; }
.carte b { display: block; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--texte-3); }
.carte .meta .canal { font-size: 11.5px; }

/* ---------------------------------------------------------------- tiroir, modale, palette, toasts */
.voile { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .38); opacity: 0; pointer-events: none; transition: opacity .25s; }
.voile.ouvert { opacity: 1; pointer-events: auto; }
.tiroir {
  position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(560px, calc(100vw - 24px)); z-index: 70;
  transform: translateX(110%); visibility: hidden; transition: transform .38s cubic-bezier(.2, .9, .25, 1), visibility 0s .38s; display: flex; flex-direction: column;
  background-color: rgba(20, 26, 27, .62);
}
.tiroir.ouvert { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .9, .25, 1); }
.tiroir-tete { padding: 20px 22px 14px; display: flex; gap: 14px; align-items: flex-start; }
.tiroir-corps { padding: 0 22px 22px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.tiroir h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; font-weight: 600; }
.section-fiche { padding: 14px; }
.section-fiche > .etiquette-section { display: block; margin-bottom: 10px; }
.liens-rapides { display: flex; gap: 6px; flex-wrap: wrap; }
.chrono { display: flex; flex-direction: column; gap: 2px; }
.chrono-ligne { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; padding: 8px 4px; align-items: start; }
.chrono-ligne .pt { width: 9px; height: 9px; border-radius: 50%; margin: 5px auto 0; background: var(--c, #9aa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #9aa) 18%, transparent); }
.chrono-ligne b { font-weight: 500; font-size: 13px; }
.chrono-ligne p { margin: 2px 0 0; color: var(--texte-3); font-size: 12.5px; white-space: pre-wrap; }
.chrono-ligne time { font-size: 11.5px; color: var(--texte-4); white-space: nowrap; }

.modale-fond { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .45); animation: apparait .2s; }
.modale { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; background-color: rgba(22, 28, 29, .66); animation: monte .28s cubic-bezier(.2, .9, .25, 1); }
.modale h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.015em; }
.modale .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
@keyframes apparait { from { opacity: 0; } }
@keyframes monte { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.palette { width: min(620px, 100%); padding: 10px; align-self: start; margin-top: 12vh; background-color: rgba(22, 28, 29, .7); }
.palette input { height: 48px; font-size: 16px; background: transparent; box-shadow: none; }
.palette .liste { max-height: 50vh; overflow: auto; }
.palette .liste-ligne.sel { background: rgba(255, 255, 255, .08); }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { padding: 11px 16px; font-size: 13px; display: flex; gap: 9px; align-items: center; animation: monte .3s; background-color: rgba(22, 28, 29, .72); max-width: 380px; }
.toast svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.toast.erreur svg { color: var(--danger); }

/* ---------------------------------------------------------------- graphiques */
.graph { width: 100%; display: block; overflow: visible; }
.graph text { fill: var(--texte-3); font-size: 10px; font-family: var(--police); }
.graph .axe { stroke: rgba(255, 255, 255, .06); }
.graph-cadre { position: relative; }
.graph-y span { position: absolute; left: 0; transform: translateY(-120%); font-size: 10px; color: var(--texte-4); font-variant-numeric: tabular-nums; }
.graph-x { position: relative; height: 18px; margin-top: 6px; }
.graph-x span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--texte-3); white-space: nowrap; }
.pt-rep { position: absolute; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #ffc857; box-shadow: 0 0 0 3px rgba(255, 200, 87, .2), 0 0 10px rgba(255, 200, 87, .6); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--texte-2); }
.legende i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; background: var(--c); }
.anneaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.anneau-bloc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: rgba(0, 0, 0, .14); }
.anneau-bloc .nom { font-size: 12px; color: var(--texte-2); display: flex; align-items: center; gap: 5px; }
.anneau-bloc .nom svg { width: 13px; height: 13px; color: var(--c); }
.anneau-bloc .sem { font-size: 11px; color: var(--texte-4); }
.barreh { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.barreh .rail { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; position: relative; }
.barreh .rail i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--c, var(--accent)); }
.barreh .rail i.b { background: color-mix(in srgb, var(--accent) 90%, white); height: 100%; opacity: .95; }
.barreh .rail i.a { background: rgba(255, 255, 255, .22); }
.barreh .lib { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte-2); }
.barreh .val { color: var(--texte-3); font-variant-numeric: tabular-nums; font-size: 12px; }

.canaux-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.canaux-table th { text-align: right; font-weight: 500; color: var(--texte-3); font-size: 11.5px; padding: 0 8px 8px; }
.canaux-table th:first-child, .canaux-table td:first-child { text-align: left; padding-left: 0; }
.canaux-table td { text-align: right; padding: 9px 8px; border-top: 1px solid rgba(255, 255, 255, .05); font-variant-numeric: tabular-nums; }
.taux { display: inline-block; min-width: 50px; padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .06); font-size: 12px; }

.ia-texte { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--texte-2); }
.chargement { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--texte); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.squelette { border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: brille 1.3s infinite; }
@keyframes brille { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- séance */
.seance { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.focus { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.focus .qui { display: flex; gap: 16px; align-items: center; }
.focus .qui .avatar { width: 60px; height: 60px; border-radius: 19px; font-size: 22px; }
.focus h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; font-weight: 600; }
.focus .actions-seance { display: flex; gap: 10px; flex-wrap: wrap; }
.file .liste-ligne.fait .corps b { text-decoration: line-through; color: var(--texte-3); }
.file .liste-ligne.courant { background: var(--accent-doux); }
.minuteur { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.minuteur .temps { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.jours-prog { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.jour-prog { flex: none; padding: 8px 12px; border-radius: 13px; cursor: pointer; text-align: center; background: rgba(0, 0, 0, .2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); font-size: 12px; color: var(--texte-2); }
.jour-prog b { display: block; font-size: 15px; color: var(--texte); }
.jour-prog.actif { background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.jour-prog.complet b { color: var(--accent-texte); }

/* ---------------------------------------------------------------- modèles de messages */
.modeles-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.modele-carte { padding: 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: transform .2s; }
.modele-carte:hover { transform: translateY(-2px); }
.modele-carte p { margin: 0; color: var(--texte-2); font-size: 13px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.var-chips button { border: 0; cursor: pointer; padding: 3px 9px; border-radius: 8px; font-size: 12px; background: rgba(255, 255, 255, .07); color: var(--texte-2); }

/* ---------------------------------------------------------------- Sellbird */
.brouillon { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.brouillon pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 13px; color: var(--texte-2); max-height: 150px; overflow: auto; padding: 12px; }
.brouillon .actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------------------------------------------------------------- carte jour × heure */
.carte-chaleur { display: grid; grid-template-columns: 34px repeat(17, minmax(0, 1fr)); gap: 3px; font-size: 10.5px; color: var(--texte-3); }
.carte-chaleur span { aspect-ratio: 1; border-radius: 5px; background: rgba(255, 255, 255, .04); }
.carte-chaleur .lib { aspect-ratio: auto; background: none; display: flex; align-items: center; }
.carte-chaleur .h { aspect-ratio: auto; background: none; text-align: center; }

/* ---------------------------------------------------------------- éditeur du panneau */
.editeur { display: grid; grid-template-columns: 270px minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1280px) { .editeur { grid-template-columns: 250px minmax(0, 1fr); } .editeur > aside:last-child { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.toile { padding: 18px; }
.toile-grille { position: relative; display: grid; gap: 8px; border-radius: 22px; padding: 10px; background: rgba(0, 0, 0, .25);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5); user-select: none; touch-action: none; }
.toile-case { border-radius: 5px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035); }
.toile-widget {
  position: relative; border-radius: 14px; padding: 10px 12px; cursor: move; display: flex; flex-direction: column; gap: 4px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .08); z-index: 2;
}
.toile-widget.sel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 2px var(--accent); }
.toile-widget b { font-size: 12.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.toile-widget b svg { width: 14px; height: 14px; }
.toile-widget small { color: var(--texte-3); font-size: 11px; }
.toile-widget .poignee { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; cursor: nwse-resize; border-right: 2px solid rgba(255, 255, 255, .5); border-bottom: 2px solid rgba(255, 255, 255, .5); border-radius: 0 0 6px 0; }
.toile-widget .suppr { position: absolute; right: 6px; top: 6px; opacity: 0; transition: opacity .2s; }
.toile-widget:hover .suppr { opacity: 1; }
.palette-widgets { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; }
.palette-widgets button { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: transparent; padding: 8px; border-radius: 11px; cursor: pointer; color: var(--texte); }
.palette-widgets button:hover { background: rgba(255, 255, 255, .06); }
.palette-widgets button svg { width: 17px; height: 17px; flex: none; color: var(--accent-texte); }
.palette-widgets button span { display: block; font-size: 11.5px; color: var(--texte-3); }
.pages-onglets { display: flex; gap: 6px; flex-wrap: wrap; }
.telephone-cadre {
  border-radius: 38px; padding: 10px; background: linear-gradient(160deg, #2a3032, #0c0f10); position: relative;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 30px 60px -20px rgba(0, 0, 0, .9);
}
.telephone-cadre iframe { display: block; width: 100%; border: 0; border-radius: 29px; background: #000; }

/* ---------------------------------------------------------------- mobile */
.onglets-mobile { display: none; }
@media (max-width: 900px) {
  .appli { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 96px; gap: 12px; }
  .dock { display: none; }
  .barre-titre h1 { font-size: 32px; }
  .grille { gap: 12px; }
  .s2, .s3, .s4, .s5, .s6, .s7, .s8, .s9 { grid-column: span 12; }
  .tuiles .s2 { grid-column: span 6; }
  .tuile .valeur { font-size: 30px; }
  .seance, .editeur { grid-template-columns: minmax(0, 1fr); }
  .onglets-mobile {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; padding: 6px; justify-content: space-around;
    border-radius: 24px;
  }
  .onglets-mobile a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 10px; border-radius: 16px; font-size: 10.5px; color: var(--texte-3); }
  .onglets-mobile a svg { width: 21px; height: 21px; }
  .onglets-mobile a.actif { color: var(--texte); background: rgba(255, 255, 255, .1); }
  .tableau-cadre { max-height: none; }
  .formulaire { grid-template-columns: minmax(0, 1fr); }
  .colonne { flex-basis: 84vw; }
  .tiroir { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .masque-mobile { display: none !important; }
}

/* ---------------------------------------------------------------- connexion */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.connexion form { width: min(400px, 100%); padding: 32px 28px 28px; display: grid; gap: 16px; }
.connexion h1 { margin: 0; font-family: var(--titre); font-style: italic; font-weight: 400; font-size: 44px; line-height: 1; }
.connexion p { margin: 0; color: var(--texte-3); }
.connexion .erreur { color: #ffb3b3; font-size: 13px; }
