/* ============================================================
   STUDIO FLF · Portail Client
   Design calé sur flf.studio :
   - Noir pur #000 / Blanc #fff (monochrome)
   - Druk Wide (display) · TWK Lausanne (texte) · PP Editorial (italique)
   ============================================================ */

@font-face {
  font-family: "Druk Wide";
  src: url("assets/DrukWide-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TWK Lausanne";
  src: url("assets/TWKLausanne-400.ttf") format("truetype");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Editorial";
  src: url("assets/PPEditorialNew-UltralightItalic.ttf") format("truetype");
  font-weight: 200; font-style: italic; font-display: swap;
}

:root {
  --bg:        #000000;
  --surface:   #101013;                                /* OPAQUE (les menus/déroulants flottent : jamais de transparence qui laisse voir le contenu derrière) */
  --surface-2: #17171a;
  --glass:     rgba(255,255,255,0.05);                 /* translucide réservé aux éléments qui doivent laisser transparaître (rare) */
  --line:      rgba(255,255,255,0.11);
  --line-2:    rgba(255,255,255,0.06);
  --text:      #f5f5f7;
  --muted:     rgba(255,255,255,0.6);
  --faint:     rgba(255,255,255,0.34);

  /* Mix Apple + FLF : SF Pro pour l'interface, Druk Wide pour les titres signature, PP Editorial en italique */
  --font:    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "TWK Lausanne", "Helvetica Neue", Arial, sans-serif;
  --display: "Druk Wide", "Helvetica Neue", Arial, sans-serif;
  --serif:   "PP Editorial", Georgia, serif;

  /* Accent = dégradé rouge -> bleu (corail FLF vers bleu Apple) */
  --corail:  #FF6B52;
  --accent:  #FF6B52;                                   /* couleur signature FLF, en micro-accent */
  --accent-2:#FF8A72;                                   /* corail clair (liens, survols) */
  --grad:    #FF6B52;                                   /* accent SOLIDE, plus de dégradé cheap (retenue iPad Pro) */
  --ease:    cubic-bezier(.16, 1, .3, 1);

  --radius:    18px;
  --radius-lg: 26px;
  --radius-pill: 980px;
  --shadow:  0 16px 40px rgba(0,0,0,0.45);
  --maxw:   1120px;
  font-synthesis: none;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Utilitaires ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-variant-numeric: tabular-nums; }

/* Display Druk Wide · gros titres cinématiques */
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

/* ---------- Logo ---------- */
.logo { height: 26px; width: auto; display: block; }
.logo.lg { height: 46px; }

/* ============================================================
   LOGIN
   ============================================================ */
#login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.login-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0.55;
}
.login-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1200px 700px at 50% 40%, rgba(0,0,0,0.25), rgba(0,0,0,0.82) 75%),
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.92));
}
.login-card { position: relative; z-index: 2; width: 100%; max-width: 400px; text-align: center; }
.login-card .logo.lg { margin: 0 auto 18px; }
.login-card .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 44px;
  letter-spacing: 0.01em;
}
.field {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 16px 18px;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.05em;
  transition: border-color .2s, background .2s;
}
.field:focus { outline: none; border-color: rgba(255,255,255,0.5); background: var(--surface-2); }
.field::placeholder { color: var(--faint); letter-spacing: 0.05em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--text);
  color: #050505;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 15px 24px;
  letter-spacing: 0.01em;
  transition: opacity .18s, transform .18s var(--ease), box-shadow .25s;
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.btn.ghost:hover { border-color: rgba(255,255,255,0.4); background: var(--surface); }
.btn.small { width: auto; padding: 11px 22px; font-size: 13px; }
/* CTA principal Apple : pilule dégradée corail -> bleu */
.btn.grad { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(255,107,82,.24); }
.btn.grad:hover { opacity: 1; box-shadow: 0 12px 40px rgba(47,123,255,.4); }

/* ============================================================
   COUCHE MIX APPLE + FLF + 27km  (habillage, aucune logique)
   ============================================================ */
/* Mot fort en dégradé rouge -> bleu */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Eyebrow éditoriale numérotée façon 27km : "01 — Titre" */
.eyebrow-num { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(15px,1.8vw,20px); color: var(--muted); display: block; }
.eyebrow-num .num { font-family: var(--font); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .06em; margin-right: 8px; vertical-align: 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Révélations au scroll : blur-in + montée (fallback: visible après 1,2s ou si pas d'IO) */
.flf-rv { opacity: 0; transform: translateY(30px); filter: blur(7px); transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease); }
.flf-rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .flf-rv { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; } }

/* Aurore + lueur curseur (le JS ajoute .flf-aura / .flf-glow dans un conteneur héros) */
.flf-aura { position: absolute; inset: -25%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .42;
  background: radial-gradient(38% 48% at 18% 28%, #FF6B52, transparent 60%), radial-gradient(44% 52% at 82% 42%, #F0342B, transparent 60%), radial-gradient(48% 58% at 55% 92%, #7a1f14, transparent 62%);
  animation: flfDrift 22s ease-in-out infinite alternate; }
@keyframes flfDrift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(3%,-2%,0) scale(1.12); } }
.flf-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(240px 240px at var(--mx,50%) var(--my,40%), rgba(255,255,255,.09), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .flf-aura { animation: none; } }

/* Barre translucide floutée façon Apple (appliquée à header.topbar plus bas via var) */
.flf-blur { background: rgba(8,8,9,.6); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }

/* Scrollbar discrète */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); background-clip: content-box; }

/* Espace client · héros pur (Apple / iPad Pro) : eyebrow éditorial + grand titre + air */
.sp-hero { padding: 58px 0 42px; }
.sp-eyebrow { display: block; font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(15px,1.8vw,20px); color: var(--muted); margin-bottom: 6px; letter-spacing: .01em; }
.sp-hero h1 { font-size: clamp(34px,5.4vw,62px); line-height: .9; letter-spacing: -.02em; margin-bottom: 12px; }
.sp-hero p { margin-top: 6px; font-size: 15px; }

/* Espace client · grand bloc média cinéma (dernière livraison) façon iPad Pro */
.sp-feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; margin: 6px 0 10px; background: #000; cursor: pointer; box-shadow: var(--shadow); }
.sp-feat-poster { position: absolute; inset: 0; background: #0a0a0a center/cover no-repeat; transform: scale(1.03); transition: transform 1s var(--ease); }
.sp-feature:hover .sp-feat-poster { transform: scale(1.08); }
.sp-feat-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); }
.sp-feat-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; color: #fff; font-size: 22px; padding-left: 3px; transition: transform .3s var(--ease), background .3s; z-index: 2; }
.sp-feature:hover .sp-feat-play { transform: scale(1.08); background: rgba(255,255,255,.3); }
.sp-feat-cap { position: absolute; left: 26px; bottom: 22px; z-index: 2; }
.sp-feat-k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--corail); margin-bottom: 4px; }
.sp-feat-t { font-family: var(--display); text-transform: uppercase; font-size: clamp(16px, 2vw, 26px); color: #fff; letter-spacing: -.01em; line-height: 1.05; }

.login-error { color: #ff6b6b; font-size: 13px; margin-top: 14px; min-height: 18px; }
.link-btn { background: none; border: none; color: var(--muted); font-family: var(--font); font-size: 13px; cursor: pointer; padding: 8px; margin-top: 4px; }
.link-btn:hover { color: var(--text); }
.login-hint { margin-top: 32px; font-size: 11.5px; color: var(--faint); line-height: 1.8; }
.login-hint b { color: var(--muted); font-weight: 600; }

/* ============================================================
   HEADER
   ============================================================ */
header.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8,8,9,0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-2);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar .right { display: flex; align-items: center; gap: 16px; }
.client-name { font-size: 13px; color: var(--muted); }
.client-name b { color: var(--text); font-weight: 600; }

/* ============================================================
   HERO / KPIs
   ============================================================ */
.hero { padding: 64px 0 28px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.96;
  font-size: clamp(30px, 4.6vw, 52px);
  margin-bottom: 16px;
}
/* Sous-titre de vue · italique serif élégante (contrepoint cinéma aux capitales) */
.hero p { font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--muted); font-size: 18px; letter-spacing: .01em; line-height: 1.4; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0 12px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform .5s var(--ease), background .4s, border-color .4s, box-shadow .4s;
}
.kpi:hover { transform: translateY(-4px); background: var(--surface-2); border-color: rgba(255,255,255,0.2); box-shadow: var(--shadow); }
.kpi .val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.kpi .val small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.kpi .lbl { font-size: 12px; color: var(--muted); margin-top: 10px; letter-spacing: 0.02em; }

/* Carte fidélité · monochrome, surface plus claire */
.kpi.loyalty {
  background: var(--text);
  border-color: var(--text);
  color: #000;
}
.kpi.loyalty .val { color: #000; }
.kpi.loyalty .val small { color: rgba(0,0,0,0.6); }
.kpi.loyalty .lbl { color: rgba(0,0,0,0.6); }
.kpi.loyalty .tier {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #000;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 999px;
  padding: 4px 11px;
  margin-top: 12px;
}
.loyalty-bar { height: 3px; background: rgba(0,0,0,0.15); border-radius: 999px; margin-top: 14px; overflow: hidden; }
.loyalty-bar > i { display: block; height: 100%; background: #000; border-radius: 999px; }
.loyalty-next { font-size: 11px; color: rgba(0,0,0,0.6); margin-top: 9px; }
.loyalty-next b { color: #000; }

/* ============================================================
   SECTIONS & PROJETS
   ============================================================ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 52px 0 18px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 15px;
}
.section-head .count { color: var(--faint); font-size: 13px; }

.projects { display: grid; gap: 12px; padding-bottom: 60px; }

.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .5s var(--ease), border-color .4s, background .4s, box-shadow .4s;
  cursor: pointer;
}
.project:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); background: var(--surface-2); box-shadow: var(--shadow); }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project h3 { font-size: 18px; font-weight: 600; margin-bottom: 5px; letter-spacing: -0.01em; }
.project .meta { font-size: 13px; color: var(--muted); }
.project .meta b { color: var(--text); font-weight: 600; }

.type-tag {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}

/* Timeline statut · monochrome */
/* ===== Projet ABONNEMENT · grille année / mois ===== */
.status-pill.abo-pill { background: rgba(127,180,255,.14); color: #7fb4ff; border: 1px solid rgba(127,180,255,.3); }
.abo-suggest { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: rgba(127,180,255,.08); border: 1px solid rgba(127,180,255,.25); font-size: 14px; }
.abo-grid-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; }
.abo-y { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 16px; font-weight: 700; }
.abo-y-nav { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 14px; transition: color .15s, border-color .15s; }
.abo-y-nav:hover { color: var(--text); border-color: var(--text); }
.abo-count { font-size: 12px; color: var(--muted); }
.abo-period { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 15px; font-weight: 700; }
.abo-edit { background: none; border: none; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; transition: color .15s; }
.abo-edit:hover { color: var(--text); }
.abo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.abo-m { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: default; transition: background .18s, color .18s, border-color .18s, transform .12s; }
.abo-m-m { font-size: 13.5px; font-weight: 700; color: var(--text); }
.abo-m-m i { font-style: normal; font-weight: 500; font-size: 10px; color: var(--muted); }
.abo-m-s { font-size: 10px; letter-spacing: .02em; text-transform: uppercase; }
.project.is-abo [data-abom] { cursor: pointer; }
.abo-m.ok { background: rgba(46,204,113,.14); border-color: rgba(46,204,113,.4); }
.abo-m.ok .abo-m-m, .abo-m.ok .abo-m-s { color: #2ecc71; }
.abo-m.cur { border-color: rgba(127,180,255,.45); background: rgba(127,180,255,.08); }
.abo-m.cur .abo-m-s { color: #7fb4ff; }
.abo-m.due { border-color: rgba(255,107,82,.3); }
.abo-m.due .abo-m-s { color: var(--accent, #FF6B52); }
.abo-m.fut { opacity: .5; }
[data-abom].abo-m:hover { transform: translateY(-1px); border-color: var(--text); }
@media (max-width: 560px) { .abo-grid { grid-template-columns: repeat(3, 1fr); } }
.np-kind { width: 100%; }
/* Mois d'abonnement ouvert = mini-parcours (Brief→Tournage→Montage→Livré) + fichiers */
.amo-timeline { display: flex; align-items: flex-start; justify-content: space-between; position: relative; margin: 4px 0 2px; }
.amo-timeline::before { content: ""; position: absolute; top: 9px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.amo-step { position: relative; z-index: 1; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; padding: 0; }
.amo-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); transition: all .18s; }
.amo-lab { font-size: 12px; color: var(--muted); font-weight: 600; transition: color .18s; }
.amo-step.done .amo-dot { background: #2ecc71; border-color: #2ecc71; }
.amo-step.cur .amo-dot { background: var(--accent, #FF6B52); border-color: var(--accent, #FF6B52); box-shadow: 0 0 0 4px rgba(255,107,82,.18); }
.amo-step.done .amo-lab, .amo-step.cur .amo-lab { color: var(--text); }
.amo-step:hover .amo-dot { border-color: var(--text); }
.amo-files { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.amo-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.amo-file-x { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 11px; flex-shrink: 0; }
.amo-file-x:hover { background: rgba(255,69,58,.12); color: #ff6b6b; }
.timeline { display: flex; align-items: center; margin-top: 22px; }
.step { display: flex; align-items: center; flex: 1; }
.step:last-child { flex: 0; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  flex-shrink: 0;
}
.step.done .dot { background: var(--text); border-color: var(--text); }
.step.current .dot { background: var(--text); border-color: var(--text); box-shadow: 0 0 0 4px rgba(255,255,255,0.16); }
.bar { height: 1px; background: var(--line); flex: 1; }
.step.done .bar { background: rgba(255,255,255,0.5); }

.timeline-labels { display: flex; justify-content: space-between; margin-top: 9px; }
.timeline-labels span { font-size: 10px; color: var(--faint); flex: 1; text-align: left; text-transform: uppercase; letter-spacing: 0.04em; }
.timeline-labels span:last-child { text-align: right; flex: 0; white-space: nowrap; }
.timeline-labels span.active { color: var(--text); }

/* Badge statut · monochrome (filled vs outline) */
.status-pill {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 9.5px;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.status-pill.livre { background: var(--text); color: #000; }
.status-pill.cours { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* ============================================================
   MODAL · détail projet
   ============================================================ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 52px 20px; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 700px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } }

.modal-head {
  padding: 30px 30px 24px;
  border-bottom: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.modal-head h2 { font-size: 22px; font-weight: 600; margin-bottom: 7px; letter-spacing: -0.01em; }
.modal-head h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--flf); }
.modal-head .meta { font-size: 13px; }
.modal-close {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; flex-shrink: 0;
}
.modal-close:hover { color: var(--text); border-color: rgba(255,255,255,0.4); }

.modal-body { padding: 26px 30px 34px; }
.block { margin-bottom: 30px; }
.block:last-child { margin-bottom: 0; }
.block h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 14px;
}

.file-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  margin-bottom: 8px;
}
.file-row .fname { font-size: 14px; }
.file-row .fsize { font-size: 12px; color: var(--faint); margin-left: 10px; }
.dl {
  font-size: 12px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; background: transparent;
}
.dl:hover { background: var(--text); color: #000; border-color: var(--text); }
.dl.danger { color: #ff7a7a; border-color: rgba(255,90,90,0.35); }
.dl.danger:hover { background: #ff5a5a; color: #000; border-color: #ff5a5a; }
.dl.lockon { color: #6ee7a8; border-color: rgba(110,231,168,0.4); }
.dl.lockon:hover { background: #6ee7a8; color: #000; border-color: #6ee7a8; }
.locknote { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 8px; }

/* ---------- Icônes fines (SVG) ---------- */
.ic-svg { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; }
.ic-svg.big { width: 26px; height: 26px; }
.dl { display: inline-flex; align-items: center; gap: 7px; }
.t-menu .ic-svg { width: 16px; height: 16px; }
.tile .ic { color: rgba(255,255,255,0.9); }
.tile.add .ic-svg.big { margin: 0 auto 2px; color: var(--muted); }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .kpis-3 { grid-template-columns: 1fr; } }
.empty-note { font-size: 13px; color: var(--faint); font-style: italic; }

/* Validation */
.validation-box { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 22px; }
.validation-status { font-size: 13px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.validation-status .ico { font-size: 15px; }
textarea.field { text-align: left; min-height: 84px; resize: vertical; margin-bottom: 12px; line-height: 1.5; letter-spacing: 0; }
.val-actions { display: flex; gap: 10px; }
.btn.approve { background: var(--text); color: #000; flex: 1; }
.btn.changes { background: transparent; color: var(--text); border: 1px solid var(--line); flex: 1; }
.btn.changes:hover { border-color: rgba(255,255,255,0.4); }

.comment-log { margin-top: 18px; }
.comment { border-left: 1px solid var(--line); padding: 4px 0 4px 14px; margin-bottom: 14px; }
.comment .who { font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.comment .txt { font-size: 13px; color: var(--muted); line-height: 1.5; }
.comment .when { font-size: 11px; color: var(--faint); margin-top: 4px; }

/* CTA bas de page */
.cta-new {
  margin: 8px 0 80px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta-new h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.01em; font-size: 19px; margin-bottom: 10px; }
.cta-new p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

footer.foot { border-top: 1px solid var(--line-2); padding: 30px 0; text-align: center; color: var(--faint); font-size: 12px; letter-spacing: 0.02em; }

/* ============================================================
   BUREAU (Finder) · tuiles dossiers, fil d'Ariane, galerie
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 38px 0 4px; }
.breadcrumb a { cursor: pointer; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--faint); }
.breadcrumb b { color: var(--text); font-weight: 600; }

.desktop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
  padding-bottom: 48px;
}
.tile {
  position: relative;
  background: linear-gradient(165deg, #131316 0%, #0b0b0d 100%);
  border: 1px solid var(--line-2);
  border-radius: 26px;
  padding: 32px 30px;
  cursor: pointer;
  transition: transform .5s var(--ease), border-color .35s, box-shadow .4s;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tile::after { /* liseré lumineux haut, très subtil */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}
.tile:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); box-shadow: 0 28px 60px -28px rgba(0,0,0,.95); }
.tile .ic-svg.big { width: 34px; height: 34px; }
.tile.has-accent:hover { border-color: color-mix(in srgb, var(--accent) 46%, var(--line)); box-shadow: 0 22px 52px -26px color-mix(in srgb, var(--accent) 40%, #000); }

/* Avatar : monogramme (couleur de marque) ou vrai logo */
.t-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
}
.t-avatar.mono { font-family: var(--display); font-size: 15px; letter-spacing: .01em; color: #fff; }
.t-avatar.mono.accent {
  color: var(--mono);
  background: color-mix(in srgb, var(--mono) 16%, #0c0c0c);
  border-color: color-mix(in srgb, var(--mono) 32%, transparent);
}
.t-avatar.logo { background: #fff; }
.t-avatar.logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.tile .t-info { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.tile .t-name { font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.tile .t-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tile .t-count { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tile .t-tag {
  font-size: 9.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: #d8b24a; padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(216,178,74,.32); background: rgba(216,178,74,.08);
}
.tile.add { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--muted); background: transparent; }
.tile.add::after { display: none; }
.tile.add:hover { color: var(--text); border-color: var(--line); }
.tile .t-menu {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  font-size: 13px; display: none; align-items: center; justify-content: center;
}
.tile:hover .t-menu { display: flex; }
.tile .t-menu:hover { color: var(--text); border-color: var(--faint); }
/* Pastille SANTÉ client · coin haut-gauche, couleur par état */
.tile .t-health {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  min-width: 30px; height: 24px; padding: 0 7px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; letter-spacing: -.02em;
  border: 1px solid transparent;
}
.tile .t-health.good { background: rgba(46,204,113,.16); color: #2ecc71; border-color: rgba(46,204,113,.3); }
.tile .t-health.warn { background: rgba(245,159,10,.16); color: #f59f0a; border-color: rgba(245,159,10,.3); }
.tile .t-health.bad  { background: rgba(255,69,58,.16);  color: #ff453a; border-color: rgba(255,69,58,.3); }
.tile .t-health.risk::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 2px var(--surface); }
/* Bouton CONSEIL IA · coin haut-droit sous le menu */
.tile .t-conseil {
  position: absolute; top: 12px; right: 44px; z-index: 3;
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 13px; display: none; align-items: center; justify-content: center; cursor: pointer;
}
.tile:hover .t-conseil { display: flex; }
.tile .t-conseil:hover { border-color: var(--flf); box-shadow: 0 0 0 2px rgba(255,107,82,.18); }
/* Modale conseil */
.conseil-load { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 0; }
.conseil-txt { font-size: 14px; line-height: 1.6; color: var(--text); white-space: normal; }
.conseil-foot { margin-top: 16px; font-size: 11px; }
.conseil-off { padding: 24px 4px; font-size: 13px; line-height: 1.6; }
.conseil-off code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
/* Chat IA conversationnel */
.aichat { display: flex; flex-direction: column; gap: 0; padding-bottom: 18px; }
.ai-thread { display: flex; flex-direction: column; gap: 12px; max-height: 56vh; overflow-y: auto; padding: 4px 2px 14px; }
.ai-msg { font-size: 14px; line-height: 1.6; border-radius: 14px; padding: 13px 16px; max-width: 88%; }
.ai-msg.bot { align-self: stretch; max-width: 100%; background: none; border: none; color: var(--text); padding: 2px 2px 4px; }
.ai-msg.user { align-self: flex-end; background: rgba(255,107,82,.14); border: 1px solid rgba(255,107,82,.3); color: var(--text); border-bottom-right-radius: 5px; }
/* Document IA · titres, puces, numéros (codes FLF) */
.aim-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin: 20px 0 10px; padding-left: 10px; border-left: 2px solid var(--flf); }
.aim-h:first-child { margin-top: 2px; }
.aim-p { margin: 8px 0; line-height: 1.62; font-size: 14px; }
.aim-hr { height: 1px; background: var(--line); margin: 16px 0; border: none; }
.aim-ul { list-style: none; margin: 8px 0 12px; padding: 0; }
.aim-ul li { position: relative; padding-left: 18px; margin: 6px 0; line-height: 1.55; font-size: 14px; }
.aim-ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--flf); }
.aim-num { display: flex; gap: 12px; align-items: flex-start; margin: 11px 0; line-height: 1.55; font-size: 14px; }
.aim-n { flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%; border: 1.5px solid rgba(255,107,82,.45); color: var(--flf); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.ai-msg code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.ai-msg.load { padding: 15px 16px; }
.ai-dots { display: inline-flex; gap: 5px; }
.ai-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--flf); opacity: .4; animation: aiDot 1.1s infinite ease-in-out; }
.ai-dots i:nth-child(2) { animation-delay: .15s; }
.ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 88%; margin: -4px 0 2px; }
.ai-act { font-size: 12.5px; font-weight: 600; padding: 9px 14px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); transition: border-color .2s, background .2s, transform .15s var(--ease-out); }
.ai-act:hover { transform: translateY(-1px); }
.ai-act.tier1 { border-color: rgba(46,204,113,.4); color: #2ecc71; }
.ai-act.tier1:hover { background: rgba(46,204,113,.1); border-color: rgba(46,204,113,.7); }
.ai-act.tier2 { border-color: rgba(255,107,82,.4); color: var(--flf); }
.ai-act.tier2:hover { background: rgba(255,107,82,.1); border-color: rgba(255,107,82,.7); }
.ai-act.done { opacity: .55; color: var(--muted); border-color: var(--line); cursor: default; }
.ai-act.done:hover { transform: none; background: var(--surface-2); }
.ai-reply { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.ai-reply .field { flex: 1; height: 46px; }
.ai-send { flex-shrink: 0; width: 46px; height: 46px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
/* ===== BRIEF DU MATIN · le héros décisionnel de la console ===== */
/* Prévision tissée dans le brief : le mur, avant qu'il arrive */
.brief-fore { margin-top: 12px; padding: 11px 15px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brief-fore.warn { background: rgba(230,126,34,.1); border: 1px solid rgba(230,126,34,.32); color: var(--muted); }
.brief-fore.bad { background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.32); color: var(--muted); }
.brief-fore b { color: var(--text); }
.brief-fore .bf-go { margin-left: auto; font-size: 11px; color: var(--faint); white-space: nowrap; }
.brief-fore:hover .bf-go { color: #FF6B52; }
/* Pont argent → film · le moteur business nourrit l'œuvre */
.film-bridge { margin: -8px 0 26px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; border-left: 3px solid #FF6B52; }
.fb-head { font-size: 13px; font-weight: 800; letter-spacing: .03em; color: var(--text); }
.fb-head span { font-weight: 500; letter-spacing: 0; color: var(--faint); font-size: 11.5px; }
.fb-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-top: 14px; align-items: center; }
@media (max-width: 720px) { .fb-body { grid-template-columns: 1fr; gap: 16px; } }
.fb-line { font-size: 14px; line-height: 1.55; color: var(--muted); margin-bottom: 12px; }
.fb-line b { color: var(--text); }
.fb-res { color: #FF6B52 !important; }
.fb-edit { background: none; border: 1px dashed var(--line-2); border-radius: 7px; color: #FF6B52; font-family: var(--font); font-size: inherit; font-weight: 700; padding: 1px 7px; cursor: pointer; }
.fb-edit:hover { border-color: #FF6B52; }
.fb-pot { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; }
.fb-pot-h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 9px; }
.fb-pot .bg-bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.fb-pot .bg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FF6B52, #ff9a7a); border-radius: 999px; }
.fb-pot-v { margin-top: 9px; font-size: 13px; color: var(--muted); }
.fb-pot-v b { color: var(--text); font-size: 16px; }
/* Enveloppe impôts & charges */
.tax-env { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -8px 0 26px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-left: 3px solid #6a4cff; }
.tax-ic { font-size: 20px; }
.tax-main { flex: 1; min-width: 240px; }
.tax-main b { display: block; font-size: 13.5px; color: var(--text); }
.tax-main span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.tax-res { color: #8a78ff !important; }
.tax-pot { text-align: right; }
.tax-pot span { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.tax-pot b { font-size: 17px; color: var(--text); }
.tax-ok { font-size: 12px; color: #2ecc71; font-weight: 600; }
.brief {
  margin: 8px 0 26px; padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px;
}
.brief-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.brief-hi { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.brief-date { font-weight: 500; color: var(--muted); font-size: 13px; text-transform: capitalize; margin-left: 8px; }
.brief-kicker { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--flf); }
.brief-coups { display: flex; flex-direction: column; gap: 8px; }
.brief-coup {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 13px 15px; border-radius: 13px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .15s var(--ease-out), border-color .2s, background .2s;
}
.brief-coup:hover { transform: translateX(3px); border-color: rgba(255,107,82,.5); background: rgba(255,107,82,.06); }
.bc-rank { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--flf); border: 1.5px solid rgba(255,107,82,.4); }
.bc-ic { font-size: 18px; flex-shrink: 0; }
.bc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bc-main b { font-size: 14px; font-weight: 700; color: var(--text); }
.bc-main i { font-size: 12px; font-style: normal; color: var(--muted); }
.bc-go { flex-shrink: 0; font-size: 20px; color: var(--faint); }
.brief-clear { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.brief-goal { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.bg-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.bg-line b { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.bg-line b i { font-size: 13px; font-weight: 500; font-style: normal; color: var(--muted); }
.bg-bar { height: 8px; border-radius: 99px; background: var(--surface-2); margin: 10px 0 8px; overflow: hidden; }
.bg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--flf), #ff9a6e); transition: width .8s cubic-bezier(.16,1,.3,1); }
.bg-sub { font-size: 12px; color: var(--muted); }
/* ===== Tableau de guerre · Mission 2026 · chiffre monumental, sobre, corail en petite touche ===== */
.war-table { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wt-head-r { display: flex; align-items: center; gap: 10px; }
.wt-mask { background: none; border: 0; cursor: pointer; font-size: 15px; opacity: .55; transition: opacity .15s; padding: 0; line-height: 1; }
.wt-mask:hover { opacity: 1; }
/* Confidentialité : floute le cash (pas les labels), réversible d'un clic. */
.war-table.masked .wt-val, .war-table.masked .wt-pct, .war-table.masked .wt-usd, .war-table.masked .wt-stat b, .war-table.masked .wt-sub b, .war-table.masked .wt-e2-v, .war-table.masked .wt-e2-sub b { filter: blur(9px); transition: filter .2s; user-select: none; }
.wt-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--flf); }
.wt-rythme { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.wt-rythme.ok { background: rgba(46,204,113,.14); color: #2ecc71; }
.wt-rythme.late { background: rgba(240,160,75,.14); color: #f0a04b; }
.wt-main { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.wt-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; transition: opacity .15s; }
.wt-big:hover { opacity: .82; }
.wt-val { font-family: var(--display); font-size: clamp(30px, 5.5vw, 52px); line-height: 1; letter-spacing: -.01em; color: var(--text); }
.wt-obj { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); }
.wt-pct { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); color: var(--flf); line-height: 1; }
.wt-pct i { font-size: .5em; font-style: normal; }
.wt-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.wt-sub b { color: var(--text); font-weight: 700; }
.bg-bar { position: relative; }
.bg-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: rgba(255,255,255,.65); border-radius: 2px; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.wt-pace { font-size: 12px; color: var(--muted); margin-top: 4px; }
.wt-pace b { color: var(--text); font-weight: 700; }
.wt-pace .pace-ok { color: #2ecc71; font-weight: 600; }
.wt-pace .pace-late { color: #f0a04b; font-weight: 600; }
.wt-pace-more { background: none; border: 0; color: var(--flf); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0 0 0 2px; }
.wt-pace-more:hover { text-decoration: underline; }
/* Traducteur rythme */
.pt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pt-top span { font-size: 12px; color: var(--muted); }
.pt-top b { font-family: var(--display); font-size: 28px; color: var(--text); }
.pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-stat { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.pt-stat span { display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.pt-stat b { font-family: var(--display); font-size: 22px; color: var(--text); display: block; margin: 6px 0 3px; }
.pt-stat i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pt-eq-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--flf); margin: 18px 0 8px; }
.pt-eqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pt-eq { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; }
.pt-eq span { font-size: 12.5px; color: var(--muted); }
.pt-eq b { font-family: var(--display); font-size: 18px; color: var(--text); }
@media (max-width: 520px) { .pt-row { grid-template-columns: 1fr; } }
.wt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.wt-stat { background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; text-align: left; cursor: pointer; transition: border-color .15s, transform .12s; }
.wt-stat:hover { border-color: rgba(255,107,82,.45); transform: translateY(-2px); }
.wt-stat span { display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
/* Détail d'une stat (liste des documents) */
.wd-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.wd-total span { font-size: 12px; color: var(--muted); }
.wd-total b { font-family: var(--display); font-size: 22px; color: var(--text); }
.wd-list { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; }
.wd-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; transition: border-color .15s; }
.wd-row:hover { border-color: rgba(255,107,82,.5); }
.wd-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wd-l b { font-size: 14px; color: var(--text); }
.wd-l span { font-size: 11.5px; color: var(--muted); }
.wd-amt { font-family: var(--display); font-size: 16px; color: var(--text); white-space: nowrap; }
.wt-stat b { font-family: var(--display); font-size: 17px; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.wt-stat b i { font-family: var(--font); font-size: 12px; font-style: normal; font-weight: 500; color: var(--muted); }
.wt-stat b.wt-neg { color: #f0a04b; }
.wt-usd { display: block; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--faint); margin-top: 3px; letter-spacing: 0; }
.wt-obj .wt-usd { display: inline; margin-top: 0; margin-left: 6px; }
/* Objectif Visa E2 · bloc capital séparé */
.wt-e2 { display: block; width: 100%; text-align: left; margin-top: 14px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s; }
.wt-e2:hover { border-color: rgba(106,76,255,.5); }
.wt-e2.done { border-color: rgba(46,204,113,.5); }
.wt-e2-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.wt-e2-k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a74ff; }
.wt-e2-v { font-family: var(--display); font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.wt-e2-v i { font-family: var(--font); font-size: 12px; font-style: normal; font-weight: 500; color: var(--muted); }
.bg-bar.e2 i { background: linear-gradient(90deg, #6a4cff, #8a74ff); }
.wt-e2.done .bg-bar.e2 i { background: linear-gradient(90deg, #19a974, #2ecc71); }
.wt-e2-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.wt-e2-sub b { color: var(--text); }
.wt-e2-deadline { font-size: 11px; font-weight: 600; color: var(--muted); }
.wt-e2.urgent { border-color: rgba(240,160,75,.55); }
.wt-e2.urgent .wt-e2-deadline { color: #f0a04b; }
.wt-e2.urgent .bg-bar.e2 i { background: linear-gradient(90deg, #f0a04b, #ff8a4b); }
.wt-e2-top { flex-wrap: wrap; }
body.theme-light .brief { background: linear-gradient(150deg, rgba(255,107,82,.09), #ffffff 60%); }
/* ===== DIALOGUE PROSPECT/CLIENT · pièce premium, aérée, ADN FLF ===== */
.pdlg-head .pdlg-id { display: flex; align-items: center; gap: 15px; min-width: 0; }
.pdlg-mono { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
.pdlg { padding-top: 6px; }
.pdlg-sec { padding: 22px 0; border-top: 1px solid var(--line); }
.pdlg-main > .pdlg-sec:first-child { padding-top: 2px; border-top: none; }
/* En-tête : agrandir + fermer */
.pdlg-head-act { display: flex; gap: 8px; flex-shrink: 0; }
.pdlg-expand { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); width: 34px; height: 34px; border-radius: 50%; font-size: 14px; cursor: pointer; }
.pdlg-expand:hover { color: var(--text); border-color: rgba(255,255,255,0.4); }
/* Mode GRAND · plein écran 2 colonnes */
.modal.wide { max-width: 1180px; width: 94vw; }
.modal.wide .pdlg-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0 44px; align-items: start; }
.modal.wide .pdlg-side > .pdlg-sec:first-child { padding-top: 2px; border-top: none; }
.modal.wide .pdlg-side { position: sticky; top: 0; }
/* Bouton supprimer (rouge discret) */
.btn.ghost.danger { color: #ff6b6b; border-color: rgba(255,69,58,.3); }
.btn.ghost.danger:hover { background: rgba(255,69,58,.1); border-color: rgba(255,69,58,.55); }
/* ===== HÉROS CINÉMA · fond vidéo dark-gradé, titre monumental, aéré ===== */
.cine-hero-c { position: relative; border-radius: 26px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; margin: 8px 0 18px; isolation: isolate; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.cine-hero-c .cine-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.78) brightness(.62) contrast(1.05); transform: scale(1.06); animation: cineKen 26s ease-in-out infinite alternate; }
@keyframes cineKen { from { transform: scale(1.06) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-1.5%,-1.5%,0); } }
.cine-grad { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(8,8,10,.18) 0%, rgba(8,8,10,.0) 28%, rgba(8,8,10,.55) 72%, rgba(8,8,10,.92) 100%),
  radial-gradient(120% 90% at 8% 110%, rgba(255,107,82,.22), transparent 55%); }
.cine-in { position: relative; padding: 0 44px 40px; max-width: 720px; }
.cine-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 650; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 16px; }
.cine-h1 { font-size: clamp(46px, 7vw, 92px); line-height: .92; font-weight: 800; letter-spacing: -.025em; color: #fff; margin: 0; text-shadow: 0 4px 40px rgba(0,0,0,.45); }
.cine-sub { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.82); margin: 16px 0 0; max-width: 460px; }
.cs-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 26px; }
.cine-hero-c.cine-hero-sm { min-height: 220px; border-radius: 22px; }
.cine-hero-sm .cine-h1 { font-size: clamp(34px, 5vw, 60px); }
.cine-hero-sm .cine-sub { font-size: 15px; }
@media (max-width: 760px) { .cine-hero-c { min-height: 260px; } .cine-hero-c.cine-hero-sm { min-height: 180px; } .cine-in { padding: 0 24px 28px; } }

/* ===== Compta-logiciel · layout sidebar (Pennylane/Indy, mais Apple) ===== */
.cs-software { display: grid; grid-template-columns: 232px 1fr; gap: 30px; align-items: start; margin-top: 8px; }
.cs-side { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 20px; }
.cs-side-g { display: flex; flex-direction: column; gap: 2px; }
.cs-side-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 6px; opacity: .7; }
.cs-side-i { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 550; color: var(--text); cursor: pointer; transition: background .16s, color .16s; text-decoration: none; }
.cs-side-i:hover { background: var(--surface-2); }
.cs-side-i.on { background: var(--text); color: var(--bg); font-weight: 650; }
.cs-main { min-width: 0; }
@media (max-width: 880px) {
  .cs-software { grid-template-columns: 1fr; gap: 16px; }
  .cs-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px; overflow-x: auto; }
  .cs-side-g { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
  .cs-side-h { display: none; }
  .cs-side-i { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
}
.cine-hero { padding: 92px 0 6px; }
.ch-eyebrow { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.ch-eyebrow .ch-dot { color: var(--flf); font-size: 15px; }
.ch-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .96; letter-spacing: -.005em; font-size: clamp(34px, 6vw, 74px); margin: 0 0 24px; color: var(--text); }
/* Accent cinéma · italique serif délicate en contraste des capitales Druk (mix affiche de film) */
.ch-title em, .hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 200; text-transform: none; color: var(--flf); font-size: 1.34em; letter-spacing: -.01em; line-height: .85; padding-right: .06em; }
.hero h1 em { font-size: 1.1em; }
/* ===== CLÔTURE CINÉMA · l'accueil se referme comme une affiche ===== */
.cine-close { margin: 52px 0 14px; padding: clamp(56px, 9vw, 100px) 40px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(130% 150% at 50% 0%, rgba(255,107,82,.07), transparent 52%), linear-gradient(180deg, #0d0d0d, #000); text-align: center; position: relative; overflow: hidden; }
.cine-close::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 100% at 50% 120%, rgba(255,255,255,.04), transparent 60%); pointer-events: none; }
.cine-close .cc-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.cine-close .cc-line { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 4.4vw, 58px); line-height: .98; letter-spacing: -.01em; color: var(--text); }
.cine-close .cc-line em { font-family: var(--serif); font-style: italic; font-weight: 200; text-transform: none; color: var(--flf); font-size: 1.22em; letter-spacing: 0; }
.cine-close .cc-sub { font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--muted); font-size: 19px; margin-top: 22px; }
.ch-sub { font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--muted); font-size: 19px; letter-spacing: .01em; }
.ch-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 34px 0 6px; padding-top: 26px; border-top: 1px solid var(--line); }
/* ===== BARRE DE NAVIGATION · sobre, façon Apple, menus déroulants ===== */
.navbar { display: flex; align-items: center; gap: 2px; margin: 32px 0 8px; height: 54px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nb-top { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 500; padding: 9px 15px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: color .18s, background .18s; white-space: nowrap; }
.nb-top:hover { color: var(--text); background: var(--surface-2); }
.nb-chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .55; }
.nb-menu { position: relative; }
.nb-menu::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }   /* pont hover */
.nb-drop { position: absolute; top: calc(100% + 10px); left: 0; min-width: 224px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 8px; box-shadow: 0 20px 54px rgba(0,0,0,.5); display: none; flex-direction: column; z-index: 60; }
.nb-menu:hover .nb-drop, .nb-menu:focus-within .nb-drop { display: flex; animation: chRise .28s var(--ease-out) both; }
.nb-drop button, .nb-drop a { text-align: left; background: none; border: none; color: var(--text); font-family: inherit; font-size: 14px; padding: 11px 13px; border-radius: 9px; cursor: pointer; text-decoration: none; transition: background .15s; }
.nb-drop button:hover, .nb-drop a:hover { background: var(--surface-2); }
.nb-grow { flex: 1; }
.nb-alert { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-family: inherit; font-size: 12.5px; font-weight: 500; padding: 7px 13px 7px 25px; border-radius: 100px; cursor: pointer; position: relative; white-space: nowrap; transition: color .18s, border-color .18s; }
.nb-alert::before { content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--flf); }
.nb-alert:hover { color: var(--text); border-color: var(--faint); }
.nb-icon { background: none; border: none; font-size: 16px; cursor: pointer; padding: 8px 9px; border-radius: 9px; }
.nb-icon:hover { background: var(--surface-2); }
@media (max-width: 820px){ .navbar { flex-wrap: wrap; height: auto; padding: 8px 0; } }
/* Barre « demande n'importe quoi » · l'assistant omniscient */
.ask-bar { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 4px 6px 4px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; max-width: 720px; transition: border-color .2s, box-shadow .25s; }
.ask-bar:focus-within { border-color: rgba(255,107,82,.55); box-shadow: 0 0 0 4px rgba(255,107,82,.12); }
.ask-spark { color: var(--flf); font-size: 16px; flex-shrink: 0; }
.ask-in { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font: inherit; font-size: 15px; padding: 13px 0; }
.ask-in::placeholder { color: var(--faint); }
.ask-go { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; border: none; background: var(--flf); color: #fff; font-size: 19px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s var(--ease-out), filter .2s; }
.ask-go:hover { transform: translateX(2px); filter: brightness(1.08); }
.cine-hero .ask-bar { animation: chRise .9s cubic-bezier(.16,1,.3,1) .34s both; }
/* animation d'entrée · montée + flou qui se résorbe, en cascade */
@keyframes chRise { from { opacity: 0; transform: translateY(22px); filter: blur(9px); } to { opacity: 1; transform: none; filter: blur(0); } }
.cine-hero .ch-eyebrow { animation: chRise .85s cubic-bezier(.16,1,.3,1) both; }
.cine-hero .ch-title { animation: chRise .95s cubic-bezier(.16,1,.3,1) .12s both; }
.cine-hero .ch-sub { animation: chRise .9s cubic-bezier(.16,1,.3,1) .28s both; }
.ch-bar { animation: chRise .9s cubic-bezier(.16,1,.3,1) .4s both; }
.brief { animation: chRise .9s cubic-bezier(.16,1,.3,1) .52s both; }
.cc-dash-wrap { animation: chRise .9s cubic-bezier(.16,1,.3,1) .6s both; }
@media (prefers-reduced-motion: reduce) { .cine-hero .ch-eyebrow, .cine-hero .ch-title, .cine-hero .ch-sub, .ch-bar, .brief, .cc-dash-wrap { animation: none; } }
/* Transition cinéma entre écrans (View Transitions API) · fondu + montée douce */
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vtOut { from { opacity: 1; } to { opacity: 0; } }
::view-transition-old(root) { animation: vtOut .3s cubic-bezier(.16,1,.3,1) both; }
::view-transition-new(root) { animation: vtIn .52s cubic-bezier(.16,1,.3,1) both; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
.pdlg-h { display: flex; align-items: baseline; gap: 2px; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--flf); margin-bottom: 17px; }
.pdlg-hint { color: var(--faint); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 11px; margin-left: 7px; }
.pdlg-f { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.pdlg-f:last-child { margin-bottom: 0; }
.pdlg-f .field { margin-top: 8px; text-align: left; }
.pdlg-f .field { height: 46px; }
.pdlg-f select.field { height: 46px; }
.pdlg-ta.field { height: auto; min-height: 130px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.pdlg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.pdlg-grid:last-child { margin-bottom: 0; }
.pdlg-grid .pdlg-f { margin-bottom: 0; }
.pdlg-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.pdlg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pdlg-foot { display: flex; align-items: center; gap: 10px; padding-top: 22px; margin-top: 2px; border-top: 1px solid var(--line-2); }
.pdlg-foot .grow { flex: 1; }
/* Fiche idée · contenu (élevée au niveau éditorial cinéma) */
.idea-dlg .idea-sec { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 24px 0 16px; padding-bottom: 9px; border-bottom: 1px solid var(--line-2); }
.idea-dlg .idea-sec:first-child { margin-top: 2px; }
.idea-dlg .idea-req { color: var(--accent, #FF6B52); }
.idea-dlg .idea-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; font-weight: 400; }
.idea-dlg .idea-hint.over { color: var(--accent, #FF6B52); }
.idea-dlg .idea-brief { font-size: 12px; color: var(--muted); background: rgba(255,107,82,.06); border-left: 2px solid var(--accent, #FF6B52); border-radius: 0 8px 8px 0; padding: 10px 13px; margin: 6px 0 2px; line-height: 1.55; }
.idea-dlg .idea-brief b { color: rgba(255,255,255,.82); font-weight: 600; }
.idea-dlg textarea.field { height: auto; padding-top: 11px; line-height: 1.5; }
.pdlg .ph-add { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pdlg .ph-add .field { flex: 1; height: 42px; }
.pdlg .ph-add .ph-method { flex: none; width: auto; min-width: 116px; padding: 0 28px 0 12px; font-size: 12.5px; cursor: pointer; }
/* Échanges Gmail dans la fiche contact (Phase 1 · lecture) */
.pdlg-sec-gmail { margin-top: 18px; }
.gmail-list { display: flex; flex-direction: column; gap: 8px; }
.gmail-empty { text-align: center; padding: 8px 4px 4px; }
.gmail-empty p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.gmail-thread { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.gt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gt-head b { font-size: 13px; color: var(--text); font-weight: 700; }
.gt-date { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.gt-from { font-size: 11.5px; margin: 2px 0 4px; }
.gt-snip { font-size: 12px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gmail-thread { cursor: pointer; transition: border-color .15s; }
.gmail-thread:hover { border-color: rgba(255,255,255,.18); }
.gt-full { display: none; }
.gmail-thread.open .gt-snip { display: none; }
.gmail-thread.open .gt-full { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.gt-msg-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.gt-msg-h b { font-size: 12px; color: var(--text); }
.gt-msg-h span { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.gt-msg-b { font-size: 12.5px; color: var(--muted); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* === Fiche contact en onglets (façon Apple) === */
.modal.pdlg-modal { max-width: 880px; width: 94vw; }
.pdlg-tabs { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 4px; margin: 4px 0 24px; }
.pdlg-tab-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 8px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.pdlg-tab-btn:hover { color: var(--text); }
.pdlg-tab-btn.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pdlg-tab-c { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--flf); color: #000; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pdlg-tab-c:empty { display: none; }
.pdlg-panel { display: none; }
.pdlg-panel.on { display: block; animation: pdlgFade .2s ease; }
.pdlg-panel > .pdlg-sec:first-child { padding-top: 2px; border-top: none; }
@keyframes pdlgFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.gm-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gm-open { font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.gm-open:hover { color: var(--flf); }

/* === Lecteur de mails · style FLF (épuré, éditorial, pas un client mail) === */
.gmail-list { display: flex; flex-direction: column; gap: 14px; min-height: 80px; }
.gm-thread { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.gm-thread:last-child { border-bottom: none; padding-bottom: 0; }
.gm-thread-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; background: none; border: none; padding: 4px 2px; cursor: pointer; text-align: left; color: var(--text); }
.gm-thread-head:hover .gm-subj { color: var(--flf); }
.gm-th-l { min-width: 0; display: block; }
.gm-subj { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.gm-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-th-date { font-size: 12px; color: var(--faint); white-space: nowrap; flex-shrink: 0; }
.gm-msgs { display: none; flex-direction: column; gap: 20px; padding: 18px 2px 6px; }
.gm-thread.open .gm-msgs { display: flex; }
.gm-msg { padding-left: 16px; border-left: 2px solid var(--line); }
.gm-me { border-left-color: var(--flf); }
.gm-msg-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; cursor: pointer; }
.gm-who { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gm-me .gm-who { color: var(--flf); }
.gm-date { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.gm-snip { font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.gm-body { font-size: 14.5px; line-height: 1.68; color: #d6d6db; white-space: pre-wrap; word-break: break-word; display: none; }
.gm-msg.open .gm-snip { display: none; }
.gm-msg.open .gm-body { display: block; }

/* Synthèse mails (pastilles) */
/* Fidélité & parrainage · interne (admin) */
.fid-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 26px; border-radius: 20px; margin-bottom: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 16%, transparent), transparent 70%); border: 1px solid color-mix(in srgb, var(--tc) 35%, var(--line)); }
.fid-tier { display: flex; align-items: center; gap: 14px; }
.fid-medal { font-size: 34px; }
.fid-tier-n { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--tc); letter-spacing: -.01em; }
.fid-tier-s { font-size: 13px; color: var(--muted); }
.fid-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.fid-stats span { display: block; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.fid-stats b { font-family: var(--display); font-size: 20px; font-weight: 700; }
.fid-reward, .fid-ref { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.fid-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--accent, #FF6B52); margin-bottom: 12px; }
.fid-reward p { font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; }
.fid-ref-list { display: flex; flex-direction: column; gap: 8px; }
.fid-ref-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.fid-ref-comm { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; color: #2ecc71; }
.fid-ref-x { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 11px; }
.fid-ref-x:hover { background: rgba(255,69,58,.12); color: #ff6b6b; }
.fid-ref-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fid-ref-total span { font-size: 13px; color: var(--muted); }
.fid-ref-total b { font-family: var(--display); font-size: 24px; font-weight: 800; color: #2ecc71; }

/* Nos échanges · mails du client dans l'espace (admin) */
.ech-body { margin-top: 8px; }
.ech-thread { margin-bottom: 26px; }
.ech-em { font-size: 13px; font-weight: 650; color: var(--muted); letter-spacing: .02em; padding: 0 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ech-empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--text); line-height: 1.7; }
.gm-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.gm-pill { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.gm-pill b { color: var(--text); font-weight: 700; }
.gm-pill-me b { color: var(--flf); }
.gm-pill-d { color: var(--faint); }
.gm-threads { display: flex; flex-direction: column; }

/* Fiche contact · pleine page */
.cpage { max-width: 860px; margin: 0 auto; }
.cpage-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 26px; }
.cpage-head .pdlg-mono { width: 54px; height: 54px; font-size: 20px; border-radius: 15px; }
.cpage-id { min-width: 0; }
.cpage-id h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.cpage-id .meta { font-size: 13.5px; }
.cpage .pdlg-foot { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, transparent); padding-bottom: 18px; margin-top: 8px; }
@media (max-width: 620px){ .pdlg-grid, .pdlg-grid-3 { grid-template-columns: 1fr; } .pdlg-tab-btn { font-size: 12px; padding: 9px 4px; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; padding-bottom: 40px; }
.gallery-item {
  position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line-2); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--faint); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); }
.gallery-item:hover { border-color: var(--line); }

/* Factures */
.invoice-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; margin-bottom: 8px; }
.invoice-row .amt { font-family: var(--display); font-size: 16px; }
/* Mobile : on EMPILE (titre · montant · actions) pour ne plus chevaucher, et les boutons passent à la ligne */
@media (max-width: 640px) {
  .invoice-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .invoice-row > div:last-child { flex-wrap: wrap; justify-content: flex-start; gap: 8px 10px; }
  .invoice-row .amt { font-size: 21px; }
  .invoice-row .fname { font-size: 15px; }
}
.badge { font-size: 10.5px; padding: 4px 11px; border-radius: 999px; letter-spacing: 0.04em; font-family: var(--display); text-transform: uppercase; }
.badge.paid { background: var(--text); color: #000; }
.badge.pending { background: transparent; border: 1px solid var(--line); color: var(--muted); }
/* Cocher payé sur une facture (admin) · gris = à encaisser, vert = encaissé. */
.paid-toggle { font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; background: transparent; border: 1px solid var(--line); color: var(--muted); transition: border-color .15s, color .15s, background .15s; }
.paid-toggle:hover { border-color: rgba(46,204,113,.6); color: #2ecc71; }
.paid-toggle.on { background: rgba(46,204,113,.16); border-color: rgba(46,204,113,.5); color: #2ecc71; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 26px; }
  .timeline-labels span { font-size: 8.5px; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr; }
}

/* ============================================================
   FLUIDITÉ · animations 60fps (transform/opacity), easing Apple,
   états de chargement, lightbox. Respecte prefers-reduced-motion.
   ============================================================ */
:root { --ease-out: cubic-bezier(0.16,1,0.3,1); --ease: cubic-bezier(0.4,0,0.2,1); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Entrées de contenu fluides à chaque navigation */
.hero, .kpis, .section-head, .breadcrumb, .projects, .desktop,
#gal, #invList, #folderFiles, .cta-new {
  animation: fadeUp .5s var(--ease-out) both;
}
/* Cascade des tuiles / projets */
.tile, .project { animation: fadeUp .46s var(--ease-out) both; }

/* ============================================================
   MOTION PREMIUM · profondeur et matière, façon Apple
   ============================================================ */
/* Tuiles 3D : inclinaison perspective sous le curseur + reflet qui suit */
.tile.tilting {
  animation: none;   /* le fill de fadeUp garderait la main sur transform */
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
  transition: transform .08s linear;
}
.t-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity .3s var(--ease-out);
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.09), transparent 55%);
}
.tile:hover .t-glare { opacity: 1; }
body.theme-light .t-glare { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(0,0,0,.05), transparent 55%); }

/* Cascade : les tuiles arrivent l'une après l'autre */
.desktop > *:nth-child(1) { animation-delay: .03s; }
.desktop > *:nth-child(2) { animation-delay: .09s; }
.desktop > *:nth-child(3) { animation-delay: .15s; }
.desktop > *:nth-child(4) { animation-delay: .21s; }
.desktop > *:nth-child(5) { animation-delay: .27s; }
.desktop > *:nth-child(6) { animation-delay: .33s; }
.desktop > *:nth-child(7) { animation-delay: .39s; }
.desktop > *:nth-child(8) { animation-delay: .45s; }

/* Transitions de vue · sobres et parfaites : fondu rapide, légère élévation. Rien de plus. */
::view-transition-old(root) { animation: vtOut .18s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .32s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* SOUFFLE · plus d'air entre les actes (l'espace EST le luxe) */
#view > .section-head { margin-top: 44px; }
.prospect-block { margin-top: 30px; }
.hero { padding-bottom: 14px; }

/* Chaque section entre en scène (jamais un bloc qui « apparaît », toujours une arrivée) */
#view .section-head, #view .prospect-block, #view .ent-card, #view .order-cta,
#view .conv-steps, #view .kpis, #view .compta-chart, #view .goal-wrap,
#view .chat-wrap, #view .realisations, #view .proj-docs-sec, #view .exp-row { animation: fadeUp .5s var(--ease-out) both; }
#view .ent-cols > .ent-card:nth-child(2) { animation-delay: .08s; }
#view .exp-row:nth-child(2) { animation-delay: .05s; }
#view .exp-row:nth-child(3) { animation-delay: .1s; }
#view .exp-row:nth-child(4) { animation-delay: .15s; }

/* Nos réalisations : un panneau en matière CLAIRE qui respire (alternance Apple) */
.realisations {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px;
  padding: 30px 30px 24px; margin-top: 40px;
}

/* Halo de marque : le hero respire doucement (couleur du client) */
.brand-hero { position: relative; overflow: hidden; }
.brand-hero::before {
  content: ""; position: absolute; top: -40%; right: -15%; width: 60%; height: 130%;
  background: radial-gradient(closest-side, var(--accent-soft, rgba(255,255,255,.05)), transparent 70%);
  pointer-events: none; animation: heroBreathe 9s ease-in-out infinite;
}
@keyframes heroBreathe {
  0%, 100% { opacity: .45; transform: translate3d(0,0,0) scale(1); }
  50%      { opacity: .9;  transform: translate3d(-3%, 3%, 0) scale(1.07); }
}

/* ============================================================
   COMPTABILITÉ · cockpit admin
   ============================================================ */
.year-sel { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 14px; }
.year-sel button { background: none; border: none; color: var(--muted); font-size: 17px; cursor: pointer; padding: 0 4px; transition: color .15s; }
.year-sel button:hover { color: var(--text); }
.year-sel button[disabled] { opacity: .25; cursor: default; }
.kpi-value .k-usd { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value.neg { color: #ff6b6b; }
.compta-chart {
  display: flex; gap: 8px; align-items: flex-end; height: 190px;
  border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 16px 12px;
  background: var(--surface); margin-bottom: 10px;
}
.cc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.cc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.cc-bar { width: 38%; max-width: 18px; border-radius: 4px 4px 2px 2px; transition: height .55s var(--ease-out); }
.cc-bar.in { background: var(--accent, #fff); }
.cc-bar.out { background: var(--line); }
.cc-m { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.compta-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 14px; }
@media (max-width: 900px) { .compta-cols { grid-template-columns: 1fr; } }
.exp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  margin-bottom: 8px; background: var(--surface);
}
.exp-info { font-size: 13.5px; }
.exp-info b { font-weight: 600; }
.exp-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.exp-meta.late { color: #ff6b6b; }
.exp-right { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ============================================================
   FACTURATION NORMÉE + CRM CONTACTS
   ============================================================ */
/* Bloc TVA + mentions légales sur le document généré */
.doc-vat { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.doc-vat .doc-line.ttc { font-weight: 700; }
.doc-vat .doc-line.ttc .doc-price { font-size: 15px; }
.doc-vat-note { margin-top: 12px; font-size: 10.5px; letter-spacing: .04em; color: rgba(255,255,255,.5); text-transform: uppercase; }
.doc-legal { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.doc-legal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 11px; line-height: 1.65; color: rgba(255,255,255,.78); }
.doc-legal-cols b { color: #fff; }
.doc-legal-mentions { margin-top: 18px; font-size: 9.5px; line-height: 1.6; color: rgba(255,255,255,.45); }
/* Coordonnées studio (dialog 2 entités) */
.co-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .co-cols { grid-template-columns: 1fr; } }
/* CRM Contacts */
.ct-search { max-width: 320px; padding: 11px 14px; font-size: 13px; text-align: left; }
.ct-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.ct-chip:hover { color: var(--text); }
.ct-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.ct-badge {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted);
}
.ct-badge.client { color: var(--text); border-color: var(--faint); }
.ct-badge.prospect { color: #e8c268; border-color: rgba(232,194,104,.4); }
.ct-badge.cible { color: var(--accent, #9aa0ff); border-color: color-mix(in srgb, var(--accent, #9aa0ff) 40%, transparent); }
.ct-badge.partenaire { color: #7fc8a9; border-color: rgba(127,200,169,.4); }
.ct-badge.reseau { color: #8ab4d8; border-color: rgba(138,180,216,.4); }
.ct-n { opacity: .5; font-weight: 400; margin-left: 2px; }
/* Sections du cerveau : relances dues en tête, puis chaque famille */
.ct-sec {
  margin: 28px 0 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 12px;
}
.ct-sec::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.ct-sec.due { color: var(--flf); }
.ct-sec.due::after { background: color-mix(in srgb, var(--flf) 28%, transparent); }
/* Carte contact */
.ct-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer;
  transition: border-color .2s, transform .15s var(--ease-out);
}
.ct-card:hover { border-color: var(--line); transform: translateY(-2px); }
.ct-card.due { border-color: color-mix(in srgb, var(--flf) 38%, transparent); }
.ct-card .ct-ava {
  width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  color: var(--ch, var(--text));
  background: color-mix(in srgb, var(--ch, var(--muted)) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ch, var(--muted)) 35%, transparent);
}
.ct-card .ct-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; }
.ct-main { flex: 1; min-width: 0; }
.ct-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-meta { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-next {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.ct-next.late { color: var(--flf); border-color: color-mix(in srgb, var(--flf) 45%, transparent); font-weight: 600; }
.ct-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.ct-space { font-size: 12px; color: var(--flf); line-height: 1; }
.ct-temp { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--faint); letter-spacing: .04em; }
.ct-temp i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); display: block; }
.ct-temp i.on { background: var(--flf); }
.ct-temp span { margin-left: 3px; }
.ct-actions { display: flex; gap: 8px; align-items: center; flex: none; }
@media (max-width: 720px) {
  .ct-card { flex-wrap: wrap; }
  .ct-main { flex: 1 1 calc(100% - 60px); }
  .ct-side { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; order: 3; }
  .ct-actions { margin-left: auto; order: 4; }
}

/* ============================================================
   LA FORTERESSE · bibliothèque stratégique (salles + savoirs)
   ============================================================ */
.fort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; }
.fort-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 20px 18px 16px; cursor: pointer; color: var(--text);
  transition: border-color .2s, transform .18s var(--ease-out);
}
.fort-tile:hover { border-color: var(--line); transform: translateY(-3px); }
.fort-tile .ft-ic { color: var(--flf); margin-bottom: 4px; }
.fort-tile .ft-ic .ic-svg.big { width: 22px; height: 22px; }
.ft-name { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.ft-sub { font-size: 12px; color: var(--muted); line-height: 1.45; }
.ft-n { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
/* Cartes savoir */
.kn-card {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 20px 22px; margin: 12px 0; transition: border-color .25s;
}
.kn-card:hover { border-color: var(--line); }
.kn-card.gem { border-color: color-mix(in srgb, var(--flf) 45%, transparent); margin-top: 4px; }
.kn-card.flash { border-color: var(--flf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flf) 18%, transparent); }
.kn-gem-tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--flf); font-weight: 700; margin-bottom: 10px; }
.kn-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.kn-stat { font-family: var(--druk, inherit); font-size: 24px; font-weight: 800; letter-spacing: .01em; color: var(--flf); white-space: nowrap; }
.kn-card h3 { font-size: 15.5px; margin: 0; letter-spacing: .01em; }
.kn-kebab { margin-left: auto; opacity: 0; transition: opacity .15s; }
.kn-card:hover .kn-kebab { opacity: 1; }
@media (hover: none) { .kn-kebab { opacity: 1; } }
.kn-body { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0 0 12px; max-width: 70ch; }
.kn-note {
  font-size: 13px; font-style: italic; color: var(--text); line-height: 1.6;
  background: color-mix(in srgb, var(--flf) 6%, transparent); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 12px; max-width: 68ch;
}
.kn-note::before { content: "✎ "; color: var(--flf); font-style: normal; }
.kn-action { font-size: 13px; font-weight: 600; color: var(--text); border-left: 2px solid var(--flf); padding-left: 12px; margin-bottom: 12px; line-height: 1.5; max-width: 68ch; }
.kn-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kn-src { font-size: 10.5px; color: var(--faint); letter-spacing: .04em; }
.kn-room { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; }

/* ============================================================
   RADAR · poste de ciblage : carte + listes Entreprises / TTC
   ============================================================ */
.radar-mapwrap {
  position: relative; margin-top: 8px; border: 1px solid var(--line-2);
  border-radius: 16px; overflow: hidden; background: var(--surface);
}
#rmap { height: 460px; background: var(--surface); z-index: 1; }
@media (max-width: 700px) { #rmap { height: 340px; } }
/* Pilules de saut France / Miami / Tout · verre dépoli au-dessus de la carte */
.rm-jump { position: absolute; top: 14px; right: 14px; z-index: 800; display: flex; gap: 6px; }
.rm-jump button {
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 14px;
  font-size: 12px; cursor: pointer; transition: color .15s, border-color .15s;
}
.rm-jump button:hover, .rm-jump button.on { color: var(--text); border-color: var(--text); }
/* Marqueurs maison sur la vraie carte */
.rmk-wrap { background: none; border: none; }
.rmk {
  position: relative; display: block; width: 12px; height: 12px; margin: 2px; border-radius: 50%;
  background: var(--flf);
  box-shadow: 0 0 0 2px rgba(0,0,0,.85), 0 0 0 5px color-mix(in srgb, var(--flf) 28%, transparent);
}
body.theme-light .rmk { box-shadow: 0 0 0 2px #fff, 0 0 0 5px color-mix(in srgb, var(--flf) 28%, transparent); }
.rmk.ttc { background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.85), 0 0 0 5px rgba(255,255,255,.3); }
body.theme-light .rmk.ttc { background: #0b0b0b; box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(0,0,0,.22); }
.rmk.hot::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--flf); animation: rmkPulse 2s ease-out infinite;
}
@keyframes rmkPulse { 0% { opacity: .9; transform: scale(.45); } 70% { opacity: 0; transform: scale(1.25); } 100% { opacity: 0; transform: scale(1.25); } }
/* Habillage Leaflet aux codes FLF */
.leaflet-container { font-family: inherit; }
.rm-ltip.leaflet-tooltip {
  background: #0b0b0b; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  padding: 8px 12px; font-size: 12px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0,0,0,.45); white-space: nowrap;
}
.rm-ltip span { color: rgba(255,255,255,.6); font-size: 11px; }
.rm-ltip.leaflet-tooltip-top::before { border-top-color: rgba(255,255,255,.18); }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 10px !important; overflow: hidden; box-shadow: none !important; }
.leaflet-control-zoom a { background: var(--bg) !important; color: var(--text) !important; border-bottom-color: var(--line-2) !important; }
.leaflet-control-zoom a:hover { background: var(--surface) !important; }
.leaflet-control-attribution { background: transparent !important; color: var(--faint) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.rm-elsewhere { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rm-chip {
  background: transparent; border: 1px dashed var(--line); color: var(--muted); cursor: pointer;
  border-radius: 999px; padding: 6px 12px; font-size: 12px; transition: color .15s, border-color .15s;
}
.rm-chip:hover { color: var(--text); border-color: var(--text); }
.rm-chip-act { font-family: inherit; }
.rm-chip-act[data-usemail]:hover { color: var(--accent, #FF6B52); border-color: var(--accent, #FF6B52); border-style: solid; }
.cd-prefill { border-color: rgba(46,204,113,.5) !important; box-shadow: inset 0 0 0 1px rgba(46,204,113,.25); }
/* Listes cibles */
.tg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin-top: 6px; }
@media (max-width: 860px) { .tg-cols { grid-template-columns: 1fr; } }
.ct-sec.ttc { color: var(--text); }
.tg-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
  transition: border-color .2s, transform .15s var(--ease-out);
}
.tg-row:hover { border-color: var(--line); transform: translateY(-1px); }
.tg-prio { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line); }
.tg-prio.p1 { background: var(--flf); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flf) 18%, transparent); }
.tg-prio.p2 { background: var(--muted); }
.tg-prio.p3 { background: var(--line); }
.tg-main { flex: 1; min-width: 0; }
.tg-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-right { display: flex; align-items: center; gap: 10px; flex: none; }
.tg-budget { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.tg-budget.off { color: var(--faint); font-weight: 400; font-style: italic; }
/* ··· Fiche dossier (contact) : sections étiquetées + intelligence ··· */
.cd-box { gap: 10px; }
.cd-ava { width: 52px; height: 52px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--ch, var(--text));
  background: color-mix(in srgb, var(--ch, var(--muted)) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ch, var(--muted)) 35%, transparent); }
.cd-resume { font-size: 12px; color: var(--muted); margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd-resume .ct-temp { gap: 3px; }
.cd-sec { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700;
  margin: 14px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.cd-sec:first-child { margin-top: 0; }
.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .cd-grid { grid-template-columns: 1fr; } }
.cd-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cd-l { font-size: 11px; color: var(--muted); letter-spacing: .03em; display: flex; align-items: center; gap: 8px; }
.cd-hint { font-size: 10.5px; color: var(--faint); font-style: italic; letter-spacing: 0; text-transform: none; }
.cd-mini { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 2px 9px; font-size: 10.5px; cursor: pointer; transition: .15s; }
.cd-mini:hover { color: var(--text); border-color: var(--text); }
.cd-join { display: flex; gap: 6px; align-items: stretch; }
.cd-join .field { flex: 1; min-width: 0; }
.cd-act { display: flex; align-items: center; justify-content: center; width: 38px; flex: none;
  border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--muted);
  font-size: 14px; cursor: pointer; text-decoration: none; transition: .15s; }
.cd-act:hover { color: var(--text); border-color: var(--line); }
.cd-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.cd-chips button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; cursor: pointer; transition: .15s; }
.cd-chips button:hover { color: var(--text); border-color: var(--text); }
.cd-chips button:disabled { color: var(--flf); border-color: color-mix(in srgb, var(--flf) 40%, transparent); cursor: default; }
/* ··· Import intelligent : rapport de mission ··· */
.imp-report { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.imp-line { font-size: 13px; color: var(--muted); }
.imp-line b { color: var(--text); font-size: 15px; margin-right: 4px; }
.imp-line.ok b { color: var(--flf); }
.imp-line.warn { color: #e8c268; }
.imp-preview { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
/* ··· Compta détail : page sectionnée façon Apple ··· */
.cs-nav {
  position: sticky; top: 58px; z-index: 50; display: flex; gap: 4px; overflow-x: auto;
  padding: 10px 4px; margin: 6px 0 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2); scrollbar-width: none;
}
.cs-nav::-webkit-scrollbar { display: none; }
.cs-nav a {
  flex: none; color: var(--muted); text-decoration: none; font-size: 12px; letter-spacing: .04em;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: color .15s, background .15s;
}
.cs-nav a:hover { color: var(--text); }
.cs-nav a.on { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); font-weight: 600; }
.cs { margin: 64px 0 0; scroll-margin-top: 130px; }
.cs:first-of-type { margin-top: 34px; }
.cs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.cs-head h2 { font-family: var(--druk, inherit); font-size: 24px; letter-spacing: .02em; margin: 0 0 6px; }
.cs-explain { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 62ch; margin: 0; }
.cs-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.cs-num {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 20px 20px 16px; transition: border-color .2s;
}
.cs-num:hover { border-color: var(--line); }
.cs-v { font-family: var(--display); font-size: clamp(24px, 2vw, 31px); font-weight: 700; letter-spacing: -.015em; line-height: 1.06; word-break: normal; overflow-wrap: break-word; }
.cs-v.small { font-size: 20px; }
.cs-v.neg { color: #e74c3c; }
.cs-v.pos { }
.cs-v.warn { color: #e8c268; }
.cs-v .k-usd { font-size: .62em; color: var(--muted); font-weight: 600; }
.cs-nl { font-size: 12px; color: var(--text); font-weight: 600; margin-top: 9px; letter-spacing: .02em; }
.cs-ns { font-size: 11px; color: var(--faint); margin-top: 3px; font-style: italic; }
@media (max-width: 640px) { .cs { margin-top: 48px; } .cs-v { font-size: 22px; } .cs-nav { top: 52px; } }
.cs-num.click { cursor: pointer; }
.cs-num.click:hover { border-color: var(--flf); transform: translateY(-2px); transition: transform .15s var(--ease-out), border-color .2s; }
/* Barres horizontales · la donnée qui se voit et se clique */
.hb-group { margin: 8px 0 26px; }
.hb-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.hb { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.hb-l { width: 200px; flex: none; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-l i { color: var(--faint); font-style: normal; font-size: 10.5px; margin-left: 6px; }
.hb-track { flex: 1; height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--flf); border-radius: 99px; transition: width .5s var(--ease-out); }
.hb-v { width: 130px; flex: none; text-align: right; font-size: 12.5px; font-weight: 600; }
.hb.click { cursor: pointer; border-radius: 10px; padding: 7px 8px; margin: 0 -8px; transition: background .15s; }
.hb.click:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.hb.on .hb-track i { background: var(--text); }
.hb.on .hb-l { color: var(--flf); font-weight: 700; }
@media (max-width: 640px) { .hb-l { width: 110px; } .hb-v { width: 90px; font-size: 11px; } }
/* Camembert charges fixes */
.pie-wrap { display: flex; align-items: center; gap: 26px; margin: 6px 0 26px; flex-wrap: wrap; }
.pie { width: 130px; height: 130px; border-radius: 50%; flex: none; position: relative; }
.pie::after { content: ""; position: absolute; inset: 26%; border-radius: 50%; background: var(--bg); }
.pie-leg { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--muted); }
.pie-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; }
/* La course au cap (sparkline SVG) */
.spark-wrap { margin: 26px 0 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 18px 12px; }
.spark-wrap svg { width: 100%; height: 150px; display: block; }
.sp-cap { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-dasharray: 5 6; }
.sp-in { fill: none; stroke: var(--flf); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.sp-dot { fill: var(--flf); stroke: var(--bg); stroke-width: 1.5; }
.spark-leg { display: flex; gap: 18px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.spark-leg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.spark-leg .dot-in { background: var(--flf); }
.spark-leg .dot-cap { background: var(--line); }
/* L'œil de l'expert */
.cs-tip { border: 1px solid color-mix(in srgb, var(--flf) 30%, transparent); border-radius: 14px; padding: 16px 18px; margin-top: 26px; background: color-mix(in srgb, var(--flf) 4%, transparent); }
.cs-tip span { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--flf); font-weight: 700; margin-bottom: 8px; }
.cs-tip p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text); max-width: 80ch; }
.cs-tip b { color: var(--flf); }
/* ··· La Calculette : le juste prix en direct ··· */
.cal-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; align-items: end; }
.cal-inputs input[type="range"] { width: 100%; accent-color: var(--flf); height: 32px; }
.cal-row .exp-info { min-width: 0; }
.cal-card { font-size: 14px; font-weight: 700; margin-right: 12px; }
.cal-verdict {
  font-size: 10px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700;
  border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.cal-verdict.ok { color: #7fc8a9; border-color: rgba(127,200,169,.4); }
.cal-verdict.warn { color: #e8c268; border-color: rgba(232,194,104,.4); }
.cal-verdict.bad { color: var(--flf); border-color: color-mix(in srgb, var(--flf) 50%, transparent); background: color-mix(in srgb, var(--flf) 8%, transparent); }
/* ··· Le Scale : composer l'équipe ··· */
.sc-step { display: flex; align-items: center; gap: 12px; }
.sc-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--text); font-size: 17px; cursor: pointer; transition: border-color .15s, background .15s;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.sc-btn:hover { border-color: var(--flf); color: var(--flf); }
.sc-n { font-size: 17px; min-width: 22px; text-align: center; font-weight: 800; }
.sc-mode { display: flex; }
.sc-mode button { padding: 5px 11px; font-size: 11px; }
.sc-row { align-items: flex-start; }
.sc-row .exp-info { flex: 1; min-width: 0; }
.sc-rowtop { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.sc-f label { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 5px; letter-spacing: .03em; }
.sc-f .field { padding: 9px 12px; font-size: 13.5px; text-align: left; width: 100%; }
.sc-f.sm { max-width: 150px; }
.sc-charged { font-size: 11px; color: var(--text); margin-top: 5px; }
.sc-band { font-size: 10px; color: var(--faint); margin-top: 5px; line-height: 1.7; }
.sc-band span { border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; margin-right: 4px; white-space: nowrap; }
.sc-band span.on { color: var(--text); border-color: var(--text); font-weight: 600; }
.sc-band.low, .sc-band.high { color: var(--flf); font-weight: 600; }
.sc-row[data-rmode="free"] .sc-ifsal { display: none; }
.sc-row[data-rmode="sal"] .sc-iffree { display: none; }
.sc-gain {
  margin-top: 12px; font-size: 12.5px; line-height: 1.8; color: var(--muted);
  border-left: 2px solid var(--flf); padding-left: 12px; max-width: 84ch;
}
.sc-gain b { color: var(--text); }
.sc-mpill {
  display: inline-block; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; margin-right: 8px; border: 1px solid var(--line);
}
.sc-mpill.ok { color: #7fc8a9; border-color: rgba(127,200,169,.45); }
.sc-mpill.warn { color: #e8c268; border-color: rgba(232,194,104,.45); }
.sc-mpill.bad { color: var(--flf); border-color: color-mix(in srgb, var(--flf) 50%, transparent); background: color-mix(in srgb, var(--flf) 8%, transparent); }
/* Calendrier de facturation des abonnements */
.abo-cal { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 20px; margin-bottom: 22px; background: var(--surface); }
.ac-row { display: flex; align-items: center; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--line-2); flex-wrap: wrap; }
.ac-row:first-of-type { border-top: none; }
.ac-name { font-size: 12.5px; color: var(--muted); min-width: 220px; }
.ac-name b { color: var(--text); }
.ac-cells { display: flex; gap: 5px; flex-wrap: wrap; }
.ac-cell {
  font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700;
  border-radius: 7px; padding: 5px 7px; border: 1px solid var(--line-2); color: var(--faint);
}
.ac-cell.ok { color: #7fc8a9; border-color: rgba(127,200,169,.45); }
.ac-cell.due { color: var(--flf); border-color: color-mix(in srgb, var(--flf) 50%, transparent); background: color-mix(in srgb, var(--flf) 8%, transparent); cursor: pointer; }
.ac-cell.due:hover { background: color-mix(in srgb, var(--flf) 18%, transparent); }
.ac-cell.fut { opacity: .55; }
.ac-cell.off { opacity: .25; }
/* Super-calculette dans l'éditeur de documents */
.dc-row { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.dc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.dc-mid { display: flex; gap: 10px; align-items: center; margin-top: 9px; flex-wrap: wrap; }
.dc-mid .dc-price { max-width: 130px; padding: 8px 12px; text-align: left; }
.sc-units { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.sc-units b { color: var(--text); }
.sc-units i { color: var(--faint); font-style: italic; }
.sc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 4px 18px 10px 42px; }
@media (max-width: 760px) { .sc-detail { grid-template-columns: 1fr; } }
.sc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
.sc-line:last-child { border-bottom: none; padding-top: 10px; }
.sc-line:last-child b, .sc-line:last-child span { color: var(--flf); font-size: 13.5px; }
.sc-line b { color: var(--text); white-space: nowrap; }
/* ··· Le rail d'alertes : les alertes vivent SUR LE CÔTÉ, jamais mélangées au contenu ··· */
.cs-cols { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .cs-cols { grid-template-columns: 1fr; } }
.cs-aside { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 12px; }
.cs-aside .da-line { margin: 0; }
.cs-aside .cs-tip { margin-top: 4px; }
.cs-aside-h {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: var(--flf); padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--flf) 30%, transparent);
}
/* ··· L'Expert : le cabinet intégré en questions-réponses ··· */
.xp-theme { margin-bottom: 34px; }
.xp-th {
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; color: var(--text);
}
.xp-th .ic-svg { width: 16px; height: 16px; color: var(--flf); }
.xp-item {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  margin-bottom: 8px; overflow: hidden; transition: border-color .2s;
}
.xp-item:hover, .xp-item[open] { border-color: var(--line); }
.xp-item summary {
  cursor: pointer; padding: 15px 18px; font-size: 14px; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.xp-item summary::-webkit-details-marker { display: none; }
.xp-item summary::before { content: "+"; color: var(--flf); font-weight: 700; font-size: 16px; width: 14px; flex: none; transition: transform .2s; }
.xp-item[open] summary::before { content: "−"; }
.xp-item p { margin: 0; padding: 0 18px 14px 42px; font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 78ch; }
.xp-item .kn-action { margin: 0 18px 16px 42px; }
.xp-ent {
  margin-left: auto; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--muted); font-weight: 600; flex: none;
}
.xp-ent.fr { border-color: rgba(138,180,216,.4); }
.xp-ent.us { border-color: color-mix(in srgb, var(--flf) 40%, transparent); }
/* Filtre dépenses actif */
.dep-filter { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 8px 14px; margin-bottom: 14px; width: fit-content; }
.dep-filter b { color: var(--flf); }
.dep-filter button { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.dep-filter button:hover { color: var(--text); }
.cc-col.click { cursor: pointer; }
/* ··· Charges fixes : le coût de la machine ··· */
.cf-row .exp-info { min-width: 0; }
.cf-bar { height: 3px; background: var(--line-2); border-radius: 99px; margin-top: 8px; max-width: 320px; overflow: hidden; }
.cf-bar i { display: block; height: 100%; background: var(--flf); border-radius: 99px; transition: width .4s var(--ease-out); }
.cf-mo { font-size: 14.5px; font-weight: 700; }
.cf-per { font-size: 10.5px; color: var(--faint); font-weight: 400; }
.cf-listhead { display: flex; justify-content: space-between; margin: 22px 0 8px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.exp-row .exp-info.click { cursor: pointer; }
.cf-del { margin-left: 12px; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 11px; flex-shrink: 0; transition: background .15s, color .15s, border-color .15s; }
.cf-del:hover { background: rgba(255,69,58,.12); color: #ff6b6b; border-color: rgba(255,69,58,.4); }
.cf-edit { margin-left: 12px; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 12px; flex-shrink: 0; transition: background .15s, color .15s, border-color .15s; }
.cf-edit:hover { background: rgba(255,107,82,.12); color: var(--accent, #FF6B52); border-color: rgba(255,107,82,.4); }
.cf-edit + .cf-del { margin-left: 8px; }
.cf-an { font-size: 11px; color: var(--muted); margin-left: 10px; }
/* Bloc ciblage dans la fiche contact */
.tg-block { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.tg-toggle { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; user-select: none; }
.tg-toggle input { accent-color: var(--flf); width: 16px; height: 16px; }
.tg-toggle .ic-svg { width: 15px; height: 15px; color: var(--flf); }
#tgFields { margin-top: 12px; }

/* ============================================================
   STUDIO CONTENU · pipeline + calendrier éditorial
   ============================================================ */
.cp-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .cp-cols { grid-template-columns: repeat(2, 1fr); } }
.cp-col-head { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 4px 12px; }
.cp-n { color: var(--faint); }
.cp-empty { color: var(--faint); padding: 8px 4px; font-size: 13px; }
.cp-card {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 13px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .2s, transform .15s var(--ease-out);
}
.cp-card:hover { border-color: var(--line); transform: translateY(-2px); }
.cp-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cp-pill { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.cp-pill.preuve { color: #e8c268; border-color: rgba(232,194,104,.35); }
.cp-pill.oeuvre { color: var(--accent, #b9a8ff); border-color: color-mix(in srgb, var(--accent, #b9a8ff) 36%, transparent); }
.cp-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.cp-hook { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 5px; line-height: 1.4; }
.cp-meta { font-size: 11px; color: var(--faint); margin-top: 8px; }
.cal-head { margin: 4px 0 12px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0 2px 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { min-height: 96px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; }
.cal-day.off { background: transparent; border-color: transparent; }
.cal-day.today { border-color: var(--accent, var(--faint)); }
.cal-n { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.cal-post {
  display: block; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid transparent;
  color: var(--text); border-radius: 7px; padding: 5px 8px; font-size: 11px; line-height: 1.3;
  margin-bottom: 4px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-post:hover { border-color: var(--line); }
.cal-post.done { opacity: .45; text-decoration: line-through; }
.angle-row {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left;
  background: var(--surface-2); border: 1px solid transparent; border-radius: 10px;
  padding: 11px 13px; margin-bottom: 7px; cursor: pointer; transition: border-color .15s;
}
.angle-row:hover { border-color: var(--accent, var(--line)); }
.angle-row b { font-size: 13px; color: var(--text); }
.angle-row span { font-size: 12px; color: var(--muted); font-style: italic; }

/* Conversion prospect · preuve, process, confiance */
.conv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 18px; }
@media (max-width: 700px) { .conv-stats { grid-template-columns: repeat(2, 1fr); } }
.conv-stat { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 16px; text-align: center; }
.conv-stat b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: .01em; color: var(--text); }
.conv-stat span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; letter-spacing: .03em; }
.conv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 800px) { .conv-steps { grid-template-columns: 1fr; } }
.conv-step { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; }
.conv-num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--accent, #fff); color: #000; }
.conv-step b { display: block; font-size: 13.5px; color: var(--text); }
.conv-step span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* LECTEUR DE VALIDATION v2 · en-tête + bouton Valider */
.rv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.rv-head .rv-name { flex: 1; min-width: 160px; margin: 0; }
.val-flag.static { position: static; }
.rv-validate {
  width: auto; padding: 12px 22px; font-size: 13.5px; font-weight: 700;
  background: var(--accent, #fff); color: #000; border-radius: 999px;
  box-shadow: 0 8px 26px -10px var(--accent-soft, rgba(255,255,255,.35));
}
body.branded .rv-validate, body.theme-light .rv-validate { color: #fff; }
body.theme-light.branded .rv-validate { color: #fff; }
.rv-validate[disabled] { opacity: .55; box-shadow: none; }

/* PASS COULEUR · l'accent du client respire dans l'interface */
.btn.approve { background: var(--accent, #fff); }
body.branded .btn.approve, body.theme-light .btn.approve { color: #fff; }
.val-flag { border-color: color-mix(in srgb, var(--accent, #fff) 55%, transparent); }
.val-flag .ic-svg { color: var(--accent, #fff); }
.gallery-item .gal-play { transition: transform .2s var(--ease-out), background .2s; }
.gallery-item:hover .gal-play { transform: translate(-50%,-50%) scale(1.12); background: var(--accent, rgba(255,255,255,.9)); color: #000; }
body.branded .gallery-item:hover .gal-play { color: #fff; }
body.branded .rv-tchip, body.theme-light .rv-tchip { color: #fff; }
.pp-sec-head h2::before, .section-head h2::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, var(--faint)); margin-right: 10px; vertical-align: 2px;
}

/* ============================================================
   CORAIL SIGNATURE · la couleur maison Studio FLF (coucher de soleil Miami,
   entre l'orangé et le rose saumon). Vibrante sur noir COMME sur blanc.
   Par touches RARES : des points de vie, jamais une peinture.
   S'efface devant la couleur du client quand un espace est brandé.
   ============================================================ */
:root { --flf: #FF6B52; }
::selection { background: var(--flf); color: #fff; }
/* Le point REC après « Espace client » sur le login */
.login-card .tagline::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--flf); margin-left: 9px; vertical-align: 3px; animation: tipPulse 3s ease-out infinite; }
/* Console & surfaces non brandées : les petites touches passent au rouge caméra */
body:not(.branded) .section-head h2::before, body:not(.branded) .pp-sec-head h2::before { background: var(--flf); }
body:not(.branded) .tips-fab .ic-svg { color: var(--flf); }
body:not(.branded) .tips-badge { background: var(--flf); color: #fff; }
body:not(.branded) .goal-fill { background: var(--flf); }
body:not(.branded) .cc-bar.in { background: var(--flf); }
body:not(.branded) .step2.current .step2-circle { box-shadow: 0 0 0 4px rgba(255,107,82,.25); }
body:not(.branded) .req-badge { background: var(--flf); color: #fff; }
body:not(.branded) .val-flag { border-color: rgba(255,107,82,.55); }
body:not(.branded) .val-flag .ic-svg { color: var(--flf); }

/* ============================================================
   LE QUIZ FLF · mini-jeu plein écran (design jeu moderne, codes maison)
   ============================================================ */
.fq-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-2); border-radius: 20px; padding: 24px 26px; margin-top: 30px;
  position: relative; overflow: hidden;
}
.fq-banner::before { content: ""; position: absolute; top: -60%; right: -10%; width: 45%; height: 220%;
  background: radial-gradient(closest-side, var(--accent-soft, rgba(255,107,82,.14)), transparent 70%); pointer-events: none; }
.fq-banner-kicker { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }
.fq-banner-sub { font-size: 14px; color: var(--text); margin-top: 4px; }
.fq-banner-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* Bouton neutre premium · jamais rempli de la couleur de marque (contraste illisible sur jaune/clair).
   La marque vit dans le halo de la carte, pas dans le bouton. */
.fq-play { width: auto; padding: 13px 30px; border-radius: 999px; font-weight: 700;
  background: #fff; color: #000; border: none; }
body.theme-light .fq-play { background: #0b0b0b; color: #fff; }
.fquiz {
  position: fixed; inset: 0; z-index: 220; background: rgba(0,0,0,.97);
  display: flex; align-items: center; justify-content: center; animation: fadeIn .25s var(--ease) both;
}
.fq-center { max-width: 680px; width: 92vw; text-align: center; animation: fadeUp .4s var(--ease-out) both; }
.fq-kicker { font-size: 11px; letter-spacing: .22em; color: var(--flf); font-weight: 700; margin-bottom: 14px; }
.fq-title { font-family: var(--display); font-size: 56px; color: #fff; line-height: 1; }
.fq-sub { font-size: 16px; color: rgba(255,255,255,.75); margin-top: 14px; }
.fq-meta { font-size: 12.5px; color: rgba(255,255,255,.4); margin: 8px 0 26px; }
.fq-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.08); }
.fq-fill { height: 100%; width: 100%; background: var(--flf); transition: width .1s linear; }
.fq-num { font-family: var(--display); font-size: 30px; color: #fff; margin-bottom: 18px; }
.fq-num span { color: rgba(255,255,255,.3); font-size: 18px; }
.fq-q { font-size: 24px; color: #fff; font-weight: 600; line-height: 1.35; margin-bottom: 28px; }
.fq-opts { display: flex; flex-direction: column; gap: 10px; }
.fq-opt {
  font-family: var(--font); font-size: 15px; color: #fff; text-align: left;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 16px 20px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s var(--ease-out);
}
.fq-opt:hover:not(:disabled) { border-color: rgba(255,255,255,.45); transform: translateY(-2px); }
.fq-opt.good { background: var(--flf); border-color: var(--flf); color: #fff; font-weight: 700; }
.fq-opt.bad { border-color: rgba(255,255,255,.35); opacity: .45; text-decoration: line-through; }
.fq-score { font-family: var(--display); font-size: 88px; color: var(--flf); line-height: 1; margin: 8px 0 14px; }
.fq-score span { font-size: 30px; color: rgba(255,255,255,.35); }
.fq-end-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 600px) { .fq-title { font-size: 40px; } .fq-q { font-size: 19px; } .fq-score { font-size: 64px; } }

/* TIRAGES & FONDS D'ÉCRAN · présentation galerie d'art (à part de la galerie projet) */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr; } }
.shop-item {
  cursor: pointer; text-align: center;
  transition: transform .25s var(--ease-out);
}
.shop-item:hover { transform: translateY(-4px); }
.shop-img {
  position: relative; aspect-ratio: 4 / 5; border-radius: 4px;
  background: #fff; padding: 14px;                       /* passe-partout · le cadre du tirage d'art */
  background-clip: content-box; background-color: var(--surface-2);
  border: 1px solid rgba(255,255,255,.92); outline: 1px solid var(--line-2);
  background-size: cover; background-position: center;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
}
.shop-img { background-color: #fff; }
.shop-img.has-thumb { background-origin: content-box; }
.shop-img .ph { color: rgba(0,0,0,.25); }
.shop-item figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shop-btn { margin-top: 10px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease-out); }
.shop-item:hover .shop-btn { opacity: 1; transform: none; }

/* ============ COLLECTION FLF · galerie d'art éditoriale, photo entière + animée ============ */
.gal-head { margin: 10px 0 34px; max-width: 760px; }
.gal-kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #FF6B52; font-weight: 700; }
.gal-title { font-family: var(--display); font-size: clamp(34px, 5.2vw, 58px); line-height: .96; letter-spacing: -.01em; text-transform: uppercase; margin: 14px 0 16px; }
.gal-lede { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 580px; }
.gal-add { margin-top: 20px; }

/* Accrochage musée : pièces encadrées, qui remplissent la largeur (grandes) */
.gal-masonry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 30px; margin-top: 26px; align-items: start; justify-items: stretch; }
@media (max-width: 760px)  { .gal-masonry { grid-template-columns: 1fr; gap: 28px; } }

.gal-card { cursor: pointer; display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: none; }
/* le cadre (bois sombre) · fin */
.gal-mat { width: 100%; background: linear-gradient(155deg, #221c16, #15110d); padding: 6px; border-radius: 3px;
  box-shadow: 0 36px 76px -28px rgba(0,0,0,.82), 0 2px 0 rgba(255,255,255,.05) inset;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out); }
.gal-card:hover .gal-mat { transform: translateY(-7px); box-shadow: 0 56px 110px -32px rgba(0,0,0,.92), 0 0 0 1px rgba(255,107,82,.18); }
/* le passe-partout (crème) · marge fine pour laisser l'image dominer */
.gal-frame { position: relative; background: #f4f1ea; padding: clamp(9px, 1.3vw, 17px); }
/* l'œuvre */
.gal-art { position: relative; overflow: hidden; line-height: 0; box-shadow: 0 1px 6px rgba(0,0,0,.18); background: #e9e5db; }
.gal-photo { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .8s ease; }
.gal-card.loaded .gal-photo { opacity: 1; }
.gal-skel { position: absolute; inset: 0; background: linear-gradient(110deg, #e9e5db 28%, rgba(255,255,255,.6) 50%, #e9e5db 72%);
  background-size: 220% 100%; animation: galShim 1.5s linear infinite; }
.gal-card.loaded .gal-skel { display: none; }
@keyframes galShim { to { background-position: -220% 0; } }
.gal-veil { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease-out);
  background: linear-gradient(to top, rgba(0,0,0,.66) 0%, rgba(0,0,0,.08) 42%, transparent 64%); }
.gal-card:hover .gal-veil { opacity: 1; }
.gal-cta { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 10px); display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; color: #fff; background: rgba(255,107,82,.95); padding: 8px 16px; border-radius: 999px;
  white-space: nowrap; opacity: 0; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), background .2s; }
.gal-card:hover .gal-cta { opacity: 1; transform: translate(-50%, 0); }
.gal-cta i { font-style: normal; transition: transform .25s var(--ease-out); }
.gal-cta:hover { background: #FF6B52; }
.gal-cta:hover i { transform: translateX(3px); }
/* le cartel (étiquette musée) */
.gal-plate { margin-top: 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.gal-plate-t { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text, #fff); font-weight: 600; }
.gal-plate-s { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); }
.gal-card:hover .coll-del { opacity: 1; }

.reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .gal-photo { transition: opacity .4s; } }

/* Outils admin de la Collection */
.gal-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.gal-hint { margin-top: 12px; font-size: 12px; color: var(--faint); letter-spacing: .02em; }
.gal-delbtn { background: #c0392b !important; color: #fff !important; border-color: #c0392b !important; }
.gal-delbtn[disabled] { opacity: .4; pointer-events: none; }
.gal-acts { position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; gap: 7px; opacity: 0; transition: opacity .25s var(--ease-out); }
.gal-card:hover .gal-acts { opacity: 1; }
.gal-act { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.28); color: #fff; cursor: pointer; font-size: 12px;
  backdrop-filter: blur(5px); transition: background .2s, transform .2s var(--ease-out); }
.gal-act svg { width: 14px; height: 14px; }
.gal-act:hover { background: #FF6B52; border-color: #FF6B52; transform: scale(1.08); }
.gal-act.gal-del:hover { background: #c0392b; border-color: #c0392b; }
/* Boutons de déplacement (monter/descendre/tout en haut/tout en bas) */
.gal-move { position: absolute; top: 10px; left: 10px; z-index: 4; display: flex; flex-direction: column; gap: 5px; opacity: 0; transition: opacity .25s var(--ease-out); }
.gal-card:hover .gal-move { opacity: 1; }
.gal-mbtn { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; line-height: 1;
  background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(5px); transition: background .2s, transform .15s var(--ease-out); }
.gal-mbtn:hover { background: #FF6B52; border-color: #FF6B52; transform: scale(1.1); }
.gal-mbtn[disabled] { opacity: .3; pointer-events: none; }
.gal-card[draggable="true"] { cursor: grab; }
.gal-card.dragging { opacity: .45; cursor: grabbing; }
.gal-card.drop-target .gal-mat { outline: 2px dashed #FF6B52; outline-offset: 5px; }
.gal-masonry.selecting .gal-card { cursor: pointer; }
.gal-check { position: absolute; top: 12px; left: 12px; z-index: 4; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.85); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.gal-check.on { background: #FF6B52; border-color: #FF6B52; }
.gal-card.is-sel .gal-mat { outline: 3px solid #FF6B52; outline-offset: 4px; }
.gal-card.is-sel .gal-photo { opacity: .82; }

/* SATISFACTION · projet livré, le client note en un geste */
.satis-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 20px 22px; margin: 6px 0 18px;
}
.satis-title { font-size: 15px; font-weight: 600; }
.satis-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.satis-stars { display: flex; gap: 6px; }
.satis-star {
  background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer;
  color: var(--line); transition: color .12s, transform .12s;
}
.satis-star:hover, .satis-star.on { color: var(--flf); transform: scale(1.12); }
body.branded .satis-star:hover, body.branded .satis-star.on { color: var(--accent); }
.satis-google { margin-top: 10px; }

/* Tuiles projet : menu ⋮ (Télécharger / Partager / Aperçu) au survol */
.doc-tile .kebab, .pp-media .gallery-item .kebab {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  background: rgba(0,0,0,.62); color: #fff; border: 1px solid rgba(255,255,255,.25);
  opacity: 0; transition: opacity .18s;
}
.doc-tile:hover .kebab, .pp-media .gallery-item:hover .kebab { opacity: 1; }
@media (max-width: 720px) { .doc-tile .kebab, .pp-media .gallery-item .kebab { opacity: 1; } }
/* Lecteur plein écran : actions sous la légende */
.lb-actions { display: flex; gap: 10px; justify-content: center; animation: fadeIn .4s var(--ease) .2s both; }
.lb-actions:empty { display: none; }
.lb-actions .btn.small { width: auto; }

/* Liste documents (admin) : cadence de relances */
.doc-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.doc-actions .btn.small { padding: 7px 12px; font-size: 11.5px; }
.late-btn { background: var(--flf); color: #fff; border: none; }
.late-btn.pulse { animation: tipPulse 2.6s ease-out infinite; }
.cad-next { font-size: 11px; color: var(--muted); }
.cad-stop { font-size: 11px; color: var(--flf); font-weight: 600; }
.docs-sum { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 18px; }
.ds-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 118px; }
.ds-chip span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.ds-chip b { display: block; margin-top: 3px; font-family: var(--display); font-size: 20px; line-height: 1.05; color: var(--text); }
.ds-chip.ok b { color: #19a974; }
.ds-chip.due b { color: #FF6B52; }
.ds-note { font-size: 11px; color: var(--faint); }
/* ===== Organisateur · Agenda · Tâches · Notes ===== */
.orga { margin: 6px 0 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0)); overflow: hidden; animation: ogRise .6s var(--ease-out) both; }
@keyframes ogRise { from { opacity: 0; transform: translateY(12px); } }
.orga-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; }
.orga-title { font-family: var(--display); font-size: 15px; letter-spacing: .02em; color: var(--text); }
.orga-date { font-size: 12px; color: var(--muted); text-transform: capitalize; margin-left: 8px; }
.orga-toggle { background: transparent; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 4px 8px; }
.orga-body { padding: 0 20px 20px; }
.orga-body.hidden { display: none; }
.orga-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .orga-grid { grid-template-columns: 1fr; } }
.og-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; min-height: 152px; }
.og-col-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.og-sug-lbl { font-size: 8.5px; color: #FF6B52; border: 1px solid rgba(255,107,82,.4); border-radius: 999px; padding: 1px 7px; letter-spacing: .04em; }
.og-link { background: none; border: none; color: var(--muted); font-size: 11px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.og-link:hover { color: #FF6B52; }
.og-list { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.og-empty { font-size: 12px; color: var(--faint); padding: 8px 2px; line-height: 1.4; }
.og-need { font-size: 12px; color: var(--muted); background: rgba(255,107,82,.08); border: 1px solid rgba(255,107,82,.3); border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; }
.og-sug { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.og-sug-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: linear-gradient(100deg, rgba(255,107,82,.16), rgba(255,107,82,.05)); border: 1px solid rgba(255,107,82,.35); color: var(--text); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: transform .15s var(--ease-out), border-color .2s; }
.og-sug-chip i { color: #FF6B52; font-style: normal; font-weight: 800; }
.og-sug-chip:hover { transform: translateX(3px); border-color: #FF6B52; }
.og-ev { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.og-ev:last-child { border-bottom: none; }
.og-ev-d { font-size: 11px; font-weight: 700; color: #FF6B52; min-width: 76px; }
.og-ev-t { flex: 1; font-size: 13px; color: var(--text); }
.og-tsk { display: flex; align-items: center; gap: 10px; }
.og-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2, #555); background: transparent; color: #fff; font-size: 12px; cursor: pointer; flex: 0 0 auto; transition: all .2s var(--ease-out); display: flex; align-items: center; justify-content: center; }
.og-check:hover { border-color: #19a974; }
.og-tsk.done .og-check { background: #19a974; border-color: #19a974; transform: scale(1.05); }
.og-tsk-t { flex: 1; font-size: 13px; color: var(--text); transition: color .2s; }
.og-tsk.done .og-tsk-t { color: var(--faint); text-decoration: line-through; }
.og-note { display: flex; align-items: flex-start; gap: 8px; background: rgba(255,255,255,.03); border-radius: 9px; padding: 8px 10px; }
.og-note-t { flex: 1; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.og-x { background: none; border: none; color: var(--faint); font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; }
.og-ev:hover .og-x, .og-tsk:hover .og-x, .og-note:hover .og-x { opacity: .55; }
.og-x:hover { color: #e74c3c; opacity: 1; }
.og-add { display: flex; gap: 6px; margin-top: 10px; }
.og-in { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: 12.5px; padding: 8px 10px; }
.og-in:focus { outline: none; border-color: rgba(255,107,82,.5); }
.og-when { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 11px; padding: 6px; max-width: 128px; }
.og-plus { background: #FF6B52; border: none; color: #fff; border-radius: 9px; width: 34px; font-size: 17px; font-weight: 700; cursor: pointer; flex: 0 0 auto; transition: background .15s; }
.og-plus:hover { background: #ff5238; }
/* ===== Agenda pleine vue · Jour · Semaine · Mois ===== */
.modal.modal-wide { max-width: 940px; width: 94vw; }
.ag-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ag-views { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.ag-vbtn { background: transparent; border: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: all .2s var(--ease-out); }
.ag-vbtn.on { background: #FF6B52; color: #fff; }
.ag-nav { display: flex; align-items: center; gap: 10px; }
.ag-arw { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); width: 32px; height: 32px; border-radius: 9px; font-size: 16px; cursor: pointer; transition: border-color .15s; }
.ag-arw:hover { border-color: #FF6B52; }
.ag-title { font-family: var(--display); font-size: 15px; color: var(--text); text-transform: capitalize; min-width: 150px; text-align: center; }
.ag-today { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 9px; padding: 6px 12px; font-size: 12px; cursor: pointer; transition: all .15s; }
.ag-today:hover { color: #FF6B52; border-color: #FF6B52; }
.ag-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.ag-dow span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; text-align: center; }
.ag-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ag-cell { min-height: 84px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; cursor: pointer; transition: border-color .15s, transform .12s; display: flex; flex-direction: column; gap: 3px; }
.ag-cell:hover { border-color: var(--line-2, #555); transform: translateY(-1px); }
.ag-cell.out { opacity: .38; }
.ag-cell.today { border-color: #FF6B52; box-shadow: inset 0 0 0 1px rgba(255,107,82,.3); }
.ag-cell-n { font-size: 12px; font-weight: 700; color: var(--text); }
.ag-cell.today .ag-cell-n { color: #FF6B52; }
.ag-more { font-size: 10px; color: var(--faint); }
.ag-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ag-wd { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 220px; cursor: pointer; }
.ag-wd.today { border-color: #FF6B52; }
.ag-wd-h { font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); text-align: center; }
.ag-wd.today .ag-wd-h { color: #FF6B52; }
.ag-wd-b { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.ag-day { display: flex; flex-direction: column; gap: 8px; }
.ag-ev { position: relative; background: linear-gradient(100deg, rgba(255,107,82,.18), rgba(255,107,82,.06)); border: 1px solid rgba(255,107,82,.3); border-radius: 7px; padding: 4px 7px; font-size: 11px; color: var(--text); line-height: 1.3; }
.ag-ev-h { font-weight: 700; color: #FF6B52; margin-right: 4px; }
.ag-day .ag-ev { font-size: 13px; padding: 12px 14px; }
.ag-x { position: absolute; top: 2px; right: 3px; background: none; border: none; color: var(--faint); font-size: 10px; cursor: pointer; opacity: 0; }
.ag-ev:hover .ag-x { opacity: .7; }
.ag-x:hover { color: #e74c3c; opacity: 1; }
.ag-empty { color: var(--faint); font-size: 11px; }
.ag-add { display: flex; gap: 6px; margin-top: 16px; }

/* ===== Lumière à l'arrivée + survol premium des onglets ===== */
@keyframes lightSweep { from { transform: translateX(-130%) skewX(-16deg); } to { transform: translateX(280%) skewX(-16deg); } }
.hero { position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.09), transparent); animation: lightSweep 2.1s var(--ease-out) .25s 1 both; }
.hero .btn.small { transition: transform .18s var(--ease-out), border-color .2s, box-shadow .25s; }
.hero .btn.small:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 0 1px rgba(255,107,82,.28); }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; display: none; } }
/* Onglet Banque */
.bank-nav { display: flex; align-items: center; gap: 12px; }
.bank-month { font-family: var(--display); font-size: 19px; color: var(--text); text-transform: capitalize; min-width: 180px; text-align: center; }
.bank-prop { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid #FF6B52; border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.bank-prop b { color: var(--text); }
.bank-fx { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: #f59e0b; border: 1px solid rgba(245,158,11,.4); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
.bank-vr { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }
/* Signature électronique · pad tactile */
.sign-btn { background: #6c5ce7; color: #fff; border: none; font-weight: 700; margin-right: 6px; }
.sign-btn:hover { background: #5a4bd4; }
.sign-pad-wrap { position: relative; margin-top: 6px; }
.sign-pad { display: block; width: 100%; height: 180px; background: #fff; border: 1.5px dashed var(--line-2, #555); border-radius: 12px; touch-action: none; cursor: crosshair; }
.sign-clear { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.12); color: #333; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.sign-clear:hover { background: rgba(0,0,0,.12); }
.sign-check { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14px; color: var(--text); cursor: pointer; }
.sign-check input { width: 18px; height: 18px; accent-color: #6c5ce7; }
.doc-sign-img { display: block; max-height: 64px; max-width: 220px; margin: 6px 0 2px; mix-blend-mode: multiply; }
.doc-render:not(.paper-light) .doc-sign-img { filter: invert(1); mix-blend-mode: screen; }
.doc-sign-meta { font-size: 11px; color: var(--doc-muted, rgba(255,255,255,.55)); }
.doc-render.paper-light .doc-sign-meta { color: rgba(0,0,0,.5); }
.urg-btn { background: #e74c3c; color: #fff; border: none; font-weight: 700; }
.urg-btn:hover { background: #d8392a; box-shadow: 0 4px 16px rgba(231,76,60,.3); }
/* Devis générés côté client/prospect + barre de signature */
.cgen-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.cgen-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, transform .12s; }
.cgen-row:hover { border-color: #FF6B52; transform: translateY(-1px); }
.cgen-l b { display: block; color: var(--text); font-size: 15px; }
.cgen-l .muted { font-size: 12.5px; }
.cgen-cta { font-size: 12px; font-weight: 700; color: #FF6B52; border: 1px solid rgba(255,107,82,.45); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.doc-lb .doc-lb-scroll { padding-bottom: 48px; }
/* Le « Signer » fait partie du document et défile avec lui (fini la barre fixe qui recouvre le prix). */
.doc-lb-sign { margin: 44px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 32px; background: linear-gradient(180deg, #171717, #111); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.doc-lb-sign .btn.approve { font-size: 16px; padding: 15px 30px; border-radius: 14px; }
.doc-lb-sign span { color: var(--muted); font-size: 15px; }
.doc-lb-sign.ok { justify-content: center; color: #19a974; font-weight: 700; }
/* ===== Auth premium · Google + créer mon espace ===== */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer; transition: box-shadow .2s, transform .12s; }
.btn-google:hover { box-shadow: 0 6px 20px rgba(0,0,0,.3); transform: translateY(-1px); }
.btn-google svg { flex: 0 0 auto; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--faint, #888); font-size: 11.5px; }
.login-or span { white-space: nowrap; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.14); }
.setup-card { text-align: center; }
.setup-logo { height: 30px; width: auto; margin: 6px auto 14px; display: block; opacity: .95; }
.setup-h { font-size: 20px; margin: 0 0 6px; }
.setup-sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.cash-btn { background: #19a974; color: #fff; border: none; font-weight: 700; margin-right: 6px; }
.cash-btn:hover { background: #15945f; }
.cad-done { font-size: 11px; color: #19a974; font-weight: 700; letter-spacing: .01em; }
.relance-alert { background: var(--flf); color: #fff; animation: tipPulse 2.8s ease-out infinite; }

/* Lecture d'un document généré côté client */
.lightbox.doc-lb { align-items: flex-start; justify-content: flex-start; overflow-y: auto; padding: 28px 14px; scroll-padding-top: 80px; scroll-padding-bottom: 150px; }   /* .lightbox.doc-lb (spécificité > .lightbox) : sinon le centrage vertical de .lightbox l'emporte → doc court centré / haut coupé */
.doc-lb-scroll { max-width: 880px; width: 100%; margin: 0 auto; }

/* Sélecteur d'espace (collaborateur multi-espaces) */
.space-switch {
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; font-family: var(--font); font-size: 13px;
  cursor: pointer; max-width: 180px;
}
.space-switch:hover { border-color: var(--faint); }

/* ACTIVITÉ · le fil vivant de la plateforme */
.act-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--line-2);
  font-size: 13px; animation: fadeUp .4s var(--ease-out) both;
}
.act-row:nth-child(2) { animation-delay: .03s; } .act-row:nth-child(3) { animation-delay: .06s; }
.act-row:nth-child(4) { animation-delay: .09s; } .act-row:nth-child(5) { animation-delay: .12s; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--faint); }
.act-dot.vu { background: var(--flf); }
.act-dot.msg { background: #6fa8ff; }
.act-dot.req { background: #e8c268; }
.act-dot.file, .act-dot.board { background: #7ed99a; }
.act-dot.rem { background: #c79bff; }
.act-main { flex: 1; color: var(--muted); line-height: 1.5; }
.act-main b { color: var(--text); }
.act-when { font-size: 11px; color: var(--faint); white-space: nowrap; margin-top: 2px; }

/* Toast avec action (Annuler) */
.toast.with-action { display: flex; align-items: center; gap: 14px; }
.toast-btn {
  background: var(--flf); color: #fff; border: none; border-radius: 999px;
  padding: 7px 16px; font-family: var(--font); font-size: 12.5px; font-weight: 700; cursor: pointer;
}

/* CARTE « FIFA » · la couverture du client habille sa carte, le logo en bulle chevauche */
.tile.has-cover { padding-top: 0; overflow: hidden; }
.t-cover {
  height: 86px; margin: 0 -18px 0; width: calc(100% + 36px);
  background-size: cover; background-position: center; background-color: var(--surface-2);
  position: relative; transition: transform .5s var(--ease-out);
}
.t-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--surface) 88%, transparent)); }
.tile.has-cover:hover .t-cover { transform: scale(1.04); }
.tile.has-cover .t-avatar { margin-top: -26px; position: relative; z-index: 2; border: 3px solid var(--surface); border-radius: 50%; overflow: hidden; }
.tile.has-cover .t-avatar.logo img { object-fit: cover; padding: 0; }
.tile.has-cover .t-menu { z-index: 3; }
/* Badge abonnement (liste factures) */
.abo-badge { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; color: var(--muted); margin-right: 6px; }

/* SUIVI PROSPECT GUIDÉ · bandeau de cadence (admin only) */
.sv-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface);
  padding: 14px 18px; margin: 12px 0 4px; font-size: 12.5px;
}
.sv-strip.due { border-color: color-mix(in srgb, var(--flf) 55%, transparent); }
.sv-strip b { display: block; font-size: 13.5px; color: var(--text); margin: 6px 0 3px; }
.sv-strip.due b { color: var(--flf); }
.sv-strip span { color: var(--muted); line-height: 1.55; }
.sv-seen { display: inline-block; margin-left: 6px; }
.sv-seen b { display: inline; color: var(--text); }
.sv-main { flex: 1; min-width: 260px; }
.sv-steps { display: flex; gap: 6px; margin-bottom: 2px; }
.sv-dot {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; border-radius: 999px;
  padding: 3px 9px; border: 1px solid var(--line); color: var(--faint) !important;
}
.sv-dot.done { background: var(--text); color: var(--bg) !important; border-color: var(--text); }
.sv-dot.now { border-color: var(--flf); color: var(--flf) !important; }
.sv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-strip.done { opacity: .9; }

/* VUE CLIENT · bandeau d'aperçu admin */
.preview-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 140;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--accent, var(--line));
  border-radius: 999px; padding: 9px 10px 9px 18px;
  font-size: 12.5px; color: var(--muted);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.preview-bar .btn.small { padding: 8px 14px; font-size: 12px; }

/* ÉCHANGES · fil de discussion par projet */
.chat-wrap { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); overflow: hidden; }
.chat-list { max-height: 340px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 72%; align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; text-align: right; }
.chat-meta { font-size: 10.5px; color: var(--faint); margin-bottom: 4px; letter-spacing: .03em; }
.chat-text {
  display: inline-block; text-align: left; font-size: 13.5px; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 13px; padding: 10px 14px; color: var(--text); white-space: pre-wrap;
}
.chat-msg.mine .chat-text { background: var(--accent, #fff); color: #000; border-color: transparent; }
body.theme-light .chat-msg.mine .chat-text { color: #fff; }
body.branded .chat-msg.mine .chat-text { color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-2); }
.chat-input .field { flex: 1; text-align: left; padding: 11px 14px; font-size: 13.5px; margin: 0; }
.empty-note.slim { padding: 14px 16px; font-size: 12.5px; }
.val-flag { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  background: rgba(0,0,0,.72); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 9px; z-index: 2; }
.val-flag .ic-svg { width: 10px; height: 10px; }

/* COMPTA · vue d'ensemble (carte Groupe + cartes entités, façon Apple) */
.ent-card {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px;
  padding: 22px 24px; cursor: pointer; transition: border-color .2s, transform .18s var(--ease-out);
}
.ent-card:hover { border-color: var(--line); transform: translateY(-2px); }
.ent-card.groupe { margin-bottom: 14px; border-color: var(--line); }
.ent-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .ent-cols { grid-template-columns: 1fr; } }
.ent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ent-title { font-family: var(--display); font-size: 17px; letter-spacing: .02em; }
.ent-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ent-arrow { font-size: 22px; color: var(--faint); }
.ent-card:hover .ent-arrow { color: var(--flf); }
.ent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) { .ent-grid { grid-template-columns: repeat(2, 1fr); } }
.ent-line { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); }
.ent-grid .ent-line { border-top: none; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.ent-line b { font-size: 16px; color: var(--text); font-weight: 600; }
.ent-btn { margin-top: 14px; pointer-events: none; }   /* toute la carte est cliquable */

/* STUDIO DE PERSONNALISATION · lignes couleur + dropzones */
.bs-modal { max-width: 560px; }
.bs-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bs-label { flex: 1; font-size: 13px; color: var(--muted); }
.bs-color { width: 46px; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); cursor: pointer; }
.bs-hex { max-width: 110px; padding: 10px 12px; font-size: 13px; margin: 0; }
.bs-clear { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 13px; padding: 4px; }
.bs-clear:hover { color: var(--text); }
.bs-drops { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; margin-top: 14px; }
@media (max-width: 600px) { .bs-drops { grid-template-columns: 1fr; } }
.dropzone {
  position: relative; border: 1.5px dashed var(--line); border-radius: 14px;
  padding: 14px; text-align: center; cursor: pointer; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent, var(--faint)); background: var(--surface-2); }
.dropzone b { font-size: 13px; }
.dropzone span { font-size: 11.5px; color: var(--faint); }
.dz-preview { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-2); margin-bottom: 6px; }
.dz-preview img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.dz-preview.cover { width: 100%; height: 64px; }
.dz-preview:empty { display: none; }
.dz-preview.round { border-radius: 50%; background: #fff; }
.dzlb { position: absolute; inset: 0; border-radius: 50%; background: #fff center / 100% no-repeat; background-size: 100%; background-position: center; }
.dz-zoom { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; font-size: 11px; color: var(--muted); }
.dz-zoom input { flex: 1; accent-color: var(--accent, var(--flf)); }

/* Recadrage de la couverture (admin) */
.cover-edit {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(0,0,0,.62); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 8px 16px; font-size: 12px; font-family: var(--font); cursor: pointer;
  opacity: 0; transition: opacity .2s;
}
.space-cover:hover .cover-edit { opacity: 1; }
.space-cover.reframing { cursor: grab; }
.space-cover.reframing:active { cursor: grabbing; }
.space-cover.reframing::after { display: none; }   /* dégradé coupé pendant le cadrage : on voit l'image nue */
.cover-bar {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.78); border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 8px 10px 8px 16px; font-size: 12px; color: rgba(255,255,255,.85); white-space: nowrap;
}
.cover-bar .btn.small { padding: 7px 14px; font-size: 11.5px; }

/* COUVERTURE · bannière façon Facebook, en stylé (dégradé fondu, logo qui chevauche) */
.space-cover {
  height: 200px; border-radius: 18px; background-size: cover; background-position: center;
  background-color: var(--surface-2); position: relative; margin-bottom: -46px; overflow: hidden;
}
.space-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55)); }
.brand-hero.has-cover .hero-row { position: relative; z-index: 2; padding-left: 14px; }
.brand-hero.has-cover .client-logo { border: 3px solid var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.brand-hero h1 { color: var(--title-color, inherit); }
@media (max-width: 720px) { .space-cover { height: 130px; margin-bottom: -34px; } }

/* CAP · objectif annuel (pilotage) */
.goal-wrap { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 16px 18px; margin: 4px 0 16px; }
.goal-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.goal-head b { color: var(--text); }
.goal-bar { height: 7px; border-radius: 999px; background: var(--surface-2); margin: 12px 0 10px; overflow: hidden; }
.goal-fill { height: 100%; border-radius: 999px; background: var(--accent, #fff); min-width: 2px; transition: width .6s var(--ease-out); }
.goal-sub { font-size: 12.5px; color: var(--muted); }
.goal-sub b { color: var(--text); }

/* Catalogue agence (éditeur de devis) : titres de catégories */
.df-cat { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 12px 0 6px; }
/* Checkbox charge fixe */
.xfix { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); padding: 2px 2px 6px; cursor: pointer; }
.xfix input { width: 16px; height: 16px; accent-color: var(--accent, #fff); }

/* ============================================================
   MOBILE · le nuage au doigt (cartes lisibles, cibles tactiles larges)
   ============================================================ */
@media (max-width: 720px) {
  .board-canvas { min-height: 68vh; border-radius: 12px; }
  .bcard { min-width: 200px; max-width: 78vw; }
  .bcard-text { font-size: 15px; line-height: 1.5; min-height: 44px; }
  .bcard-expand { opacity: 1 !important; width: 30px; height: 30px; }   /* toujours visible, cible 30px */
  .bcard-expand .ic-svg { width: 15px; height: 15px; }
  .bcard-grip { height: 18px; }
  .board-toolbar { gap: 6px; }
  .board-toolbar .btn.small { padding: 10px 12px; font-size: 12px; }
  .board-zoom { bottom: 10px; right: 10px; padding: 7px 9px; }
  .board-zoom button { width: 34px; height: 34px; font-size: 18px; }
  .lb-note { font-size: 17px; line-height: 1.65; padding: 22px; max-width: 92vw; }
  .stepper { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .step2-node { padding: 7px 6px; }
  .tips-fab { padding: 10px 13px; }
  .tips-panel { width: calc(100vw - 48px); }
  .conv-steps, .compta-cols, .cp-cols { grid-template-columns: 1fr; }
  .cal-day { min-height: 64px; padding: 5px; }
}

/* Accessibilité : ceux qui préfèrent moins de mouvement n'en ont pas */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tile.tilting { transform: none; }
}
.desktop .tile:nth-child(2){animation-delay:.04s}
.desktop .tile:nth-child(3){animation-delay:.08s}
.desktop .tile:nth-child(4){animation-delay:.12s}
.desktop .tile:nth-child(5){animation-delay:.16s}
.desktop .tile:nth-child(6){animation-delay:.20s}
.desktop .tile:nth-child(n+7){animation-delay:.24s}
.projects .project:nth-child(2){animation-delay:.05s}
.projects .project:nth-child(3){animation-delay:.10s}
.projects .project:nth-child(n+4){animation-delay:.14s}

/* Micro-interactions (transform = GPU) */
.tile { transition: transform .2s var(--ease-out), border-color .25s, background .25s; }
.tile:hover { transform: translateY(-4px); }
.tile:active { transform: translateY(-1px) scale(.995); }
.project { transition: transform .2s var(--ease-out), border-color .25s, background .25s; }
.project:active { transform: scale(.997); }
.btn, .dl { transition: transform .12s var(--ease), opacity .2s, background .2s, border-color .2s, color .2s; }
.btn:active, .dl:active { transform: scale(.97); }
.modal { animation: fadeUp .32s var(--ease-out) both; }

/* Spinner */
.spinner { width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.16); border-top-color: #fff;
  animation: spin .7s linear infinite; }

/* Galerie : apparition fluide + shimmer pendant le chargement */
.gallery-item .ph.loading {
  background: linear-gradient(100deg, #131313 30%, #1e1e1e 50%, #131313 70%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.gallery-item img { opacity: 0; transition: opacity .55s var(--ease-out); }
.gallery-item img.loaded { opacity: 1; }
.gallery-item { transition: transform .2s var(--ease-out), border-color .25s; }
.gallery-item:hover { transform: translateY(-3px); }

/* ============================================================
   LIGHTBOX · visionneuse plein écran fluide
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(22px);
  padding: 44px; animation: fadeIn .25s var(--ease) both;
}
/* (Retrait demandé : bandes cinémascope + flash de lancement = kitsch. La sobriété gagne.) */
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center;
  max-width: 92vw; max-height: 84vh; min-width: 120px; min-height: 120px; }
.lb-media {
  max-width: 92vw; max-height: 84vh; border-radius: 12px; display: block;
  opacity: 0; transform: scale(.985);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6);
}
.lb-media.loaded { opacity: 1; transform: none; }
/* Filigrane traçable par-dessus la vidéo (lecture client) */
.lb-watermark {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-repeat: repeat; border-radius: 12px; overflow: hidden;
  animation: wmDrift 16s linear infinite;
}
@keyframes wmDrift { from { background-position: 0 0; } to { background-position: 360px 220px; } }
.lb-cap { font-size: 13px; color: var(--muted); letter-spacing: 0.01em; animation: fadeIn .5s var(--ease) .15s both; }
/* Fiche projet : zone documents/médias avant le nuage */
.proj-docs-sec { margin: 24px 0 10px; }
.proj-docs-sec:empty { display: none; }
/* (.val-flag : style unifié plus haut · badge « À valider » libellé) */

/* ============================================================
   LECTEUR DE VALIDATION · remarques horodatées
   ============================================================ */
.review {
  position: fixed; inset: 0; z-index: 90; display: flex;
  background: rgba(0,0,0,0.96); backdrop-filter: blur(20px); animation: fadeIn .25s var(--ease) both;
}
.rv-close {
  position: absolute; top: 16px; right: 18px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff; font-size: 16px;
}
.rv-close:hover { background: rgba(255,255,255,0.2); }
.rv-main { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 40px 28px 24px; gap: 14px; }
.rv-name { color: var(--muted); font-size: 13px; text-align: center; }
.rv-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.rv-video { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.rv-tools { display: flex; justify-content: center; }
.rv-addbtn { width: auto; padding: 13px 22px; }
.rv-addt { font-variant-numeric: tabular-nums; opacity: .85; }
.rv-input { display: flex; gap: 8px; align-items: center; max-width: 720px; width: 100%; margin: 0 auto; }
.rv-input .field { flex: 1; text-align: left; }
.rv-input .btn.small { width: auto; }
.rv-tchip {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--accent, #fff); color: #000; font-weight: 700; font-size: 12px;
  font-variant-numeric: tabular-nums; padding: 6px 9px; border-radius: 7px; border: none; cursor: pointer;
}
.rv-side {
  width: 340px; flex-shrink: 0; background: var(--surface); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; padding: 22px 18px;
}
.rv-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rv-side-head h3 { font-size: 15px; }
.rv-count { color: var(--muted); font-weight: 500; }
.rv-help {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; font-weight: 700;
}
.rv-help:hover { color: var(--text); border-color: var(--faint); }
.rv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.rv-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--surface-2); transition: opacity .2s; }
.rv-item.done { opacity: .5; }
.rv-item.done .rv-text { text-decoration: line-through; }
.rv-body { flex: 1; min-width: 0; }
.rv-text { font-size: 13.5px; line-height: 1.4; word-break: break-word; }
.rv-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.rv-done { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.rv-done:hover { border-color: var(--faint); }
.rv-badge { flex-shrink: 0; font-size: 10px; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,0.08); color: var(--muted); }
.rv-badge.ok { background: rgba(80,200,120,0.18); color: #6ee7a0; }
/* Onboarding ludique */
.rv-onb { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); padding: 24px; }
.rv-onb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; max-width: 460px; text-align: left; }
.rv-onb-card h2 { font-size: 20px; margin-bottom: 18px; }
.rv-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0 0 22px; }
.rv-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.rv-steps li b { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 13px; }
@media (max-width: 720px) {
  .review { flex-direction: column; }
  .rv-side { width: auto; border-left: none; border-top: 1px solid var(--line-2); max-height: 38vh; }
}
.lb-close {
  position: absolute; top: 26px; right: 30px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--text);
  font-size: 17px; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .12s var(--ease);
}
.lb-close:hover { background: rgba(255,255,255,0.16); }
.lb-close:active { transform: scale(.94); }
/* Barre haut visionneuse document · télécharger PDF + fermer */
.doc-lb-top { position: sticky; top: 0; z-index: 8; align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -28px -14px 20px; padding: 9px 16px; background: rgba(11,11,11,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.doc-lb-top .lb-close { position: static; top: auto; right: auto; }
.lb-dl { height: 40px; padding: 0 18px; border-radius: 100px; background: var(--flf); color: #fff; border: none; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 8px 24px rgba(255,107,82,.3); transition: filter .2s, transform .12s; }
.lb-dl:hover { filter: brightness(1.08); }
.lb-dl:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Flèches de navigation de la lightbox */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid var(--line); color: var(--text);
  font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .12s var(--ease);
}
.lb-nav:hover { background: rgba(255,255,255,0.16); }
.lb-nav:active { transform: translateY(-50%) scale(.92); }
.lb-nav.prev { left: 28px; }
.lb-nav.next { right: 28px; }
@media (max-width: 600px) { .lb-nav { width: 42px; height: 42px; font-size: 22px; } .lb-nav.prev{left:12px} .lb-nav.next{right:12px} }

/* ============================================================
   MENU ⋯ par fichier (style Insta/Apple) + toast
   ============================================================ */
.finfo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.finfo .fname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lockmini { display: inline-flex; color: var(--faint); }
.lockmini .ic-svg { width: 14px; height: 14px; }

.kebab {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s, border-color .18s, transform .12s var(--ease);
}
.kebab:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.kebab:active { transform: scale(.92); }
.kebab .ic-svg { width: 18px; height: 18px; }

/* Popover */
.fmenu {
  position: fixed; z-index: 90; min-width: 212px;
  background: #161616; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  animation: fmIn .16s var(--ease-out) both;
}
@keyframes fmIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.fmenu-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: none; color: var(--text);
  font-family: var(--font); font-size: 13.5px; padding: 10px 12px; border-radius: 8px;
  transition: background .15s;
}
.fmenu-item:hover { background: var(--surface-2); }
.fmenu-item.danger { color: #ff7a7a; }
.fmenu-item.danger:hover { background: rgba(255,90,90,0.1); }
.fmenu-sep { height: 1px; background: var(--line-2); margin: 6px 4px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 16px);
  background: #fff; color: #000; font-size: 13px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px; z-index: 95;
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease-out);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Kebab en surimpression sur la galerie */
.gal-kebab { position: absolute; top: 8px; right: 8px; z-index: 2; opacity: 0; transition: opacity .18s; }
.gallery-item:hover .gal-kebab { opacity: 1; }
.gal-kebab .kebab { background: rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(6px); }
.gal-kebab .kebab:hover { background: rgba(0,0,0,0.8); }

/* ============================================================
   Fenêtres sur-mesure (dialogues) · remplacent les boîtes natives
   ============================================================ */
.modal-bg.dlg-bg { z-index: 110; }
.modal.dlg { max-width: 440px; }
.btn.danger-btn { background: #ff5a5a; color: #000; }
.btn.danger-btn:hover { opacity: .9; }

/* ============================================================
   PROJETS · vues Cartes / Liste / Tableau (kanban)
   ============================================================ */
.section-head:has(.proj-tools) { align-items: center; }
.proj-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; }
.segmented button { background: transparent; border: none; color: var(--muted); font-family: var(--font); font-size: 12.5px; padding: 7px 14px; border-radius: 8px; transition: background .18s, color .18s; }
.segmented button.on { background: var(--text); color: #000; font-weight: 600; }
.segmented button:hover:not(.on) { color: var(--text); }
.segmented.docs-entity { display: flex; width: 100%; max-width: 460px; }
.segmented.docs-entity button { flex: 1; font-size: 13.5px; padding: 10px 14px; }

/* Timeline cliquable */
.timeline-labels span.clickable, .step.clickable { cursor: pointer; }
.timeline-labels span.clickable:hover { color: var(--text); }
.step.clickable .dot { transition: box-shadow .15s; }
.step.clickable:hover .dot { box-shadow: 0 0 0 4px rgba(255,255,255,0.12); }
.proj-open { cursor: pointer; }

/* Liste */
.plist-head, .plist-row { display: grid; grid-template-columns: minmax(0,2.2fr) 1fr 1.3fr .5fr .8fr; gap: 14px; align-items: center; }
.plist-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 0 16px 10px; }
.plist-row { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 8px; background: var(--surface); transition: border-color .2s, background .2s; }
.plist-row:hover { border-color: var(--line); background: var(--surface-2); }
.pl-name { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.pl-name span:not(.pl-dot):not(.pl-type) { overflow: hidden; text-overflow: ellipsis; }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.pl-dot.on { background: var(--text); border-color: var(--text); }
.pl-type { font-size: 11px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pl-edit { background: transparent; border: 1px solid var(--line); color: var(--text); font-family: var(--font); font-size: 12px; padding: 6px 12px; border-radius: 8px; }
.pl-edit:hover { background: var(--surface-2); }

/* Tableau (kanban) */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.board-col { flex: 0 0 230px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; }
.board-col-head { display: flex; justify-content: space-between; font-family: var(--display); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; margin-bottom: 12px; color: var(--muted); }
.board-count { color: var(--faint); }
.board-drop { min-height: 60px; display: flex; flex-direction: column; gap: 8px; border-radius: 8px; transition: background .15s, outline .15s; }
.board-drop.over { background: rgba(255,255,255,0.05); outline: 1px dashed var(--line); outline-offset: 2px; }
.board-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: grab; transition: transform .12s var(--ease-out), border-color .2s; }
.board-card:hover { border-color: var(--faint); transform: translateY(-2px); }
.board-card.dragging { opacity: .45; }
.bc-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.bc-type, .bc-date { font-size: 11.5px; color: var(--muted); }
.board-empty { color: var(--faint); font-size: 12px; text-align: center; padding: 14px 0; }

/* Phases (détail projet) + calendrier */
.phase-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.phase-chip { font-family: var(--display); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; padding: 9px 15px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--muted); transition: background .18s, color .18s, border-color .18s; }
.phase-chip:hover { border-color: var(--faint); color: var(--text); }
.phase-chip.on { background: var(--text); color: #000; border-color: var(--text); }
.date-row { display: flex; gap: 10px; flex-wrap: wrap; }
.date-row .field { margin-bottom: 0; }
input[type="date"].field { font-family: var(--font); color-scheme: dark; }

@media (max-width: 720px) {
  .plist-head span:nth-child(3), .plist-row span:nth-child(3),
  .plist-head span:nth-child(4), .plist-row span:nth-child(4) { display: none; }
  .plist-head, .plist-row { grid-template-columns: minmax(0,2fr) 1fr .8fr; }
}

/* ============================================================
   ESPACE PROJET · toile collaborative (Freeform)
   ============================================================ */
.proj-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 30px; }
.proj-title { font-family: var(--display); text-transform: uppercase; font-size: 26px; letter-spacing: .01em; line-height: 1.05; }
.board-toolbar { display: flex; gap: 10px; margin: 18px 0 14px; flex-wrap: wrap; align-items: center; }

.board-canvas {
  position: relative; min-height: 540px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background-color: var(--surface);
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px; overflow: hidden;
}
.board-canvas.locked { display: flex; align-items: center; justify-content: center; }
.board-activate { text-align: center; max-width: 420px; padding: 24px; color: var(--text); }

.bcard {
  position: absolute; width: 222px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; cursor: grab; touch-action: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: box-shadow .2s, border-color .2s, transform .08s;
  animation: fadeUp .35s var(--ease-out) both;
}
.bcard:hover { border-color: var(--faint); }
.bcard.dragging { cursor: grabbing; box-shadow: 0 18px 44px rgba(0,0,0,0.55); z-index: 5; }
.bcard-text { font-size: 14px; line-height: 1.55; min-height: 48px; outline: none; white-space: pre-wrap; word-break: break-word; color: var(--text); font-family: var(--font); cursor: text; }
/* Note : corps éditable (curseur texte), déplacement uniquement par la poignée du haut */
.bcard.note { cursor: default; padding-top: 20px; }
.bcard-grip { position: absolute; top: 0; left: 0; right: 0; height: 18px; cursor: grab; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; touch-action: none; }
.bcard-grip::before { content: ""; width: 28px; height: 3px; border-radius: 999px; background: var(--faint); }
.bcard.note:hover .bcard-grip { opacity: 1; }
.bcard.note.dragging .bcard-grip { cursor: grabbing; }
.bcard.note.dragging .bcard-grip::before { background: var(--text); }
/* Neutralise tout formatage collé (couleur sombre, serif, surlignage) → toujours lisible */
.bcard-text, .bcard-text * { color: var(--text) !important; font-family: var(--font) !important; font-style: normal !important; font-weight: 400 !important; background: transparent !important; }
.bcard-text[contenteditable]:empty:before { content: "Écris ici…"; color: var(--faint); }
.bcard-foot { font-size: 10.5px; color: var(--faint); margin-top: 10px; }
.bcard.file .bcard-file { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.bcard.file .bcard-file:hover { color: #fff; }
.bcard.file .ic-svg { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }
.bcard-del {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 11px;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s, color .15s;
}
.bcard:hover .bcard-del { opacity: 1; }
.bcard-del:hover { color: #ff7a7a; border-color: rgba(255,90,90,.4); }
.phase-chip[disabled] { pointer-events: none; opacity: .8; }

/* ============================================================
   Toile infinie · pan / zoom / resize (niveau Figma/Freeform)
   ============================================================ */
.board-canvas { position: relative; cursor: grab; touch-action: none; }
.board-canvas.panning { cursor: grabbing; }
.board-canvas.panning .bcard { transition: none; }
.board-canvas.dropping { outline: 2px dashed rgba(255,255,255,0.3); outline-offset: -6px; }
.board-world { position: absolute; top: 0; left: 0; width: 0; height: 0; transform-origin: 0 0; }

.board-zoom {
  position: absolute; bottom: 14px; right: 14px; z-index: 6;
  display: flex; align-items: center; gap: 4px;
  background: rgba(20,20,20,0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 7px;
}
.board-zoom button { background: transparent; border: none; color: var(--muted); font-size: 16px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.board-zoom button:hover { color: var(--text); background: var(--surface-2); }
.board-zoom #zPct { font-size: 12px; color: var(--muted); min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.board-zoom #zReset { width: auto; padding: 0 13px; font-size: 11.5px; }

.bcard-resize { position: absolute; right: 1px; bottom: 1px; width: 20px; height: 20px; cursor: nwse-resize; opacity: 0; transition: opacity .15s; touch-action: none; }
.bcard-resize::before { content: ""; position: absolute; right: 4px; bottom: 4px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); border-bottom-right-radius: 3px; }
.bcard:hover .bcard-resize { opacity: 1; }
.bcard-resize:hover::before { border-color: #fff; }
.bcard.resizing { box-shadow: 0 18px 44px rgba(0,0,0,.55); z-index: 6; }

/* Validation des étapes */
.phase-chip.done { background: var(--text); color: #000; border-color: var(--text); }
.phase-chip.done .chk { color: #1a8f4c; font-weight: 700; margin-right: 5px; }
.phase-chip.current { box-shadow: 0 0 0 3px rgba(255,255,255,0.14); }
.phase-chip.done.current { box-shadow: 0 0 0 3px rgba(110,231,168,0.35); }
.livre-badge { font-family: var(--display); text-transform: uppercase; font-size: 11px; letter-spacing: .06em;
  color: #000; background: #6ee7a8; border-radius: 999px; padding: 7px 14px; }

/* ============================================================
   Branding par client · logo + couleur d'accent
   ============================================================ */
.hero-row { display: flex; align-items: center; gap: 18px; }
/* Logo en BULLE ronde (façon profil Insta) · zoom réglable dans le Studio de personnalisation */
.client-logo {
  width: 84px; height: 84px; flex: none; border-radius: 50%;
  background-color: #fff; background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 3px solid var(--bg); box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
@media (max-width: 720px) { .client-logo { width: 64px; height: 64px; } }
.brand-hero { position: relative; }
body.branded .brand-hero::before {
  content: ""; position: absolute; inset: -50px -240px auto -240px; height: 260px; z-index: -1; pointer-events: none;
  background: radial-gradient(620px 220px at 28% 0%, var(--accent-soft, transparent), transparent 72%);
}
body.branded::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40;
  background: var(--accent, #fff);
}
input[type="color"].field { color-scheme: dark; cursor: pointer; height: 50px; }

/* ============================================================
   Stepper de validation (cases à cocher animées)
   ============================================================ */
.stepper { display: flex; align-items: flex-start; margin: 26px 0 10px; }
.step2 { display: flex; align-items: center; flex: 1; }
.step2:last-child { flex: 0 0 auto; }
.step2-btn { display: flex; flex-direction: column; align-items: center; gap: 9px; background: none; border: none; padding: 0; cursor: pointer; }
.step2-btn[disabled] { cursor: default; }
.step2-circle {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: transparent;
  transition: background .25s var(--ease-out), border-color .25s, transform .2s var(--ease-out);
}
.step2-circle .ic-svg { width: 15px; height: 15px; }
.step2-btn:hover .step2-circle { border-color: var(--faint); }
.step2.done .step2-circle { background: var(--accent, #fff); border-color: var(--accent, #fff); color: #000; animation: stepPop .32s var(--ease-out); }
.step2.current .step2-circle { box-shadow: 0 0 0 4px var(--accent-soft, rgba(255,255,255,0.15)); }
.step2-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); transition: color .2s; white-space: nowrap; }
.step2.done .step2-label { color: var(--text); }
.step2-line { flex: 1; height: 1.5px; background: var(--line); margin: 15px 8px 0; transition: background .35s var(--ease-out); }
.step2-line.done { background: var(--accent, #fff); }
@keyframes stepPop { 0% { transform: scale(.55); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* View Transitions · crossfade fluide entre vues */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ============================================================
   Toile : filtre par phase (nuages) + cartes image
   ============================================================ */
.phase-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.pf-chip { font-size: 12px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.pf-chip:hover:not(.on) { color: var(--text); border-color: var(--line); }
.pf-chip.on { background: var(--text); color: #000; border-color: var(--text); font-weight: 600; }
.pf-n { font-size: 10.5px; opacity: .6; margin-left: 3px; }

.bcard.img { padding: 0; overflow: hidden; width: 210px; }
.bcard.img .bcard-img {
  width: 100%; aspect-ratio: 16/10; background: #0e0e0e center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.bcard.img .bcard-img:not(.loaded)::after {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15); border-top-color: #fff; animation: spin .7s linear infinite;
}
.bcard.img .bcard-fname { font-size: 12px; padding: 9px 12px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.bcard.img .bcard-foot { padding: 4px 12px 10px; margin-top: 4px; }
.bcard.img .bcard-del { top: 7px; right: 7px; }
.bcard.img .bcard-resize { right: 4px; bottom: 4px; }
.bcard.img .bcard-img.vid { background-color: #000; }
.bcard-play { position: absolute; top: calc(50% - 16px); left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; z-index: 2; }
.bcard-play .ic-svg { width: 16px; height: 16px; margin-left: 2px; }

/* Bouton Agrandir (toutes les cartes) */
.bcard-expand { position: absolute; top: 7px; left: 7px; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: rgba(0,0,0,.55); color: var(--muted); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 4; backdrop-filter: blur(6px); }
.bcard-expand .ic-svg { width: 13px; height: 13px; }
.bcard:hover .bcard-expand { display: flex; }
.bcard-expand:hover { color: #fff; border-color: var(--faint); }

/* Galerie : badge lecture vidéo */
.gallery-item.is-vid .ph { background: #000; }
.gal-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; max-width: 48px; max-height: 48px; border-radius: 50%; background: rgba(10,10,10,.62); display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; z-index: 2; }
.gal-play .ic-svg { width: 20px; height: 20px; margin-left: 3px; }

/* Lightbox : note en grand */
.lb-note { max-width: 680px; max-height: 72vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 34px 38px; font-size: 21px; line-height: 1.55; color: #fff; white-space: pre-wrap; animation: fadeIn .4s var(--ease) both; }

/* ============================================================
   Carte enrichie : statut, priorité, barré, mini-barre d'actions
   ============================================================ */
.bcard-tools { position: absolute; top: 7px; right: 7px; display: flex; gap: 4px; opacity: 0; transform: translateY(-3px); transition: opacity .15s, transform .15s; z-index: 3; }
.bcard:hover .bcard-tools { opacity: 1; transform: none; }
.bcard-tools .bt, .bcard-tools .bt-del { width: 25px; height: 25px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 11px; transition: color .15s, background .15s, border-color .15s; }
.bcard-tools .bt .ic-svg { width: 14px; height: 14px; }
.bcard-tools .bt:hover { color: var(--text); border-color: var(--faint); }
.bcard-tools .bt-strike { font-weight: 700; font-style: italic; }
.bcard-tools .bt-del:hover { color: #ff7a7a; border-color: rgba(255,90,90,.4); }

.bcard-status { display: inline-block; font-family: var(--display); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; margin-bottom: 9px; }
.bcard.img .bcard-status, .bcard.file:not(.img) .bcard-status { position: absolute; top: 8px; left: 8px; margin: 0; z-index: 2; }
.st-vu { background: rgba(255,255,255,.14); color: var(--text); }
.st-approuve { background: #1a8f4c; color: #fff; }
.st-revoir { background: #caa12f; color: #000; }

.bcard.prio-haute { border-left: 3px solid #ff5a5a; }
.bcard.prio-moyenne { border-left: 3px solid #f0a93b; }
.bcard.prio-basse { border-left: 3px solid #5b9dff; }

.bcard.struck { opacity: .82; }
.bcard.struck .bcard-text, .bcard.struck .bcard-fname, .bcard.struck .bcard-file span { text-decoration: line-through; opacity: .6; }

/* ============================================================
   Stepper unifié (valide + filtre le nuage)
   ============================================================ */
.step2-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 12px; transition: background .18s, outline-color .18s; outline: 1.5px solid transparent; }
.step2-edit { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.step2-edit .ic-svg { width: 12px; height: 12px; }
.step2-node:hover .step2-edit { display: flex; }
.step2-edit:hover { color: var(--text); border-color: var(--faint); }
/* ============================================================
   CONSEILS · widget flottant détaché (coin bas-droit), façon "bonus"
   ============================================================ */
#tipsWidget { position: fixed; left: 24px; bottom: 24px; z-index: 120; }
.tips-fab {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  padding: 11px 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .16s var(--ease-out), border-color .2s;
}
.tips-fab:hover { transform: translateY(-2px); border-color: var(--accent, var(--faint)); }
.tips-fab .ic-svg { width: 15px; height: 15px; color: var(--accent, var(--text)); }
.tips-fab-label { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.tips-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #000;
  background: var(--accent, #fff); border-radius: 999px;
  animation: tipPulse 2.8s ease-out infinite;
}
@keyframes tipPulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft, rgba(255,255,255,.4)); }
  70% { box-shadow: 0 0 0 8px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
.tips-panel {
  position: absolute; left: 0; bottom: calc(100% + 12px); width: 300px; max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; box-shadow: 0 22px 60px rgba(0,0,0,.55);
  animation: tipsIn .18s var(--ease-out) both;
}
@keyframes tipsIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.tips-panel-head { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, var(--muted)); font-weight: 600; padding: 4px 6px 10px; }
.tips-panel-head .ic-svg { width: 13px; height: 13px; }
.tips-panel-list { display: flex; flex-direction: column; gap: 6px; }
.tips-card {
  text-align: left; background: var(--surface-2); border: 1px solid transparent; border-radius: 11px;
  padding: 11px 13px; cursor: pointer; transition: border-color .2s, background .2s;
}
.tips-card:hover { border-color: var(--line); }
.tips-card.new { border-color: var(--accent, var(--line)); }
.tips-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.tips-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #fff); flex: none; }
.tips-check { display: flex; color: var(--faint); }
.tips-check .ic-svg { width: 13px; height: 13px; }
.tips-card-t { font-size: 12.5px; line-height: 1.5; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s var(--ease-out), opacity .2s, margin .2s; }
.tips-card.open .tips-card-t { max-height: 200px; opacity: 1; margin-top: 7px; }
.step2-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 124px; margin-top: 5px; font-size: 9px; line-height: 1.3; text-align: center; color: var(--muted); text-transform: none; letter-spacing: 0; }
.step2.current .step2-note { color: var(--text); }
.step2-circle-btn, .step2-tab { background: none; border: none; padding: 0; cursor: pointer; outline: none; }
.step2-circle-btn[disabled] { cursor: default; }
.step2-circle-btn:focus, .step2-tab:focus { outline: none; }
.step2-circle-btn:hover .step2-circle { border-color: var(--faint); }
.step2-tab { display: flex; flex-direction: column; align-items: center; }
.step2-tab:hover .step2-label { color: var(--text); }
.step2-n { font-size: 9px; color: var(--faint); margin-top: 3px; font-variant-numeric: tabular-nums; }
.step2.active .step2-node { background: var(--surface-2); outline-color: var(--accent, #fff); }
.step2.active .step2-label { color: var(--text); }

/* ============================================================
   Crayon / Stabilo (dessin) + dates
   ============================================================ */
.board-draw { position: absolute; top: 0; left: 0; width: 4000px; height: 4000px; overflow: visible; pointer-events: none; z-index: 4; }
.draw-btn.on { background: var(--text); color: #000; border-color: var(--text); }
.board-canvas.drawing-mode { cursor: crosshair; }
.board-canvas.drawing-mode .bcard { cursor: crosshair; }
.board-canvas.erasing-mode, .board-canvas.erasing-mode .bcard { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26"><circle cx="13" cy="13" r="9" fill="rgba(255,255,255,0.22)" stroke="white" stroke-width="1.5"/></svg>') 13 13, crosshair; }
.bcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bcard-date { color: var(--faint); font-size: 10px; white-space: nowrap; }

/* ============================================================
   Suivi "colis" par phase + Commander un projet + Demandes
   ============================================================ */
.step2-date { font-size: 8.5px; margin-top: 4px; color: var(--faint); text-transform: none; letter-spacing: 0; }
.step2-date.now { color: var(--text); }
.step2-date.jj { color: #000; background: #6ee7a8; border-radius: 999px; padding: 1.5px 7px; font-family: var(--display); text-transform: uppercase; font-size: 8px; letter-spacing: .05em; }

.order-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 26px 0 60px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); animation: fadeUp .5s var(--ease-out) both; }
.order-cta-title { font-family: var(--display); text-transform: uppercase; font-size: 17px; }
.order-cta-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.order-cta .btn { white-space: nowrap; }

.fld-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 15px 0 7px; }
.seg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { font-size: 12.5px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.seg-opt:hover:not(.on) { color: var(--text); border-color: var(--faint); }
.seg-opt.on { background: var(--text); color: #000; border-color: var(--text); font-weight: 600; }

.req-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--surface); }
.req-type { font-size: 15px; font-weight: 600; }
.req-meta { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.req-msg { font-size: 13px; color: var(--text); margin-top: 8px; line-height: 1.5; opacity: .85; }
.req-badge { font-family: var(--font); font-size: 12px; background: #6ee7a8; color: #000; border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle; }

/* ============================================================
   Pipeline (prospects) + espace prospect inspirant
   ============================================================ */
.prospect-tile .ic { color: #caa12f; }
.prospect-tagline { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); margin-top: 12px; max-width: 580px; line-height: 1.55; }
.prospect-hero { padding-bottom: 18px; }

/* Espace prospect : nom du projet + inspiration */
.prospect-topic { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 15px; flex-wrap: wrap; }
.pt-label { font-family: var(--display); text-transform: uppercase; font-size: 10px; letter-spacing: .06em; color: #000; background: var(--accent, #fff); border-radius: 999px; padding: 3px 9px; }
.pt-edit { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.pt-edit:hover { color: var(--text); }
.inspi { margin: 30px 0 12px; animation: fadeUp .5s var(--ease-out) both; }
.inspi-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.inspi-head h4 { font-family: var(--display); text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.inspi-link { font-size: 13px; color: var(--accent, #fff); }
.inspi-link:hover { opacity: .8; }
.inspi-video { width: 100%; max-height: 380px; border-radius: 16px; background: #000; border: 1px solid var(--line-2); display: block; }

/* Réalisations (mosaïque portfolio) + lecteur YouTube */
.realisations { margin: 48px 0 40px; animation: fadeUp .5s var(--ease-out) both; }
.realisations .inspi-head h2 { font-family: var(--display); text-transform: uppercase; font-size: 18px; letter-spacing: .02em; }
.reals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.real-card { position: relative; aspect-ratio: 16/9; border: none; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #0e0e0e; }
.real-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: transform .3s var(--ease-out), opacity .3s; }
.real-card:hover img { transform: scale(1.05); opacity: 1; }
.real-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; opacity: 0; transition: opacity .2s; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.real-card:hover .real-play { opacity: 1; }
@media (max-width: 760px) { .reals-grid { grid-template-columns: repeat(2, 1fr); } }

.yt-lb { padding: 24px; }
.yt-frame { width: min(92vw, 1100px); aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: fadeUp .35s var(--ease-out) both; }
.yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============ Sélecteur de langue (FR · ES · EN) ============ */
.lang-mount { display: inline-flex; }
.lang-sel { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.lang-sel button { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: none; border: none; padding: 4px 9px; border-radius: 999px; cursor: pointer; transition: color .15s, background .15s; }
.lang-sel button:hover { color: var(--text); }
.lang-sel button.on { color: #000; background: #fff; }
.login-lang { position: absolute; top: 22px; right: 24px; z-index: 5; }
.topbar .lang-mount { margin-right: 6px; }

/* ============ Espace prospect · page de conversion ============ */
.prospect-block { margin-top: 26px; }
.pp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.pp-sec-head h2 { font-family: var(--display); font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }

/* Proposition budgétaire */
.proposal-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, #141414, #0b0b0b); }
.proposal-ic { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--accent, #fff); color: #000; flex: none; }
.proposal-ic .ic-svg { width: 22px; height: 22px; }
.proposal-main { flex: 1; min-width: 0; }
.proposal-title { font-size: 16px; font-weight: 600; }
.proposal-sub { font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proposal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.proposal-empty { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; border: 1px dashed var(--line); border-radius: 16px; background: transparent; color: var(--muted); font-family: var(--font); font-size: 14px; transition: color .2s, border-color .2s; }
.proposal-empty:hover { color: var(--text); border-color: var(--faint); }
.proposal-empty .ic-svg { width: 16px; height: 16px; }

/* Documents (petites tuiles) */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.doc-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, transform .15s; }
.doc-tile:hover { border-color: var(--line); transform: translateY(-2px); }
.doc-tile .ic-svg { width: 22px; height: 22px; color: var(--muted); }
.doc-name { font-size: 12.5px; line-height: 1.3; word-break: break-word; }

/* Médias (vignettes plus grandes) */
.gallery-item.has-thumb { background-size: cover; background-position: center; }
.gallery-item.has-thumb .ph { display: none; }
.btn.accepted { background: #6ee7a8 !important; color: #000 !important; opacity: 1; }

/* ============ PDF + documents + médias prospect ============ */
/* PDF affiché EN GRAND dans le lecteur (pas un nouvel onglet) */
.lb-pdf { width: 92vw; max-width: 1100px; height: 88vh; border: none; border-radius: 10px; background: #fff; }
/* PDF scrollable (toutes les pages) · mobile + desktop */
.lb-pdf-scroll { width: 92vw; max-width: 900px; height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; background: #fff; }
.lb-pdf-page { width: 100%; display: block; background: #fff; }
.lb-pdf-page + .lb-pdf-page { border-top: 1px solid #e3e3e3; }
.lb-pdf-page canvas { display: block; width: 100%; height: auto; }

/* Documents : tuiles avec page de couverture */
.doc-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.doc-tile { padding: 0; overflow: hidden; gap: 0; align-items: stretch; }
.doc-cover { position: relative; width: 100%; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: #0e0e0e center top / cover no-repeat; }
.doc-cover .ic-svg { width: 30px; height: 30px; color: var(--muted); }
.doc-cover.has-thumb .ic-svg { display: none; }
.doc-badge { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 3px 6px; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(4px); }
.doc-tile .doc-name { padding: 11px 12px; }

/* Proposition : la vignette devient la couverture du PDF */
.proposal-ic { width: 58px; height: 74px; border-radius: 10px; background-size: cover; background-position: center top; overflow: hidden; }
.proposal-ic.has-thumb { background-color: #fff; }
.proposal-ic.has-thumb .ic-svg { display: none; }

/* Médias : plus grands (≥ taille du nuage) */
.pp-media { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pp-media .gallery-item { aspect-ratio: 16 / 10; min-height: 220px; }

/* ============ Mini-question d'engagement (espace prospect) ============ */
.quiz-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, #141414, #0b0b0b); }
.quiz-q { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-opt { font-family: var(--font); font-size: 13px; color: var(--text); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .1s; }
.quiz-opt:hover { border-color: var(--faint); transform: translateY(-1px); }
.quiz-opt.on { background: var(--accent, #fff); color: #000; border-color: var(--accent, #fff); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt:disabled:hover { transform: none; }
.quiz-resp { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); animation: fadeIn .4s var(--ease) both; }

/* Outils du nuage placés au niveau du titre "Nuage d'idées" */
.nuage-head { align-items: center; flex-wrap: wrap; gap: 12px; }
.nuage-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Menu d'actions (···) sur les tuiles documents & médias du prospect */
.doc-tile { position: relative; }
.tile-kebab { position: absolute; top: 8px; right: 8px; z-index: 3; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s, background .18s; backdrop-filter: blur(6px); cursor: pointer; }
.tile-kebab .ic-svg { width: 16px; height: 16px; }
.gallery-item:hover .tile-kebab, .doc-tile:hover .tile-kebab { opacity: 1; }
.tile-kebab:hover { background: rgba(0,0,0,.82); }
/* Tactile (pas de survol) : le menu ··· reste visible, sinon inaccessible sur tablette/mobile. */
@media (hover: none) { .tile-kebab { opacity: .92; } }

/* Tuiles "lien" dans la galerie */
.gallery-item .ph .ic-svg { width: 30px; height: 30px; }
.link-item { cursor: pointer; }
.link-item .ph { background: #0e0e0e; color: var(--muted); }
.link-item:hover .ph { color: var(--text); }

/* ============ Barre de navigation entre sections ============ */
/* Entête client compacte · sur tous les onglets de l'espace */
.sec-clienthead { position: relative; border-radius: 20px; overflow: hidden; margin: 8px 0 14px; min-height: 116px; background: var(--surface) center/cover no-repeat; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.sec-clienthead.has-cover { min-height: 158px; }
.sch-veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.12) 72%); }
.sec-clienthead:not(.has-cover) .sch-veil { background: none; }
.sch-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 20px 24px; width: 100%; }
/* Identique au gros logo du hero (.client-logo) : fond blanc, le logo REMPLIT le cercle (cover), bord neutre.
   hydrateAssets applique le zoom data-az par-dessus si défini · les deux logos sont alors strictement pareils. */
.sch-logo { width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; background: #fff center / cover no-repeat; border: 3px solid var(--bg); box-shadow: 0 8px 26px rgba(0,0,0,.45); }
.sch-logo.mono { background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--text); box-shadow: none; }
.sch-logo.mono.accent { color: var(--mono); background: color-mix(in srgb, var(--mono) 18%, #0c0c0c); border-color: color-mix(in srgb, var(--mono) 40%, transparent); }
.sch-name { font-family: var(--display); text-transform: uppercase; font-size: clamp(19px, 2.3vw, 28px); line-height: 1; color: #fff; letter-spacing: -.01em; }
.sch-meta { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,.72); font-size: 14px; margin-top: 7px; }
.sec-clienthead:not(.has-cover) .sch-name { color: var(--text); }
.sec-clienthead:not(.has-cover) .sch-meta { color: var(--muted); }
.section-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 0 4px; }
.sn-help { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: border-color .15s, color .15s; }
.sn-help:hover { border-color: var(--text); color: var(--text); }
.help-list { display: flex; flex-direction: column; gap: 4px; }
.help-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.help-item:last-child { border-bottom: none; }
.help-n { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--accent, #FF6B52); flex-shrink: 0; padding-top: 1px; }
.help-t { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.help-b { font-size: 14px; line-height: 1.6; color: var(--muted); }
.sn-home { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; color: var(--muted); font-family: var(--font); font-size: 13px; cursor: pointer; padding: 8px 4px; transition: color .15s; }
.sn-home:hover { color: var(--text); }
.sn-home .ic-svg { width: 16px; height: 16px; }
.sn-tabs { display: inline-flex; gap: 4px; border-left: 1px solid var(--line-2); padding-left: 14px; flex-wrap: wrap; }
.sn-tab { font-family: var(--font); font-size: 13px; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 999px; padding: 7px 15px; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.sn-tab:hover { color: var(--text); }
.sn-tab.on { color: var(--text); background: var(--surface-2); border-color: var(--line); }

/* Galerie client : tuiles uniformes plus généreuses */
.gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gallery .gallery-item { aspect-ratio: 16 / 10; }

/* ============ Centre de données : accès & inscrits ============ */
.utable { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.utable-head, .utable-row { display: grid; grid-template-columns: 1.2fr 1.5fr .7fr 1.1fr 1.35fr 1.35fr; gap: 12px; align-items: center; padding: 13px 18px; }
.utable-head { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); background: var(--surface); }
.utable-row { border-top: 1px solid var(--line-2); font-size: 13px; }
.utable-row:hover { background: var(--surface); }
.docs-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.docs-filter .df-years { margin: 0; }
.docs-filter .df-sort { width: auto; min-width: 150px; padding: 9px 14px; font-size: 13px; }
@media (max-width: 600px) { .docs-filter { flex-direction: column; align-items: stretch; } .docs-filter .df-sort { width: 100%; } }
.utable-group { padding: 13px 18px 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: var(--surface); border-top: 1px solid var(--line-2); }
.utable-group:first-of-type { border-top: 0; }
.u-name { font-weight: 600; }
.u-mail { font-size: 12px; word-break: break-all; }
.utable .muted { font-size: 12px; }
.u-pending { font-size: 9px; color: #f0a93b; border: 1px solid rgba(240,169,59,.35); border-radius: 999px; padding: 2px 7px; margin-left: 6px; white-space: nowrap; }
@media (max-width: 760px) { .utable-head { display: none; } .utable-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; } .u-mail { word-break: break-all; } }

/* ============ Générateur de documents (rendu façon QUOTE Croppsy) ============ */
.doc-render { background: #000; color: #fff; font-family: var(--font); width: 100%; max-width: 840px; margin: 0 auto; }
/* PAPIER BLANC · la même facture, en version impression classique (choix par document) */
.doc-render.paper-light { background: #fff; color: #111; }
.doc-render.paper-light .doc-kicker, .doc-render.paper-light .doc-meta, .doc-render.paper-light .doc-cover-foot,
.doc-render.paper-light .doc-total-sub, .doc-render.paper-light .doc-sub, .doc-render.paper-light .doc-sign-hint,
.doc-render.paper-light .doc-intro { color: rgba(0,0,0,.6); }
.doc-render.paper-light .doc-vat-note, .doc-render.paper-light .doc-legal-mentions { color: rgba(0,0,0,.45); }
.doc-render.paper-light .doc-legal-cols { color: rgba(0,0,0,.75); }
.doc-render.paper-light .doc-legal-cols b, .doc-render.paper-light .doc-line, .doc-render.paper-light .doc-price,
.doc-render.paper-light .doc-sign-name, .doc-render.paper-light .doc-total-amount, .doc-render.paper-light .doc-total-label,
.doc-render.paper-light .doc-sec-title, .doc-render.paper-light .doc-title, .doc-render.paper-light .doc-h2 { color: #0b0b0b; }
.doc-render.paper-light .doc-page + .doc-page { border-top-color: rgba(0,0,0,.12); }
.doc-render.paper-light .doc-sec-head, .doc-render.paper-light .doc-total, .doc-render.paper-light .doc-vat,
.doc-render.paper-light .doc-legal, .doc-render.paper-light .doc-rule.top { border-color: rgba(0,0,0,.18) !important; }
.doc-render.paper-light .doc-line, .doc-render.paper-light .doc-sub { border-color: rgba(0,0,0,.1); }
.doc-render.paper-light .doc-pill { border-color: rgba(0,0,0,.3); color: #0b0b0b; }
.doc-render.paper-light .doc-sign-line { background: rgba(0,0,0,.35); }
.doc-render.paper-light .doc-terms li { color: rgba(0,0,0,.7); }
.doc-render.paper-light .doc-terms > div:last-child li { color: rgba(0,0,0,.45); }
.doc-render.paper-light .doc-terms > div:last-child .doc-term-label { color: rgba(0,0,0,.35); }
/* Le bandeau TOTAL reste noir signature sur papier blanc · mais son texte passe en BLANC
   (avant : texte sombre sur bande sombre = illisible, bug remonté par François) */
.doc-render.paper-light .doc-total { background: #0b0b0b; border-color: #0b0b0b; }
.doc-render.paper-light .doc-total .doc-total-label,
.doc-render.paper-light .doc-total .doc-total-amount { color: #fff; }
.doc-render.paper-light .doc-total .doc-total-sub { color: rgba(255,255,255,.55); }
.doc-page { padding: 60px 56px; position: relative; }
.doc-page + .doc-page { border-top: 1px solid var(--line-2); }
.doc-kicker { font-size: 12px; letter-spacing: .26em; color: var(--muted); }
.doc-kicker i { color: var(--doc-accent); font-style: normal; margin: 0 6px; }
/* Entête répétée sur chaque page du document (ne disparaît jamais) */
.doc-runhead { font-size: 11px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-bottom: 32px; }
.doc-runhead i { color: var(--doc-accent); font-style: normal; margin: 0 6px; }
.doc-render.paper-light .doc-runhead { color: rgba(0,0,0,.55); }
.doc-cover-page { display: flex; flex-direction: column; justify-content: space-between; min-height: 720px; }
.doc-cover-mid { margin-top: auto; }
.doc-cover-legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); max-width: 560px; }
.doc-render.paper-light .doc-cover-legal { border-color: rgba(0,0,0,.18); }
.doc-title { font-family: var(--display); font-size: 52px; line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.doc-tagline { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--doc-accent); margin-top: 18px; }
.doc-rule { width: 120px; height: 2px; background: var(--doc-accent); margin: 22px 0 16px; }
.doc-meta { color: var(--muted); font-size: 14px; }
.doc-cover-foot { font-size: 11px; letter-spacing: .18em; color: var(--faint); margin-top: 40px; }
.doc-label { font-size: 11px; letter-spacing: .2em; color: var(--doc-accent); text-transform: uppercase; font-weight: 600; }
.doc-h2 { font-size: 26px; font-weight: 700; margin: 10px 0 14px; }
.doc-intro { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 600px; }
.doc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.doc-pill { font-size: 12px; color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.doc-sec { margin-top: 24px; }
.doc-sec-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.doc-num { font-family: var(--display); color: var(--doc-accent); font-size: 13px; }
.doc-sec-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.doc-line { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; font-size: 14px; color: rgba(255,255,255,.86); border-radius: 8px; }
/* La ligne qu'on vient d'ajouter s'allume pour qu'on la repère sur le devis */
.doc-line-flash { animation: docLineFlash 1.5s var(--ease-out); }
@keyframes docLineFlash {
  0% { background: rgba(255,107,82,.45); box-shadow: 0 0 0 6px rgba(255,107,82,.22); }
  35% { background: rgba(255,107,82,.28); }
  100% { background: transparent; box-shadow: 0 0 0 0 transparent; }
}
.doc-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-sub { display: flex; justify-content: flex-end; gap: 24px; padding-top: 10px; font-size: 13px; color: var(--muted); }
.doc-sub .doc-price { color: #fff; font-weight: 700; }

/* ===== Document US (USD) · mise en page américaine épurée (QUOTE / INVOICE) ===== */
.us-doc { background: #0b0b0b; color: #fff; }
.us-doc.paper-light { background: #fff; color: #0b0b0b; }
.us-wrap { max-width: 880px; margin: 0 auto; padding: 48px 40px; }
.us-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.16); }
.us-brand { font-weight: 800; letter-spacing: .02em; font-size: 21px; }
.us-brand small { display: block; font-weight: 500; color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .06em; margin-top: 5px; }
.us-doctype { text-align: right; }
.us-t { font-family: var(--serif, Georgia, serif); font-size: 40px; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.us-m { margin-top: 11px; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.7; }
.us-m b { color: #fff; font-weight: 600; }
.us-sub { margin-top: 18px; font-size: 14px; font-style: italic; color: rgba(255,255,255,.6); }
.us-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 26px 0 30px; }
.us-lbl { font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.45); text-transform: uppercase; margin-bottom: 9px; }
.us-pb { font-size: 15px; line-height: 1.6; }
.us-pb b { font-size: 16px; }
.us-pb span { color: rgba(255,255,255,.55); }
.us-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; }
.us-tbl thead th { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 600; text-align: right; padding: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.us-tbl thead th:first-child { text-align: left; }
.us-tbl tbody td { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); text-align: right; font-size: 15px; vertical-align: top; }
.us-tbl tbody td:first-child { text-align: left; }
.us-tbl tr.us-grp td { padding: 22px 0 7px; border-bottom: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--doc-accent, #fff); font-weight: 700; }
.us-tbl .desc b { font-weight: 600; }
.us-tbl .desc span { display: block; color: rgba(255,255,255,.5); font-size: 12.5px; margin-top: 3px; }
.us-tbl td.num { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.8); white-space: nowrap; }
.us-tbl td.amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.us-doc .us-addons { margin-top: 24px; }
.us-addons-h { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 600; margin-bottom: 6px; }
.us-tot { margin-left: auto; width: 340px; margin-top: 20px; }
.us-tot-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: rgba(255,255,255,.7); }
.us-tot-row .doc-price { color: rgba(255,255,255,.85); }
.us-grand { margin-top: 8px; padding: 18px 24px; background: #161616; border: 1px solid var(--doc-accent, #fff); border-radius: 14px; display: flex; justify-content: space-between; align-items: center; }
.us-grand-l { font-weight: 700; letter-spacing: .04em; }
.us-grand-v { font-family: var(--serif, Georgia, serif); font-weight: 700; font-size: 30px; }
.us-doc .us-grand-l, .us-doc .us-grand-v { color: #fff; }   /* contraste forcé : jamais de texte sombre sur carte sombre */
.us-doc.paper-light .us-grand-l, .us-doc.paper-light .us-grand-v { color: #0b0b0b; }
.us-terms { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.us-body { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.78); }
.us-accept .us-line { height: 1px; background: rgba(255,255,255,.3); margin: 30px 0 7px; }
.us-accept .us-hint { font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: .04em; }
.us-sign-img { max-width: 220px; max-height: 90px; filter: invert(1); margin: 6px 0; }
.us-doc.paper-light .us-sign-img { filter: none; }
.us-accept-meta { font-size: 12px; color: rgba(255,255,255,.6); }
.us-foot { margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; letter-spacing: .03em; color: rgba(255,255,255,.45); line-height: 1.7; }
/* Papier clair (impression) : on inverse les gris */
.us-doc.paper-light .us-head, .us-doc.paper-light .us-tbl thead th { border-color: rgba(0,0,0,.16); }
.us-doc.paper-light .us-brand small, .us-doc.paper-light .us-m, .us-doc.paper-light .us-sub, .us-doc.paper-light .us-lbl,
.us-doc.paper-light .us-pb span, .us-doc.paper-light .us-tbl thead th, .us-doc.paper-light .us-addons-h,
.us-doc.paper-light .us-tot-row, .us-doc.paper-light .us-body, .us-doc.paper-light .us-accept-meta, .us-doc.paper-light .us-foot { color: rgba(0,0,0,.55); }
.us-doc.paper-light .us-m b, .us-doc.paper-light .us-tbl td.num, .us-doc.paper-light .us-tot-row .doc-price { color: rgba(0,0,0,.8); }
.us-doc.paper-light .us-tbl tbody td, .us-doc.paper-light .us-foot { border-color: rgba(0,0,0,.1); }
.us-doc.paper-light .us-grand { background: #f2f2f2; }
.us-doc.paper-light .us-accept .us-line { background: rgba(0,0,0,.3); }
.us-doc.paper-light .us-tbl .desc span { color: rgba(0,0,0,.5); }
@media (max-width: 700px) {
  .us-wrap { padding: 30px 20px; }
  .us-head { flex-direction: column; gap: 16px; }
  .us-doctype { text-align: left; }
  .us-parties, .us-terms { grid-template-columns: 1fr; gap: 22px; }
  .us-tot { width: 100%; }
  .us-t { font-size: 34px; }
}
/* Fond PLAT (pas de color-mix) : html2canvas — le moteur du PDF — ne sait pas lire color-mix()/color(),
   ça faisait planter le téléchargement. La bordure accent suffit à porter la couleur du document. */
.doc-total { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 26px 28px; border: 1px solid var(--doc-accent); border-radius: 16px; background: #141414; }
.doc-total-label { font-family: var(--display); font-size: 15px; text-transform: uppercase; }
.doc-total-sub { font-size: 10px; letter-spacing: .16em; color: var(--muted); margin-top: 5px; }
.doc-total-amount { font-family: var(--display); font-size: 40px; color: var(--doc-accent); white-space: nowrap; }
/* Bloc RÈGLEMENT : l'IBAN en évidence sous le total · l'argent ne doit jamais chercher son chemin */
.doc-pay {
  margin-top: 16px; border: 1px solid var(--doc-accent); border-radius: 14px;
  padding: 18px 24px; background: rgba(255,255,255,.035);   /* plat · pas de color-mix (cf. .doc-total) */
}
.doc-pay-h { font-size: 10px; letter-spacing: .18em; color: var(--doc-accent); font-weight: 700; margin-bottom: 9px; }
.doc-pay-iban {
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 17px; letter-spacing: .06em;
  font-weight: 600; word-break: break-all;
}
.doc-pay-meta { font-size: 11px; color: var(--muted); margin-top: 7px; letter-spacing: .03em; }
.doc-render.paper-light .doc-pay { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.25); }
.doc-render.paper-light .doc-pay-h { color: #0b0b0b; }
.doc-render.paper-light .doc-pay-iban { color: #0b0b0b; }
.doc-render.paper-light .doc-pay-meta { color: rgba(0,0,0,.55); }
.doc-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 14px; }
.doc-term-label { font-size: 11px; letter-spacing: .16em; color: var(--doc-accent); margin-bottom: 10px; }
.doc-terms ul { list-style: none; }
/* INCLUS : lisible, il vend. MODALITÉS : fines lignes discrètes façon bas de page premium · pas de puces. */
.doc-terms li { font-size: 12.5px; color: rgba(255,255,255,.78); padding: 4px 0; }
.doc-terms > div:last-child li {
  font-size: 9.5px; color: rgba(255,255,255,.42); line-height: 1.6; padding: 2px 0;
  letter-spacing: .01em;
}
.doc-terms > div:last-child .doc-term-label { color: rgba(255,255,255,.35); }
.doc-sign .doc-rule.top { width: 100%; height: 1px; background: var(--line); margin-bottom: 30px; }
.doc-sign-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.doc-sign-name { font-size: 17px; font-weight: 700; margin-top: 4px; }
.doc-sign-line { height: 1px; background: var(--line); margin: 36px 0 8px; }
.doc-sign-hint { font-size: 12px; color: var(--muted); }
.doc-closing { text-align: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--doc-accent); margin-top: 30px; }

/* ============ Éditeur de documents (générateur) ============ */
.doc-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 0; flex-wrap: wrap; }
.doc-toolbar .grow { flex: 1; }
.doc-editor { display: grid; grid-template-columns: 380px 1fr; align-items: start; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.doc-editor-form { padding: 22px; border-right: 1px solid var(--line-2); max-height: calc(100vh - 130px); overflow: auto; }
.doc-editor-preview { background: #000; max-height: calc(100vh - 130px); overflow: auto; }
.df-group { margin-bottom: 16px; }
.df-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 6px; display: block; }
/* Alerte plancher dans l'éditeur de devis (branché sur Mes tarifs) */
.df-floor { margin: 6px 0 18px; }
.df-floor-ref { font-size: 13px; color: var(--muted); padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.df-floor-ref b { color: var(--text); }
.df-floor-ok { margin-top: 8px; font-size: 12.5px; color: #2ecc71; padding: 8px 14px; }
.df-floor-warn { margin-top: 8px; font-size: 13px; line-height: 1.55; padding: 14px 16px; border-radius: 12px; background: rgba(255,107,82,.1); border: 1px solid rgba(255,107,82,.32); }
.df-floor-warn b { color: var(--accent, #FF6B52); display: block; margin-bottom: 6px; }
.df-floor-warn > div { color: var(--text); }
.df-floor-tip { margin-top: 8px; font-size: 12px; color: var(--muted); font-style: italic; }
.df-input, .df-area, .df-select { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-family: var(--font); font-size: 13px; padding: 10px 12px; text-align: left; }
.df-input:focus, .df-area:focus, .df-select:focus { outline: none; border-color: var(--faint); }
.df-area { min-height: 64px; resize: vertical; line-height: 1.5; }
.df-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }   /* passe à la ligne sans chevauchement : rien n'est coupé ni comprimé */
.df-row > .df-group { flex: 0 0 auto; }   /* ne pas rétrécir → wrap propre (les groupes en flex:1 inline gardent leur priorité) */
.df-sec { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: rgba(255,255,255,.015); }
.df-line { display: grid; grid-template-columns: 1fr 90px 26px; gap: 6px; margin: 6px 0; align-items: center; }
.df-mini { background: none; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-family: var(--font); font-size: 11.5px; padding: 7px 11px; cursor: pointer; transition: color .15s, border-color .15s; }
.df-mini:hover { color: var(--text); border-color: var(--faint); }
.df-del { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 13px; }
.df-del:hover { color: #ff7a7a; }
.df-rate { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-toolbar .df-select { padding: 8px 12px; }
@media (max-width: 860px) { .doc-editor { grid-template-columns: 1fr; } .doc-editor-form { border-right: none; border-bottom: 1px solid var(--line-2); max-height: none; } .doc-editor-preview { max-height: none; } }

/* Colonne de gauche = Conseil financier + formulaire */
.doc-editor-side { border-right: 1px solid var(--line-2); max-height: calc(100vh - 130px); overflow: auto; }
.doc-editor-side .doc-editor-form { border-right: none; max-height: none; overflow: visible; }
@media (max-width: 860px) { .doc-editor-side { border-right: none; border-bottom: 1px solid var(--line-2); max-height: none; } }
.doc-advisor {
  margin: 16px 16px 0; padding: 14px 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--flf) 35%, transparent);
  background: color-mix(in srgb, var(--flf) 5%, var(--surface));
  font-size: 12.5px;
}
.da-head { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--flf); margin-bottom: 9px; }
/* Coût réel par ligne (admin · jamais sur le doc client) */
.df-cost { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding-top: 7px; border-top: 1px dashed var(--line-2); }
.df-cost-ic { font-size: 11px; color: var(--faint); font-weight: 700; }
.df-cost-k { background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-family: var(--font); font-size: 11.5px; padding: 6px 8px; }
.df-cost-v { max-width: 110px; }
.df-cost-m { font-size: 11.5px; color: #2ecc71; font-weight: 600; white-space: nowrap; }
.df-cost-help { background: none; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-family: var(--font); font-size: 11px; padding: 5px 9px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.df-cost-help:hover { color: #FF6B52; border-color: #FF6B52; }
/* Calculette freelance (depuis une ligne) */
.flc-list { display: flex; flex-direction: column; gap: 12px; }
.flc-role { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.flc-h b { font-size: 14px; color: var(--text); }
.flc-h span { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.flc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
@media (max-width: 560px) { .flc-grid { grid-template-columns: 1fr; } }
.flc-grid > div { background: var(--surface); border-radius: 9px; padding: 9px 11px; }
.flc-grid span { display: block; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 4px; }
.flc-grid b { font-size: 15px; color: var(--text); }
.flc-marge.ok b { color: #2ecc71; }
.flc-marge.warn b { color: #e67e22; }
.flc-band { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.flc-band b { color: var(--text); }
/* Panneau MARGE RÉELLE (admin) */
.doc-margin { margin: 12px 16px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, #2ecc71 32%, transparent); background: color-mix(in srgb, #2ecc71 5%, var(--surface)); font-size: 12.5px; }
.doc-margin .da-head { color: #2ecc71; justify-content: space-between; }
.dm-priv { font-size: 9px; letter-spacing: .08em; color: var(--faint); font-weight: 600; text-transform: none; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-bottom: 10px; }
.dm-kpi { background: var(--surface-2); border-radius: 9px; padding: 9px 11px; }
.dm-kpi span { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 4px; }
.dm-kpi b { font-size: 15px; color: var(--text); }
.dm-kpi.big b { font-size: 16px; }
.dm-kpi.big.ok b { color: #2ecc71; }
.dm-kpi.big.warn b { color: #e67e22; }
.dm-break { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.dm-line { display: flex; justify-content: space-between; color: var(--muted); }
.dm-line.strong { font-weight: 700; color: var(--text); padding-top: 8px; border-top: 1px solid var(--line-2); }
.dm-hint { font-size: 11.5px; color: var(--faint); line-height: 1.45; padding: 6px 0; }
.dm-net { margin-top: 4px; }
.dm-rate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.dm-rate input { width: 56px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; color: var(--text); padding: 5px 7px; font-family: var(--font); }
.dm-est { font-size: 10px; color: var(--faint); font-style: italic; }
.da-head .ic-svg { width: 13px; height: 13px; }
.da-line { padding: 5px 0; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line-2); }
.da-line:first-of-type { border-top: none; }
.da-line b { color: var(--text); }
.da-line.bad { color: var(--flf); font-weight: 600; }
.da-line.warn b { color: var(--flf); }

/* Impression / Export PDF : on ne sort que le document */
@media print {
  body * { visibility: hidden !important; }
  #docPreview, #docPreview * { visibility: visible !important; }
  #docPreview { position: absolute; left: 0; top: 0; width: 100%; max-height: none; overflow: visible; }
  #docPreview .doc-page { page-break-after: always; border: none; min-height: auto; }
  .doc-render { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Historique des consultations (tracking) */
.cons-list { display: flex; flex-direction: column; }
.cons-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 2px; border-top: 1px solid var(--line-2); font-size: 14px; }
.cons-row:first-child { border-top: none; }
.cons-who { font-weight: 600; }

/* ============ Apparence : sombre (FLF) / clair ============ */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.3); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.theme-toggle:hover { color: var(--text); border-color: var(--faint); }
.theme-toggle .ic-svg { width: 16px; height: 16px; }
.login-top { position: absolute; top: 22px; right: 24px; z-index: 5; display: flex; gap: 8px; align-items: center; }

body.theme-light {
  --bg: #ffffff; --surface: #f6f6f7; --surface-2: #ededf0;
  --line: rgba(0,0,0,.14); --line-2: rgba(0,0,0,.07);
  --text: #0b0b0b; --muted: rgba(0,0,0,.56); --faint: rgba(0,0,0,.4);
}
/* Le LOGIN reste toujours sombre (vidéo + identité) */
body.theme-light #login {
  --bg: #000; --surface: #0b0b0b; --surface-2: #151515;
  --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.06);
  --text: #fff; --muted: rgba(255,255,255,.56); --faint: rgba(255,255,255,.34);
}
body.theme-light header.topbar { background: rgba(255,255,255,0.72); border-bottom-color: rgba(0,0,0,.08); }
/* Logo FLF (PNG blanc) → inversé en noir sur fond clair */
body.theme-light .topbar .logo { filter: invert(1); }
body.theme-light .theme-toggle, body.theme-light .lang-sel { background: rgba(0,0,0,.05); }
body.theme-light .lang-sel button.on { background: #0b0b0b; color: #fff; }
body.theme-light .tile { background: linear-gradient(165deg, #ffffff, #f3f3f5); }
body.theme-light .tile::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,.07), transparent); }
body.theme-light .tile.add { background: transparent; }
body.theme-light .t-avatar.mono { background: linear-gradient(150deg, rgba(0,0,0,.07), rgba(0,0,0,.02)); color: #0b0b0b; }
body.theme-light .proposal-card, body.theme-light .quiz-card { background: linear-gradient(150deg, #ffffff, #f3f3f5); }
body.theme-light .bcard { box-shadow: 0 8px 24px rgba(0,0,0,.10); }
body.theme-light .bcard.img .bcard-img, body.theme-light .gallery-item .ph, body.theme-light .doc-cover, body.theme-light .link-item .ph, body.theme-light .gallery-item.is-vid .ph { background-color: #e7e7ea; }
body.theme-light .df-sec { background: rgba(0,0,0,.02); }
/* Nuage d'idées : points + liseré de dépôt visibles sur fond clair */
body.theme-light .board-canvas { background-image: radial-gradient(rgba(0,0,0,0.07) 1px, transparent 1px); }
body.theme-light .board-canvas.dropping { outline-color: rgba(0,0,0,.28); }
/* Pilule de zoom du nuage : blanche en thème clair (sinon texte sombre sur fond sombre) */
body.theme-light .board-zoom { background: rgba(255,255,255,.94); border-color: rgba(0,0,0,.14); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
/* Menu ··· (Ouvrir/Télécharger/…) : surface claire en thème clair (texte suivait le thème, pas le fond) */
body.theme-light .fmenu { background: #ffffff; border-color: rgba(0,0,0,.12); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
body.theme-light .fmenu-item.danger { color: #d4382e; }
body.theme-light .fmenu-item.danger:hover { background: rgba(212,56,46,.08); }
/* Les textes posés SUR un fond accent passent en blanc quand l'accent est sombre (thème clair) */
body.theme-light .quiz-opt.on, body.theme-light .tips-badge, body.theme-light .conv-num { color: #fff; }
body.theme-light .step2.done .step2-circle { color: #fff; }
body.theme-light .sn-tab.on { background: var(--surface-2); }
/* Le fond du document suit le PAPIER choisi (Noir/Blanc), jamais le thème de l'app.
   Le backdrop de l'aperçu reste noir ; un document papier Blanc reste blanc dessus (sinon noir sur noir). */
body.theme-light .doc-render:not(.paper-light), body.theme-light .doc-editor-preview { background: #000; }
body.theme-light .doc-render.paper-light { background: #fff; }

/* ===== Téléchargement façon WeTransfer ===== */
.dl-card { position: fixed; right: 22px; bottom: 22px; z-index: 1200; width: 340px; max-width: calc(100vw - 44px);
  background: rgba(16,16,18,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 16px 16px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; }
.dl-card.on { opacity: 1; transform: translateY(0); }
.dl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-x { background: none; border: 0; color: rgba(255,255,255,.45); font-size: 13px; cursor: pointer; padding: 2px 4px; }
.dl-x:hover { color: #fff; }
.dl-track { height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); margin: 12px 0 8px; overflow: hidden; }
.dl-bar { height: 100%; width: 0%; border-radius: 99px; background: var(--accent, #FF6B52); transition: width .25s ease; }
.dl-bar.ok { background: #38c172; }
.dl-bar.indet { width: 35% !important; animation: dlSlide 1.1s ease-in-out infinite alternate; }
@keyframes dlSlide { from { margin-left: 0 } to { margin-left: 65% } }
.dl-meta { font-size: 11px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }

/* ===== Pied d'espace : équipe + coin cinéma ===== */
.space-foot { display: grid; grid-template-columns: 1fr 400px; gap: 18px; margin-top: 46px; align-items: stretch; }
@media (max-width: 860px) { .space-foot { grid-template-columns: 1fr; } }
.invite-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.inv-t { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.inv-s { font-size: 12.5px; color: var(--muted); line-height: 1.55; max-width: 420px; }
.inv-row { display: flex; gap: 8px; margin-top: 10px; }
.inv-row .field { flex: 1; min-width: 0; }
.inv-msg { font-size: 12px; color: var(--accent, #FF6B52); min-height: 16px; }
.cine-card { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16/9; }
.cine-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cine-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.78));
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.cine-cap a { color: rgba(255,255,255,.6); text-decoration: none; letter-spacing: .06em; text-transform: none; font-size: 11.5px; }
.cine-cap a:hover { color: #fff; }

/* ===== Étapes personnalisées : crayon du stepper + éditeur ===== */
.stepper { position: relative; }
.stepper-cfg { position: absolute; top: -6px; right: 0; background: transparent; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; width: 28px; height: 28px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all .2s; }
.stepper-cfg:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.stepper-cfg svg { width: 13px; height: 13px; }
.ph-row { display: flex; align-items: center; gap: 8px; }
.ph-grip { color: var(--faint); font-size: 11px; width: 18px; text-align: center; cursor: default; }
.ph-row .field { flex: 1; min-width: 0; }
.ph-up, .ph-dn, .ph-del { background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; width: 28px; height: 30px; cursor: pointer; font-size: 12px; }
.ph-up:hover, .ph-dn:hover { color: #fff; } .ph-del:hover { color: #ff6b52; border-color: rgba(255,107,82,.5); }
.ph-up:disabled, .ph-dn:disabled, .ph-del:disabled { opacity: .25; cursor: default; }
.ph-fixed { font-size: 10px; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; letter-spacing: .08em; text-transform: uppercase; }

/* Invitation en en-tête + cinéma seul centré */
.inv-open { display: inline-block; margin-top: 12px; font-size: 12.5px; }
.space-foot.solo { display: flex; justify-content: center; grid-template-columns: none; }
.space-foot.solo .cine-card { width: min(640px, 100%); }

/* ===== Bandeau cinéma pleine largeur, fondu dans la page ===== */
.cine-strip { position: relative; width: 100vw; max-width: 100vw; margin: 80px calc(50% - 50vw) 0;
  height: clamp(240px, 36vw, 480px); overflow: hidden; pointer-events: none; }
.cine-strip video { width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 84%, rgba(0,0,0,.5) 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 84%, rgba(0,0,0,.5) 100%); }

/* Donner accès : choix email / lien */
.ga-sub { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.ga-ok { font-size: 13px; font-weight: 600; color: #38c172; margin-top: 14px; }

/* ===== Donner accès · version luxe ===== */
.ga-eyebrow { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent, #FF6B52); font-weight: 700; }
.ga-mail { font-size: 15px; padding: 15px 16px; border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.ga-mail:focus { border-color: rgba(255,107,82,.6); box-shadow: 0 0 0 3px rgba(255,107,82,.12); outline: none; }
.ga-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ga-card.wide { grid-column: 1 / -1; }
.ga-pwwrap { margin-top: 14px; animation: gaIn .4s both; }
.ga-pwlab { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.ga-pwhint { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 8px; }
.ga-pwrow { display: flex; align-items: stretch; gap: 8px; }
.ga-pw { flex: 1; min-width: 0; margin: 0; text-align: left; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }
.ga-pwbtn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; min-width: 46px; height: auto; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.ga-pwbtn:hover { border-color: rgba(255,107,82,.6); background: rgba(255,107,82,.08); }
.ga-pwbtn .ic-svg { width: 17px; height: 17px; }
@media (max-width: 560px) { .ga-cards { grid-template-columns: 1fr; } }
.ga-card { position: relative; text-align: left; display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px 16px; cursor: pointer;
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.005));
  color: inherit; font: inherit; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.ga-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.ga-card.on { border-color: rgba(255,107,82,.85); background: linear-gradient(165deg, rgba(255,107,82,.12), rgba(255,107,82,.02));
  box-shadow: 0 14px 40px rgba(255,107,82,.14), inset 0 1px 0 rgba(255,255,255,.06); }
.ga-ic { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: all .25s; }
.ga-ic svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.85); fill: none; stroke-width: 1.6; }
.ga-card.on .ga-ic { background: rgba(255,107,82,.16); border-color: rgba(255,107,82,.35); }
.ga-card.on .ga-ic svg { stroke: #FF6B52; }
.ga-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: #FF6B52; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5);
  transition: opacity .25s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.ga-check svg { width: 11px; height: 11px; stroke: #000; stroke-width: 2.4; fill: none; }
.ga-card.on .ga-check { opacity: 1; transform: scale(1); }
.ga-card-t { font-weight: 700; font-size: 14px; letter-spacing: -.01em; margin-top: 12px; }
.ga-card-s { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.ga-lock { opacity: .45; pointer-events: none; }
.ga-done { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; margin-top: 20px;
  animation: gaIn .45s cubic-bezier(.22,1,.36,1) both; }
.ga-dot { width: 8px; height: 8px; border-radius: 50%; background: #38c172; flex: none;
  box-shadow: 0 0 0 0 rgba(56,193,114,.5); animation: gaPulse 1.8s ease-out infinite; }
@keyframes gaPulse { 70% { box-shadow: 0 0 0 9px rgba(56,193,114,0); } 100% { box-shadow: 0 0 0 0 rgba(56,193,114,0); } }
@keyframes gaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ga-linkrow { display: flex; gap: 8px; margin-top: 12px; animation: gaIn .55s .08s cubic-bezier(.22,1,.36,1) both; }
.ga-link { flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 12px 14px; color: rgba(255,255,255,.85); font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .01em; }
.ga-copy { background: #FF6B52; color: #000; border: 0; border-radius: 12px; padding: 0 18px; font-weight: 700;
  font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.ga-copy:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255,107,82,.35); }
.ga-fine { font-size: 11px; color: var(--faint); margin-top: 10px; line-height: 1.55; animation: gaIn .55s .14s both; }
/* Bloc identifiants · email + mot de passe provisoire à donner au client */
.ga-creds { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; animation: gaIn .55s .1s both; }
.ga-credrow { display: flex; align-items: center; gap: 8px; }
.ga-credlab { flex-shrink: 0; width: 150px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.ga-credval { flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 11px 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.ga-creds .ga-copy { padding: 0 14px; height: 42px; }
@media (max-width: 520px){ .ga-credrow { flex-wrap: wrap; } .ga-credlab { width: auto; } }

/* ===== Badge « Nouveau » · la surbrillance qui guide le client ===== */
.t-new { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #FF6B52;
  background: rgba(255,107,82,.1); border: 1px solid rgba(255,107,82,.4); padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(6px); animation: gaIn .5s cubic-bezier(.22,1,.36,1) both; z-index: 2; }
.t-new-dot { width: 5px; height: 5px; border-radius: 50%; background: #FF6B52; flex: none;
  box-shadow: 0 0 0 0 rgba(255,107,82,.55); animation: gaPulse 1.8s ease-out infinite; }
.tile.has-new { border-color: rgba(255,107,82,.38); box-shadow: 0 0 0 1px rgba(255,107,82,.12), 0 14px 44px rgba(255,107,82,.07); }
.tile.has-new:hover { border-color: rgba(255,107,82,.6); }

/* Suppression de document (studio docs) */
.doc-del { background: transparent; border: 0; color: rgba(255,255,255,.25); font-size: 12px; cursor: pointer;
  padding: 4px 6px; border-radius: 7px; transition: all .2s; }
.doc-del:hover { color: #ff6b52; background: rgba(255,107,82,.1); }

/* ===== Dépôt glisser-déposer ===== */
#dropZone { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.78); backdrop-filter: blur(10px); }
#dropZone.on { display: flex; animation: dzIn .2s ease both; }
@keyframes dzIn { from { opacity: 0 } to { opacity: 1 } }
#dropZone * { pointer-events: none; }
.dz-box { border: 1.5px dashed rgba(255,107,82,.65); border-radius: 26px; padding: 64px 90px; text-align: center;
  background: rgba(255,107,82,.05); animation: dzPop .35s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes dzPop { from { transform: scale(.92); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.dz-ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px; display: flex; align-items: center;
  justify-content: center; background: rgba(255,107,82,.14); color: #FF6B52; }
.dz-ic svg { width: 28px; height: 28px; animation: dzFloat 1.6s ease-in-out infinite alternate; }
@keyframes dzFloat { from { transform: translateY(2px) } to { transform: translateY(-4px) } }
.dz-t { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.dz-s { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ===== Galerie : bouton Télécharger ludique + verrou ===== */
.gallery-item .cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cap-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gal-dl { display: inline-flex; align-items: center; gap: 6px; flex: none; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 11px;
  font-weight: 700; cursor: pointer; backdrop-filter: blur(8px); opacity: 0; transform: translateY(6px);
  transition: all .25s cubic-bezier(.22,1,.36,1); }
.gallery-item:hover .gal-dl { opacity: 1; transform: none; }
.gal-dl:hover { background: #FF6B52; border-color: #FF6B52; color: #000; transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(255,107,82,.4); }
.gal-dl svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.gal-locked { flex: none; opacity: .55; } .gal-locked svg { width: 13px; height: 13px; stroke: #fff; fill: none; }
@media (hover: none) { .gal-dl { opacity: 1; transform: none; } }  /* mobile : toujours visible */

/* ===== Contrats : articles lisibles et numérotés ===== */
.doc-articles { margin-top: 26px; }
.doc-articles ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.doc-articles ol li { font-size: 11.5px; line-height: 1.65; color: rgba(255,255,255,.78); }
.paper-light .doc-articles ol li { color: rgba(0,0,0,.75); }
.doc-articles ul { margin-top: 8px; padding-left: 20px; }
.doc-articles ul li { font-size: 11px; line-height: 1.6; color: rgba(255,255,255,.6); }
.paper-light .doc-articles ul li { color: rgba(0,0,0,.6); }

/* ===== Télécharger SOUS le média, corail ===== */
.gal-cell { display: flex; flex-direction: column; gap: 9px; }
.gal-dl2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: rgba(255,107,82,.1); border: 1px solid rgba(255,107,82,.4); color: #FF6B52;
  border-radius: 12px; padding: 11px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; transition: all .22s cubic-bezier(.22,1,.36,1); }
.gal-dl2:hover { background: #FF6B52; color: #000; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,107,82,.35); }
.gal-dl2:active { transform: translateY(0) scale(.98); }
.gal-dl2 svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.gal-locked2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 1px dashed var(--line); color: var(--faint); border-radius: 12px; padding: 11px 14px; font-size: 11.5px; }
.gal-locked2 svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }

/* ===== Timeline d'engagement d'abonnement ===== */
.st-line { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; flex-wrap: wrap; }
.st-info { font-size: 11.5px; color: var(--muted); }
.st-track { flex: 1; min-width: 120px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.st-bar { height: 100%; border-radius: 99px; background: #38c172; transition: width .4s ease; }
.st-bar.warn { background: #FF6B52; } .st-bar.end { background: rgba(255,255,255,.3); }
.st-count { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; }
.st-badge.ok { color: #38c172; background: rgba(56,193,114,.1); border: 1px solid rgba(56,193,114,.3); }
.st-badge.warn { color: #FF6B52; background: rgba(255,107,82,.1); border: 1px solid rgba(255,107,82,.4); animation: gaPulse 2s infinite; }
.st-badge.end { color: var(--muted); border: 1px dashed var(--line); }

/* RIB interconnecté : le bloc RÈGLEMENT est cliquable dans l'éditeur */
#docPreview .doc-pay-edit { cursor: pointer; transition: all .2s; position: relative; }
#docPreview .doc-pay-edit:hover { border-color: #FF6B52; box-shadow: 0 0 0 1px rgba(255,107,82,.35); }
#docPreview .doc-pay-edit:hover::after { content: "✎ changer de compte"; position: absolute; top: 8px; right: 12px;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #FF6B52; font-weight: 700; }

/* ===== Éditeur de documents · refonte : il respire ===== */
.doc-toolbar { position: sticky; top: 62px; z-index: 50; background: rgba(8,8,9,.85); backdrop-filter: blur(14px);
  padding: 14px 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.doc-editor { gap: 30px; }
/* Éditeur de document : prend toute la largeur, colonne formulaire large, catalogue en grille nette */
body.doc-edit-wide #view { max-width: 1600px; }
.doc-editor { grid-template-columns: minmax(420px, 480px) 1fr; }
.df-rate { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 7px; }
.df-rate .df-mini { text-align: left; white-space: normal; line-height: 1.25; }
@media (max-width: 1100px) { .doc-editor { grid-template-columns: minmax(360px, 420px) 1fr; } }
@media (max-width: 860px) { .doc-editor { grid-template-columns: 1fr; } .df-rate { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
.df-fold { border: 1px solid var(--line-2); border-radius: 18px; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); overflow: hidden; transition: border-color .25s; }
.df-fold[open] { border-color: var(--line); }
.df-fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); user-select: none; transition: color .2s; }
.df-fold summary::-webkit-details-marker { display: none; }
.df-fold summary:hover { color: #fff; }
.df-fold[open] summary { color: #fff; }
.df-fold-ic { width: 26px; height: 26px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,107,82,.1); color: #FF6B52; font-size: 13px; font-weight: 700; flex: none; letter-spacing: 0; }
.df-chev { margin-left: auto; font-size: 16px; color: var(--faint); transform: rotate(90deg); transition: transform .25s; }
.df-fold[open] .df-chev { transform: rotate(-90deg); }
.df-fold-body { padding: 6px 18px 20px; }
/* champs plus grands, focus corail, plus d'air */
.df-group { margin-bottom: 22px; }
.df-label { font-size: 10.5px; letter-spacing: .12em; margin-bottom: 8px; color: var(--muted); }
.df-input, .df-area, .df-select { font-size: 14px; padding: 13px 15px; border-radius: 12px;
  transition: border-color .25s, box-shadow .25s; }
.df-input:focus, .df-area:focus, .df-select:focus { border-color: rgba(255,107,82,.55); box-shadow: 0 0 0 3px rgba(255,107,82,.1); }
.df-area { min-height: 84px; line-height: 1.6; }
.df-row { gap: 12px; }
.df-sec { padding: 16px; border-radius: 14px; margin-bottom: 14px; }
.df-line { gap: 9px; margin: 9px 0; grid-template-columns: 1fr 100px 28px; }
.df-mini { padding: 8px 13px; border-radius: 9px; }

/* ===== Options de devis ===== */
.df-line { grid-template-columns: 1fr 100px 40px 28px; }
.df-opt { background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--faint);
  font-size: 9px; font-weight: 800; letter-spacing: .08em; cursor: pointer; padding: 0; height: 100%; transition: all .2s; }
.df-opt:hover { color: #FF6B52; border-color: rgba(255,107,82,.4); }
.df-opt.on { background: rgba(255,107,82,.14); border-color: #FF6B52; color: #FF6B52; }
.df-line.is-opt .df-input { opacity: .75; border-style: dashed; }
.doc-options { margin-top: 22px; border: 1px dashed rgba(255,255,255,.25); border-radius: 12px; padding: 14px 16px; }
.doc-render.paper-light .doc-options { border-color: rgba(0,0,0,.3); }
.doc-opt-label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--doc-accent); margin-bottom: 8px; }
.doc-line.opt .doc-price { font-style: italic; }
.doc-opt-tag { display: inline-block; font-size: 8.5px; font-weight: 800; letter-spacing: .1em; border: 1px solid currentColor;
  border-radius: 999px; padding: 2px 7px; margin-right: 8px; opacity: .75; vertical-align: 1px; }
.doc-opt-totals { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.2); }
.doc-render.paper-light .doc-opt-totals { border-top-color: rgba(0,0,0,.25); }
.doc-opt-totals .doc-line.strong span { font-weight: 800; }
.doc-opt-hint { display: inline-block; margin-left: 10px; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.doc-deposit { margin-top: 18px; padding: 10px 16px; border: 1px dashed var(--doc-accent); border-radius: 12px; }
.doc-render.paper-light .doc-deposit { border-color: rgba(0,0,0,.35); }
.doc-deposit .doc-line { border: none; }
/* Option cliquable (configurateur · façon Apple) */
.doc-opt-pick { align-items: center; cursor: pointer; border-radius: 10px; padding: 9px 10px; margin: 0 -10px; transition: background .15s; user-select: none; }
.doc-opt-pick:hover { background: rgba(255,255,255,.04); }
.doc-render.paper-light .doc-opt-pick:hover { background: rgba(0,0,0,.035); }
.doc-opt-pick.on { background: rgba(255,255,255,.05); }
.doc-render.paper-light .doc-opt-pick.on { background: rgba(0,0,0,.04); }
.doc-opt-ctrl { position: relative; flex-shrink: 0; width: 44px; height: 26px; }
.doc-opt-ctrl input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.doc-opt-sw { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.18); transition: background .2s; }
.doc-render.paper-light .doc-opt-sw { background: rgba(0,0,0,.16); }
.doc-opt-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.doc-opt-ctrl input:checked + .doc-opt-sw { background: var(--doc-accent); }
.doc-opt-ctrl input:checked + .doc-opt-sw::after { transform: translateX(18px); }
.doc-opt-pick .doc-line-l { flex: 1; }
.doc-opt-pick .doc-price { font-style: normal; font-weight: 700; }
.doc-line.opt.on .doc-opt-tag { opacity: 1; background: var(--doc-accent); color: #000; border-color: var(--doc-accent); }

/* ===== Vue MOBILE des documents (devis/factures) ===== */
@media (max-width: 700px) {
  .doc-lb-scroll { padding: 0 0 calc(40px + env(safe-area-inset-bottom)); }
  .doc-lb-sign { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; padding: 24px 20px; }
  .doc-lb-sign .btn.approve { width: 100%; }
  .doc-page { padding: 30px 20px; }
  .doc-cover-page { min-height: 60vh; }
  .doc-title { font-size: 34px; }
  .doc-tagline { font-size: 21px; }
  .doc-h2 { font-size: 21px; }
  .doc-kicker { font-size: 10px; letter-spacing: .18em; }
  .doc-line { font-size: 13px; gap: 12px; }
  .doc-total { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 18px; }
  .doc-total-amount { font-size: 32px; }
  .doc-legal-cols { grid-template-columns: 1fr; gap: 16px; }
  .doc-opt-totals .doc-line { flex-wrap: wrap; }
  .doc-pay-iban { font-size: 15px; word-break: break-all; }
}
/* Offre packagée : lignes sans prix → « inclus » discret */
.doc-incl { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--doc-accent); opacity: .65; font-weight: 700; }

/* ===== Lignes facture : prix unitaire × quantité + description détaillée ===== */
.df-linewrap { margin: 10px 0 14px; }
.df-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.df-line > .df-input[data-f="desc"] { flex: 1 1 180px; }
.df-qty { flex: 0 0 62px; text-align: center; }
.df-pu { flex: 0 0 110px; }
.df-line .df-opt, .df-line .df-del { height: auto; align-self: stretch; min-height: 40px; }
.df-note { display: block; width: 100%; margin-top: 6px; min-height: 0; font-size: 12.5px; line-height: 1.5; opacity: .9; resize: vertical; }
.doc-line { align-items: flex-start; }
.doc-line-l { display: flex; flex-direction: column; gap: 2px; }
.doc-line-meta { font-size: 11px; letter-spacing: .02em; color: rgba(255,255,255,.5); }
.doc-line-note { font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.56); margin-top: 3px; }
.doc-render.paper-light .doc-line-meta { color: rgba(0,0,0,.48); }
.doc-render.paper-light .doc-line-note { color: rgba(0,0,0,.55); }

/* ===== Annonces 📣 ===== */
.annc { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 18px;
  border: 1px solid rgba(255,107,82,.4); border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,107,82,.1), rgba(255,107,82,.02));
  animation: gaIn .5s cubic-bezier(.22,1,.36,1) both; }
.annc-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF6B52; flex: none;
  box-shadow: 0 0 0 0 rgba(255,107,82,.5); animation: gaPulse 1.8s ease-out infinite; }
.annc-txt { flex: 1; font-size: 13.5px; line-height: 1.55; }
.annc-x { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 6px 12px; font-size: 11px; cursor: pointer; flex: none; transition: all .2s; }
.annc-x:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.an-presets { display: flex; flex-direction: column; gap: 6px; }
.an-preset { text-align: left; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); color: var(--muted);
  border-radius: 10px; padding: 9px 12px; font-size: 11.5px; cursor: pointer; transition: all .2s; font-family: var(--font); }
.an-preset:hover { color: #fff; border-color: rgba(255,107,82,.45); background: rgba(255,107,82,.06); }
.an-mail { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); margin-top: 12px; cursor: pointer; }
.an-mail input { accent-color: #FF6B52; width: 15px; height: 15px; }

/* ===== Dossiers de la galerie ===== */
.gal-folders { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.gf-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.03);
  border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 15px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .2s; }
.gf-chip svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.gf-chip:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.gf-chip.on { background: #fff; color: #000; border-color: #fff; }
.gf-chip.on svg { stroke: #000; }
.gf-new { border-style: dashed; }
.gf-new:hover { color: #FF6B52; border-color: rgba(255,107,82,.5); }

/* ===== Lecteur FLF · design YouTube ===== */
.vp { position: relative; max-width: min(100%, 92vw); max-height: 82vh; display: flex; align-items: center; justify-content: center; background: #000; border-radius: 12px; overflow: hidden; }
.vp video { width: 100%; height: 100%; object-fit: contain; display: block; outline: none; background: #000; }
.vp-buffer { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; }
.vp-buffer.on { display: flex; }
/* gros bouton central (apparaît en pause / au survol) */
.vp-big { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px;
  border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: flex;
  align-items: center; justify-content: center; opacity: 0; transition: opacity .25s, transform .2s; backdrop-filter: blur(4px); }
.vp-big svg { width: 30px; height: 30px; fill: #fff; }
.vp:hover .vp-big, .vp.paused .vp-big { opacity: 1; }
.vp-big:hover { transform: translate(-50%,-50%) scale(1.08); background: rgba(0,0,0,.7); }
/* chrome haut + bas, dégradés YouTube, s'effacent en lecture */
.vp-ui { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.vp-ui.on, .vp.paused .vp-ui { opacity: 1; }
.vp-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 18px; background: linear-gradient(rgba(0,0,0,.7), transparent); pointer-events: auto; }
.vp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vp-logo { height: 22px; width: auto; opacity: .95; flex: none; }
.vp-titles { display: flex; flex-direction: column; min-width: 0; }
.vp-t1 { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
.vp-t2 { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 1px; }
.vp-topr { display: flex; align-items: center; gap: 4px; }
.vp-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; pointer-events: auto;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); display: flex; flex-direction: column; }
.vp-row { display: flex; align-items: center; gap: 4px; order: 2; margin-top: 6px; }
.vp-track { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; order: 1; }
.vp-track::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 99px; background: rgba(255,255,255,.3); transition: height .15s; }
.vp-track:hover::before { height: 5px; }
.vp-buffered { position: absolute; left: 0; height: 3px; border-radius: 99px; background: rgba(255,255,255,.45); max-width: 100%; }
.vp-track:hover .vp-buffered { height: 5px; }
.vp-played { position: absolute; left: 0; height: 3px; border-radius: 99px; background: var(--accent,#FF6B52); max-width: 100%; }
.vp-track:hover .vp-played { height: 5px; }
.vp-knob { position: absolute; right: -7px; top: 50%; transform: translateY(-50%) scale(0); width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent,#FF6B52); box-shadow: 0 1px 6px rgba(0,0,0,.6); transition: transform .15s; }
.vp-track:hover .vp-knob { transform: translateY(-50%) scale(1); }
.vp-tip { position: absolute; bottom: 16px; transform: translateX(-50%); background: rgba(0,0,0,.88); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; opacity: 0; pointer-events: none;
  font-variant-numeric: tabular-nums; transition: opacity .15s; }
.vp-track:hover .vp-tip { opacity: 1; }
.vp-b { background: transparent; border: 0; color: #fff; width: 36px; height: 32px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; font-family: var(--font); transition: background .2s; }
.vp-b:hover { background: rgba(255,255,255,.18); }
.vp-b svg { width: 19px; height: 19px; fill: #fff; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.vp-r15 svg, .vp-f15 svg, .vp-fs svg, .vp-mute svg { fill: none; }
.vp-vol { display: flex; align-items: center; }
.vp-volr { width: 0; opacity: 0; transition: width .25s, opacity .25s; accent-color: var(--accent,#FF6B52); cursor: pointer; }
.vp-vol:hover .vp-volr, .vp-volr:focus { width: 74px; opacity: 1; margin: 0 4px; }
.vp.muted .vp-w1, .vp.muted .vp-w2 { opacity: .15; }
.vp-time { font-size: 12.5px; color: #fff; font-variant-numeric: tabular-nums; padding: 0 6px; letter-spacing: .02em; }
.vp-grow { flex: 1; }
.vp-rate { width: auto; padding: 0 11px; font-size: 12.5px; }
.vp:fullscreen { border-radius: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; }
.vp:fullscreen video { max-height: 100vh; width: 100vw; height: 100vh; }
.lb-stage .vp { width: auto; }
.lb-main { padding: 2vh 0; }

/* ===== Page de visionnage : colonne « À suivre » ===== */
.lightbox.has-rail { display: flex; align-items: stretch; gap: 0; }
.lb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-rail { width: 320px; flex: none; background: rgba(10,10,11,.92); border-left: 1px solid rgba(255,255,255,.08);
  padding: 18px 14px; overflow-y: auto; backdrop-filter: blur(10px); }
.lb-rail-h { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: rgba(255,255,255,.55); margin: 4px 4px 14px; }
.lb-rit { display: flex; gap: 11px; width: 100%; align-items: center; background: transparent; border: 0; cursor: pointer;
  padding: 8px; border-radius: 12px; text-align: left; transition: background .2s; }
.lb-rit:hover { background: rgba(255,255,255,.06); }
.lb-rit.on { background: rgba(255,107,82,.12); outline: 1px solid rgba(255,107,82,.35); }
.lb-rit-th { width: 108px; height: 62px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center;
  background-size: cover !important; background-position: center !important; position: relative; overflow: hidden; }
.lb-rit-play { color: rgba(255,255,255,.85); font-size: 14px; }
.lb-rit-play.over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); }
.lb-rit-n { font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lb-rit.on .lb-rit-n { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .lightbox.has-rail { flex-direction: column; } .lb-rail { width: 100%; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); max-height: 32vh; } }

.lb-stage .vp { width: auto; }
.lb-main { padding: 2vh 0; }

/* ===== Sélection multiple dans la galerie ===== */
.gal-selbar { display: none; align-items: center; gap: 10px; margin: 4px 0 14px; padding: 10px 14px;
  border: 1px solid rgba(255,107,82,.4); border-radius: 12px; background: rgba(255,107,82,.06); }
.gal-selbar.on { display: flex; }
.gsb-count { font-size: 12.5px; font-weight: 700; color: #FF6B52; }
.gsb-grow { flex: 1; }
#galSelect.on { background: #FF6B52; color: #000; border-color: #FF6B52; }
.gallery-item { position: relative; }
.gsel { position: absolute; top: 10px; left: 10px; z-index: 5; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0,0,0,.5); color: transparent; cursor: pointer; display: flex;
  align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: all .15s; }
.gsel svg { width: 14px; height: 14px; stroke: #000; stroke-width: 3; fill: none; }
.gsel.on { background: #FF6B52; border-color: #FF6B52; }
.gallery.selecting .gallery-item { cursor: default; }
.gallery.selecting .gal-dl2, .gallery.selecting .gal-kebab { opacity: .3; pointer-events: none; }

/* ===== Menu qualité (roue crantée) ===== */
.vp-gear-wrap { position: relative; }
.vp-gear { display: none; }
.vp.has-quality .vp-gear { display: inline-flex; }
.vp-menu { position: absolute; top: 110%; right: 0; min-width: 150px; background: rgba(20,20,22,.97);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 6px; opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: opacity .18s, transform .18s; backdrop-filter: blur(12px); z-index: 10; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.vp-menu.on { opacity: 1; pointer-events: auto; transform: none; }
.vpm-h { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; padding: 6px 10px 8px; }
.vpm-it { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: rgba(255,255,255,.85);
  font-size: 13px; padding: 9px 11px; border-radius: 8px; cursor: pointer; font-family: var(--font); transition: background .15s; }
.vpm-it:hover { background: rgba(255,255,255,.08); color: #fff; }
.vpm-it.on { color: var(--accent,#FF6B52); font-weight: 700; }
.vpm-sub { color: rgba(255,255,255,.4); font-size: 11px; font-weight: 400; }

/* ===== Document : conditions de facture discrètes (bas de page) + colonne unique ===== */
.doc-terms.one { grid-template-columns: 1fr; }
.doc-finterms { margin-top: 40px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 9.5px; line-height: 1.7; color: rgba(255,255,255,.42); letter-spacing: .01em; }
.doc-render.paper-light .doc-finterms { border-top-color: rgba(0,0,0,.12); color: rgba(0,0,0,.45); }

/* ===== Projet LIVRÉ · célébration premium ===== */
.project.is-delivered { position: relative; border-color: rgba(56,193,114,.4);
  background: linear-gradient(135deg, rgba(56,193,114,.07), rgba(56,193,114,.01)); overflow: hidden; }
.project.is-delivered::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(56,193,114,.14) 50%, transparent 70%);
  background-size: 280% 100%; animation: delivSheen 4.5s ease-in-out infinite; }
@keyframes delivSheen { 0%,100% { background-position: 130% 0; } 50% { background-position: -30% 0; } }
.deliv-glow { position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,193,114,.25), transparent 70%); pointer-events: none; animation: delivPulse 3s ease-in-out infinite; }
@keyframes delivPulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.25); opacity: 1; } }
.deliv-badge { position: absolute; top: 18px; right: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  background: #38c172; color: #04210f; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 13px 7px 9px; border-radius: 999px; box-shadow: 0 6px 22px rgba(56,193,114,.45);
  animation: delivPop .6s cubic-bezier(.34,1.8,.6,1) both; }
@keyframes delivPop { 0% { transform: scale(0) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.deliv-ic { display: inline-flex; } .deliv-ic svg { width: 14px; height: 14px; stroke: #04210f; stroke-width: 3.4; fill: none; }
.deliv-spark { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.deliv-spark::before, .deliv-spark::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px #fff; opacity: 0; animation: delivSpark 2.4s ease-in-out infinite; }
.deliv-spark::before { top: 20%; left: 12%; animation-delay: .3s; }
.deliv-spark::after { top: 60%; right: 18%; animation-delay: 1.3s; }
@keyframes delivSpark { 0%,100% { opacity: 0; transform: scale(0); } 40% { opacity: 1; transform: scale(1.4); } 60% { opacity: 0; } }
.proj-review { border-color: rgba(56,193,114,.5) !important; color: #38c172 !important; }
.proj-review:hover { background: #38c172 !important; color: #04210f !important; }
/* le badge LIVRÉ ne chevauche pas le type/boutons */
.project.is-delivered .project-top-r { margin-top: 44px; }
.gsb-del { background: rgba(255,107,82,.15) !important; border-color: rgba(255,107,82,.5) !important; color: #FF6B52 !important; }
.gsb-del:hover { background: #FF6B52 !important; color: #000 !important; }
.proj-leave-review { background:#38c172 !important; color:#04210f !important; border-color:#38c172 !important; }
.proj-leave-review:hover { filter:brightness(1.1); }
.rv-thx { font-size:18px; font-weight:800; color:#38c172; }
.shop-item { position: relative; }
.coll-del { position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.shop-item:hover .coll-del { opacity: 1; }
.coll-del:hover { background: #FF6B52; border-color: #FF6B52; }
.shop-sec-h { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin: 6px 0 4px; }
.shop-sec-note { font-size: 12px; color: var(--faint); margin-bottom: 12px; }
.angle-row.print-buy, .angle-row.print-free { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ar-sub { display: block; font-size: 11px; color: var(--faint); font-weight: 400; margin-top: 2px; }
.ar-price { font-size: 17px; font-weight: 800; color: #fff; flex: none; }
.ar-dl { color: #38c172; } .ar-dl svg { width: 18px; height: 18px; stroke: #38c172; fill: none; stroke-width: 2; }
.angle-row.print-free:hover { border-color: rgba(56,193,114,.5); }

/* ===== Mockup tirage : l'image encadrée sur un mur ===== */
.print-mockup { margin-bottom: 22px; }
.pm-wall { position: relative; height: 240px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(170deg, #efece6 0%, #e3ded5 55%, #d8d2c7 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -40px 60px rgba(0,0,0,.06); }
.pm-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(transparent, rgba(120,108,92,.18)); }  /* sol/plinthe */
.pm-frame { position: relative; z-index: 2; height: 168px; aspect-ratio: 3/4; background: #1a1a1a;
  padding: 9px; border-radius: 2px; box-shadow: 0 18px 30px rgba(0,0,0,.32), 0 2px 6px rgba(0,0,0,.25);
  border: 1px solid #2a2a2a; }
.pm-mat { width: 100%; height: 100%; background: #fafafa; padding: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.pm-img { width: 100%; height: 100%; background-size: cover; background-position: center; background-color: #ddd;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .5s; }
.pm-img.on { opacity: 1; }
.pm-plant { position: absolute; bottom: 0; right: 8%; width: 36px; height: 90px; z-index: 3;
  background: radial-gradient(circle at 50% 18%, #4a6b3a 0 14px, transparent 15px),
              radial-gradient(circle at 30% 30%, #3f5e33 0 12px, transparent 13px),
              radial-gradient(circle at 70% 32%, #3f5e33 0 12px, transparent 13px);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.pm-plant::after { content:""; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:20px; height:26px; background:#b9844f; border-radius:3px 3px 5px 5px; }
.pm-cap { text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 9px; }

/* ===== Mockup décors : photo choisie composée dans une mise en situation ===== */
.mock-stage { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mock-scene { position: relative; width: 100%; max-width: 340px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px -18px rgba(0,0,0,.55); }
.mock-decor { display: block; width: 100%; height: auto; }
.mock-art { position: absolute; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.12); }
.mock-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.mock-chip { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); transition: all .2s var(--ease-out); }
.mock-chip:hover { color: var(--text); border-color: var(--line-2); }
.mock-chip.on { background: #FF6B52; border-color: #FF6B52; color: #fff; }
.mock-tool { font-size: 11.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px dashed var(--line); color: var(--muted); transition: all .2s; }
.mock-tool:hover { color: var(--text); border-color: #FF6B52; }
.mock-tool.danger:hover { color: #fff; background: #c0392b; border-color: #c0392b; }
.mock-link { background: none; border: none; color: #FF6B52; cursor: pointer; font: inherit; text-transform: none; letter-spacing: 0; padding: 0; }
.mock-plain { background: linear-gradient(170deg, #efece6, #d8d2c7); min-height: 220px; display: flex; align-items: center; justify-content: center; }
.mock-frame-simple { background: #1a1a1a; padding: 9px; max-width: 60%; box-shadow: 0 18px 30px rgba(0,0,0,.32); }
.mock-frame-simple img { display: block; width: 100%; height: auto; border: 10px solid #fafafa; box-sizing: border-box; }

/* Éditeur de zone du cadre · image ENTIÈRE visible (les % du cadre sont alors exacts) */
.dfe-wrap { text-align: center; }
.dfe-stage { position: relative; display: inline-block; max-width: 100%; user-select: none; touch-action: none; overflow: hidden; border-radius: 8px; line-height: 0; }
.dfe-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 60vh; pointer-events: none; }
.dfe-box { position: absolute; border: 2px solid #FF6B52; background: rgba(255,107,82,.16); cursor: grab; box-shadow: 0 0 0 9999px rgba(0,0,0,.34); box-sizing: border-box; }
.dfe-box:active { cursor: grabbing; }
.dfe-h { position: absolute; right: -8px; bottom: -8px; width: 18px; height: 18px; background: #FF6B52; border: 2px solid #fff; border-radius: 3px; cursor: nwse-resize; }

/* ============ COCKPIT · pilotage business ============ */
.ck-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 1100px) { .ck-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ck-grid { grid-template-columns: 1fr; } }
.ck-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px;
  border-left: 3px solid var(--line-2); transition: transform .2s var(--ease-out), box-shadow .2s; }
.ck-card.ck-manual { cursor: pointer; }
.ck-card.ck-manual:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }
.ck-card.ok   { border-left-color: #2ecc71; }
.ck-card.warn { border-left-color: #f1c40f; }
.ck-card.bad  { border-left-color: #e74c3c; }
.ck-card.muted { border-left-color: var(--line-2); }
.ck-hero { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid #2ecc71; border-radius: 16px; padding: 26px 28px; margin-bottom: 16px; }
.ck-hero.bad { border-left-color: #e74c3c; }
.ck-hero.muted { border-left-color: var(--line-2); }
.ck-hero-lbl { font-size: 12px; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.ck-hero-num { font-size: clamp(40px, 7vw, 62px); font-weight: 800; line-height: 1.05; margin: 6px 0 8px; }
.ck-hero-exp { font-size: 14px; color: var(--muted); }
.ck-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.ck-key-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.ck-key-card.warn { border-left: 3px solid var(--flf); }
.kk-lbl { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.kk-num { font-size: 26px; font-weight: 800; margin: 4px 0 6px; }
.kk-exp { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ck-play { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--flf); border-radius: 14px; padding: 16px 20px; margin-top: 16px; }
.ck-play-lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--flf); margin-bottom: 6px; }
.ck-play-txt { font-size: 15px; color: var(--text); line-height: 1.5; }
@media (max-width: 700px) { .ck-key { grid-template-columns: 1fr; } }
.ck-cat { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.ck-val { font-family: var(--display); font-size: clamp(30px, 2.7vw, 40px); line-height: 1.0; margin: 10px 0 3px; color: var(--text); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.ck-edit { display: inline-flex; opacity: 0; transition: opacity .2s; }
.ck-edit svg { width: 13px; height: 13px; color: var(--muted); }
.ck-card.ck-manual:hover .ck-edit { opacity: 1; }
.ck-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.ck-targets { font-size: 11px; color: var(--faint); margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-2); }
.ck-targets b { color: var(--muted); font-weight: 700; }
.ck-note { font-size: 12px; color: var(--faint); margin-top: 14px; }
.ck-snap { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--text); margin-bottom: 16px; line-height: 1.5; }
.ck-f { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.ck-f textarea { width: 100%; margin-top: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font: inherit; font-size: 13px; resize: vertical; }
.ck-f textarea:focus { outline: none; border-color: #FF6B52; }
.ck-rev { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; margin-top: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, transform .2s; }
.ck-rev:hover { border-color: #FF6B52; transform: translateX(2px); }
.ck-rev-go { font-size: 12px; color: #FF6B52; font-weight: 700; }
.ck-rev-sec { margin-top: 14px; }
.ck-rev-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #FF6B52; font-weight: 700; margin-bottom: 5px; }
.ck-rev-txt { font-size: 14px; color: var(--text); line-height: 1.55; }
/* Cockpit · ligne cashflow Qonto */
.ck-cash { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--text); }
.ck-cash-tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #6a4cff; padding: 4px 9px; border-radius: 999px; }
.ck-cash-off .ck-cash-tag { background: var(--surface-2); color: var(--muted); }
.ck-stale-warn { font-size: 12px; font-weight: 600; color: #e8c268; background: rgba(232,194,104,.12); border: 1px solid rgba(232,194,104,.3); padding: 4px 10px; border-radius: 999px; }
.ck-up { color: #2ecc71; }

/* ===== Matelas de sécurité · l'intelligence trésorerie du cockpit ===== */
.ck-treso { margin-top: 16px; padding: 24px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ck-treso-h { font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.ck-treso-h em { font-style: italic; text-transform: none; color: var(--accent, #FF6B52); }
.ck-treso-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ck-tc { padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ck-tc span { display: block; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.ck-tc b { display: block; font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; margin: 7px 0 4px; }
.ck-tc i { font-size: 12px; color: var(--muted); font-style: normal; }
.ck-tc.good b { color: #2ecc71; }
.ck-tc.ok { border-color: rgba(46,204,113,.35); }
.ck-tc.ok b { color: #2ecc71; }
.ck-tc.bad { border-color: rgba(255,90,60,.4); }
.ck-tc.bad b { color: #ff5a3c; }
.ck-treso-sol { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--text); }
@media (max-width: 620px) { .ck-treso-cells { grid-template-columns: 1fr; } }
/* ===== Directeur financier ===== */
.daf { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; border-top: 3px solid #6a4cff; }
.daf-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.daf-head .ic-svg { width: 15px; height: 15px; color: #6a4cff; }
.daf-sub { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--faint); font-size: 11px; }
.daf-empty, .daf-wait { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.daf-wait b { color: var(--text); }
.daf-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin: 16px 0 14px; }
@media (max-width: 620px) { .daf-top { grid-template-columns: 1fr; } }
.daf-pool, .daf-amort { background: var(--surface-2); border-radius: 12px; padding: 13px 15px; }
.daf-pool span, .daf-amort span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 5px; }
.daf-pool b, .daf-amort b { font-size: 21px; color: var(--text); display: block; }
.daf-pool.ok b { color: #2ecc71; }
.daf-pool.warn b { color: #e67e22; }
.daf-pool i, .daf-amort i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.daf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .daf-cards { grid-template-columns: 1fr; } }
.daf-card { background: var(--surface-2); border-radius: 12px; padding: 13px 15px; border-left: 3px solid var(--line-2); }
.daf-c-h { font-weight: 700; font-size: 13.5px; color: var(--text); margin-bottom: 7px; }
.daf-c-b { font-size: 13px; line-height: 1.5; color: var(--muted); }
.daf-c-b b { color: var(--text); }
/* Prévision de trésorerie · le mur avant qu'il arrive */
.fcast { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; border-top: 3px solid #8ab4d8; }
.fcast .daf-head .ic-svg { color: #8ab4d8; }
.fc-curve { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; margin: 18px 0 14px; }
.fc-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 5px; }
.fc-bar-w { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.fc-bar { width: 100%; border-radius: 6px 6px 0 0; min-height: 3px; transition: height .4s var(--ease-out); }
.fc-bar.good { background: #2ecc71; }
.fc-bar.ok { background: #8ab4d8; }
.fc-bar.low { background: #e67e22; }
.fc-bar.neg { background: #e74c3c; }
.fc-v { font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; }
.fc-m { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.fc-verdict { font-size: 14px; line-height: 1.55; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line-2); }
.fc-verdict b { color: var(--text); }
.fc-verdict .fc-bad { color: #e74c3c; }
.fc-verdict .fc-warn { color: #e67e22; }
.fc-verdict .fc-ok { color: #2ecc71; }
/* Fenêtre Mon matériel */
.mat-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.mat-sum { font-size: 13px; line-height: 1.5; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; }
.mat-sum b { color: #2ecc71; }
.mat-list { display: flex; flex-direction: column; gap: 8px; }
.mat-row { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 10px; padding: 11px 14px; border-left: 3px solid var(--line-2); }
.mat-row.due { border-left-color: #e67e22; }
.mat-main { flex: 1; min-width: 0; }
.mat-main b { display: block; font-size: 14px; color: var(--text); }
.mat-main span { font-size: 11.5px; color: var(--faint); }
.mat-st { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mat-row.due .mat-st { color: #e67e22; font-weight: 600; }
.mat-seed { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, #2ecc71 32%, transparent); background: color-mix(in srgb, #2ecc71 6%, var(--surface)); }
.mat-seed-t { font-size: 13.5px; color: var(--muted); }
.mat-seed-t b { color: var(--text); }
/* Import PDF · récap "scanne & valide" */
.imp-sum { font-size: 13px; line-height: 1.5; color: var(--muted); margin-bottom: 14px; }
.imp-sum b { color: var(--text); }
.imp-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.imp-row { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; cursor: pointer; border: 1px solid transparent; }
.imp-row:hover { border-color: var(--line); }
.imp-row.bad { opacity: .6; cursor: default; }
.imp-row input { width: 17px; height: 17px; accent-color: #2ecc71; flex-shrink: 0; }
.imp-main { flex: 1; min-width: 0; }
.imp-main b { display: block; font-size: 14px; color: var(--text); }
.imp-main span { font-size: 11.5px; color: var(--faint); }
.imp-tot { font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; }
/* Import matériel · lignes éditables */
.im-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.im-row { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 9px 11px; }
.im-row input[type=checkbox] { width: 17px; height: 17px; accent-color: #2ecc71; flex-shrink: 0; }
.im-row .field { padding: 7px 9px; font-size: 13px; }
.im-lbl { flex: 2; min-width: 120px; }
.im-prix { max-width: 100px; }
.im-date { max-width: 140px; }
.im-yr { max-width: 64px; }
@media (max-width: 620px) { .im-row { flex-wrap: wrap; } .im-lbl { flex: 1 1 100%; } }
.ck-down { color: #e74c3c; }
/* Cockpit · Conseil financier (CFO déterministe) */
.cfo { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; border-top: 3px solid #6a4cff; }
.cfo-head { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--text); text-transform: uppercase; }
.cfo-head span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--faint); font-size: 11px; }
.cfo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 18px; }
@media (max-width: 760px) { .cfo-stats { grid-template-columns: repeat(2, 1fr); } }
.cfo-stat { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.cfo-stat span { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 5px; }
.cfo-stat b { font-size: 16px; color: var(--text); font-weight: 700; }
.cfo-stat.warn b { color: #e67e22; }
.cfo-stat.bad b { color: #e74c3c; }
.cfo-actions { list-style: none; counter-reset: cfo; display: flex; flex-direction: column; gap: 9px; }
.cfo-actions li { counter-increment: cfo; position: relative; padding: 11px 14px 11px 44px; border-radius: 10px; font-size: 14px; line-height: 1.45;
  background: var(--surface-2); color: var(--text); border-left: 3px solid var(--line-2); }
.cfo-actions li::before { content: counter(cfo); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%;
  background: var(--line-2); color: var(--text); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cfo-actions li.sev-high { border-left-color: #e74c3c; }
.cfo-actions li.sev-high::before { background: #e74c3c; color: #fff; }
.cfo-actions li.sev-mid { border-left-color: #e67e22; }
.cfo-actions li.sev-mid::before { background: #e67e22; color: #fff; }
.cfo-actions li.sev-ok { border-left-color: #2ecc71; }
.cfo-actions li.sev-ok::before { background: #2ecc71; color: #fff; }
/* Le conseiller social · traducteur des chiffres */
.sa-advisor { border-top-color: #FF6B52; }
.sa-advisor .cfo-head { color: #FF6B52; }
.sa-adv-verdict { margin: 12px 0 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.sa-adv-verdict b { color: var(--text); }
/* Compta · bandeau Qonto */
.qbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid #6a4cff; border-radius: 14px; padding: 14px 18px; margin: 4px 0 20px; }
.qbar-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text); }
.qbar-tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #6a4cff; padding: 4px 9px; border-radius: 999px; }
.qbar-bal b { font-weight: 800; }
.qbar-flow { font-size: 13px; color: var(--muted); }
/* Éditeur doc · catalogue « Mes prestations » */
.presta-tag-h { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #FF6B52; font-weight: 700; margin: 12px 0 6px; }
.presta-tag-h.muted { color: var(--faint); }
.presta-chip { position: relative; }
.presta-x { margin-left: 8px; opacity: .5; font-size: 11px; font-weight: 700; }
.presta-x:hover { opacity: 1; color: #e74c3c; }
/* Fil bancaire Qonto */
.qf-sum { font-size: 13px; color: var(--text); background: var(--surface-2); border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; }
.qf-list { display: flex; flex-direction: column; }
.qf-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--line-2); }
.qf-row:last-child { border-bottom: none; }
.qf-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qf-l b { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qf-l span { font-size: 11px; }
.qf-amt { font-size: 14px; font-weight: 700; white-space: nowrap; }
/* Fil bancaire · répartition par catégorie + TVA + tags */
.qf-cats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.qf-cat-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.qf-cat-h b { font-weight: 700; }
.qf-cat-bar { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.qf-cat-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6a4cff, #FF6B52); border-radius: 4px; }
.qf-tva { font-size: 12.5px; color: var(--text); background: var(--surface-2); border-radius: 10px; padding: 10px 13px; margin-bottom: 16px; line-height: 1.5; }
.qf-tva b { color: #6a4cff; font-weight: 800; }
.qf-list-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 6px; }
.qf-tag { font-size: 10.5px; color: var(--muted); }
/* Simulation TVA (CA3) */
.tva-modes { display: flex; gap: 8px; margin-bottom: 14px; }
.tva-mode { font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.tva-mode.on { background: #6a4cff; border-color: #6a4cff; color: #fff; }
.tva-period { font-family: var(--display); font-size: 22px; color: var(--text); text-transform: uppercase; margin-bottom: 14px; }
.tva-ca3 { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tva-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--line-2); }
.tva-line:last-child { border-bottom: none; }
.tva-line b { font-weight: 700; white-space: nowrap; }
.tva-line.tva-sub { font-size: 12px; color: var(--muted); padding-top: 6px; padding-bottom: 6px; }
.tva-line.tva-col b { color: #2ecc71; }
.tva-line.tva-ded b { color: #e67e22; }
.tva-line.tva-net { background: var(--surface-2); font-weight: 700; }
.tva-line.tva-net b { color: #6a4cff; font-size: 18px; }
.tva-note { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 14px; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.tva-note b { color: var(--text); }
/* Fil bancaire · analyse TVA par transaction */
.qf-tva-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qf-tva-grid > div { background: var(--bg); border-radius: 8px; padding: 9px 11px; }
.qf-tva-grid span { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.qf-tva-grid b { font-size: 15px; color: var(--text); }
.qf-tva-grid b.v-net { color: #6a4cff; }
.qf-tva-auto { font-size: 11.5px; color: var(--muted); margin-top: 10px; padding: 8px 11px; background: var(--bg); border-radius: 8px; border-left: 2px solid #6a4cff; line-height: 1.45; }
.qf-vat { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.qf-vat.v-ded { background: rgba(46,204,113,.16); color: #2ecc71; }
.qf-vat.v-auto { background: rgba(106,76,255,.16); color: #8a74ff; }
.qf-vat.v-exo { background: var(--surface-2); color: var(--muted); }
.qf-vat.v-col { background: rgba(255,107,82,.16); color: #FF6B52; }
/* Fil bancaire · classement modifiable */
.qf-edit { background: none; border: none; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }
.qf-edit:hover { opacity: .75; }
.qf-man { color: #6a4cff; font-size: 11px; }
/* ============ PROSPECTION ============ */
.prosp-bar { display: flex; gap: 10px; align-items: center; margin: 18px 0 12px; flex-wrap: wrap; }
.prosp-bar .prosp-search { flex: 1; min-width: 220px; }
.prosp-search { width: 100%; text-align: left; }
.prosp-sel { width: auto; flex: none; text-align: left; padding: 11px 30px 11px 14px; font-size: 13px; cursor: pointer; }
/* Chip "dernier contact" sur chaque ligne · l'info la plus regardée, lisible d'un coup d'œil. */
.prosp-contact { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.prosp-contact.none { color: #f0a04b; background: rgba(240,160,75,.12); }
.prosp-contact[data-touch] { cursor: pointer; transition: filter .15s; }
.prosp-contact[data-touch]:hover { filter: brightness(1.35); }
.pstat-tag { color: var(--muted); font-weight: 600; }
/* Signaux explicables du score · le « pourquoi » de chaque contact */
.prosp-sigs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 3px; }
.prosp-sig { font-size: 10.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.prosp-sig.hot { color: #FF6B52; background: rgba(255,107,82,.1); border-color: rgba(255,107,82,.3); }
/* Analyse réseaux (Phase 1) */
.perf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.perf-net { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.perf-net-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.perf-net-h b { font-size: 13px; color: var(--text); }
.perf-auto { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2ecc71; background: rgba(46,204,113,.14); padding: 2px 6px; border-radius: 999px; vertical-align: middle; }
.perf-spark { width: 110px; height: 30px; flex: none; opacity: .9; }
.perf-now { font-family: var(--display); font-size: 26px; color: var(--text); letter-spacing: -.01em; margin-top: 10px; }
.perf-now span { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }
.perf-delta { font-size: 12px; font-weight: 600; margin-top: 4px; }
.perf-delta.up { color: #2ecc71; }
.perf-delta.down { color: #f0a04b; }
.perf-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.perf-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.perf-add .field { flex: 1; min-width: 90px; height: 40px; }
.perf-add #pfNet { min-width: 120px; }
/* Espace Création · bibliothèque de templates */
.crea-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 18px 0 16px; }
.crea-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.crea-cat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--font); font-size: 13px; padding: 8px 16px; cursor: pointer; transition: border-color .15s, color .15s; }
.crea-cat:hover { color: var(--text); }
.crea-cat.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.crea-cat span { opacity: .6; font-size: 11px; }
.crea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.crea-card { text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; cursor: pointer; transition: border-color .2s, transform .15s; display: flex; flex-direction: column; gap: 8px; }
.crea-card:hover { border-color: rgba(255,107,82,.5); transform: translateY(-3px); }
.crea-cat-badge { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.crea-cat-badge.ct-propal { background: rgba(255,107,82,.16); color: #FF6B52; }
.crea-cat-badge.ct-ttc { background: rgba(106,76,255,.16); color: #8a74ff; }
.crea-cat-badge.ct-post { background: rgba(10,102,194,.18); color: #4a9eef; }
.crea-title { font-family: var(--display); text-transform: uppercase; font-size: 16px; letter-spacing: -.01em; color: var(--text); line-height: 1.15; }
.crea-snip { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.crea-ta { font-family: var(--font); line-height: 1.55; }
.crea-ai-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.crea-ai-lab { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--flf); }
.crea-ai-act { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 12.5px; padding: 7px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.crea-ai-act:hover { border-color: rgba(255,107,82,.6); background: rgba(255,107,82,.08); }
.crea-ai-out { margin-top: 12px; }
.crea-ai-out.hidden { display: none; }
.crea-ai-load, .crea-ai-soon { font-size: 13px; color: var(--muted); padding: 14px; background: var(--surface-2); border-radius: 12px; }
.crea-ai-result { font-size: 13.5px; line-height: 1.6; color: var(--text); white-space: pre-wrap; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--flf) 30%, var(--line)); border-radius: 12px; padding: 16px; max-height: 40vh; overflow-y: auto; }
.crea-ai-foot { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gs-boxes { display: flex; flex-direction: column; gap: 8px; }
.gs-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 13px; color: var(--text); }
.gs-done { background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #2ecc71; }
/* TIME TO CREATE */
.ttc-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 0 12px; }
.ttc-sec-h h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ttc-concept-body { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px 22px; font-size: 14px; line-height: 1.65; color: var(--text); }
.ttc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ttc-col { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; min-height: 120px; }
.ttc-col-h { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cc, var(--muted)); padding: 2px 4px 10px; }
.ttc-col-h span { color: var(--faint); font-size: 11px; }
.ttc-col-b { display: flex; flex-direction: column; gap: 8px; }
.ttc-col-empty { text-align: center; color: var(--faint); padding: 14px 0; }
.ttc-card { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; cursor: pointer; transition: border-color .15s, transform .12s; }
.ttc-card:hover { border-color: rgba(255,107,82,.5); transform: translateY(-2px); }
.ttc-card-n { font-family: var(--display); text-transform: uppercase; font-size: 13px; color: var(--text); letter-spacing: -.01em; }
.ttc-card-r { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ttc-card-w { font-size: 11.5px; color: var(--faint); margin-top: 5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ttc-card-prog { font-size: 10.5px; font-weight: 700; color: var(--flf); margin-top: 7px; letter-spacing: .02em; }

/* Personnes à cibler · tableau large en lignes (pas de colonnes) */
.ttc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ttc-fchip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: .15s; }
.ttc-fchip span { font-size: 11px; color: var(--faint); }
.ttc-fchip:hover { color: var(--text); }
.ttc-fchip.on { background: var(--bg); border-color: var(--cc, var(--line)); color: var(--cc, var(--text)); }
.ttc-fchip.on span { color: var(--cc, var(--faint)); }
.ttc-rows { display: flex; flex-direction: column; }
.ttc-row { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); padding: 14px 8px; cursor: pointer; color: var(--text); transition: background .12s; }
.ttc-row:hover { background: rgba(255,255,255,.025); }
.ttc-row-mono { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; flex-shrink: 0; }
.ttc-row-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ttc-row-n { font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: -.01em; color: var(--text); }
.ttc-row-s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttc-row-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ttc-row-tag { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.ttc-row .ttcg-badge { margin-left: 0; }
.ttc-empty-wide { color: var(--faint); font-size: 13px; padding: 30px 8px; }
@media (max-width: 620px){ .ttc-row-tag { display: none; } }

/* Concept · grille de sections (template TTC) */
.ttc-cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ttc-csec { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px 22px 24px; position: relative; }
.ttc-csec-dark { background: #0c0c0d; border-color: rgba(255,255,255,.1); grid-column: 1 / -1; }
.ttc-cnum { font-family: var(--display); font-size: 12px; color: var(--faint); letter-spacing: .06em; }
.ttc-csec h3 { font-family: var(--display); text-transform: uppercase; font-size: 16px; letter-spacing: -.01em; margin: 6px 0 12px; color: var(--text); }
.ttc-csec-dark h3 { color: #fff; }
.ttc-ctxt { font-size: 13.5px; line-height: 1.62; color: var(--text); white-space: pre-line; }
.ttc-csec-dark .ttc-ctxt { color: #c9c9cf; font-style: italic; }
.ttc-cedit .pdlg-f { margin-bottom: 16px; }
/* TTC · refonte cinéma : héros plein cadre + concept aéré + mot du réalisateur monumental */
.ttc-hero { position: relative; margin: 4px calc(50% - 50vw) 36px; width: 100vw; min-height: 48vh; display: flex; align-items: flex-end; overflow: hidden; }
.ttc-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.ttc-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.92) 100%); }
.ttc-hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px clamp(30px,5vw,58px); }
.ttc-hero-kicker { font-family: var(--display); text-transform: uppercase; font-size: 11px; letter-spacing: .22em; color: rgba(255,255,255,.72); margin-bottom: 14px; }
.ttc-hero-t { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: clamp(46px, 9vw, 124px); line-height: .9; letter-spacing: -.02em; color: #fff; margin: 0; }
.ttc-hero-t em { font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; color: var(--flf); }
.ttc-hero-sub { font-size: clamp(15px, 1.5vw, 19px); color: rgba(255,255,255,.84); max-width: 600px; margin: 18px 0 0; font-style: italic; line-height: 1.5; }
.ttc-eyebrow { font-family: var(--display); text-transform: uppercase; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
/* Concept : 4 cartes sur une ligne · alternance sombre / claire · plus compact, plus rythmé */
.ttc-concept .ttc-cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.ttc-concept .ttc-csec { padding: 22px 20px 24px; border-radius: 18px; }
.ttc-csec h3 { font-size: 15px; margin: 8px 0 12px; }
.ttc-csec .ttc-ctxt { font-size: 12.5px; line-height: 1.55; }
.ttc-csec-light { background: #f4f3f1; border-color: #f4f3f1; }
.ttc-csec-light .ttc-cnum { color: rgba(0,0,0,.35); }
.ttc-csec-light h3 { color: #0b0b0c; }
.ttc-csec-light .ttc-ctxt { color: #2c2c2e; }
@media (max-width: 1180px){ .ttc-concept .ttc-cgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .ttc-concept .ttc-cgrid { grid-template-columns: 1fr; } }
/* Contacts : grand espace pour respirer + petit sous-titre */
.ttc-people { margin-top: clamp(48px, 7vw, 96px); }
.ttc-people-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ttc-people-sub { margin: 8px 0 0; font-size: 14px; font-style: italic; color: var(--muted); }
/* Mon équipe · collaborateurs */
.team-list { display: flex; flex-direction: column; gap: 10px; }
.team-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 18px; }
.team-id { display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
.team-id span { font-size: 12.5px; }
.team-clients { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 120px; }
.team-chip { font-size: 11.5px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.team-act { display: flex; gap: 6px; flex-wrap: wrap; }
.co-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.co-check { display: flex; align-items: center; gap: 9px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text); cursor: pointer; }
.co-check input { accent-color: var(--flf); flex-shrink: 0; }
@media (max-width: 560px){ .co-checks { grid-template-columns: 1fr; } }
/* L'équipe sur ce projet · cartes façon carte de joueur */
.crew-sec { margin: 6px 0 8px; }
.crew-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.crew-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.crew-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 100px; padding: 5px 8px 5px 5px; transition: border-color .15s; }
.crew-chip:hover { border-color: color-mix(in srgb, var(--cc,#FF6B52) 45%, transparent); }
.crew-ava2 { width: 32px; height: 32px; border-radius: 50%; flex: none; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.crew-ava2.mono { font-family: var(--display); font-size: 12px; color: #fff; background: linear-gradient(150deg, var(--cc,#FF6B52), color-mix(in srgb, var(--cc,#FF6B52) 28%, #000)); }
.crew-chip-l { display: flex; flex-direction: column; line-height: 1.16; padding-right: 4px; }
.crew-chip-n { font-size: 13px; font-weight: 600; color: var(--text); }
.crew-chip-r { font-size: 11px; color: var(--muted); }
.crew-chip-x { width: 20px; height: 20px; border-radius: 50%; border: none; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; flex: none; }
.crew-chip-x:hover { background: rgba(224,96,79,.16); color: #e0604f; }
.crew-add { display: inline-flex; align-items: center; border-radius: 100px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: 12.5px; padding: 9px 16px; cursor: pointer; transition: border-color .15s, color .15s; }
.crew-add:hover { border-color: var(--flf); color: var(--flf); }
.crew-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.crew-pick-item { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; cursor: pointer; text-align: left; transition: border-color .15s; }
.crew-pick-item.on { border-color: var(--cc, var(--flf)); }
.crew-pick-mono { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 13px; color: #fff; background: linear-gradient(150deg, var(--cc,#FF6B52), color-mix(in srgb, var(--cc,#FF6B52) 30%, #000)); }
.crew-pick-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.crew-pick-n { font-size: 13px; font-weight: 600; color: var(--text); }
.crew-pick-r { font-size: 11px; color: var(--muted); }
.crew-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.crew-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.crew-color.on { border-color: #fff; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(255,255,255,.6); }
.crew-photo-row { display: flex; align-items: center; gap: 14px; }
.ttc-dream { margin-top: 18px; background: #0b0b0c; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: clamp(36px,5vw,72px); text-align: center; }
.ttc-dream-k { font-family: var(--display); text-transform: uppercase; font-size: 11px; letter-spacing: .18em; color: var(--faint); margin-bottom: 26px; }
.ttc-dream-q { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 3vw, 40px); line-height: 1.34; color: #f3f3f5; margin: 0 auto; max-width: 900px; }
.ttc-dream-sign { font-family: var(--display); text-transform: uppercase; font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-top: 32px; }
@media (max-width: 700px){ .ttc-hero { min-height: 42vh; } }

/* Fiche personne TTC · badge statut + questions du cadre narratif */
.ttcg-badge { margin-left: auto; align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cc, var(--muted)); border: 1px solid color-mix(in srgb, var(--cc) 40%, transparent); background: color-mix(in srgb, var(--cc) 14%, transparent); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.ttc-q { position: relative; padding-left: 38px; }
.ttc-q-n { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--flf); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
/* Éditeur de trame documentaire */
.ttc-theme { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 14px; margin-bottom: 12px; }
.ttc-theme-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ttc-theme-t { flex: 1; font-family: var(--display); text-transform: uppercase; font-size: 14px; letter-spacing: -.01em; height: 42px; }
.ttc-theme-x { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--faint); cursor: pointer; font-size: 13px; }
.ttc-theme-x:hover { background: rgba(255,77,79,.16); color: #ff6b6b; }
.ttc-theme-q { width: 100%; min-height: 110px; line-height: 1.6; resize: vertical; }
.ttc-gen { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ===== Moodboard / storyboard (génération image, admin) ===== */
.mb-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 4px; }
.mb-chips { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.mb-chip { border: none; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.mb-chip.on { background: var(--text); color: var(--bg); }
.mb-aspect, .mb-n { width: auto; min-width: 120px; padding: 9px 12px; }
/* Mode bibliothèque · on masque le chrome orienté client du gestionnaire de fichiers réutilisé */
body.lib-mode .order-cta,
body.lib-mode .cl-services,
body.lib-mode .ref-card,
body.lib-mode #desk [data-view="projets"],
body.lib-mode #desk [data-view="factures"],
body.lib-mode #desk [data-view="boutique"] { display: none !important; }
/* ===== Proposition créative · treatment éditorial ===== */
#docFormFields.is-creative .df-fold-prices { display: none; }   /* pas de grille de prix sur une proposition créative */
.doc-creative .doc-sec-block { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.1); }
.doc-creative.paper-light .doc-sec-block { border-top-color: rgba(0,0,0,.1); }
.doc-creative .doc-sec-block:first-child { border-top: none; }
.doc-sec-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--doc-accent, #fff); margin-bottom: 14px; }
.doc-sec-head { font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.18; margin: 0 0 14px; font-weight: 600; }
.doc-prose { font-size: 15px; line-height: 1.62; opacity: .92; }
.doc-prose b { font-weight: 700; opacity: 1; }
.doc-beats { list-style: none; padding: 0; margin: 6px 0 0; counter-reset: beat; }
.doc-beats li { position: relative; padding-left: 42px; margin-bottom: 16px; font-size: 15px; line-height: 1.55; counter-increment: beat; }
.doc-beats li::before { content: counter(beat) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--doc-accent, #fff); }
.doc-bullets { list-style: none; padding: 0; margin: 6px 0 0; }
.doc-bullets li { position: relative; padding-left: 22px; margin-bottom: 11px; font-size: 15px; line-height: 1.5; }
.doc-bullets li::before { content: "·"; position: absolute; left: 4px; top: -2px; font-size: 22px; color: var(--doc-accent, #fff); }
.doc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.doc-chip { border: 1px solid var(--doc-accent, #fff); border-radius: 999px; padding: 9px 18px; font-size: 14px; }
.doc-pullquote { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 22px; line-height: 1.35; }
.doc-shot { margin: 0 0 32px; }
.doc-shot .doc-sec-label { margin-bottom: 14px; }
.doc-shot-img { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: 6px; background-color: #101010; }
.doc-shot-img.empty { border: 1px dashed rgba(255,255,255,.18); }
.doc-creative.paper-light .doc-shot-img.empty { border-color: rgba(0,0,0,.15); }
.doc-shot-cap { display: flex; gap: 16px; margin-top: 13px; align-items: baseline; }
.doc-shot-n { font-weight: 700; color: var(--doc-accent, #fff); font-size: 16px; flex: none; min-width: 24px; }
.doc-shot-txt { font-size: 14.5px; line-height: 1.55; opacity: .92; }
.doc-shot-txt b { opacity: 1; }
.cs-shot-pick { display: flex; align-items: center; gap: 10px; }
.cs-shot-thumb { width: 124px; aspect-ratio: 16/9; border-radius: 7px; background-size: cover; background-position: center; border: 1px solid var(--line); background-color: var(--surface-2); flex: none; }
.cs-shot-thumb.empty { display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.doc-creative .doc-foot-fixed { padding: 18px 0 0; font-size: 11px; letter-spacing: .14em; opacity: .6; }
/* Éditeur · lignes de section du treatment */
.cs-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.cs-row-top { display: flex; gap: 8px; align-items: center; }
.cs-row-top .cs-label { flex: 1; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cs-row-top .cs-kind { width: auto; max-width: 150px; }
.cs-del { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.cs-del:hover { color: #ff7a7a; border-color: rgba(255,90,90,.4); }
.cs-row textarea.df-area { min-height: 80px; }
/* ===== Proposition créative · couverture pleine page + planches ===== */
.doc-cover-page.has-cover-img { position: relative; overflow: hidden; }
.doc-cover-page.has-cover-img > .doc-cover-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.doc-cover-page.has-cover-img > .doc-cover-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.78) 100%); z-index: 1; }
.doc-cover-page.has-cover-img > .doc-kicker,
.doc-cover-page.has-cover-img > .doc-cover-mid,
.doc-cover-page.has-cover-img > .doc-cover-foot { position: relative; z-index: 2; color: #fff; }
.doc-cover-page.has-cover-img .doc-title { color: #fff; }
.doc-cover-page.has-cover-img .doc-tagline,
.doc-cover-page.has-cover-img .doc-meta { color: rgba(255,255,255,.88); }
.doc-visuals-page .doc-visuals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.doc-visuals-grid .doc-vis { margin: 0; }
.doc-visuals-grid .doc-vis-img { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: 8px; }
.doc-visuals-grid .doc-vis figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; }
/* Éditeur · pickers couverture + planches */
.df-cover-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.df-cover-thumb { width: 132px; height: 74px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--line); background-color: var(--surface-2); }
.df-cover-thumb.empty { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.df-vis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.df-vis-cell { position: relative; }
.df-vis-img { width: 100%; aspect-ratio: 16/9; border-radius: 7px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.df-vis-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 11px; }
.df-vis-add { aspect-ratio: 16/9; border: 1px dashed var(--line-2); border-radius: 7px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.df-vis-add:hover { border-color: var(--accent, #FF6B52); color: var(--accent, #FF6B52); }
/* Sélecteur de visuel (bibliothèque + moodboard) */
.pli-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.pli-cell { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 0; cursor: pointer; overflow: hidden; text-align: left; }
.pli-cell:hover { border-color: var(--accent, #FF6B52); }
.pli-img { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: #111; }
.pli-cell span { display: block; padding: 6px 8px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* L'année · tableau interactif */
.an-ctrls { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg-b { background: transparent; border: none; color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; }
.seg-b.on { background: #fff; color: #000; font-weight: 600; }
.seg-b.solo { border: 1px solid var(--line); border-radius: 999px; }
.seg-b.solo.on { background: var(--accent, #FF6B52); color: #fff; border-color: var(--accent, #FF6B52); }
.seg-b[disabled] { opacity: .35; cursor: default; }
.an-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.an-kpi { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s; }
.an-kpi[data-ango]:hover { border-color: var(--muted); }
.an-kpi-l { font-size: 12px; color: var(--muted); }
.an-kpi b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.an-kpi i { font-size: 11px; color: var(--muted); font-style: normal; }
.an-kpi.in b { color: var(--accent, #FF6B52); }
.an-kpi.pos b { color: #2ecc71; }
.an-kpi.neg b { color: #FF6B52; }
.an-chart { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 12px; }
.an-svg { width: 100%; height: 300px; display: block; }
.an-col:hover rect[fill="transparent"] { fill: rgba(255,255,255,.03); }
.an-leg { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.an-leg i.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.an-leg .lg.in { background: var(--accent, #FF6B52); }
.an-leg .lg.out { background: rgba(255,255,255,.30); }
.an-leg .lg.cum { background: rgba(120,200,255,.85); }
.an-leg .lg.prev { background: rgba(255,255,255,.14); }
/* Banque · fil complet (façon Indy) */
.bank-views { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.bank-vt { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
.bank-vt.on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.bk-search { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bk-search .field { flex: 1; }
.bk-feed { display: flex; flex-direction: column; }
.bk-mh { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 18px 0 8px; }
.bk-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.bk-clip { background: none; border: none; font-size: 15px; cursor: pointer; opacity: .35; transition: opacity .15s; padding: 2px; }
.bk-clip:hover { opacity: .8; }
.bk-clip.on { opacity: 1; }
.bk-main { min-width: 0; }
.bk-label { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-meta { font-size: 12px; color: var(--muted); }
.bk-acct { color: rgba(255,255,255,.4); }
.bk-tags { display: flex; align-items: center; gap: 8px; }
.bk-cat { background: var(--surface-2); border: 1px solid var(--line); color: rgba(255,255,255,.8); border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.bk-cat:hover { border-color: var(--muted); }
.bk-fv { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 11px; font-size: 11px; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; }
.bk-fv.fixe { color: #e8c268; border-color: rgba(232,194,104,.4); }
.bk-fv.variable { color: var(--muted); }
.bk-link { font-size: 11.5px; color: #2ecc71; white-space: nowrap; }
.bk-amt { font-weight: 700; min-width: 86px; text-align: right; font-size: 14px; }
/* Banque · solde, courbe, réconciliation */
.bank-solde { margin-top: 12px; font-size: 14px; color: var(--muted); }
.bank-solde b { color: #fff; font-size: 17px; font-weight: 800; }
.bank-curve { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.bank-curve-h { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.bank-curve-bars { display: flex; gap: 6px; align-items: flex-end; height: 110px; }
.bcc { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
.bcc-bar-w { width: 100%; height: 72px; display: flex; align-items: flex-end; }
.bcc-bar { width: 100%; border-radius: 4px 4px 0 0; background: #2ecc71; }
.bcc-bar.neg { background: #FF6B52; }
.bcc-v { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.bcc-m { font-size: 10px; color: var(--muted); text-transform: capitalize; }
.rc-amb { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.rc-amb-h { font-size: 13.5px; margin-bottom: 10px; }
.rc-cand { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; margin-bottom: 7px; cursor: pointer; color: inherit; font-size: 13px; }
.rc-cand:hover { border-color: var(--accent, #FF6B52); }
.rc-cand .rc-c-l { flex: 1; }
.rc-cand .rc-c-a { font-weight: 700; }
.rc-cand .rc-c-go { font-size: 11px; color: var(--accent, #FF6B52); opacity: 0; }
.rc-cand:hover .rc-c-go { opacity: 1; }
/* Pilote de trésorerie (DAF proactif) */
.pilot { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-top: 18px; }
.pilot .daf-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.pilot .daf-sub { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.pilot-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pilot-n { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.pilot-n span { font-size: 12px; color: var(--muted); }
.pilot-n b { font-size: 23px; font-weight: 800; letter-spacing: -.01em; }
.pilot-n i { font-size: 11px; color: var(--muted); font-style: normal; }
.pilot-n.ok b { color: #2ecc71; }
.pilot-n.warn b { color: #e8c268; }
.pilot-recv { border-top: 1px solid var(--line-2); padding-top: 12px; margin-bottom: 12px; }
.pilot-recv-h { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.pilot-recv-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.5px; }
.pilot-recv-row .prr-date { color: var(--muted); font-size: 12px; }
.pilot-recv-row.late .prr-date { color: #e8896b; }
.pilot-recv-row .prr-amt { font-weight: 700; min-width: 80px; text-align: right; }
.prr-btn { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; transition: all .15s; }
.prr-btn:hover { color: #fff; border-color: var(--muted); }
.prr-btn.hot { border-color: var(--accent, #FF6B52); color: var(--accent, #FF6B52); }
.prr-btn.hot:hover { background: var(--accent, #FF6B52); color: #fff; }
.pilot-acts { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 9px; }
.pilot-acts li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.pilot-acts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pilot-acts li.sev-high::before { background: #ff6b52; }
.pilot-acts li.sev-mid::before { background: #e8c268; }
.pilot-acts li.sev-ok::before { background: #2ecc71; }
.mbs-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 70px; }
.mbs-gen { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.mb-cell { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); aspect-ratio: 16/9; }
.mb-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-cell figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: 11px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); }
.mb-cell-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 12px; opacity: 0; transition: opacity .2s; }
.mb-cell:hover .mb-cell-x { opacity: 1; }
.mb-cell-link { position: absolute; top: 6px; right: 36px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; opacity: 0; transition: opacity .2s, background .2s; }
.mb-cell:hover .mb-cell-link { opacity: 1; }
.mb-cell-link:hover { background: var(--accent, #FF6B52); }
.mb-empty { grid-column: 1/-1; padding: 30px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: 14px; }

/* ===== Mes tarifs · l'outil d'analyse (charges → temps → prix) ===== */
.tc-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 30px; }
.tc-f { display: flex; flex-direction: column; gap: 8px; }
.tc-l { font-size: 13px; color: var(--text); font-weight: 600; }
.tc-cell input { width: 100%; font-family: var(--display); font-size: 22px; font-weight: 700; text-align: left; }
.tc-hero { text-align: center; padding: 40px 24px; border-radius: 24px; margin-bottom: 24px;
  background: linear-gradient(160deg, rgba(255,107,82,.16), rgba(255,107,82,.03)); border: 1px solid rgba(255,107,82,.28); }
.tc-hero-lab { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tc-hero-v { font-family: var(--display); font-size: clamp(52px, 9vw, 96px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 10px 0; color: var(--accent, #FF6B52); }
.tc-hero-sub { font-size: 14px; color: var(--muted); max-width: 560px; margin: 0 auto; }
.tc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tc-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); }
.tc-card.warn { border-color: rgba(232,194,104,.4); }
.tc-card.go { border-color: rgba(46,204,113,.4); background: linear-gradient(160deg, rgba(46,204,113,.08), transparent); }
.tc-card-k { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.tc-card-v { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 8px; }
.tc-card.warn .tc-card-v { color: #e8c268; }
.tc-card.go .tc-card-v { color: #2ecc71; }
.tc-card-d { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.tc-note { margin: 22px 0 4px; padding: 20px 24px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
@media (max-width: 820px) { .tc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tc-inputs, .tc-grid { grid-template-columns: 1fr; } }

/* ===== Mes tarifs plancher (grille par métier, FR/US) ===== */
.trf-wrap { margin-top: 8px; }
.trf-head, .trf-row { display: grid; grid-template-columns: 1fr 180px 180px 38px; gap: 12px; align-items: center; }
.trf-head { padding: 0 4px 10px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.trf-row { padding: 7px 0; }
.trf-cell { position: relative; display: flex; align-items: center; }
.trf-cur { position: absolute; left: 12px; color: var(--muted); font-weight: 700; font-size: 14px; pointer-events: none; }
.trf-num { text-align: right; padding-left: 26px; padding-right: 34px; }
.trf-unit { position: absolute; right: 12px; color: var(--muted); font-size: 12px; pointer-events: none; }
.trf-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.trf-x:hover { background: rgba(255,69,58,.12); color: #ff6b6b; border-color: rgba(255,69,58,.4); }
@media (max-width: 640px) {
  .trf-head { display: none; }
  .trf-row { grid-template-columns: 1fr 1fr; grid-template-areas: "role role" "eur usd" "del del"; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .trf-role { grid-area: role; } .trf-row .trf-cell:nth-of-type(2) { grid-area: eur; } .trf-row .trf-cell:nth-of-type(3) { grid-area: usd; } .trf-x { grid-area: del; width: 100%; }
}

/* ===== Registre « respiration » · l'entrée aérée façon Apple (pas de héros, du vide) ===== */
.air-intro { padding: 64px 0 40px; max-width: 760px; }
.air-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 650; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.air-h1 { font-size: clamp(48px, 7vw, 84px); line-height: .95; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.air-h1 em { font-style: italic; font-weight: 500; color: var(--accent, #FF6B52); }
.air-lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 24px 0 0; max-width: 560px; }
@media (max-width: 760px) { .air-intro { padding: 36px 0 26px; } .air-lead { font-size: 16px; } }

/* ===== Outil « où mettre mon temps » (leviers) ===== */
.lv-sec { margin-top: 34px; }
.lv-h { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.lv-sub { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 6px 0 16px; max-width: 640px; }
.lv-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.lv-level { background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--lc); border-radius: 14px; padding: 18px 20px; }
.lv-lvl-top { display: flex; align-items: baseline; justify-content: space-between; }
.lv-n { font-family: var(--display); font-size: 13px; color: var(--lc); }
.lv-v { font-size: 12px; font-weight: 700; color: var(--lc); }
.lv-t { font-family: var(--display); text-transform: uppercase; font-size: 15px; margin: 8px 0 8px; color: var(--text); }
.lv-d { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.lv-goal { font-size: 12px; color: var(--text); margin-top: 12px; }
.lv-todo { font-size: 11.5px; color: var(--lc); margin-top: 6px; font-weight: 600; line-height: 1.45; }
.lv-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lv-fstep { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; }
.lv-fq { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--flf); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.lv-fqt { font-size: 13.5px; font-weight: 700; color: var(--text); }
.lv-fa { font-size: 12px; margin-top: 4px; font-weight: 600; }
.lv-sort { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lv-col { background: var(--surface); border: 1px solid var(--line-2); border-top: 3px solid var(--lc); border-radius: 16px; padding: 18px 20px; }
.lv-col-h { font-family: var(--display); text-transform: uppercase; font-size: 13px; letter-spacing: .02em; color: var(--lc); margin-bottom: 12px; }
.lv-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.lv-col li { font-size: 13px; color: var(--text); line-height: 1.45; padding-left: 16px; position: relative; }
.lv-col li::before { content: "·"; position: absolute; left: 4px; color: var(--lc); font-weight: 800; }
.lv-leviers { display: flex; flex-direction: column; gap: 10px; }
.lv-lev { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; }
.lv-lev-n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--flf); color: #000; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lv-lev-t { font-family: var(--display); text-transform: uppercase; font-size: 15px; color: var(--text); }
.lv-lev-d { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.lv-cta { margin-top: 28px; }

/* ===== Frameworks de croissance (3 stades · équation · indicateurs) · ultra Apple, aéré ===== */
.gr-sec { margin-top: 72px; }
.gr-real { display: inline-block; vertical-align: middle; margin-left: 10px; font-family: var(--font, inherit); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2ecc71; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.32); padding: 3px 9px; border-radius: 999px; }
.gr-ca-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 26px; }
.gr-ca-l { font-size: 14px; color: var(--muted); }
.gr-ca-cell { position: relative; display: inline-flex; align-items: center; }
.gr-ca-cell input { width: 220px; font-family: var(--display); font-size: 20px; font-weight: 700; text-align: right; padding-right: 56px; }
.gr-ca-u { position: absolute; right: 14px; color: var(--muted); font-size: 13px; pointer-events: none; }
.gr-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gr-stage { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 24px; background: var(--surface); transition: border-color .3s, transform .3s, box-shadow .3s; opacity: .58; }
.gr-stage.on { opacity: 1; border-color: var(--lc); box-shadow: 0 20px 50px -28px var(--lc); transform: translateY(-3px); }
.gr-st-top { display: flex; justify-content: space-between; align-items: baseline; }
.gr-st-n { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--lc); }
.gr-st-r { font-size: 12px; color: var(--muted); font-weight: 600; }
.gr-st-t { font-family: var(--display); font-size: 21px; font-weight: 700; margin: 14px 0 8px; }
.gr-st-d { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.gr-st-todo { font-size: 13px; line-height: 1.5; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--text); }
.gr-st-here { display: none; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lc); }
.gr-stage.on .gr-st-here { display: block; }
.gr-eqv { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 26px; }
.gr-eqv b { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.gr-eqv span { font-size: 13px; color: var(--muted); }
.gr-levers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gr-lever { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); }
.gr-lev-l { display: block; font-size: 12px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.gr-lev-cell { position: relative; display: flex; align-items: center; }
.gr-lev-cell input { width: 100%; font-family: var(--display); font-size: 22px; font-weight: 700; text-align: left; }
.gr-lev-u { font-size: 11px; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.gr-lev-bump { margin-top: 12px; font-size: 12.5px; color: var(--accent, #FF6B52); font-weight: 600; }
.gr-synth { margin-top: 20px; padding: 20px 24px; border-radius: 16px; background: linear-gradient(160deg, rgba(255,107,82,.12), rgba(255,107,82,.03)); border: 1px solid rgba(255,107,82,.24); font-size: 14.5px; line-height: 1.6; }
/* CAC · ce que coûte un client */
.cac-in { margin-bottom: 24px; }
.cac-hero { text-align: center; padding: 34px 24px; border-radius: 22px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); }
.cac-ratio { font-family: var(--display); font-size: clamp(54px, 9vw, 92px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.cac-ratio.ok { color: #2ecc71; }
.cac-ratio.warn { color: #e8c268; }
.cac-ratio.bad { color: #ff5a3c; }
.cac-ratio-lbl { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.cac-verdict { font-size: 15px; line-height: 1.55; color: var(--text); max-width: 600px; margin: 14px auto 0; }
.cac-kpis .gr-kpi.nolink { cursor: default; }
.cac-kpis .gr-kpi.nolink:hover { border-color: var(--line); transform: none; }
.cac-kpis .gr-kpi-t { font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.gr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gr-kpi { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.gr-kpi:hover { border-color: var(--text); transform: translateY(-2px); }
.gr-kpi-t { font-family: var(--display); font-size: 17px; font-weight: 700; }
.gr-kpi-d { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 8px 0 14px; }
.gr-kpi-c { font-size: 12.5px; color: var(--text); }
@media (max-width: 820px) { .gr-stages, .gr-levers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gr-stages, .gr-levers { grid-template-columns: 1fr; } .gr-sec { margin-top: 52px; } }

/* ===== Services suggérés (espace client, mode ludique) ===== */
/* ===== Planning social (façon Metricool) ===== */
.soc-connect { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.soc-connect-l { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.soc-conn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.soc-conn:hover { border-color: var(--pc); }
.soc-conn-st { font-size: 11px; color: var(--muted); font-weight: 500; }
.soc-conn.connected { border-color: rgba(46,204,113,.45); background: rgba(46,204,113,.07); }
.soc-conn.connected .soc-conn-st { color: #2ecc71; font-weight: 600; }
.soc-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; }
.soc-cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; font-family: var(--display); font-size: 18px; font-weight: 700; text-transform: capitalize; }
.soc-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.soc-dow span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.soc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.soc-cell { min-height: 104px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 6px; cursor: pointer; transition: border-color .15s; }
.soc-cell:hover { border-color: var(--muted); }
.soc-cell.soc-empty { background: none; border: none; cursor: default; }
.soc-cell.soc-today { border-color: var(--accent, #FF6B52); }
.soc-daynum { font-size: 12px; color: var(--muted); font-weight: 600; padding: 2px 4px; }
.soc-cell.soc-today .soc-daynum { color: var(--accent, #FF6B52); }
.soc-day-posts { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.soc-post { display: flex; align-items: stretch; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px; padding: 5px; cursor: pointer; transition: border-color .15s, transform .12s, background .15s; overflow: hidden; }
.soc-post:hover { border-color: var(--sc); transform: translateY(-1px); }
.soc-post-thumb { width: 30px; flex-shrink: 0; border-radius: 6px; background-size: cover; background-position: center; }
.soc-post-noimg { background: linear-gradient(150deg, var(--sc), transparent 130%); opacity: .8; }
.soc-post-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.soc-post-top { display: flex; align-items: center; gap: 6px; }
.soc-post-dots { display: inline-flex; gap: 3px; }
.soc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.soc-post-top b { font-size: 10.5px; font-weight: 700; color: var(--muted); margin-left: auto; }
.soc-post-t { font-size: 11.5px; line-height: 1.25; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-connect-h { flex-basis: 100%; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.soc-connect-l b { color: var(--text); }
.soc-manage-btn { border-style: dashed !important; color: var(--muted) !important; }
.soc-share { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.soc-share input { width: 16px; height: 16px; accent-color: var(--accent, #FF6B52); }
.soc-share:hover { color: var(--text); }
.soc-mng-list { display: flex; flex-direction: column; gap: 4px; }
.soc-mng { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; transition: background .15s; font-size: 14.5px; }
.soc-mng:hover { background: var(--surface-2); }
.soc-mng input { width: 17px; height: 17px; accent-color: var(--accent, #FF6B52); }
/* Agenda SEMAINE · créneaux horaires (ultra précis) */
.sw-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-family: var(--display); font-size: 16px; font-weight: 700; text-transform: capitalize; }
.sw-grid { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sw-row { display: grid; grid-template-columns: 56px repeat(7, 1fr); }
.sw-head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.sw-dh { padding: 10px 6px; text-align: center; font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); }
.sw-dh b { color: var(--text); font-size: 13px; }
.sw-dh.sw-today { color: var(--accent, #FF6B52); } .sw-dh.sw-today b { color: var(--accent, #FF6B52); }
.sw-time { font-size: 11px; color: var(--muted); padding: 6px 8px; text-align: right; border-top: 1px solid var(--line); }
.sw-cell { min-height: 46px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 3px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: background .12s; }
.sw-cell:hover { background: var(--surface); }
.sw-cell.sw-today { background: rgba(255,107,82,.03); }
.sw-head .sw-time, .sw-head .sw-dh { border-top: none; }
.sw-grid .soc-post { font-size: 10px; }
.sw-grid .soc-post-thumb { width: 22px; }
.soc-pick, .soc-pl { font-family: inherit; }
.soc-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-pl { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.soc-pl.on { background: var(--pc); border-color: var(--pc); color: #fff; }
/* Analytics social (façon Upload-Post, design FLF) */
.sa-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.sa-demo { font-size: 12px; color: #e8c268; background: rgba(232,194,104,.1); border: 1px solid rgba(232,194,104,.28); padding: 5px 12px; border-radius: 999px; }
.sa-demo b { color: #e8c268; }
.sa-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sa-kpi { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: var(--surface); }
.sa-kpi-l { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sa-kpi-v { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.sa-chart { margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 8px; background: var(--surface); }
.sa-chart-h { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.sa-svg { width: 100%; height: 180px; display: block; }
.sa-plats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sa-plat { display: flex; align-items: center; gap: 8px; font-size: 14px; }
@media (max-width: 820px) { .sa-kpis { grid-template-columns: 1fr 1fr; } }

/* Composeur 2 colonnes (form + aperçu live) façon Upload-Post */
.modal:has(.sp-modal) { max-width: 1080px; width: 95vw; }
.sp-modal { max-height: 82vh; overflow-y: auto; }
.sp-2col { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.sp-count { font-size: 11px; color: var(--muted); font-weight: 400; float: right; }
.sp-tools { display: flex; gap: 8px; margin-top: 8px; }
.sp-tool { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: border-color .15s; }
.sp-tool:hover { border-color: var(--accent, #FF6B52); }
.sp-media-row { display: flex; gap: 10px; align-items: center; }
.sp-side { position: sticky; top: 4px; }
.sp-side .sp-prev { margin: 0; }
.sp-side .spp-card { max-width: 100%; }
@media (max-width: 760px) { .modal:has(.sp-modal) { width: 96vw; } .sp-2col { grid-template-columns: 1fr; } .sp-side { order: -1; } }
/* Aperçu live du post (composeur) */
.sp-prev { margin-bottom: 18px; }
.spp-label { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.spp-card { border: 1px solid var(--line); border-top: 3px solid var(--pc); border-radius: 14px; overflow: hidden; background: var(--surface-2); max-width: 360px; }
.spp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.spp-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--pc); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.spp-id b { display: block; font-size: 13.5px; }
.spp-id span { font-size: 11px; color: var(--muted); }
.spp-multi { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.spp-media { aspect-ratio: 4/5; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--faint); }
.spp-media img, .spp-media video { width: 100%; height: 100%; object-fit: cover; }
.spp-media.is-vid { background: #000; }
.spp-title { font-weight: 700; font-size: 14px; color: var(--text); padding: 10px 12px 0; }
/* Réglages natifs par réseau */
.sp-adv-det { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.sp-adv-det > summary { cursor: pointer; padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--text); list-style: none; user-select: none; }
.sp-adv-det > summary::-webkit-details-marker { display: none; }
.sp-adv-det > summary::before { content: "▸ "; color: var(--faint); }
.sp-adv-det[open] > summary::before { content: "▾ "; }
.sp-adv-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 16px; }
.sp-adv-block { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.sp-adv-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; display: flex; align-items: center; gap: 7px; }
.sp-adv-tog { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); cursor: pointer; }
.sp-adv-tog input { width: 16px; height: 16px; accent-color: #FF6B52; }
/* Format par réseau (type par plateforme, façon Metricool) */
.sp-types { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-type { display: flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.sp-type b { font-weight: 600; }
.sp-type .field { width: auto; min-width: 120px; padding: 5px 8px; font-size: 13px; }
/* Panneau d'erreurs live */
.sp-err { border: 1px solid #e74c3c44; background: #e74c3c12; border-radius: 12px; padding: 12px 14px; }
.sp-err-h { font-weight: 800; font-size: 13px; color: #e74c3c; margin-bottom: 7px; }
.sp-err ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.sp-err li { font-size: 13px; color: var(--text); line-height: 1.4; }
.btn.approve.disabled, .btn.approve:disabled { opacity: .45; pointer-events: none; }
/* Aperçu mobile / bureau */
.spp-modes { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 10px; }
.spp-mode { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 9px; cursor: pointer; font-size: 14px; opacity: .55; }
.spp-mode.on { opacity: 1; border-color: #FF6B52; }
.spp-card.spp-desktop { max-width: 100%; }
.spp-card.spp-desktop .spp-media { aspect-ratio: 16/9; }
.spp-card.spp-mobile { max-width: 340px; }
/* État RÉEL des comptes connectés dans le composeur */
.sp-conn { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; font-size: 12px; line-height: 1.4; }
.sp-conn-ok { color: #2ecc71; font-weight: 600; }
.sp-conn-no { color: #e67e22; }
.sp-conn-x { color: var(--faint); }
.spp-cap { padding: 12px 14px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.soc-list { display: flex; flex-direction: column; gap: 8px; }
.soc-lrow { display: flex; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s; }
.soc-lrow:hover { border-color: var(--muted); }
.soc-ld { text-align: center; min-width: 52px; }
.soc-ld b { display: block; font-family: var(--display); font-size: 15px; text-transform: capitalize; }
.soc-ld span { font-size: 12px; color: var(--muted); }
.soc-lc-t { font-size: 14px; margin-bottom: 4px; }
.soc-lc-m { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
@media (max-width: 700px) { .soc-cell { min-height: 78px; } .soc-post-t { display: none; } }

/* Parrainage côté client · discret, élégant, explications au clic */
.ref-card { position: relative; overflow: hidden; margin: 34px 0 10px; padding: 26px 28px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); }
.ref-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ref-eyebrow { font-size: 10.5px; font-weight: 650; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.ref-links { display: inline-flex; gap: 18px; align-items: center; }
.ref-how { background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.ref-how:hover { color: var(--text); }
.ref-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.08; font-weight: 750; letter-spacing: -.02em; margin: 0; }
.ref-title em { font-style: italic; font-weight: 500; color: var(--accent, #FF6B52); }
.ref-lead { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 10px 0 18px; }
.ref-lead b { color: var(--text); }
.ref-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ref-codebox { display: inline-flex; align-items: center; gap: 14px; padding: 9px 9px 9px 18px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line); }
.ref-code-l { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ref-code { font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: .04em; }
.ref-copy { border: none; background: var(--text); color: var(--bg); font-weight: 650; font-size: 12.5px; padding: 8px 16px; border-radius: 100px; cursor: pointer; transition: opacity .15s; }
.ref-copy:hover { opacity: .85; }
.ref-share { background: none; border: none; color: var(--accent, #FF6B52); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; transition: opacity .15s; }
.ref-share:hover { opacity: .7; }
.ref-detail { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ref-detail[hidden] { display: none; }
.ref-step { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ref-step b { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.ref-terms { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ref-term { display: flex; gap: 14px; font-size: 13px; line-height: 1.45; }
.ref-term span { flex-shrink: 0; width: 92px; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 1px; }
.ref-term b { font-weight: 500; color: var(--text); }
@media (max-width: 600px) { .ref-card { padding: 22px 20px; } .ref-codebox { flex-wrap: wrap; border-radius: 16px; } }
.cl-services { margin: 40px 0 10px; }
.cl-serv-h h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.cl-serv-h p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 6px; max-width: 560px; }
.cl-serv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 30px; counter-reset: svc; }
.cl-serv-card { position: relative; background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: 22px; padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s var(--ease), transform .28s var(--ease-out), box-shadow .28s var(--ease-out); animation: fadeUp .55s var(--ease-out) both; }
.cl-serv-card::before { counter-increment: svc; content: counter(svc, decimal-leading-zero); font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #FF6B52; opacity: .92; }
.cl-serv-card:hover { border-color: rgba(255,107,82,.45); transform: translateY(-5px); box-shadow: 0 20px 46px rgba(0,0,0,.2); }
.cl-serv-card:nth-child(2){animation-delay:.05s}.cl-serv-card:nth-child(3){animation-delay:.1s}.cl-serv-card:nth-child(4){animation-delay:.15s}.cl-serv-card:nth-child(5){animation-delay:.2s}.cl-serv-card:nth-child(6){animation-delay:.25s}.cl-serv-card:nth-child(7){animation-delay:.3s}.cl-serv-card:nth-child(8){animation-delay:.35s}
.cs-svc-t { font-family: var(--display); text-transform: uppercase; font-size: 19px; line-height: 1.1; letter-spacing: -.01em; color: var(--text); }
.cs-svc-d { font-size: 13.5px; color: var(--muted); line-height: 1.62; flex: 1; margin-top: 2px; }
.cl-serv-btn { align-self: flex-start; margin-top: 16px; }

/* ===== Ma Paie de dirigeant (Apple-grade, interactif) ===== */
.pa-modes { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 0 0 26px; }
.pa-mode { border: none; background: none; color: var(--muted); font-size: 14px; font-weight: 650; padding: 11px 22px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.pa-mode.on { background: var(--text); color: var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.pa-mode:not(.on):hover { color: var(--text); }
.pa-reality { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.pa-rl { flex: 1; min-width: 140px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.pa-rl span { display: block; font-size: 11.5px; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.pa-rl b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.pa-rl.hi { background: linear-gradient(160deg, rgba(255,107,82,.14), rgba(255,107,82,.04)); border-color: rgba(255,107,82,.3); }
.pa-rl.hi b { color: var(--accent, #FF6B52); }
.pa-rl.neg b { color: #ff5a3c; }
.pa-pill-h { font-size: 12px; letter-spacing: .04em; color: var(--muted); margin: 8px 0 12px; text-transform: uppercase; }
.pa-pills { display: inline-flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; flex-wrap: wrap; align-items: center; }
.pa-pill { border: none; background: none; color: var(--muted); font-size: 14.5px; font-weight: 600; padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.pa-pill:hover { color: var(--text); }
.pa-pill.on { background: #fff; color: #000; }
.pa-pill-inp { width: 92px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 13.5px; padding: 9px 14px; text-align: center; margin-left: 3px; color-scheme: dark; }
.pa-stage { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 18px; }
.pa-card { background: linear-gradient(160deg, #161616, #0d0d0d); border: 1px solid var(--line-2); border-radius: 22px; padding: 28px 30px; position: relative; overflow: hidden; }
.doc-render.paper-light .pa-card, body.theme-light .pa-card { background: var(--surface); }
.pa-tag { position: absolute; top: 18px; right: 20px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--flf); border: 1px solid var(--flf); border-radius: 999px; padding: 4px 10px; }
.pa-card-k { font-size: 12px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.pa-big { font-family: var(--display); font-size: 60px; line-height: 1; letter-spacing: -.03em; margin: 14px 0 6px; color: var(--text); transition: opacity .2s; }
.pa-card-d { font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.pa-cascade { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.pa-cl-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; }
.pa-cl-top b { font-variant-numeric: tabular-nums; }
.pa-cl-bar { height: 9px; border-radius: 5px; background: #222; overflow: hidden; }
.pa-cl-bar i { display: block; height: 100%; border-radius: 5px; width: 2%; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.pa-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pa-vs-card { border: 1px solid var(--line-2); border-radius: 18px; padding: 22px 24px; background: var(--surface); transition: border-color .2s, background .2s; }
.pa-vs-card.win { border-color: var(--flf); background: rgba(255,107,82,.07); }
.pa-vs-t { font-family: var(--display); text-transform: uppercase; font-size: 14px; color: var(--text); }
.pa-vs-v { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; margin: 10px 0 4px; color: var(--text); }
.pa-vs-d { font-size: 12px; color: var(--muted); line-height: 1.5; }
.pa-div-w { font-size: 11px; color: var(--faint); font-family: var(--font); font-weight: 400; text-transform: none; letter-spacing: 0; }
.pa-div-inp { width: 76px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 12px; padding: 3px 7px; color-scheme: dark; }
.pa-advice { margin-top: 26px; border: 1px solid var(--line-2); border-radius: 18px; padding: 22px 26px; background: var(--surface); }
.pa-advice h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--flf); margin: 0 0 12px; }
.pa-verdict { font-size: 13.5px; line-height: 1.55; color: var(--text); padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.pa-adv-l { display: flex; gap: 12px; padding: 8px 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pa-adv-l span { color: var(--flf); font-weight: 800; flex-shrink: 0; }
.pa-adv-l b { color: var(--text); }
@media (max-width: 680px){ .pa-stage, .pa-vs { grid-template-columns: 1fr; } .pa-big { font-size: 48px; } }

/* ===== Menu des fenêtres compta (clair, app-launcher) ===== */
.cm-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 4px 0 22px; }
.cm-tile { display: flex; flex-direction: column; gap: 3px; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, transform .12s, background .15s; }
.cm-tile:hover { border-color: rgba(255,107,82,.5); transform: translateY(-2px); }
.cm-tile-l { font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.cm-tile-s { font-size: 11.5px; color: var(--muted); }

/* ===== Accueil ultra-simple (Apple) ===== */
.simple-home { margin: 8px 0 30px; }
.sh-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sh-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px 24px; }
.sh-k { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.sh-v { font-family: var(--display); font-size: 38px; line-height: 1.05; letter-spacing: -.02em; margin: 8px 0 6px; color: var(--text); }
.sh-v.neg { color: #ff6b6b; }
.sh-exp { font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.sh-graph { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px 24px; margin-top: 14px; }
.sh-graph-h { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.sh-bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; }
.sh-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.sh-bar i { display: block; width: 100%; max-width: 56px; min-height: 4px; background: var(--flf); border-radius: 8px 8px 4px 4px; transition: height .4s ease; }
.sh-bar-v { font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sh-bar-m { font-size: 11px; color: var(--faint); text-transform: capitalize; }
@media (max-width: 560px){ .sh-v { font-size: 30px; } .sh-bars { height: 120px; gap: 8px; } }

/* ===== Parcours de production (roadmap projet · espace client) ===== */
.roadmap-sec { margin: 8px 0 26px; }
.rm-empty { font-size: 13px; color: var(--faint); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px 18px; }
.rm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.rm-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.rm-solde { display: flex; gap: 30px; text-align: right; }
.rm-solde-c { display: flex; flex-direction: column; gap: 2px; }
.rm-solde-k { font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.rm-solde-paid { font-size: 16px; font-weight: 700; color: #2ecc71; }
.rm-solde-rest { font-size: 16px; font-weight: 700; color: var(--text); }
.rm-admin { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.rm-admin-f { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.rm-admin-f input { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; color: var(--text); padding: 8px 11px; font-size: 13px; color-scheme: dark; }
.rm-admin-hint { font-size: 11px; color: var(--flf); align-self: center; }
.rm-next { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; }
.rm-next-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--flf); margin-bottom: 10px; }
.rm-next-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rm-next-l h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.rm-next-l p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 5px; max-width: 560px; }
.rm-cta { flex-shrink: 0; }
.rm-timeline { display: flex; flex-direction: column; gap: 10px; }
.rm-card { display: flex; align-items: flex-start; gap: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; transition: border-color .15s; }
.rm-num { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 13px; background: var(--surface-2); color: var(--faint); border: 1px solid var(--line); }
.rm-card-b { flex: 1; min-width: 0; }
.rm-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.rm-card-h h4 { font-size: 15px; font-weight: 700; }
.rm-date { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.rm-card-b p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.rm-validate { margin-top: 10px; }
.rm-pill { flex-shrink: 0; align-self: center; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.rm-pill-btn { border: none; cursor: pointer; transition: filter .12s; }
.rm-pill-btn:hover { filter: brightness(1.2); }
.rm-name-edit { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14.5px; font-weight: 700; padding: 6px 10px; }
.rm-name-edit:focus { outline: none; border-color: var(--flf); }
.rm-date-edit { flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; padding: 5px 8px; color-scheme: dark; }
.rm-card-del { flex-shrink: 0; align-self: center; width: 26px; height: 26px; border-radius: 50%; border: none; background: transparent; color: var(--faint); font-size: 12px; cursor: pointer; transition: background .12s, color .12s; }
.rm-card-del:hover { background: rgba(255,77,79,.16); color: #ff6b6b; }
/* Éditeur admin du parcours : menu statut + flèches de réordonnancement + ajout d'étape */
.rm-status-sel { flex-shrink: 0; align-self: center; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; color-scheme: dark; background: var(--surface-2); color: var(--text); }
.rm-status-sel.rm-pill-fait { background: rgba(25,169,116,.16); color: #19a974; border-color: rgba(25,169,116,.35); }
.rm-status-sel.rm-pill-en_cours { background: rgba(255,107,82,.16); color: var(--flf); border-color: rgba(255,107,82,.35); }
.rm-card-tools { display: flex; align-items: center; gap: 2px; flex-shrink: 0; align-self: center; margin-left: 4px; }
.rm-mini { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12px; cursor: pointer; transition: background .12s, color .12s; }
.rm-mini:hover { background: var(--surface); color: var(--text); }
.rm-add-sel { max-width: 230px; }
.rm-link-sel { margin-top: 10px; max-width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12.5px; padding: 7px 10px; color-scheme: dark; cursor: pointer; }
.rm-doc-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: 13px; font-weight: 600; padding: 8px 13px; cursor: pointer; transition: border-color .15s; }
.rm-doc-link:hover { border-color: var(--flf); color: var(--flf); }
@media (max-width: 700px) { .rm-card-tools { margin-left: 0; } }
/* Case Acompte (porte d'entrée) + étapes verrouillées (cadenas) */
.rm-gate { border-style: dashed; }
.rm-gate.rm-en_cours { border-color: rgba(255,107,82,.55); background: rgba(255,107,82,.06); }
.rm-locked { opacity: .55; }
.rm-locked .rm-num { background: var(--surface-2); color: var(--faint); border-style: dashed; }
.rm-pill-locked { background: var(--surface-2); color: var(--faint); }
.rm-next-gate { border-color: rgba(255,107,82,.5); background: rgba(255,107,82,.05); }
.rm-num .ic-svg { width: 18px; height: 18px; }
.rm-pill-locked .ic-svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; }
/* États */
.rm-fait .rm-num { background: rgba(46,204,113,.16); color: #2ecc71; border-color: rgba(46,204,113,.4); }
.rm-fait .rm-card-h h4 { color: var(--muted); }
.rm-pill-fait { background: rgba(46,204,113,.16); color: #2ecc71; }
.rm-en_cours { border-color: rgba(255,107,82,.5); background: rgba(255,107,82,.05); }
.rm-en_cours .rm-num { background: var(--flf); color: #000; border-color: var(--flf); }
.rm-pill-en_cours { background: rgba(255,107,82,.18); color: var(--flf); }
.rm-a_venir .rm-card-h h4 { color: var(--text); opacity: .8; }
.rm-pill-a_venir { background: var(--surface-2); color: var(--faint); }
@media (max-width: 640px){ .rm-head { flex-direction: column; } .rm-solde { text-align: left; gap: 20px; } }
/* Radar d'opportunités */
.opp-group { margin-top: 22px; }
.opp-group-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-bottom: 10px; }
.opp-group-h span { font-size: 11px; color: var(--faint); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.opp-card { text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; cursor: pointer; transition: border-color .2s, transform .15s; }
.opp-card:hover { border-color: rgba(255,107,82,.5); transform: translateY(-2px); }
.opp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.opp-card-n { font-family: var(--display); text-transform: uppercase; font-size: 14px; color: var(--text); letter-spacing: -.01em; }
.opp-score { flex: none; font-family: var(--display); font-size: 13px; padding: 2px 9px; border-radius: 8px; color: var(--hc); background: rgba(255,107,82,.12); }
.opp-score.heat-hot { --hc: #FF6B52; } .opp-score.heat-warm { --hc: #f0a04b; } .opp-score.heat-cold { --hc: #8a8a8a; background: var(--surface-2); }
.prosp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.prosp-chip { font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); transition: all .2s; }
.prosp-chip:hover { color: var(--text); }
.prosp-chip.on { background: #FF6B52; border-color: #FF6B52; color: #fff; }
.prosp-chip span { opacity: .8; font-weight: 700; margin-left: 3px; }
.prosp-count { font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.prosp-list { display: flex; flex-direction: column; }
.prosp-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; cursor: pointer;
  border-bottom: 1px solid var(--line-2); transition: background .15s; border-radius: 8px; }
.prosp-row:hover { background: var(--surface-2); }
.prosp-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prosp-l b { font-size: 14px; color: var(--text); }
.prosp-l span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prosp-r { display: flex; align-items: center; gap: 8px; flex: none; }
.prosp-del { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: none; background: transparent; color: var(--faint); font-size: 12px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s, background .12s, color .12s; }
.prosp-row:hover .prosp-del { opacity: 1; }
.prosp-del:hover { background: rgba(255,77,79,.16); color: #ff6b6b; }
.prosp-draft { color: #6a4cff; font-size: 13px; }
.prosp-stage { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.prosp-stage.st-cible, .prosp-stage.st-touche { background: rgba(255,107,82,.14); color: #FF6B52; }
.prosp-stage.st-conversation, .prosp-stage.st-espace, .prosp-stage.st-proposition, .prosp-stage.st-closing { background: rgba(106,76,255,.16); color: #8a74ff; }
.prosp-stage.st-gagne { background: rgba(46,204,113,.16); color: #2ecc71; }
.prosp-stage.st-perdu { background: var(--surface-2); color: var(--faint); }
.prosp-pager { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 13px; }
/* Prévisionnel */
.prev-base { font-size: 13px; color: var(--text); background: var(--surface-2); border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; }
.prev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.prev-card { background: var(--surface-2); border-radius: 12px; padding: 14px; border-top: 3px solid var(--line-2); }
.prev-card span { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 6px; }
.prev-card b { font-family: var(--display); font-size: 20px; color: var(--text); }
.prev-card.ok { border-top-color: #2ecc71; }
.prev-card.bad { border-top-color: #e74c3c; }
.prev-card.bad b { color: #e74c3c; }
.prev-sec { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.prev-line { display: flex; justify-content: space-between; gap: 14px; padding: 11px 15px; font-size: 13.5px; color: var(--text); border-bottom: 1px solid var(--line-2); }
.prev-line:last-child { border-bottom: none; }
.prev-line b { font-weight: 700; }
.prev-action { font-size: 14px; line-height: 1.5; color: var(--text); background: rgba(255,107,82,.1); border-left: 3px solid #FF6B52; border-radius: 8px; padding: 12px 14px; }
.prev-action b { color: #FF6B52; }
/* Prospection · types + modèles */
.prosp-type { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.prosp-type.tp-cible { background: rgba(255,255,255,.06); color: var(--muted); }
.prosp-type.tp-prospect { background: rgba(255,107,82,.16); color: #FF6B52; }
.prosp-type.tp-client { background: rgba(46,204,113,.16); color: #2ecc71; }
.prosp-bulk { background: none; border: none; color: #FF6B52; cursor: pointer; font: inherit; font-size: 12px; padding: 0; }
.prosp-bulk:hover { text-decoration: underline; }
.tpl-item { position: relative; margin-bottom: 16px; padding-right: 26px; }
.tpl-label { margin-bottom: 6px; font-weight: 600; }
.tpl-body { font-size: 13px; line-height: 1.5; }
.tpl-del { position: absolute; top: 0; right: 0; background: none; border: none; color: var(--faint); cursor: pointer; font-size: 13px; }
.tpl-del:hover { color: #e74c3c; }
/* Studio contenu · sélecteur client */
.cp-forwho { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
/* ============ PROSPECTION · centre de commandement animé ============ */
.pz-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 12px; margin: 6px 0 22px; }
.pz-zone { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 15px; border-radius: 16px; cursor: pointer; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: transform .28s var(--ease-out), box-shadow .28s, border-color .28s; }
.pz-zone::before { content: ""; position: absolute; inset: 0; background: var(--zc); opacity: 0; transition: opacity .28s; }
.pz-zone:hover { transform: translateY(-5px); border-color: var(--zc); box-shadow: 0 18px 46px -14px var(--zc); }
.pz-zone.on { border-color: var(--zc); animation: pzPulse 2.4s ease-in-out infinite; }
.pz-zone.on::before { opacity: .14; }
.pz-zname { position: relative; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--zc); }
.pz-zn { position: relative; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--text); }
.pz-zsub { position: relative; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
@keyframes pzPulse { 0%,100% { box-shadow: 0 0 0 1px var(--zc), 0 16px 48px -18px var(--zc); } 50% { box-shadow: 0 0 0 1px var(--zc), 0 20px 64px -10px var(--zc); } }
.prosp-row { transition: background .15s, transform .18s var(--ease-out), box-shadow .2s; }
.prosp-row.sel { background: rgba(255,107,82,.13); box-shadow: inset 3px 0 0 #FF6B52, 0 0 26px -8px rgba(255,107,82,.6); transform: translateX(4px); }
.prosp-row.sel b { color: #FF6B52; }
.pz-rtag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--zc); background: color-mix(in srgb, var(--zc) 15%, transparent); }
/* ============ Couche de mouvement globale · entrée vivante des blocs à chaque vue ============ */
/* (la transition inter-vues view-transition existe déjà plus haut · on ne la touche pas) */
@media (prefers-reduced-motion: no-preference) {
  #view > .hero, #view > .section-head, #view > .ck-grid, #view > .pz-zones, #view > .gal-masonry,
  #view > .prosp-list, #view > .ent-card, #view > .ent-cols, #view > .cp-cols, #view .qbar, #view .cfo {
    animation: vRise .42s var(--ease-out) both;
  }
}
@keyframes vRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* ============ Command center · accueil console (stats + graphe) ============ */
.cc-dash { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin: 18px 0 26px; }
@media (max-width: 760px) { .cc-dash { grid-template-columns: 1fr; } }
.cc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; }
.cc-stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.cc-stat span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.cc-stat b { display: block; margin-top: 6px; font-family: var(--display); font-size: clamp(28px, 3vw, 36px); line-height: 1.02; color: var(--text); letter-spacing: -.01em; }
.cc-stat.neg b { color: #e74c3c; }
.cc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.cc-card-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 12px; }
.cc-bars { display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; height: 124px; }
.cc-bar { flex: 1; max-width: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; min-width: 0; }
.cc-bar-v { font-size: 12px; font-weight: 700; color: var(--text); }
.cc-bar-track { width: 100%; max-width: 60px; flex: 1; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.cc-bar-track i { display: block; width: 100%; border-radius: 6px 6px 0 0; animation: ccGrow .85s var(--ease-out) both; }
@keyframes ccGrow { from { height: 0; } }
.cc-bar-l { font-size: 10px; color: var(--muted); text-align: center; width: 100%; line-height: 1.2; word-break: break-word; }
/* Confidentialité : chiffres masqués par défaut sur l'accueil (démo écran à un collègue) */
.cc-dash-wrap { position: relative; }
.cc-eye { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s; }
.cc-eye:hover { color: var(--text); border-color: var(--line-2); }
.cc-dash-wrap .cc-stat b, .cc-dash-wrap .cc-bar-v, .cc-dash-wrap .cc-bar-track { transition: filter .35s var(--ease-out); }
.cc-dash-wrap.masked .cc-stat b, .cc-dash-wrap.masked .cc-bar-v, .cc-dash-wrap.masked .cc-bar-track { filter: blur(9px); user-select: none; pointer-events: none; }
.td-conv-wrap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.td-conv-wrap #tdConv { background: var(--flf); color: #fff; border-color: var(--flf); }
/* Déplacer / importer un document vers un espace */
.doc-mv { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 7px; width: 24px; height: 24px; cursor: pointer; font-size: 13px; line-height: 1; transition: color .2s, border-color .2s; }
.doc-mv:hover { color: var(--flf); border-color: var(--flf); }
.mv-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.mv-sec { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 10px 2px 2px; }
.mv-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; transition: border-color .2s, transform .12s; }
.mv-row:hover { border-color: var(--flf); transform: translateX(2px); }
.mv-row.on { border-color: var(--line-2); opacity: .65; }
.mv-name { flex: 1; font-weight: 600; color: var(--text); font-size: 14px; }
.mv-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; }
.mv-tag.c { background: rgba(255,107,82,.12); color: var(--flf); }
.mv-tag.p { background: var(--line); color: var(--muted); }
.mv-here { font-size: 10px; color: var(--faint); font-style: italic; }
.td-conv-title { font-weight: 700; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.td-conv-test { display: flex; gap: 8px; align-items: center; }
/* Devis généré en grande tuile · on affiche la COUVERTURE du document (jamais le prix) */
.gen-cover { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 20px 18px; background: #000; color: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.gen-cover.paper-light { background: #fff; color: #111; }
.gen-kicker { font-size: 8.5px; letter-spacing: .18em; font-weight: 700; opacity: .65; text-transform: uppercase; }
.gen-kicker i { font-style: normal; opacity: .6; margin: 0 2px; }
.gen-mid { margin-top: 14px; }
.gen-title { font-family: var(--display); font-size: 19px; line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gen-rule { width: 30px; height: 2px; background: var(--doc-accent, #fff); margin: 12px 0 0; }
.gen-foot { font-size: 8.5px; letter-spacing: .1em; font-weight: 600; opacity: .55; text-transform: uppercase; margin-top: auto; padding-top: 14px; }
.gen-name-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.gen-name-row .doc-name { flex: 1; min-width: 0; }
.gen-stamp { flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.gen-stamp.tosign { background: rgba(255,107,82,.14); color: var(--flf); border-color: rgba(255,107,82,.4); }
.gen-stamp.ok { background: rgba(60,200,120,.14); color: #4ade80; border-color: rgba(60,200,120,.35); }
.gen-send { margin-top: 10px; width: 100%; background: var(--flf); color: #fff; border: none; border-radius: 9px; padding: 9px 12px; font-weight: 700; font-size: 12.5px; cursor: pointer; transition: filter .2s; }
.gen-send:hover { filter: brightness(1.08); }
/* Fenêtre « Envoyer le devis + accès » · 3 voies */
.da-block { padding: 14px 0; border-top: 1px solid var(--line); }
.da-block:first-of-type { border-top: none; padding-top: 4px; }
.da-l { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-bottom: 8px; }
.da-row { display: flex; gap: 8px; align-items: center; }
.da-link-box { margin-top: 10px; }
.da-link-acts { display: flex; gap: 8px; margin-top: 8px; }
.da-link-acts .btn { flex: 1; }
/* Reçus de lecture · 👁 qui a vu un document, et quand */
.seen-slot { display: block; margin-top: 4px; }
.seen-chip { font-size: 11px; font-weight: 600; letter-spacing: .01em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: default; line-height: 1.5; }
.seen-chip.on { color: #4ade80; border-color: rgba(60,200,120,.32); background: rgba(60,200,120,.08); cursor: pointer; transition: filter .2s; }
.seen-chip.on:hover { filter: brightness(1.12); }
.seen-chip.off { color: var(--faint); }
.gen-seen { margin-top: 8px; }
.gen-seen:empty { display: none; }
/* Jauge d'engagement · alerte renouvellement (codes Apple + léger jeu vidéo) */
.engage-card { position: relative; margin: 26px 0 0; padding: 22px 24px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-2); }
.engage-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(120% 100% at 100% 0, var(--accent-soft, rgba(255,107,82,.10)), transparent 60%); }
.eng-row { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.eng-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.eng-badge { font-family: var(--display); font-size: 20px; color: var(--text); line-height: 1; }
.eng-badge i { font-style: normal; font-size: 13px; color: var(--faint); }
.eng-headline { position: relative; z-index: 1; font-family: var(--display); font-size: 24px; line-height: 1.05; margin: 12px 0 4px; }
.eng-sub { position: relative; z-index: 1; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.eng-bar { position: relative; z-index: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.eng-bar i { display: block; height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, #6ad19a, #43c47a); transition: width 1.1s cubic-bezier(.16,1,.3,1); position: relative; }
.eng-bar i::after { content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: engShimmer 2.4s linear infinite; }
@keyframes engShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.eng-cta { position: relative; z-index: 1; margin-top: 16px; background: var(--flf); color: #fff; border: none;
  border-radius: 11px; padding: 12px 22px; font-weight: 700; font-size: 14px; cursor: pointer; transition: filter .2s, transform .12s; }
.eng-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.eng-cta:disabled { opacity: .8; cursor: default; transform: none; }
/* bientôt fini / terminé → corail, on pousse au renouvellement */
.eng-soon .eng-bar i, .eng-ended .eng-bar i { background: linear-gradient(90deg, #ff8a73, var(--flf)); }
.eng-soon, .eng-ended { border-color: rgba(255,107,82,.45); animation: engPulse 2.6s ease-in-out infinite; }
@keyframes engPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,107,82,0); } 50% { box-shadow: 0 0 26px -6px rgba(255,107,82,.5); } }
.eng-upcoming .eng-bar i { background: linear-gradient(90deg, #9aa0ff, #6f78ff); }
.eng-signed .eng-bar i { background: linear-gradient(90deg, #2ecc71, #27ae60); }
.eng-signed { border-color: rgba(46,204,113,.4); }
.eng-signed .eng-headline { color: #2ecc71; }
@media (prefers-reduced-motion: reduce) { .eng-bar i::after, .eng-soon, .eng-ended { animation: none; } .eng-bar i { transition: none; } }
/* Mise en avant document · grande miniature + action dans l'espace */
.dochi-card { display: flex; gap: 22px; align-items: stretch; margin: 26px 0 0; padding: 20px 22px; border-radius: 20px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.dochi-card.dochi-live { border-color: rgba(255,107,82,.4); animation: engPulse 2.8s ease-in-out infinite; }
.dh-cover { width: 132px; min-width: 132px; height: 184px; border-radius: 12px; flex: none; padding: 16px 14px; }
.dh-cover .gen-title { font-size: 16px; }
.dh-cover .gen-kicker { font-size: 7.5px; }
.dh-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.dh-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dh-head { font-family: var(--display); font-size: 23px; line-height: 1.05; margin: 8px 0 4px; }
.dh-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.dh-cta { align-self: flex-start; background: var(--flf); color: #fff; border: none; border-radius: 11px; padding: 12px 22px; font-weight: 700; font-size: 14px; cursor: pointer; transition: filter .2s, transform .12s; }
.dh-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
@media (max-width: 560px) { .dochi-card { flex-direction: column; } .dh-cover { width: 100%; min-width: 0; height: 160px; } }
/* THÈME CLAIR · cartes engagement + document · pas de halo qui bave, vraies ombres de carte */
body.theme-light .engage-card,
body.theme-light .dochi-card { background:#fff; border-color:rgba(0,0,0,.07); box-shadow:0 10px 30px rgba(0,0,0,.07); }
body.theme-light .dochi-card.dochi-live,
body.theme-light .engage-card.eng-soon,
body.theme-light .engage-card.eng-ended { animation:none; border-color:rgba(255,107,82,.5); box-shadow:0 10px 30px rgba(0,0,0,.07); }
body.theme-light .engage-card::after { opacity:.3; }
body.theme-light .eng-bar { background:rgba(0,0,0,.06); }
/* THÈME CLAIR · la couverture d'un document (gen-cover) reste son vrai papier (noir/blanc), jamais le gris .doc-cover */
body.theme-light .gen-cover { background: #000; color: #fff; }
body.theme-light .gen-cover.paper-light { background: #fff; color: #111; }
/* STUDIO DE MESSAGES · cold email · master-détail premium */
.modal.tplx { width: 96vw; }
.tplx-body { display: flex; gap: 0; padding: 0 !important; height: min(72vh, 640px); }
.tplx-list { width: 252px; flex: none; border-right: 1px solid var(--line); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.tplx-item { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, transform .1s; }
.tplx-item:hover { border-color: var(--line-2); transform: translateX(2px); }
.tplx-item.on { border-color: var(--flf); background: color-mix(in srgb, var(--flf) 8%, var(--surface)); }
.tplx-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tplx-item-name { font-weight: 600; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tplx-day { font-size: 10px; font-weight: 700; color: var(--flf); background: rgba(255,107,82,.13); padding: 2px 8px; border-radius: 99px; flex: none; }
.tplx-item-snip { display: block; font-size: 11px; color: var(--faint); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tplx-add { margin-top: auto; background: none; border: 1px dashed var(--line-2); color: var(--muted); border-radius: 13px; padding: 12px; cursor: pointer; font-size: 13px; font-weight: 600; transition: border-color .2s, color .2s; }
.tplx-add:hover { border-color: var(--flf); color: var(--flf); }
.tplx-edit { flex: 1; display: flex; flex-direction: column; padding: 18px 20px; min-width: 0; }
.tplx-title { font-size: 16px !important; font-weight: 600; margin-bottom: 12px; }
.tplx-vars { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tplx-chip { background: var(--surface-2); border: 1px solid var(--line); color: var(--flf); font-weight: 600; font-size: 12px; padding: 5px 11px; border-radius: 99px; cursor: pointer; transition: border-color .15s, transform .12s; }
.tplx-chip:hover { border-color: var(--flf); transform: translateY(-1px); }
.tplx-spacer { flex: 1; }
.tplx-toggle { background: none; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 99px; cursor: pointer; transition: border-color .15s, color .15s; }
.tplx-toggle.on { border-color: var(--flf); color: var(--flf); }
.tplx-area { flex: 1; resize: none; min-height: 0; line-height: 1.65; font-size: 14px; }
.tplx-preview { flex: 1; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px; font-size: 14px; line-height: 1.75; color: var(--text); animation: fadeIn .25s var(--ease-out) both; }
.tplx-var { background: rgba(255,107,82,.14); color: var(--flf); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.tplx-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
@media (max-width: 720px) { .tplx-body { flex-direction: column; height: auto; } .tplx-list { width: auto; border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; } .tplx-item { min-width: 168px; } .tplx-add { min-width: 140px; margin-top: 0; } }
/* Historique contact · timeline d'événements (envois, relances, notes) */
.ph-wrap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ph-head { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ph-add { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.ph-add .field { margin-bottom: 0; flex: 1; }
.ph-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; }
.ph-ev { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.ph-ev:first-child { border-top: none; }
.ph-ic { font-size: 15px; flex-shrink: 0; line-height: 1.3; }
.ph-ev-b { min-width: 0; }
.ph-ev-l { font-size: 13px; color: var(--text); font-weight: 500; }
.ph-ev-t { font-size: 11px; color: var(--faint); margin-top: 2px; }
/* COCKPIT PROSPECTION · sélecteur de vues + pipeline + à jouer (intelligence, surbrillance par chaleur) */
.prosp-views { display: flex; gap: 8px; margin: 14px 0 10px; }
.pv-tab { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 11px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.pv-tab:hover { border-color: var(--line-2); color: var(--text); }
.pv-tab.on { background: var(--flf); border-color: var(--flf); color: #fff; }
.prosp-view { margin-top: 6px; }
.heat-hot { --hc: #ff453a; } .heat-warm { --hc: #ff9f0a; } .heat-cold { --hc: #0a84ff; }
/* Pipeline kanban */
.pl-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.pl-col { flex: 0 0 232px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 62vh; }
.pl-col-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 4px 6px; }
.pl-col-h span { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; font-size: 11px; color: var(--text); }
.pl-col-b { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.pl-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--hc, var(--line)); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: transform .12s, border-color .2s; }
.pl-card:hover { transform: translateY(-2px); border-color: var(--hc); }
.pl-card.heat-hot { box-shadow: 0 0 18px -8px var(--hc); }
.pl-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-card-name { font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-score { font-size: 11px; font-weight: 800; color: var(--hc); flex: none; }
.pl-card-sub { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-empty { color: var(--faint); text-align: center; padding: 14px; font-size: 12px; }
/* À jouer */
.play-head { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.play-head b { color: var(--flf); }
.play-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.play-card { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 15px; padding: 14px 16px; cursor: pointer; overflow: hidden; transition: transform .14s, border-color .2s; }
.play-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hc); }
.play-rank { flex: none; font-family: var(--display); font-size: 15px; color: var(--faint); width: 22px; text-align: center; }
.play-card:hover { transform: translateY(-2px); border-color: var(--hc); }
.play-card.heat-hot { animation: playGlow 2.8s ease-in-out infinite; }
@keyframes playGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,69,58,0); } 50% { box-shadow: 0 0 26px -8px var(--hc); } }
.play-score { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: var(--hc); background: color-mix(in srgb, var(--hc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--hc) 35%, transparent); }
.play-main { flex: 1; min-width: 0; }
.play-name { font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-reason { font-size: 12.5px; color: var(--text); margin-top: 3px; }
.play-meta { font-size: 11px; color: var(--faint); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-site { color: #5b9dff; }
.play-stage { flex: none; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 720px) { .play-grid { grid-template-columns: 1fr; } }
/* Barre de signature · bouton TOUJOURS lisible (jamais la couleur de marque du client, ex. jaune SMICTOM) */
.doc-lb-sign .btn.approve, body.branded .doc-lb-sign .btn.approve, body.theme-light .doc-lb-sign .btn.approve { background: var(--flf); color: #fff; }
/* Pastille de type cliquable (reclassement rapide) */
button.prosp-type { cursor: pointer; font: inherit; transition: filter .15s, transform .12s; }
button.prosp-type:hover { filter: brightness(1.18); transform: translateY(-1px); }
/* Ligne prospection ENRICHIE · score + détails + raison */
.prosp-row { gap: 14px; align-items: center; }
.prosp-score { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--hc, var(--muted)); background: color-mix(in srgb, var(--hc, #888) 13%, transparent); border: 1px solid color-mix(in srgb, var(--hc, #888) 30%, transparent); }
.prosp-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prosp-l b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prosp-l .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prosp-reason { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prosp-site { text-decoration: none; }
.prosp-site:hover { filter: brightness(1.3); }
/* Trafic site */
.tr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tr-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; }
.tr-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--flf); margin-bottom: 10px; }
.tr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); }
.tr-row:last-child { border-bottom: 0; }
.tr-k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.tr-row b { font-family: var(--display); color: var(--text); }

/* ============================================================
   BOÎTE DE DÉPÔT PUBLIQUE · page autonome (sans login)
   ============================================================ */
#drop { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 22px; background: radial-gradient(120% 120% at 50% -10%, #18181a 0%, #0a0a0a 55%); }
.drop-wrap { width: 100%; max-width: 620px; text-align: center; }
.drop-logo { height: 30px; width: auto; margin: 0 auto 34px; display: block; opacity: .96; }
.drop-load { color: #9b9b9b; font-size: 14px; padding: 60px 0; }
.drop-card { background: #121214; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: 38px 34px 32px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.drop-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FF6B52; margin-bottom: 12px; }
.drop-title { font-size: clamp(26px, 5vw, 38px); line-height: 1.04; font-weight: 800; color: #fff; margin: 0 0 12px; letter-spacing: -.01em; }
.drop-sub { font-size: 14px; line-height: 1.55; color: #a7a7ad; max-width: 460px; margin: 0 auto 26px; }
.drop-zone { border: 1.5px dashed rgba(255,255,255,.22); border-radius: 18px; padding: 46px 22px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; background: rgba(255,255,255,.015); }
.drop-zone:hover, .drop-zone:focus { border-color: rgba(255,107,82,.6); background: rgba(255,107,82,.05); outline: none; }
.drop-zone.over { border-color: #FF6B52; background: rgba(255,107,82,.1); transform: scale(1.01); }
.drop-zone-ic { font-size: 34px; color: #FF6B52; margin-bottom: 12px; line-height: 1; }
.drop-zone-t { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.drop-zone-s { font-size: 13px; color: #8e8e94; }
.drop-browse { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.drop-warn { margin-top: 18px; font-size: 12.5px; color: #d8b24a; background: rgba(216,178,74,.08); border: 1px solid rgba(216,178,74,.2); border-radius: 10px; padding: 10px 14px; }
.drop-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.drop-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 11px; padding: 11px 14px; font-size: 13px; }
.drop-row-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e9e9ee; }
.drop-row-z { color: #76767c; font-size: 12px; flex-shrink: 0; }
.drop-row-st { flex-shrink: 0; font-size: 12px; font-weight: 600; color: #8e8e94; min-width: 64px; text-align: right; }
.drop-row-st.run { color: #FF6B52; }
.drop-row-st.ok { color: #46c17f; }
.drop-row-st.err { color: #e0604f; min-width: 0; }
.drop-card.drop-has-done { border-color: rgba(70,193,127,.3); }
.drop-msg .drop-emoji { font-size: 42px; margin-bottom: 14px; }
.drop-msg h1 { font-size: 26px; color: #fff; margin: 0 0 10px; }
.drop-msg p { font-size: 14px; color: #a7a7ad; line-height: 1.5; }
.drop-passf { display: flex; gap: 10px; max-width: 360px; margin: 4px auto 0; }
.drop-passf .field { margin: 0; }
.drop-pass-err { color: #e0604f; font-size: 13px; margin-top: 12px; min-height: 18px; }
.drop-foot { margin-top: 26px; font-size: 11.5px; color: #66666c; letter-spacing: .01em; }
/* dialogue admin du lien */
.dlk-linkbox { display: flex; gap: 8px; align-items: center; }
.dlk-link { margin: 0; font-size: 13px; color: var(--text); }
.dlk-vis { margin-top: 9px; font-size: 12.5px; color: var(--muted); background: rgba(255,107,82,.06); border: 1px solid rgba(255,107,82,.16); border-radius: 9px; padding: 9px 12px; }
.fold-docs { margin-top: 22px; }
.fold-docs-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 2px 10px; }

/* Tuile « fichier sans aperçu » (RAW, ProRes, MXF, audio, doc…) · icône + extension, façon Finder */
.file-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--surface-2); cursor: pointer; position: relative; }
.file-tile .ft-ic { color: var(--muted); opacity: .9; }
.file-tile .ft-ic .ic-svg.big { width: 46px; height: 46px; }
.file-tile .ft-ext { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); background: var(--line-2); padding: 3px 9px; border-radius: 100px; }
.file-tile.ft-photo .ft-ic { color: #3a8f6f; }
.file-tile.ft-video .ft-ic { color: #FF6B52; }
.file-tile.ft-audio .ft-ic { color: #8a6fd0; }
.file-tile.ft-pdf   .ft-ic { color: #d05a4a; }
.file-tile.ft-archive .ft-ic { color: #c79a3a; }
.file-tile:hover { filter: brightness(1.03); }

/* Zone de dépôt visible DANS un dossier (admin) · clic ou glisser-déposer */
.fold-dz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 1.5px dashed var(--line); border-radius: 14px; padding: 18px; margin: 0 0 20px; cursor: pointer; transition: border-color .2s, background .2s; background: var(--surface); }
.fold-dz.big { padding: 52px 18px; }
.fold-dz:hover, .fold-dz:focus { border-color: var(--flf); background: rgba(255,107,82,.05); outline: none; }
.fold-dz.over { border-color: var(--flf); background: rgba(255,107,82,.1); }
.fold-dz-ic { font-size: 26px; color: var(--flf); line-height: 1; }
.fold-dz-t { font-size: 15px; font-weight: 700; color: var(--text); }
.fold-dz-s { font-size: 12.5px; color: var(--muted); }

/* Vivier : indice « Modifier » sur chaque personne (poussé à droite, discret) */
.crew-pick-item { position: relative; }
.crew-pick-edit { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); opacity: .6; white-space: nowrap; transition: opacity .15s, color .15s; }
.crew-pick-item:hover .crew-pick-edit { opacity: 1; color: var(--cc, #FF6B52); }

/* 3 modes de livraison · sélecteur */
.dm-list { display: flex; flex-direction: column; gap: 12px; }
.dm-opt { display: flex; align-items: flex-start; gap: 14px; text-align: left; width: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s, transform .12s; }
.dm-opt:hover { border-color: rgba(255,107,82,.4); transform: translateY(-1px); }
.dm-opt.on { border-color: #FF6B52; background: rgba(255,107,82,.06); }
.dm-ic { font-size: 22px; line-height: 1; flex: none; margin-top: 1px; }
.dm-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.dm-t { font-weight: 700; font-size: 15px; color: var(--text); }
.dm-s { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.dm-check { flex: none; color: #FF6B52; font-weight: 800; font-size: 16px; opacity: 0; transition: opacity .15s; }
.dm-opt.on .dm-check { opacity: 1; }
/* badge « Révision » sur une tuile vidéo (téléchargeable + modifs) */
.val-flag.vf-rev { background: rgba(255,107,82,.16); color: #FF6B52; border-color: rgba(255,107,82,.32); }

/* Finder : glisser un fichier sur un dossier */
.gallery-item[draggable="true"] { cursor: grab; }
.gallery-item.dragging { opacity: .45; }
.gf-chip.gf-drop { border-color: var(--flf) !important; background: rgba(255,107,82,.14) !important; color: var(--flf); transform: translateY(-1px); }

/* Dossiers en tuiles (façon Finder) dans la galerie */
.gal-folder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 200px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; text-align: center; padding: 18px; transition: border-color .15s, transform .2s var(--ease-out), background .15s; }
.gal-folder:hover { border-color: var(--line); transform: translateY(-3px); }
.gal-folder-ic { color: #5b9bd5; line-height: 1; }
.gal-folder-ic .ic-svg.big { width: 58px; height: 58px; }
.gal-folder-t { display: flex; flex-direction: column; gap: 3px; }
.gal-folder-n { font-size: 14.5px; font-weight: 600; color: var(--text); }
.gal-folder-c { font-size: 11.5px; color: var(--muted); }
.gal-folder.gf-drop { border-color: var(--flf); background: rgba(255,107,82,.1); transform: translateY(-2px); }

/* Fil d'Ariane des dossiers (façon Finder) */
.gf-crumb { background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 9px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color .12s, background .12s; }
.gf-crumb:hover { color: var(--text); background: var(--surface-2); }
.gf-crumb.on { color: var(--text); }
.gf-crumb .ic-svg { width: 15px; height: 15px; }
.gf-sep { color: var(--faint); font-size: 13px; }
.gf-crumb.gf-drop { color: var(--flf); background: rgba(255,107,82,.14); }

/* Menu (kebab) sur une tuile dossier + dossier draggable */
.gal-folder { position: relative; }
.gf-menu { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; z-index: 3; }
.gf-menu:hover { color: var(--text); }
.gf-menu .ic-svg { width: 16px; height: 16px; }
.gal-folder:hover .gf-menu { opacity: 1; }
.gal-folder[draggable="true"] { cursor: grab; }
.gal-folder.dragging { opacity: .45; }
@media (max-width: 720px) { .gf-menu { opacity: 1; } }

/* ============================================================
   ÉQUIPE / RH
   ============================================================ */
.hr-wrap { max-width: 1100px; margin: 0 auto; padding: 8px 0 60px; }
.hr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.hr-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.01em; margin: 8px 0 0; line-height: 1; }
.hr-title em { font-style: italic; color: var(--flf); }
.hr-lead { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 640px; margin: 14px 0 0; }
.hr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.hr-kpi { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px 22px; }
.hr-kpi-k { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hr-kpi-v { font-family: var(--display); font-size: 30px; margin: 8px 0 4px; letter-spacing: -.01em; }
.hr-kpi-s { font-size: 12.5px; color: var(--faint); }
.hr-seg { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.seg-b { border: none; background: none; color: var(--muted); font-size: 13.5px; font-weight: 650; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.seg-b.on { background: var(--text); color: var(--bg); }
.seg-b:not(.on):hover { color: var(--text); }
.hr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hr-card { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px; cursor: pointer; transition: border-color .15s, transform .2s var(--ease-out); }
.hr-card:hover { border-color: rgba(255,107,82,.4); transform: translateY(-3px); }
.hr-ava { width: 50px; height: 50px; border-radius: 50%; flex: none; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.hr-ava.mono { font-family: var(--display); font-size: 17px; color: #fff; background: linear-gradient(150deg, var(--cc,#FF6B52), color-mix(in srgb, var(--cc,#FF6B52) 28%, #000)); }
.hr-ava.lg { width: 76px; height: 76px; }
.hr-ava.lg.mono { font-size: 26px; }
.hr-card-b { flex: 1; min-width: 0; }
.hr-card-n { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-card-r { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.hr-card-tags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.hr-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; }
.hr-tag.free { background: rgba(255,107,82,.16); color: #FF6B52; }
.hr-tag.sal { background: rgba(79,140,255,.18); color: #6fa8ff; }
.hr-tag.ent { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.hr-card-pay { font-family: var(--display); font-size: 14px; color: var(--text); text-align: right; white-space: nowrap; }
.hr-empty { text-align: center; padding: 60px 20px; }
.hr-empty-ic { font-size: 40px; margin-bottom: 14px; }
.hr-empty-t { font-size: 18px; font-weight: 700; }
.hr-empty-s { color: var(--muted); font-size: 13.5px; margin: 8px auto 18px; max-width: 380px; line-height: 1.5; }
.hr-foot-note { margin-top: 30px; font-size: 12.5px; color: var(--faint); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; }
/* fiche personne */
.hr-person-head { display: flex; align-items: center; gap: 18px; margin: 8px 0 26px; }
.hr-person-id { flex: 1; min-width: 0; }
.hr-person-n { font-family: var(--display); text-transform: uppercase; font-size: clamp(24px,4vw,34px); margin: 0; letter-spacing: -.01em; }
.hr-person-tags { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.hr-person-role { font-size: 13px; color: var(--muted); }
.hr-person-mail { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.hr-sec { margin-top: 26px; }
.hr-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hr-sec-h h2 { font-family: var(--display); text-transform: uppercase; font-size: 17px; margin: 0; }
.hr-sec-x { font-size: 12px; color: var(--faint); }
.hr-pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.hr-pf-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 20px; }
.hr-pf-card.due { border-color: rgba(245,158,11,.4); }
.hr-pf-k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hr-pf-v { font-family: var(--display); font-size: 24px; margin: 8px 0 3px; }
.hr-pf-s { font-size: 12px; color: var(--faint); }
.hr-rows { display: flex; flex-direction: column; gap: 8px; }
.hr-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; }
.hr-row-ic { font-size: 17px; flex: none; }
.hr-row-n { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-row-a { font-family: var(--display); font-size: 14px; color: var(--text); white-space: nowrap; }
.hr-pay-toggle { font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 100px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.hr-pay-toggle.on { background: rgba(70,193,127,.16); color: #46c17f; border-color: rgba(70,193,127,.3); }
.hr-row-x { width: 24px; height: 24px; border-radius: 50%; border: none; background: transparent; color: var(--faint); font-size: 12px; cursor: pointer; flex: none; }
.hr-row-x:hover { background: rgba(224,96,79,.15); color: #e0604f; }

/* ============================================================
   RESPIRATION · grands espaces entre les blocs (François : "que ça respire partout !!!")
   Les gros écarts laissent voir le fond noir = des bandes de séparation, de l'air, de la grandeur.
   ============================================================ */
.brief { margin: 12px 0 60px; padding: 36px 40px; }
.brief-goal { margin-top: 30px; padding-top: 26px; }
.war-table { margin-top: 34px; padding-top: 30px; }
.film-bridge { margin: 0 0 60px; padding: 34px 38px; }
.cfo { margin-top: 64px; padding: 34px 38px; }
.cfo-stats { gap: 16px; margin: 24px 0 24px; }
.fcast { margin-top: 64px; }
.pilot { margin-top: 48px; }
.ck-hero { padding: 36px 40px; margin-bottom: 34px; }
.ck-grid { gap: 24px; margin-top: 48px; }
.ck-treso { margin-top: 48px; }
.fort-grid { gap: 24px; margin-top: 40px; }
.fort-tile { padding: 26px 24px; min-height: 168px; }
#view > .section-head { margin-top: 80px; }
.cl-serv-grid { margin-top: 44px; }
.order-cta { margin: 44px 0 80px; }
.hr-sec { margin-top: 52px; }
.hr-kpis { margin-bottom: 44px; }
.hr-grid { gap: 18px; }
@media (max-width: 720px) {
  .brief { padding: 24px 20px; margin-bottom: 40px; }
  .cfo, .film-bridge, .ck-hero { padding: 24px 20px; }
  .cfo, .fcast { margin-top: 44px; }
  #view > .section-head { margin-top: 56px; }
}

/* ============================================================
   ENVIRONNEMENT · SWOT vivant (air, grandeur, accent corail ponctuel)
   ============================================================ */
.env-hero p b { color: var(--text); font-weight: 600; }
.env-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 40px; }
.env-stamp { font-size: 12.5px; color: var(--faint); }
.env-old { color: #FF6B52; font-weight: 700; }

.env-synth { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 760px; margin: 0 0 32px; }
.env-coup { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid #FF6B52; margin-bottom: 24px; }
.env-coup .ec-k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #FF6B52; }
.env-coup .ec-v { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.45; }

.env-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 6px; }
.env-quad { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; }
.env-quad .eq-h { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.env-quad .eq-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; }
.env-quad ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.env-quad li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.env-quad li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }
.env-quad li.eq-none { color: var(--faint); font-style: italic; }
.env-quad.f-force .eq-ic { background: rgba(46,204,113,.14); color: #2ecc71; }
.env-quad.f-faib  .eq-ic { background: rgba(230,160,40,.16); color: #e6a028; }
.env-quad.f-opp   .eq-ic { background: rgba(255,107,82,.16); color: #FF6B52; }
.env-quad.f-men   .eq-ic { background: rgba(231,76,60,.16); color: #e74c3c; }
.env-quad.f-force { border-top: 2px solid rgba(46,204,113,.5); }
.env-quad.f-faib  { border-top: 2px solid rgba(230,160,40,.5); }
.env-quad.f-opp   { border-top: 2px solid rgba(255,107,82,.5); }
.env-quad.f-men   { border-top: 2px solid rgba(231,76,60,.5); }

.env-risks { display: flex; flex-direction: column; gap: 16px; }
.env-risk { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; border-left: 3px solid var(--line); }
.env-risk.crit { border-left-color: #e74c3c; }
.env-risk.warn { border-left-color: #e6a028; }
.env-risk.low  { border-left-color: var(--faint); }
.env-risk .er-top { display: flex; align-items: center; gap: 10px; }
.env-risk .er-top b { font-size: 15px; color: var(--text); font-weight: 700; }
.env-risk .er-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.env-risk.crit .er-dot { background: #e74c3c; box-shadow: 0 0 0 4px rgba(231,76,60,.16); }
.env-risk.warn .er-dot { background: #e6a028; box-shadow: 0 0 0 4px rgba(230,160,40,.16); }
.env-risk.low  .er-dot { background: var(--faint); }
.env-risk .er-lvl { margin-left: auto; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--faint); }
.env-risk.crit .er-lvl { color: #e74c3c; }
.env-risk.warn .er-lvl { color: #e6a028; }
.env-risk .er-why { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 9px; }
.env-risk .er-act { font-size: 14px; color: var(--text); line-height: 1.5; margin-top: 8px; }
.env-risk .er-act span { color: #FF6B52; font-weight: 700; }

.env-horizon { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border-radius: 16px; background: var(--surface-2, var(--surface)); border: 1px solid var(--line); margin-top: 44px; }
.env-horizon .eh-k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--faint); }
.env-horizon .eh-v { font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.env-foot { margin: 24px 0 80px; font-size: 12.5px; color: var(--faint); }

.env-empty { text-align: center; max-width: 540px; margin: 60px auto 80px; }
.env-empty-ic { font-size: 30px; color: #FF6B52; margin-bottom: 14px; }
.env-empty h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 0 0 14px; }
.env-empty p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; }

.env-loading { display: flex; align-items: center; gap: 18px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin: 20px 0 80px; }
.env-loading b { display: block; font-size: 16px; color: var(--text); margin-bottom: 5px; }
.env-loading span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.env-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: #FF6B52; animation: envspin .8s linear infinite; flex: none; }
@keyframes envspin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .env-grid { grid-template-columns: 1fr; gap: 16px; } .env-quad { padding: 20px; } }

/* Environnement v2 · veille externe + sources */
.env-veille { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #2ecc71; }
.env-veille::before { content: ""; }
.env-sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.env-sources .es-k { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--faint); margin-bottom: 12px; }
.env-sources .es-list { display: flex; flex-wrap: wrap; gap: 9px; }
.env-sources .es-list a, .env-sources .es-list span { font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; text-decoration: none; transition: border-color .15s, color .15s; }
.env-sources .es-list a:hover { color: var(--text); border-color: rgba(255,107,82,.5); }

/* Statut « Refusé » des devis/factures · discret, lu comme abandonné (pas en cours) */
.status-pill.refuse { background: rgba(231,76,60,.12); color: #e74c3c; border: 1px solid rgba(231,76,60,.32); text-decoration: line-through; text-decoration-thickness: 1px; }
.badge.declined { background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.3); color: #e74c3c; }

/* Pastille de statut cliquable dans la liste devis/factures */
button.doc-st-btn { font-family: inherit; display: inline-flex; align-items: center; gap: 4px; transition: filter .15s, border-color .15s; }
button.doc-st-btn:hover { filter: brightness(1.12); }
.dst-chev { font-size: 8px; opacity: .55; font-style: normal; }

/* Devis perdus · analyse & enseignements */
.ds-chip.bad b { color: #e74c3c; }
.lost-tag { display: inline-block; margin-left: 10px; font-size: 10.5px; font-weight: 600; color: #e74c3c; background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.28); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.lost-why { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; margin: 0 0 18px; }
.lost-why .lw-h { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--faint); margin-bottom: 16px; }
.lw-row { display: flex; align-items: center; gap: 14px; margin-bottom: 11px; }
.lw-row:last-child { margin-bottom: 0; }
.lw-lbl { flex: 0 0 200px; font-size: 13.5px; color: var(--text); }
.lw-bar { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.lw-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e74c3c, #ff6b52); border-radius: 999px; }
.lw-row b { flex: none; width: 22px; text-align: right; font-size: 13px; color: var(--muted); }
.lost-lesson { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid #FF6B52; margin: 0 0 22px; }
.lost-lesson .ll-k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #FF6B52; }
.lost-lesson .ll-v { font-size: 15px; line-height: 1.55; color: var(--text); }
.lost-lesson .ll-v b { color: #FF6B52; }
@media (max-width: 720px) { .lw-lbl { flex-basis: 120px; font-size: 12.5px; } }

/* Devis expiré (dérivé) · validité dépassée sans réponse = le silence */
.exp-tag { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; color: #e6a028; background: rgba(230,160,40,.12); border: 1px solid rgba(230,160,40,.32); border-radius: 999px; padding: 2px 8px; vertical-align: middle; white-space: nowrap; }

/* ============================================================
   LE DÉBRIEF DU SOIR · la présence (calme, bien-être, accent corail ponctuel)
   ============================================================ */
.debrief { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; margin: 0 0 60px; }
.debrief.slim { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; }
.db-slim-l { display: flex; align-items: center; gap: 14px; }
.db-slim-l b { display: block; font-size: 15px; color: var(--text); font-weight: 700; }
.db-slim-l span { font-size: 13px; color: var(--muted); }
.db-moon { font-size: 22px; line-height: 1; }
.db-head { margin-bottom: 18px; }
.db-eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #FF6B52; }
.db-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 6px 0 0; }
.db-streak { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.db-moods { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.db-mood { display: flex; align-items: center; gap: 8px; background: var(--surface-2, var(--surface)); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.db-mood span { font-size: 16px; }
.db-mood:hover { border-color: rgba(255,107,82,.5); color: var(--text); }
.db-mood.on { background: rgba(255,107,82,.12); border-color: #FF6B52; color: var(--text); }
.db-f { display: block; margin-bottom: 14px; }
.db-f > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.db-f i { color: var(--faint); font-style: normal; }
.db-actions { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.db-reply .db-r-head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.db-reply p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; }
.db-reply .db-r-win { color: var(--text); }
.db-r-tomorrow { display: flex; flex-direction: column; gap: 5px; padding: 16px 20px; border-radius: 14px; background: var(--surface-2, var(--surface)); border: 1px solid var(--line); border-left: 3px solid #FF6B52; margin: 16px 0; }
.db-r-tomorrow span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #FF6B52; }
.db-r-tomorrow b { font-size: 16px; color: var(--text); font-weight: 600; }
.db-r-close { font-size: 14px !important; color: var(--faint) !important; font-style: italic; }
@media (max-width: 720px) { .debrief { padding: 22px 20px; } .debrief.slim { flex-direction: column; align-items: flex-start; } }

/* UNE SEULE CHOSE · le coup du jour, en grand, tout en haut · anti-surcharge */
.onething { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 32px; margin: 12px 0 24px; border-left: 3px solid #FF6B52; }
.onething.done { border-left-color: #2ecc71; }
.ot-eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #FF6B52; margin-bottom: 14px; }
.ot-coup { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; padding: 6px 0; }
.ot-ic { font-size: 26px; flex: none; }
.ot-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ot-txt b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1.2; }
.ot-txt i { font-size: 14px; font-style: normal; color: var(--muted); }
.ot-go { font-size: 22px; color: var(--faint); flex: none; transition: transform .15s, color .15s; }
.ot-coup:hover .ot-go { color: #FF6B52; transform: translateX(4px); }
.ot-fait { margin-top: 18px; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 13px; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s; }
.ot-fait:hover { border-color: #2ecc71; color: #2ecc71; }
.ot-done { display: flex; align-items: center; gap: 14px; }
.ot-check { width: 32px; height: 32px; border-radius: 50%; background: rgba(46,204,113,.16); color: #2ecc71; display: grid; place-items: center; font-size: 16px; font-weight: 800; flex: none; }
.ot-done b { display: block; font-size: 16px; color: var(--text); }
.ot-done span { font-size: 13px; color: var(--muted); }

/* ============================================================
   LE CLOSER · copilote de RDV (PCM 6 profils)
   ============================================================ */
.cl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cl-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cl-hint { font-size: 14px; color: var(--muted); line-height: 1.6; padding: 18px 0; max-width: 680px; }
.cl-load { display: flex; align-items: center; gap: 14px; padding: 28px 0; color: var(--muted); font-size: 14px; }
.cl-ta { width: 100%; min-height: 160px; resize: vertical; line-height: 1.6; font-size: 14px; margin-bottom: 16px; }
.cl-consent { background: rgba(230,160,40,.1); border: 1px solid rgba(230,160,40,.3); border-radius: 12px; padding: 14px 18px; font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.cl-consent b { color: #e6a028; }
#clMic.on { background: #e74c3c; border-color: #e74c3c; color: #fff; }

.cl-dossier { margin-top: 8px; }
.cl-profil { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; border-left: 3px solid #FF6B52; padding: 22px 26px; margin-bottom: 28px; }
.cl-prof-emo { font-size: 38px; line-height: 1; flex: none; }
.cl-prof-txt { display: flex; flex-direction: column; gap: 4px; }
.cl-prof-k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #FF6B52; }
.cl-prof-txt > b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.cl-prof-how { font-size: 14.5px; color: var(--text); }
.cl-prof-ind { font-size: 12.5px; color: var(--faint); }
.cl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.cl-block { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.cl-block.ok { border-top: 2px solid rgba(46,204,113,.5); }
.cl-block.bad { border-top: 2px solid rgba(231,76,60,.5); }
.cl-block h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--text); margin: 0 0 12px; }
.cl-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cl-ul li { position: relative; padding-left: 15px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cl-ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #FF6B52; opacity: .6; }
.cl-block p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.cl-obj { padding: 11px 0; border-top: 1px solid var(--line); }
.cl-obj:first-of-type { border-top: none; }
.cl-obj b { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.cl-obj span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cl-close { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid #FF6B52; border-radius: 14px; padding: 18px 22px; margin: 16px 0; }
.cl-close span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #FF6B52; }
.cl-close b { font-size: 17px; color: var(--text); font-weight: 600; line-height: 1.45; }
.cl-foot { font-size: 12.5px; color: var(--faint); margin-top: 14px; }

.cl-suggest { margin-top: 8px; }
.cl-alert { background: rgba(255,107,82,.14); border: 1px solid rgba(255,107,82,.4); color: #FF6B52; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.cl-sug-now { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid #2ecc71; border-radius: 14px; padding: 20px 24px; margin-bottom: 16px; }
.cl-sug-now span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #2ecc71; }
.cl-sug-now b { font-size: 19px; color: var(--text); font-weight: 600; line-height: 1.4; }
.cl-sug-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.cl-sug-foot { font-size: 13px; color: var(--muted); }
.cl-temp { font-size: 12px; font-weight: 700; }
.cl-temp.ok { color: #2ecc71; } .cl-temp.warn { color: #e6a028; } .cl-temp.bad { color: #e74c3c; }
.cl-relance { font-size: 14px; line-height: 1.65; color: var(--text); white-space: pre-wrap; }
@media (max-width: 720px) { .cl-grid, .cl-sug-grid { grid-template-columns: 1fr; } }

/* Closer · contrôles de capture audio (Whisper) */
.cl-srclbl { font-size: 13px; color: var(--muted); }
.cl-src.on { background: #e74c3c; border-color: #e74c3c; color: #fff; }
.cl-check { cursor: pointer; }
.cl-check input { vertical-align: middle; margin-right: 4px; }
.cl-status { font-size: 13px; }
.cl-rec { color: #e74c3c; font-weight: 700; animation: clpulse 1.4s ease-in-out infinite; }
@keyframes clpulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ============================================================
   LE PITCH · présentation plein écran, cinéma + Apple
   ============================================================ */
body.pitch-open { overflow: hidden; }
.pitch { position: fixed; inset: 0; z-index: 9000; background: #0a0a0b; color: #fff; display: flex; flex-direction: column;
  font-family: var(--display, -apple-system, system-ui, sans-serif); animation: pitchIn .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes pitchIn { from { opacity: 0; } to { opacity: 1; } }
.pitch-bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; flex: none; }
.pitch-x { background: transparent; border: none; color: rgba(255,255,255,.55); font-size: 20px; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; transition: background .15s, color .15s; }
.pitch-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.pitch-wm { font-size: 12px; letter-spacing: .32em; font-weight: 800; color: rgba(255,255,255,.5); }
.pitch-rec { background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); border-radius: 999px; padding: 7px 16px; font-size: 12px; cursor: pointer; transition: all .15s; }
.pitch-rec:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.pitch-rec.on { background: #e74c3c; border-color: #e74c3c; color: #fff; animation: clpulse 1.4s ease-in-out infinite; }

.pitch-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px 7vw 8vh; animation: pitchRise .6s cubic-bezier(.16,1,.3,1) both; min-height: 0; }
@keyframes pitchRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ph-eyebrow { font-size: clamp(11px, 1.4vw, 14px); letter-spacing: .26em; text-transform: uppercase; font-weight: 800; color: #FF6B52; margin-bottom: 28px; }

.pitch-hero .ph-wm { font-size: clamp(13px, 1.6vw, 16px); letter-spacing: .4em; font-weight: 800; color: rgba(255,255,255,.45); margin-bottom: 5vh; }
.ph-sign { font-size: clamp(30px, 5.4vw, 76px); font-weight: 300; line-height: 1.04; letter-spacing: -.02em; margin: 0 0 6vh; max-width: 14ch; }
.ph-sign em { font-style: italic; font-weight: 600; }
.ph-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.pitch-cta { background: #fff; color: #0a0a0b; border: none; border-radius: 999px; padding: 16px 34px; font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; cursor: pointer; transition: transform .15s, background .15s, color .15s; font-family: inherit; }
.pitch-cta:hover { transform: translateY(-2px); }
.pitch-cta.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.pitch-cta.ghost:hover { border-color: #fff; }

.pitch-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; width: 100%; max-width: 1100px; }
.pitch-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 34px 26px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px; min-height: 200px; justify-content: flex-end; transition: transform .18s, border-color .18s, background .18s; }
.pitch-card:hover { transform: translateY(-4px); border-color: rgba(255,107,82,.6); background: rgba(255,107,82,.07); }
.pc-t { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.pc-a { font-size: clamp(13px, 1.3vw, 15px); color: rgba(255,255,255,.6); font-style: italic; line-height: 1.4; }

.pitch-offer { flex-direction: row; align-items: center; gap: 5vw; text-align: left; max-width: 1200px; margin: 0 auto; width: 100%; }
.po-l { flex: 1; }
.po-a { font-size: clamp(28px, 4vw, 56px); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 22px; }
.po-d { font-size: clamp(15px, 1.5vw, 19px); color: rgba(255,255,255,.7); line-height: 1.6; max-width: 30ch; margin: 0 0 30px; }
.po-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.po-price { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-left: 3px solid #FF6B52; border-radius: 16px; padding: 20px 26px; display: inline-flex; flex-direction: column; gap: 4px; animation: pitchRise .35s ease both; }
.po-price span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: #FF6B52; }
.po-price b { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; }
.po-price i { font-size: 13px; color: rgba(255,255,255,.55); font-style: normal; }
.po-r { flex: 1; display: flex; justify-content: center; }
.po-video { width: 100%; max-width: 460px; aspect-ratio: 16/9; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: border-color .18s, background .18s; }
.po-video:hover { border-color: rgba(255,107,82,.6); background: rgba(255,107,82,.07); }
.pov-play { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #0a0a0b; display: grid; place-items: center; font-size: 22px; padding-left: 4px; }
.pov-t { font-size: 14px; color: rgba(255,255,255,.7); }
.pitch-back { background: transparent; border: none; color: rgba(255,255,255,.5); font-size: 14px; cursor: pointer; padding: 8px 0; font-family: inherit; }
.pitch-back:hover { color: #fff; }

.pitch-vid .pv-frame { width: 100%; max-width: 1100px; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.pitch-vid .pv-frame iframe { width: 100%; height: 100%; border: 0; }
.pitch-vid { gap: 22px; }

.pcl-h { font-size: clamp(30px, 5vw, 68px); font-weight: 300; letter-spacing: -.02em; margin: 0 0 22px; }
.pcl-h em { font-style: italic; font-weight: 600; }
.pcl-p { font-size: clamp(15px, 1.5vw, 19px); color: rgba(255,255,255,.7); line-height: 1.6; max-width: 32ch; margin: 0 0 6vh; }

@media (max-width: 820px) {
  .pitch-grid { grid-template-columns: 1fr; max-width: 460px; }
  .pitch-offer { flex-direction: column; text-align: center; gap: 28px; }
  .po-d { max-width: none; } .po-actions { justify-content: center; }
}

/* ============================================================
   LE PITCH · motion design luxe (fond vivant, lumière, écriture animée)
   ============================================================ */
.pitch-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.pitch-view { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; }
.pb-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.pb-glow.g1 { width: 46vw; height: 46vw; left: -8vw; top: -10vw; background: radial-gradient(circle, rgba(255,107,82,.5), transparent 65%); animation: pbDrift1 26s ease-in-out infinite; }
.pb-glow.g2 { width: 52vw; height: 52vw; right: -12vw; bottom: -16vw; background: radial-gradient(circle, rgba(90,120,255,.32), transparent 65%); animation: pbDrift2 32s ease-in-out infinite; }
.pb-glow.g3 { width: 30vw; height: 30vw; left: 38vw; top: 30vh; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 60%); animation: pbDrift1 38s ease-in-out infinite reverse; }
@keyframes pbDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw,6vh) scale(1.14); } }
@keyframes pbDrift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-7vw,-5vh) scale(.92); } }
.pb-grain { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, transparent 52%, rgba(0,0,0,.55) 100%); }
.pb-scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); animation: pbScan 9s linear infinite; opacity: .6; }
@keyframes pbScan { 0% { top: -2%; } 100% { top: 102%; } }

.pitch-sweep { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.10) 50%, transparent 65%); transform: translateX(-120%); animation: pitchSweep .9s cubic-bezier(.4,0,.2,1) both; }
@keyframes pitchSweep { to { transform: translateX(120%); } }

/* Settle typographique des grands titres (futuriste, classe) */
.ph-sign, .po-a, .pcl-h, .pc-t { animation: pitchLetters .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes pitchLetters { from { opacity: 0; letter-spacing: .12em; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; letter-spacing: -.02em; transform: none; filter: blur(0); } }

/* Interstitiel : la phrase qui s'écrit */
.pitch-inter { justify-content: center; }
.pi-line { font-size: clamp(30px, 5vw, 64px); font-weight: 300; letter-spacing: -.01em; color: #fff; margin: 0; min-height: 1.2em; }
.pi-line.typing::after { content: "▌"; color: #FF6B52; margin-left: 2px; animation: piCaret .8s step-end infinite; }
@keyframes piCaret { 50% { opacity: 0; } }

/* Boutons : reflet qui passe au survol */
.pitch-cta { position: relative; overflow: hidden; }
.pitch-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); transform: translateX(-120%); transition: none; }
.pitch-cta:hover::after { animation: pitchSweep .7s ease both; }
.pitch-card { position: relative; overflow: hidden; }
.pitch-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 42%, rgba(255,107,82,.18) 50%, transparent 58%); transform: translateX(-120%); }
.pitch-card:hover::after { animation: pitchSweep .8s ease both; }

@media (prefers-reduced-motion: reduce) {
  .pb-glow, .pb-scan, .pitch-sweep, .ph-sign, .po-a, .pcl-h, .pc-t, .pi-line.typing::after { animation: none !important; }
}

/* LE PITCH · vidéo de fond auto + mur de films */
.pitch-hero { position: relative; overflow: hidden; }
.pitch-hero > *:not(.ph-bgvid) { position: relative; z-index: 1; }
.ph-bgvid { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ph-bgvid iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%; transform: translate(-50%,-50%); pointer-events: none; border: 0; }
.ph-bgvid-veil { position: absolute; inset: 0; background: linear-gradient(rgba(10,10,11,.5), rgba(10,10,11,.82)); }

.pitch-films-stage { justify-content: flex-start; padding-top: 3vh; }
.pitch-films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 1120px; }
.pfilm { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background-size: cover; background-position: center; cursor: pointer; transition: transform .18s, border-color .18s; }
.pfilm:hover { transform: translateY(-4px); border-color: rgba(255,107,82,.7); }
.pf-veil { position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.78)); }
.pf-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: #0a0a0b; display: grid; place-items: center; font-size: 18px; padding-left: 3px; transition: transform .18s, background .18s; }
.pfilm:hover .pf-play { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.pf-meta { position: absolute; left: 16px; right: 16px; bottom: 13px; display: flex; flex-direction: column; gap: 2px; text-align: left; z-index: 1; }
.pf-meta b { font-size: 16px; font-weight: 700; color: #fff; }
.pf-meta i { font-size: 12px; font-style: normal; color: rgba(255,255,255,.65); }
@media (max-width: 820px) { .pitch-films { grid-template-columns: 1fr 1fr; } }

/* Le Pitch · mur de films : couche poster (vidéos du portail) */
.pfilm .pf-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #16161a; transition: transform .3s ease; }
.pfilm:hover .pf-bg { transform: scale(1.05); }

/* Le Pitch · sélection vs catalogue complet */
.pf-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.pitch-back.inline { margin: 0; }
.pf-more { margin-top: 26px; }

/* ============================================================
   LUXE · fond noir grainé + variations de lumière (partie closing)
   ============================================================ */
.lux { position: relative; min-height: 82vh; }
.lux > * { position: relative; z-index: 1; }
.lux::before { content: ""; position: absolute; inset: -40px 0; z-index: 0; pointer-events: none; opacity: .08; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; animation: luxGrain 1.1s steps(3) infinite; }
@keyframes luxGrain { 0% { transform: translate(0,0); } 33% { transform: translate(-3%,2%); } 66% { transform: translate(2%,-3%); } 100% { transform: translate(0,0); } }
.lux::after { content: ""; position: absolute; inset: -40px 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(80% 50% at 78% -8%, rgba(255,255,255,.07), transparent 55%),
    radial-gradient(70% 50% at -5% 8%, rgba(255,107,82,.06), transparent 55%),
    radial-gradient(90% 60% at 50% 120%, rgba(40,44,60,.5), transparent 60%); }

/* Hero monumental varié (Druk + serif italique), façon "Notre / APPROCHE" */
.xhero { padding: 40px 0 26px; }
.xh-eyebrow { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(17px, 2.1vw, 30px); color: var(--muted); letter-spacing: .01em; margin: 0 0 2px 4px; }
.xh-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; line-height: .82; margin: 0; color: var(--text);
  background: linear-gradient(180deg, #fff 30%, #cfcfd4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.xh-sub { font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--muted); font-size: clamp(15px, 1.5vw, 20px); line-height: 1.5; max-width: 52ch; margin: 24px 0 0; }
@media (max-width: 760px) { .xhero { padding: 24px 0 18px; } }

/* ============================================================
   VUE FICHIERS façon Finder · taille réglable + grille/liste
   ============================================================ */
.gallery { grid-template-columns: repeat(auto-fill, minmax(var(--gal-tile, 200px), 1fr)); }
.gal-ctl { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; flex-wrap: wrap; }
.gal-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.gal-vbtn { background: transparent; border: none; color: var(--muted); padding: 7px 14px; font-size: 15px; cursor: pointer; transition: background .15s, color .15s; }
.gal-vbtn.on { background: var(--surface-2, var(--surface)); color: var(--text); }
.gal-size { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.gal-size input[type=range] { width: 130px; accent-color: #FF6B52; }
/* mode LISTE (façon Finder) */
.gallery.gal-list { display: flex; flex-direction: column; gap: 6px; }
.gallery.gal-list .gal-cell { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; }
.gallery.gal-list .gallery-item { width: 86px; height: 50px; min-height: 0; flex: none; order: 0; }
.gallery.gal-list .gallery-item .cap, .gallery.gal-list .file-tile .ft-ext { display: none; }
.gallery.gal-list .file-tile .ft-ic { font-size: 22px; }
.gallery.gal-list .gallery-item .gal-play { transform: translate(-50%,-50%) scale(.6); }
.gallery.gal-list .gal-cell::after { content: attr(data-name); order: 1; flex: 1; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery.gal-list .gal-dl2, .gallery.gal-list .gal-locked2 { order: 2; margin-left: auto; flex: none; width: auto; }

/* Logo en bulle · image entière (contain) + zoom, jamais coupée dans le blanc · rendu identique partout */
.logofit { overflow: hidden; background: #fff; }
.logofit img { display: block; }
