/* ============================================================
   FRANSOU · Portail Client
   Design calé sur fransou.com :
   - 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:  #2B57E6;
  --accent:  #2B57E6;                                   /* couleur signature FLF, en micro-accent */
  --accent-2:#6E90FF;                                   /* corail clair (liens, survols) */
  --grad:    #2B57E6;                                   /* 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: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  padding: 17px 20px;
  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: 15px;
  font-weight: 600;
  padding: 16px 26px;
  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(43,87,230,.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%, #2B57E6, transparent 60%), radial-gradient(44% 52% at 82% 42%, #1E3A8A, transparent 60%), radial-gradient(48% 58% at 55% 92%, #14224a, 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: 76px 0 52px; }
.sp-eyebrow { display: block; font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(16px,2vw,23px); color: var(--muted); margin-bottom: 10px; letter-spacing: .01em; }
.sp-hero h1 { font-size: clamp(34px,4.6vw,60px); line-height: 1; letter-spacing: -.028em; font-weight: 650; margin-bottom: 14px; }
.sp-hero p { margin-top: 10px; font-size: 17px; color: var(--muted); }

/* Révision vidéo · marqueurs des remarques sur la timeline (corail = ouvert, gris = traité) */
.rv-markers { position: relative; height: 16px; margin-top: 8px; background: rgba(255,255,255,.07); border-radius: 99px; }
.rv-markers.hidden { display: none; }
.rv-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 11px; height: 11px; border-radius: 50%; background: var(--corail); border: none; cursor: pointer; transition: transform .2s var(--ease); box-shadow: 0 0 8px rgba(43,87,230,.5); }
.rv-mark:hover { transform: translate(-50%, -50%) scale(1.55); }
.rv-mark.done { background: rgba(255,255,255,.32); box-shadow: none; }

/* Fiche prospect · 2 onglets primaires, le reste en liens discrets (règle des 7) */
.pdlg-more { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.pdlg-more-b { background: none; border: none; color: var(--faint); font-family: var(--font); font-size: 12.5px; cursor: pointer; padding: 6px 2px; transition: color .25s; }
.pdlg-more-b:hover { color: var(--text); }

/* Plan d'Action Mutuel · « Notre chemin ensemble » (espace prospect, visible des deux côtés) */
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; margin: 14px 0; }
.map-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.map-h .btn { width: auto; }
.map-k { font-family: var(--display); text-transform: uppercase; font-size: clamp(20px,2.4vw,30px); letter-spacing: -.01em; line-height: 1.02; }
.map-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.map-line { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; row-gap: 18px; }
.map-step { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 86px; position: relative; }
.map-dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-family: var(--display); font-size: 12px; cursor: pointer; transition: all .3s var(--ease); }
.map-dot:not(:disabled):hover { transform: scale(1.1); border-color: rgba(255,255,255,.35); }
.map-step.done .map-dot { background: var(--corail); border-color: var(--corail); color: #fff; }
.map-t { font-size: 11.5px; color: var(--muted); text-align: center; max-width: 96px; line-height: 1.3; }
.map-step.done .map-t { color: var(--text); }
.map-del { position: absolute; top: -6px; right: 4px; background: none; border: none; color: var(--faint); font-size: 10px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.map-step:hover .map-del { opacity: 1; }
.map-link { flex: 1; min-width: 18px; height: 1px; background: var(--line); margin-top: 17px; }
.map-link.done { background: var(--corail); }

/* FLF R2 · le petit compagnon : pastille discrète + panneau + respiration */
#r2Pill { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(16,16,19,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); font-family: var(--display); font-size: 12px; letter-spacing: .04em; cursor: pointer; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
#r2Pill:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--corail) 55%, var(--line)); box-shadow: 0 12px 36px rgba(0,0,0,.5); }
#r2Panel { position: fixed; right: 22px; bottom: 80px; z-index: 91; width: 340px; max-width: calc(100vw - 44px); background: #101013; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.6); animation: pop .25s ease; }
#r2Panel .r2-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
#r2Panel .r2-h b { font-family: var(--display); font-size: 14px; letter-spacing: .04em; }
#r2Panel .r2-h span { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 13px; color: var(--muted); flex: 1; }
#r2Panel .r2-x { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 13px; }
#r2Panel .r2-lect { font-size: 14px; line-height: 1.65; margin-bottom: 12px; }
#r2Panel .r2-axe, #r2Panel .r2-pas { font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; padding-left: 12px; border-left: 2px solid var(--corail); }
#r2Panel .r2-axe span, #r2Panel .r2-pas span { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--corail); margin-bottom: 3px; }
#r2Panel .r2-mot { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
#r2Panel .r2-acts { display: flex; gap: 8px; margin-top: 12px; }
#r2Panel .r2-acts .btn { width: auto; flex: 1; }
#r2Panel .r2-foot { font-size: 10.5px; color: var(--faint); margin-top: 12px; line-height: 1.5; }
#r2Breath { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; cursor: pointer; }
#r2Breath .r2b-circle { width: 140px; height: 140px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: radial-gradient(circle, rgba(43,87,230,.16), transparent 70%); animation: r2breathe 10s ease-in-out infinite; }
@keyframes r2breathe { 0%, 100% { transform: scale(.72); } 50% { transform: scale(1.18); } }
#r2Breath .r2b-word { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 24px; color: rgba(255,255,255,.85); }
#r2Breath .r2b-time { font-family: var(--display); font-size: 14px; color: var(--muted); }
#r2Breath .r2b-hint { position: absolute; bottom: 30px; font-size: 11px; color: var(--faint); }

/* Compta · mode simple (4 sujets) vs expert (tout) */
.cs-expert { display: block; width: 100%; margin-top: 14px; background: transparent; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-family: var(--font); font-size: 12px; padding: 10px; cursor: pointer; transition: color .25s, border-color .25s; }
.cs-expert:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

/* Prospection · simplicité radicale : 1 ligne = 4 infos, filtres derrière un bouton */
.prosp-count2 { font-size: 13.5px; color: var(--muted); margin: -2px 0 18px; }
.prosp-count2 b { color: var(--text); }
/* Les stats en GRAND (3 tuiles, pas 10 chips) : visible et Apple à la fois */
.prosp-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 22px; }
/* Regroupement par implantation · cartes SOMBRES (tranchent sur le blanc, sans surcharger) */
.pz-zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 40px; }
@media (max-width: 760px) { .pz-zones { grid-template-columns: 1fr 1fr; } }
.pz-z { text-align: left; background: #0f0f12; border: 1px solid rgba(255,255,255,.1); border-left: 3px solid var(--zc, #2B57E6); border-radius: 18px; padding: 22px 24px; cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s; }
.pz-z:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -22px var(--zc, #2B57E6); }
.pz-z.on { box-shadow: 0 0 0 1px var(--zc, #2B57E6), 0 16px 40px -22px var(--zc, #2B57E6); }
.pz-z .pz-z-l { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.62); letter-spacing: .02em; }
.pz-z b { display: block; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: #fff; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.pz-z .pz-z-s { display: block; font-size: 12.5px; color: rgba(255,255,255,.42); }
body.page-white #view .pz-z .pz-z-l, body.page-white #view .pz-z b { color: #fff; }
.ph-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px 32px; transition: transform .3s var(--ease), background .4s, border-color .2s; }
.ph-stat:hover { border-color: rgba(43,87,230,.4); }
.ph-stat:hover { transform: translateY(-3px); background: var(--surface-2); }
.ph-stat b { display: block; font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.02em; line-height: 1; }
.ph-stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 700px) { .prosp-hero { grid-template-columns: 1fr; } }
.prosp-filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
#prospFiltBtn.on { color: var(--text); border-color: rgba(255,255,255,.35); }
.prosp-row4 { display: grid; grid-template-columns: 56px 1.2fr 1fr auto 40px; align-items: center; gap: 18px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-bottom: 1px solid var(--line); animation: clxUp .5s cubic-bezier(.16,1,.3,1) both; }
.prosp-row4:hover { border-color: rgba(43,87,230,.45); transform: translateX(2px); }
.prosp-row4 .prosp-who { font-size: 18px; font-weight: 600; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prosp-co { font-weight: 400; color: var(--faint); }
body.page-white #view .prosp-co { color: #86868b; }
.prosp-raison { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prosp-list .prosp-row4:nth-child(1){animation-delay:.02s}.prosp-list .prosp-row4:nth-child(2){animation-delay:.05s}.prosp-list .prosp-row4:nth-child(3){animation-delay:.08s}.prosp-list .prosp-row4:nth-child(4){animation-delay:.11s}.prosp-list .prosp-row4:nth-child(5){animation-delay:.14s}.prosp-list .prosp-row4:nth-child(n+6){animation-delay:.17s}
.prosp-raison.hot { color: var(--corail); }
.prosp-k { flex: none; }
@media (max-width: 760px) { .prosp-row4 { grid-template-columns: 40px 1fr auto; } .prosp-raison, .prosp-row4 .prosp-contact { display: none; } }

/* Moteur éditorial · idées de posts prêtes à planifier (Espace création) */
.ed-sec { margin: 6px 0 44px; }
.ed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ed-head .btn { width: auto; }
.ed-k { font-family: var(--display); text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.ed-week { font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--muted); font-size: 15px; margin-top: 6px; }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ed-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .5s var(--ease), background .4s, border-color .4s; }
.ed-card:hover { transform: translateY(-4px); background: var(--surface-2); border-color: rgba(255,255,255,.2); }
.ed-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ed-fmt { margin-left: auto; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.ed-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.ed-hook { font-size: 13.5px; color: var(--text); line-height: 1.5; font-style: italic; }
.ed-why { font-size: 12px; color: var(--muted); line-height: 1.5; border-left: 2px solid var(--corail); padding-left: 10px; }
.ed-vis { font-size: 12px; color: var(--faint); }
.ed-acts { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.ed-acts .btn { width: auto; flex: 1; }

/* Contacts · jamais un mur : aperçus par famille + Voir plus + pagination 20/page */
.ct-more { display: block; width: 100%; margin: 10px 0 4px; background: transparent; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-family: var(--font); font-size: 13.5px; padding: 13px; cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.ct-more:hover { color: var(--text); border-color: rgba(255,255,255,.3); background: var(--surface); }
.ct-pager { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 22px 0 40px; font-size: 13px; }
.ct-pager .btn { width: auto; }

/* Composeur Gmail · répondre / écrire depuis l'espace, envoi réel en un clic */
.gm-compose { margin-top: 16px; border-top: 1px solid var(--line-2); padding-top: 16px; display: grid; gap: 10px; }
.gm-compose .gm-c-h { font-size: 13px; font-weight: 600; color: var(--muted); }
.gm-compose .field { margin: 0; }
.gm-compose .gm-c-a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gm-compose .gm-c-a .btn { width: auto; }
.gm-compose .gm-c-note { font-size: 12px; color: var(--muted); }

/* Volets repliés génériques (accueil : réserves, etc.) · la règle des 7 */
.fold { margin: 18px 0; }
.fold-t { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 22px; color: var(--text); font-family: var(--font); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .3s, border-color .3s; }
.fold-t:hover { background: var(--surface-2); border-color: rgba(255,255,255,.2); }
.fold-t .fold-hint { font-weight: 400; font-size: 12.5px; color: var(--muted); flex: 1; }
.fold-t .gm-chev { color: var(--faint); font-size: 18px; transition: transform .3s var(--ease); }
.fold-t.open .gm-chev { transform: rotate(90deg); }
.fold-b { margin-top: 12px; }

/* Accueil console · l'air (audit simplicité appliqué) */
.section-head { margin: 64px 0 20px; }
.brief { margin-bottom: 10px; }

/* Derniers échanges Gmail · section repliée dans les espaces client/prospect (admin) */
.gm-sec { margin: 14px 0 6px; }
.gm-toggle { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 22px; color: var(--text); font-family: var(--font); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .3s, border-color .3s; }
.gm-toggle:hover { background: var(--surface-2); border-color: rgba(255,255,255,.2); }
.gm-toggle .gm-hint { font-weight: 400; font-size: 12.5px; color: var(--muted); flex: 1; }
.gm-toggle .gm-chev { color: var(--faint); font-size: 18px; transition: transform .3s var(--ease); }
.gm-toggle.open .gm-chev { transform: rotate(90deg); }
.gm-body { background: var(--surface); border: 1px solid var(--line-2); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 20px 22px; margin-top: -10px; }

/* Environnement · GRAND FORMAT : ça respire (espaces géants, lecture facile, rythme Apple) */
.env-bar { margin: 26px 0 60px; }
.env-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.env-actions .btn { width: auto; }
.env-synth { font-size: clamp(19px, 2.3vw, 27px); line-height: 1.6; font-weight: 500; letter-spacing: -.012em; color: var(--text); max-width: 880px; margin: 0 0 48px; }
.env-coup { padding: 36px 40px; border-radius: var(--radius-lg); gap: 12px; margin-bottom: 40px; background: linear-gradient(165deg, #141417, #0b0b0d); border-left: 3px solid var(--corail); }
.env-coup .ec-k { font-size: 11px; letter-spacing: .2em; }
.env-coup .ec-v { font-size: clamp(19px, 2.1vw, 25px); line-height: 1.5; letter-spacing: -.01em; }
.env-sech { margin: 84px 0 30px; }
.env-sech .es-num { display: block; font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--corail); margin-bottom: 10px; }
.env-sech em { display: block; font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(17px, 1.9vw, 22px); color: var(--muted); }
.env-sech b { display: block; font-family: var(--display); text-transform: uppercase; font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.02em; color: var(--text); margin-top: 6px; line-height: 1.02; }
.env-grid { gap: 20px; }
.env-quad { border-radius: var(--radius-lg); padding: 34px 36px 22px; }
.env-quad .eq-h { font-size: 14px; gap: 12px; margin-bottom: 20px; }
.env-quad .eq-ic { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
.env-quad ul { gap: 0; }
.env-quad li { padding: 18px 0 18px 24px; font-size: 15px; line-height: 1.75; border-top: 1px solid var(--line-2); }
.env-quad li:first-child { border-top: none; padding-top: 4px; }
.env-quad li::before { top: 30px; width: 6px; height: 6px; }
.env-quad li:first-child::before { top: 16px; }
.env-risks { gap: 18px; }
.env-risk { padding: 30px 34px; border-radius: var(--radius-lg); }
.env-risk .er-why { font-size: 14.5px; line-height: 1.7; }
.env-risk .er-act { font-size: 14.5px; line-height: 1.7; }
.env-horizon { margin-top: 88px; padding: 36px 40px; border-radius: var(--radius-lg); }
.env-horizon .eh-v { font-size: clamp(16px, 1.8vw, 20px); line-height: 1.7; }
.env-sources { margin-top: 72px; }
.env-foot { margin: 64px 0 90px; }
@media (max-width: 760px) { .env-grid { grid-template-columns: 1fr; } .env-quad { padding: 28px 26px 18px; } }

/* Composeur social v2 · sections claires, publier maintenant, aperçu par réseau */
/* La fenêtre RESPIRE : large (la modale par défaut fait 700px, bien trop serré pour 2 colonnes) */
.modal:has(.sp-modal) { max-width: 1280px; width: 96vw; }
.sp-modal .sp-2col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
/* Sections OUVERTES façon Apple : pas de grosses boîtes, des hairlines fines et beaucoup d'air */
.sp-form2 { display: grid; gap: 0; min-width: 0; }
.sp-sec { background: transparent; border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 44px 2px; }
.sp-sec:first-child { border-top: none; padding-top: 8px; }
.sp-sec .cd-f { margin-top: 26px; }
.sp-sec .cd-l { font-size: 15px; margin-bottom: 10px; color: var(--muted); }
.sp-sec .field { font-size: 16.5px; padding: 17px 20px; border-radius: 14px; }
.sp-sec textarea.field { min-height: 190px !important; line-height: 1.6; }
.sp-modal .soc-pl { padding: 14px 26px; font-size: 16px; border-radius: 999px; }
.sp-sec-h { font-family: var(--display); text-transform: none; font-size: clamp(20px, 2vw, 26px); font-weight: 750; letter-spacing: -.02em; color: var(--text); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.sp-sec-h span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.sp-when { display: flex; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.sp-when-b { flex: 1; border: none; background: transparent; color: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 500; padding: 13px 16px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.sp-when-b.on { background: var(--text); color: #050505; font-weight: 600; }
#spWhenLater { margin-top: 12px; }
.sp-caprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.sp-counts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sp-cnt { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 8px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sp-cnt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pc, var(--faint)); }
.sp-cnt.over { color: #ff453a; border-color: rgba(255,69,58,.45); }
.sp-side { position: sticky; top: 10px; align-self: start; min-width: 0; }
.sp-prev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.spp-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.spp-tab { font-size: 11.5px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .25s; }
.spp-tab.on { color: var(--text); border-color: color-mix(in srgb, var(--pc, #888) 65%, transparent); background: color-mix(in srgb, var(--pc, #888) 16%, transparent); }
.sp-modal .spp-card { border-radius: 18px; border: 1px solid var(--line); background: #0d0d0f; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.sp-modal .spp-media { aspect-ratio: 1 / 1; background: #0a0a0b; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-modal .spp-media.vert { aspect-ratio: 9 / 16; max-height: 430px; width: 100%; }
.sp-modal .spp-media img, .sp-modal .spp-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-modal .spp-media > span { color: var(--faint); font-size: 24px; }
.spp-fc { padding: 10px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-2); }
.sp-actions { position: sticky; bottom: -1px; display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 18px 2px; background: rgba(13,13,15,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); }
.sp-actions .btn { width: auto; padding: 16px 34px; font-size: 16.5px; }
/* Légendes IA par réseau · variantes proposées */
.sp-ai-h { font-size: 13px; font-weight: 650; color: var(--text); margin: 2px 0 12px; }
.sp-ai-v { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: var(--surface); }
.sp-ai-net { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 8px; }
.sp-ai-txt { font-size: 14.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; }
.sp-ai-a { display: flex; gap: 8px; margin-top: 12px; }
.sp-ai-a .btn { width: auto; }
body.page-white #view .sp-ai-txt { color: #1d1d1f; }
.sp-draftnote { font-size: 13px; color: var(--flf); display: inline-flex; align-items: center; gap: 8px; }
.sp-draftnote .link-btn { color: var(--muted); }
@media (max-width: 860px) { .sp-modal .sp-2col { grid-template-columns: 1fr; } .sp-side { position: static; } }

/* Mon Studio · le compte vivant : profil, question vivante, objectifs, analyse */
.id-question { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--corail); border-radius: var(--radius-lg); padding: 18px 22px; margin: -4px 0 8px; font-size: 15px; }
.id-qk { display: block; font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.id-sec { font-family: var(--display); text-transform: uppercase; font-size: 13px; letter-spacing: .04em; margin: 36px 0 14px; }
.id-hint { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--faint); margin-left: 10px; font-weight: 400; }
.id-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.id-field { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; transition: border-color .3s; }
.id-field.hi { border-color: color-mix(in srgb, var(--corail) 55%, var(--line)); }
.id-field > span { font-size: 12.5px; color: var(--muted); }
.id-field .field { background: transparent; border: none; padding: 4px 0; font-size: 14.5px; }
.id-field .field:focus { background: transparent; }
.id-saved { font-size: 13px; color: #30d158; margin-left: 10px; }
.id-goals { display: grid; gap: 10px; margin-top: 14px; }
.id-goal { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; }
.id-goal.done .id-goal-t { text-decoration: line-through; color: var(--faint); }
.id-check { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: #30d158; font-size: 14px; flex: none; }
.id-goal.done .id-check { border-color: #30d158; }
.id-goal-t { flex: 1; font-size: 14.5px; }
.id-del { background: none; border: none; color: var(--faint); font-size: 13px; }
.id-del:hover { color: var(--text); }
.id-empty { color: var(--faint); font-size: 13.5px; padding: 8px 2px; }
.id-adate { font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.id-acard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.id-ak { font-family: var(--display); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--corail); margin: 18px 0 8px; }
.id-ak:first-child { margin-top: 0; }
.id-acard p { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.id-acard ul { margin: 0; padding-left: 18px; }
.id-acard li { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.id-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.id-act { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.id-act-p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
@media (max-width: 720px) { .id-form { grid-template-columns: 1fr; } .id-cols { grid-template-columns: 1fr; } }

/* Le Conseil · board virtuel : 4 regards, débat, synthèse, décisions */
.bd-bar { display: flex; gap: 10px; align-items: center; margin: -4px 0 22px; }
.bd-bar .btn.small { width: auto; white-space: nowrap; }
.bd-wait { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.bd-date { font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.bd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; transition: transform .5s var(--ease), background .4s; }
.bd-card:hover { transform: translateY(-3px); background: var(--surface-2); }
.bd-role { font-family: var(--display); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--corail); margin-bottom: 10px; }
.bd-regard { font-size: 14px; line-height: 1.65; color: var(--text); }
.bd-alerte { margin-top: 10px; font-size: 12.5px; color: #ffd60a; background: rgba(255,214,10,.08); border: 1px solid rgba(255,214,10,.22); border-radius: 10px; padding: 8px 12px; }
.bd-conseil { margin-top: 10px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 10px; }
.bd-sec { font-family: var(--display); text-transform: uppercase; font-size: 13px; letter-spacing: .04em; margin: 32px 0 12px; }
.bd-debat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; display: grid; gap: 10px; }
.bd-line { font-size: 14px; line-height: 1.6; color: var(--muted); }
.bd-line b { color: var(--corail); font-weight: 600; margin-right: 6px; }
.bd-synth { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--corail); border-radius: var(--radius-lg); padding: 22px 24px; font-size: 15px; line-height: 1.7; }
.bd-decs { display: grid; gap: 12px; padding-bottom: 60px; }
.bd-dec { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.bd-num { font-family: var(--display); font-size: 13px; color: var(--corail); flex: none; padding-top: 2px; }
.bd-dec-t { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.bd-dec-p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.bd-dec-s { font-size: 13px; color: var(--text); margin-top: 8px; }
@media (max-width: 720px) { .bd-grid { grid-template-columns: 1fr; } .bd-bar { flex-wrap: wrap; } }

/* État des connexions · la fiabilité visible (pastilles par connecteur) */
.conx-list { display: grid; gap: 12px; padding-bottom: 60px; }
.conx { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; transition: transform .5s var(--ease), background .4s; }
.conx:hover { transform: translateY(-2px); background: var(--surface-2); }
.conx .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); flex: none; transition: background .3s; }
.conx .dot.ok   { background: #30d158; box-shadow: 0 0 10px rgba(48,209,88,.5); }
.conx .dot.warn { background: #ffd60a; box-shadow: 0 0 10px rgba(255,214,10,.4); }
.conx .dot.down { background: #ff453a; box-shadow: 0 0 10px rgba(255,69,58,.5); }
.conx .cx-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.conx .cx-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.conx .cx-status { margin-left: auto; font-size: 12.5px; color: var(--muted); text-align: right; max-width: 36%; line-height: 1.45; }
@media (max-width: 700px) { .conx { flex-wrap: wrap; } .conx .cx-status { margin-left: 28px; text-align: left; max-width: 100%; } }

/* 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: 50px; }
.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: 78px 0 24px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(18px, 1.9vw, 26px);
}
.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(43,87,230,.3); }
.abo-m.due .abo-m-s { color: var(--accent, #2B57E6); }
.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, #2B57E6); border-color: var(--accent, #2B57E6); box-shadow: 0 0 0 4px rgba(43,87,230,.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 .bc-home { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.breadcrumb b { color: var(--text); font-weight: 600; }

.desktop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  padding-bottom: 56px;
}
/* Cascade d'entrée apple (comme le Commercial) sur les tuiles d'espace */
.desktop .tile { animation: clxUp .6s cubic-bezier(.16,1,.3,1) both; }
.desktop .tile:nth-child(1){animation-delay:.03s}.desktop .tile:nth-child(2){animation-delay:.08s}.desktop .tile:nth-child(3){animation-delay:.13s}.desktop .tile:nth-child(4){animation-delay:.18s}.desktop .tile:nth-child(5){animation-delay:.23s}.desktop .tile:nth-child(6){animation-delay:.28s}.desktop .tile:nth-child(7){animation-delay:.33s}.desktop .tile:nth-child(n+8){animation-delay:.38s}
@media (prefers-reduced-motion: reduce) { .desktop .tile { animation: none; } }
.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(43,87,230,.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(43,87,230,.14); border: 1px solid rgba(43,87,230,.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(43,87,230,.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(43,87,230,.4); color: var(--flf); }
.ai-act.tier2:hover { background: rgba(43,87,230,.1); border-color: rgba(43,87,230,.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: 16px; padding: 16px 20px; border-radius: 16px; font-size: 15.5px; line-height: 1.5; cursor: pointer; display: flex; align-items: center; gap: 10px; 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: #2B57E6; }
/* 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 #2B57E6; }
.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: #2B57E6 !important; }
.fb-edit { background: none; border: 1px dashed var(--line-2); border-radius: 7px; color: #2B57E6; font-family: var(--font); font-size: inherit; font-weight: 700; padding: 1px 7px; cursor: pointer; }
.fb-edit:hover { border-color: #2B57E6; }
.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, #2B57E6, #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(43,87,230,.5); background: rgba(43,87,230,.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(43,87,230,.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: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.bc-main i { font-size: 14px; font-style: normal; color: var(--muted); }
.bc-go { flex-shrink: 0; font-size: 20px; color: var(--faint); }
.bc-acts { flex-shrink: 0; display: flex; gap: 7px; opacity: 0; transition: opacity .2s; }
.brief-coup:hover .bc-acts { opacity: 1; }
.bc-act { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s, transform .15s; }
.bc-act:hover { transform: scale(1.08); color: var(--text); border-color: var(--faint); }
.bc-act.ok:hover { color: #12b886; border-color: #12b886; }
@media (hover: none) { .bc-acts { opacity: 1; } }
/* Fiche entreprise riche (niveau fiche personne) */
.ofx-mails { max-width: 1080px; margin: 20px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.ofx-mail-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.ofx-mail { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; text-align: left; font-family: var(--font); color: inherit; transition: transform .2s var(--ease), border-color .2s; width: 100%; }
.ofx-mail:hover { transform: translateY(-2px); border-color: var(--faint); }
.ofx-mail .mono-badge { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.ofx-mail-main { flex: 1; min-width: 0; }
.ofx-mail-main b { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); }
.ofx-mail-unread { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #2F80FF; background: color-mix(in srgb, #2F80FF 14%, transparent); border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }
.ofx-mail-subj { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-top: 2px; }
.ofx-mail-snip { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofx-mail-date { flex: none; font-size: 12px; color: var(--faint); white-space: nowrap; }

.ofx-about { max-width: 720px; margin: 4px auto 6px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted); }

.ofx-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 8px 0 24px; }
.ofx-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 1080px; margin: 0 auto 24px; }
.ofx-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-align: center; }
.ofx-stat b { display: block; font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.ofx-stat span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.ofx-people { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; }
.ofx-person { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; text-align: left; font-family: var(--font); color: inherit; transition: transform .2s var(--ease), border-color .2s; width: 100%; }
.ofx-person:hover { transform: translateY(-2px); border-color: var(--faint); }
.ofx-person .mono-badge { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.ofx-person-main { flex: 1; min-width: 0; }
.ofx-person-main b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.ofx-person-main i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofx-person-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ofx-person-r em { font-style: normal; font-size: 11px; color: var(--faint); }
.ofx-person-r em.none { color: #e8a33c; }
.ofx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ofx-analyse { max-width: 1080px; margin: 20px auto 0; background: color-mix(in srgb, #a06bff 6%, var(--surface)); border: 1px solid color-mix(in srgb, #a06bff 24%, var(--line)); border-radius: 20px; padding: 22px 24px; }
.ofx-an-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ofx-an-h h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; margin: 0; color: var(--text); }
.ofx-an-out { font-size: 15px; line-height: 1.65; }
.ofx-an-empty { font-size: 14px; line-height: 1.6; color: var(--muted); }
.crea-ai-result { font-size: 15.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; }
.crea-ai-foot { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 720px) { .ofx-stats { grid-template-columns: repeat(2, 1fr); } .ofx-fields { grid-template-columns: 1fr; } }
/* Bascule Personnes / Entreprises (CRM) */
.crm-modes { display: flex; width: fit-content; gap: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 4px auto 22px; }
.crm-mode { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; border-radius: 999px; color: var(--muted); font-family: var(--font); font-size: 15px; font-weight: 600; padding: 10px 22px; cursor: pointer; transition: background .2s, color .2s; }
.crm-mode span { font-size: 12.5px; font-weight: 700; opacity: .7; background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: 999px; padding: 2px 9px; }
.crm-mode.on { background: var(--text); color: var(--bg); }
.crm-mode.on span { opacity: 1; background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
/* Formats & règles (composer) · façon Metricool */
.spx-wrap { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.spx-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.spx { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.spx:first-of-type { border-top: none; padding-top: 2px; }
.spx-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.spx-h b { font-size: 13.5px; font-weight: 700; color: var(--text); text-transform: capitalize; }
.spx-best { font-size: 13px; line-height: 1.5; color: var(--muted); margin-bottom: 4px; }
.spx-dont { font-size: 12.5px; line-height: 1.5; color: #ffb84d; margin-bottom: 4px; }
.spx-check { font-size: 12.5px; line-height: 1.5; margin-bottom: 3px; }
.spx-check.ok { color: #35d69e; } .spx-check.warn { color: #ffb84d; } .spx-check.bad { color: #ff6b60; font-weight: 600; }

/* Vue FEED · grille Instagram */
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.feed-id { display: flex; align-items: center; gap: 13px; }
.feed-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.feed-id b { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.feed-id span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 760px; margin: 0 auto; }
.feed-cell { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); border: none; padding: 0; cursor: pointer; display: block; }
.feed-cell.fail { outline: 2px solid color-mix(in srgb, #ff3b30 65%, transparent); outline-offset: -2px; }
.feed-media { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.feed-cell:hover .feed-media { transform: scale(1.04); }
.feed-empty-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 14px; font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; font-family: Georgia, serif; font-style: italic; }
.feed-ov { position: absolute; inset: auto 0 0 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .25s; text-align: left; }
.feed-cell:hover .feed-ov { opacity: 1; }
.feed-ov b { display: block; font-size: 12px; color: #fff; font-weight: 700; }
.feed-ov i { display: block; font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.75); margin-top: 1px; }
.feed-badge { position: absolute; top: 8px; right: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: rgba(0,0,0,.65); color: #fff; border-radius: 999px; padding: 4px 9px; backdrop-filter: blur(6px); }
.feed-badge.fail { background: #ff3b30; }
@media (max-width: 560px) { .feed-grid { gap: 2px; } }

/* Planning social · échecs lisibles */
.soc-lrow.soc-fail { border-color: color-mix(in srgb, #ff3b30 40%, var(--line)); }
.soc-lc-err { font-size: 12.5px; color: #ff6b60; margin-top: 5px; line-height: 1.45; }
.soc-lrow { display: flex; align-items: center; gap: 14px; }
.soc-lrow [data-socretry] { flex: none; margin-left: auto; }

/* Pouls réseaux (accueil) */
.socp { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; margin: 28px 0; }
.socp-h b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.socp-h span { display: block; font-size: 12.5px; color: var(--muted); text-transform: capitalize; margin-top: 2px; }
.socp-nums { display: flex; gap: 28px; margin-top: 14px; flex-wrap: wrap; }
.socp-nums b { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.socp-nums span { display: block; font-size: 11px; color: var(--faint); margin-top: 5px; text-transform: uppercase; letter-spacing: .03em; }
.socp-trend.down b { color: #ff6b60; } .socp-trend.up b { color: #35d69e; }
.socp-r { display: flex; align-items: center; gap: 18px; }
.socp-spark { width: 120px; height: 40px; }
@media (max-width: 640px) { .socp-r { width: 100%; justify-content: space-between; } }

/* Mes espaces épinglés (accueil) */
.pinsec { margin: 28px 0; }
.pinsec-h b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.pinsec-h span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.pin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.pin-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; cursor: pointer; text-align: left; font-family: var(--font); color: inherit; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; overflow: hidden; }
.pin-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.pin-card.client::before { background: #12b886; } .pin-card.prospect::before { background: #2F80FF; }
.pin-card:hover { transform: translateY(-4px); border-color: var(--faint); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.pin-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.pin-card.client .pin-tag { background: color-mix(in srgb, #12b886 16%, transparent); color: #35d69e; }
.pin-card.prospect .pin-tag { background: color-mix(in srgb, #2F80FF 16%, transparent); color: #6ba7ff; }
.pin-mono { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.pin-name { font-size: 17px; font-weight: 800; letter-spacing: -.015em; color: var(--text); line-height: 1.2; }
.pin-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pin-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pin-foot em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.pin-foot em.none { color: #e8a33c; }
.pin-x { position: absolute; top: 12px; right: 14px; font-size: 13px; color: var(--faint); opacity: 0; transition: opacity .2s, color .2s; }
.pin-card:hover .pin-x { opacity: 1; }
.pin-x:hover { color: #ff5a3c; }
/* Grandes cartes Entreprises · classées */
.ofg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; margin-top: 8px; }
.ofg-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; cursor: pointer; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.ofg-card:hover { transform: translateY(-4px); border-color: var(--faint); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.ofg-top { display: flex; align-items: center; gap: 14px; }
.ofg-mono { width: 52px; height: 52px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: none; }
.ofg-id { flex: 1; min-width: 0; }
.ofg-id b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofg-id i { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofg-tofix { color: var(--faint) !important; }
.ofg-cnt { flex: none; text-align: center; }
.ofg-cnt b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--flf); line-height: 1; }
.ofg-cnt span { display: block; font-size: 10.5px; color: var(--faint); margin-top: 3px; text-transform: uppercase; letter-spacing: .03em; }
.ofg-about { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }
.ofg-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ofg-socs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.ofg-soc { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; transition: border-color .2s, color .2s; }
.ofg-soc:hover { border-color: var(--flf); color: var(--text); }
.ofg-cts { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ofg-ct { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; background: transparent; border: none; cursor: pointer; text-align: left; font-family: var(--font); color: inherit; transition: background .2s; }
.ofg-ct:hover { background: var(--surface-2); }
.ofg-ct .mono-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.ofg-ct-m { flex: 1; min-width: 0; }
.ofg-ct-m b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ofg-ct-m i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofg-more { font-size: 12px; color: var(--faint); padding: 4px 8px; }
@media (max-width: 720px) { .ofg-grid { grid-template-columns: 1fr; } }
/* Vue Entreprises dans le CRM */
.po-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 8px; }
.po-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.po-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: transparent; border: none; cursor: pointer; text-align: left; font-family: var(--font); color: inherit; transition: background .2s; }
.po-head:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.po-mono { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.po-h-main { flex: 1; min-width: 0; }
.po-h-main b { display: block; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.po-h-main i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-n { flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--flf) 16%, transparent); color: var(--flf); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.po-head .shc-go { flex: none; color: var(--muted); font-size: 18px; }
.po-cts { border-top: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.po-ct { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: transparent; border: none; cursor: pointer; text-align: left; font-family: var(--font); color: inherit; transition: background .2s; }
.po-ct:hover { background: var(--surface-2); }
.po-ct .mono-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.po-ct-main { flex: 1; min-width: 0; }
.po-ct-main b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.po-ct-main i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-empty { border-top: 1px solid var(--line); padding: 12px 18px; font-size: 12.5px; color: var(--faint); }
@media (max-width: 720px) { .po-grid { grid-template-columns: 1fr; } }
/* Entreprises · fiche organisation */
.org-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1080px; margin: 0 auto; }
.org-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.org-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--text); margin: 0 0 18px; }
.org-card h3 .cd-hint { font-weight: 500; }
.org-f { display: block; margin-bottom: 12px; }
.org-f span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.org-f .field { width: 100%; }
.org-ct { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 9px; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.org-ct:hover { transform: translateY(-2px); border-color: var(--faint); }
.org-ct .mono-badge { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.org-ct-main { flex: 1; min-width: 0; }
.org-ct-main b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.org-ct-main span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .org-grid { grid-template-columns: 1fr; } }
/* Hub Mail v2 · onglets + reader */
.mh-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px; width: fit-content; max-width: 100%; margin-bottom: 20px; }
.mh-tab { background: transparent; border: none; border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 8px 15px; cursor: pointer; font-family: var(--font); transition: background .2s, color .2s; white-space: nowrap; }
.mh-tab i { font-style: normal; font-size: 11.5px; opacity: .75; margin-left: 3px; }
.mh-tab.on { background: var(--text); color: var(--bg); }
.mh-tab.hot:not(.on) { color: #ff6b60; }
.mh-badge.mh-candid { background: color-mix(in srgb, #a06bff 15%, transparent); color: #b48cff; }
.mh-badge.mh-fourn { background: color-mix(in srgb, #ff9f0a 15%, transparent); color: #ffb84d; }
.mh-badge.mh-urgent { background: color-mix(in srgb, #ff3b30 18%, transparent); color: #ff6b60; }
.mh-row.urgent { border-color: color-mix(in srgb, #ff3b30 38%, var(--line)); }
.mh-row[data-mropen] { cursor: pointer; transition: transform .18s var(--ease), border-color .18s; }
.mh-row[data-mropen]:hover { transform: translateY(-2px); border-color: var(--faint); }
/* Fenêtre de lecture · façon macOS */
.mr-win { display: flex; flex-direction: column; max-height: 82vh; }
.mr-titlebar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mr-dots { display: inline-flex; gap: 7px; }
.mr-dots i { width: 12px; height: 12px; border-radius: 50%; }
.mr-dots i:nth-child(1) { background: #ff5f57; } .mr-dots i:nth-child(2) { background: #febc2e; } .mr-dots i:nth-child(3) { background: #28c840; }
.mr-title { flex: 1; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.mr-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mr-from { display: flex; align-items: center; gap: 12px; }
.mr-from .mono-badge { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.mr-from b { display: block; font-size: 15.5px; color: var(--text); }
.mr-from span { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.mr-acts { display: flex; gap: 8px; }
.mr-frame { flex: 1; width: 100%; min-height: 46vh; border: none; background: #fff; border-radius: 0 0 14px 14px; }
.mr-text { padding: 20px; font-size: 14.5px; line-height: 1.65; color: var(--text); white-space: pre-wrap; font-family: var(--font); }
.mr-replybox { border-top: 1px solid var(--line); padding: 14px 20px 18px; background: var(--surface-2); }
.mr-ta { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 14.5px; line-height: 1.55; font-family: var(--font); resize: vertical; }
.mr-ta:focus { outline: none; border-color: var(--flf); }
.mr-reply-acts { display: flex; gap: 10px; margin-top: 10px; }
/* Hub Mail · la boîte analysée */
.mh-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.mh-auto { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); cursor: pointer; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; }
.mh-auto input { accent-color: var(--flf); }
.mh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.mh-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.mh-stat b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.mh-stat span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.mh-stat.hot { border-color: color-mix(in srgb, #2B57E6 40%, var(--line)); } .mh-stat.hot b { color: #2B57E6; }
.mh-stat.dim { opacity: .6; }
.mh-created { background: color-mix(in srgb, #12b886 8%, var(--surface)); border: 1px solid color-mix(in srgb, #12b886 30%, var(--line)); border-radius: 14px; padding: 14px 18px; font-size: 14.5px; color: var(--text); margin-bottom: 18px; }
.mh-list { display: flex; flex-direction: column; gap: 12px; }
.mh-row { display: flex; align-items: flex-start; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.mh-row.unread { border-left: 3px solid #2F80FF; }
.mh-badge { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-top: 2px; white-space: nowrap; }
.mh-client { background: color-mix(in srgb, #12b886 15%, transparent); color: #35d69e; }
.mh-prospect { background: color-mix(in srgb, #2F80FF 15%, transparent); color: #6ba7ff; }
.mh-nouveau { background: color-mix(in srgb, #2B57E6 18%, transparent); color: #ff8a76; }
.mh-humain { background: var(--surface-2); color: var(--muted); }
.mh-bruit { background: var(--surface-2); color: var(--faint); }
.mh-main { flex: 1; min-width: 0; }
.mh-from { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.mh-from b { font-size: 15px; font-weight: 700; color: var(--text); }
.mh-from span { font-size: 12.5px; color: var(--faint); }
.mh-ask { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #ff9f0a; background: color-mix(in srgb, #ff9f0a 14%, transparent); border-radius: 999px; padding: 3px 9px; }
.mh-subj { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 4px; }
.mh-snip { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.mh-meta { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mh-meta > span { font-size: 12px; color: var(--faint); white-space: nowrap; }
.mh-acts { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mh-x { background: transparent; border: none; color: var(--faint); font-size: 13px; cursor: pointer; padding: 4px 7px; border-radius: 7px; }
.mh-x:hover { color: #ff5a3c; background: color-mix(in srgb, #ff5a3c 12%, transparent); }
.mh-noise { margin-top: 22px; }
.mh-noise summary { font-size: 13.5px; color: var(--faint); cursor: pointer; padding: 8px 0; }
.mh-noise .mh-row { opacity: .55; margin-top: 10px; }
@media (max-width: 720px) { .mh-stats { grid-template-columns: repeat(2, 1fr); } .mh-row { flex-direction: column; } .mh-meta { align-items: flex-start; text-align: left; } }
/* Le Cap · la bande MacBook Pro de la Forteresse */
.cap-band { position: relative; background: #0f0f0f; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: clamp(28px, 4vw, 48px); margin: 0 auto 40px; max-width: 1080px; overflow: hidden; }
.cap-band::before { content: ""; position: absolute; top: 0; left: clamp(28px, 4vw, 48px); height: 4px; width: 64px; background: linear-gradient(90deg, var(--flf), transparent); }
.cap-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.cap-big { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); flex-wrap: wrap; margin-bottom: 24px; }
.cap-pct { font-family: var(--display); font-size: clamp(64px, 9vw, 118px); font-weight: 800; letter-spacing: -.03em; line-height: .9; font-variant-numeric: tabular-nums; }
.cap-pct i { font-style: normal; font-size: .38em; font-weight: 700; opacity: .75; }
.cap-verdict { font-size: clamp(19px, 2.4vw, 27px); font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.25; max-width: 480px; }
.cap-verdict span { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 8px; letter-spacing: 0; }
.cap-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 3px; margin-bottom: 12px; }
.cap-bar i { display: block; height: 100%; border-radius: 4px; transition: width 1s cubic-bezier(.25,.46,.45,.94); }
.cap-leg { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.cap-leg span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.cap-leg i { width: 10px; height: 10px; border-radius: 3px; }
.cap-leg b { color: var(--text); font-variant-numeric: tabular-nums; }
.cap-why { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.cap-w { font-size: 15px; line-height: 1.55; color: var(--muted); }
.cap-links { margin-top: 18px; }
/* Ma semaine · la grande page */
.sp-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.sp-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sp-legend i { width: 10px; height: 10px; border-radius: 3px; }
.l-ev { background: #6ba7ff; } .l-act { background: #ffb84d; } .l-plan { background: #b48cff; }
.sp-scroll { overflow-x: auto; padding-bottom: 12px; }
.sp-grid { display: grid; grid-template-columns: repeat(7, minmax(250px, 1fr)); gap: 14px; min-width: 1800px; }
.sp-col { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; min-height: 380px; cursor: pointer; transition: transform .25s var(--ease), border-color .25s; }
.sp-col:hover { transform: translateY(-3px); border-color: var(--faint); }
.sp-col.today { border-color: color-mix(in srgb, var(--flf) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--flf) 25%, transparent); }
.sp-colh { margin-bottom: 16px; }
.sp-colh b { display: block; font-size: 18px; font-weight: 700; text-transform: capitalize; color: var(--text); letter-spacing: -.01em; }
.sp-colh span { display: block; font-size: 13.5px; color: var(--faint); margin-top: 2px; }
.sp-colh em { display: inline-block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--flf); margin-top: 5px; }
.sp-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; margin-bottom: 9px; background: var(--surface-2); border-left: 3px solid transparent; }
.sp-item.ev { border-left-color: #6ba7ff; } .sp-item.act { border-left-color: #ffb84d; } .sp-item.plan { border-left-color: #b48cff; opacity: .9; }
.sp-h { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-top: 3px; min-width: 36px; }
.sp-item b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.sp-item i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
/* Agenda calculé · charge du jour + blocs posés + le pourquoi */
.sp-load { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.sp-load b { display: block; font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; font-family: var(--display); letter-spacing: -.01em; }
.sp-load span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.dj-plan { background: color-mix(in srgb, #a06bff 10%, var(--surface-2)); border-color: color-mix(in srgb, #a06bff 35%, var(--line)); border-left-width: 4px; }
.dj-load { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.dj-load span { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.dj-load b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin-top: 6px; font-variant-numeric: tabular-nums; }
.dj-load i { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 5px; }
.dj-why { font-size: 14px; line-height: 1.55; color: var(--muted); margin-bottom: 9px; }
/* Vue JOUR · les 24 heures, de minuit à minuit */
.sem-ctl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.sem-daynav { display: flex; align-items: center; gap: 14px; }
.sem-daynav b { font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--text); text-transform: capitalize; min-width: 220px; text-align: center; }
.dj-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.dj-tl-wrap { max-height: 72vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.dj-tl { position: relative; margin: 10px 14px 10px 0; }
.dj-hour { position: absolute; left: 0; right: 0; border-top: 1px solid color-mix(in srgb, var(--line) 68%, transparent); }
.dj-hour span { position: absolute; top: -9px; left: 14px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; background: var(--surface); padding-right: 8px; }
.dj-ev { position: absolute; left: 84px; right: 10px; background: color-mix(in srgb, #2F80FF 16%, var(--surface-2)); border: 1px solid color-mix(in srgb, #2F80FF 45%, var(--line)); border-left: 4px solid #6ba7ff; border-radius: 12px; padding: 10px 14px; overflow: hidden; }
.dj-ev b { display: block; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.dj-ev span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dj-now { position: absolute; left: 70px; right: 0; height: 2px; background: #ff3b30; z-index: 3; }
.dj-now i { position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; }
.dj-side { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.dj-side-h { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-bottom: 14px; }
@media (max-width: 980px) { .dj-wrap { grid-template-columns: 1fr; } .sem-daynav b { min-width: 0; } }
/* Check-in : journée entière + widget semaine cliquable */
.jn-day { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }
.jn-day input { accent-color: var(--flf); }
.ab-more-link { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; color: var(--faint); }
.wkw-title { cursor: pointer; }
.wkw-openlink { font-size: 12px; font-weight: 600; color: var(--flf); margin-left: 8px; opacity: 0; transition: opacity .2s; }
.wkw-title:hover .wkw-openlink { opacity: 1; }
.wkw-grid { cursor: pointer; }
.wkw-ev.plan i { color: #b48cff; }
/* Ta semaine · agenda 7 jours */
.wkw { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px 38px; margin: 72px 0; }
.wkw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wkw-head b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.wkw-head span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 5px; }
.wkw-need { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 14px; }
.wkw-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wkw-day { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-height: 118px; }
.wkw-day.today { border-color: color-mix(in srgb, var(--flf) 45%, var(--line)); }
.wkw-dh { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.wkw-dh b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); font-weight: 700; }
.wkw-dh span { font-size: 18px; font-weight: 800; color: var(--text); font-family: var(--display); }
.wkw-day.today .wkw-dh span { color: var(--flf); }
.wkw-ev { margin-bottom: 6px; }
.wkw-ev i { display: block; font-style: normal; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: #6ba7ff; font-weight: 700; }
.wkw-ev.int i { color: #ffb84d; }
.wkw-ev b { display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wkw-empty { color: var(--faint); font-size: 13px; text-align: center; padding-top: 10px; }
@media (max-width: 860px) { .wkw-grid { grid-template-columns: repeat(4, 1fr); } .wkw-day:nth-child(n+5) { display: none; } }
/* La citation du jour · partout, discrète, éditoriale */
.flf-cite { max-width: 620px; margin: 52px auto 16px; text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 17px; line-height: 1.6; color: var(--muted); opacity: .85; }
/* Widgets repliables · chevron Apple */
.pj-hbtns { display: flex; align-items: center; gap: 10px; flex: none; }
.w-fold { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; transition: transform .3s var(--ease), border-color .2s; transform: rotate(90deg); }
.w-fold:hover { border-color: var(--faint); color: var(--text); }
.folded .w-fold { transform: rotate(0deg); }
.w-body { overflow: hidden; max-height: 4000px; opacity: 1; transition: max-height .45s var(--ease), opacity .3s ease, margin .3s ease; }
.folded .w-body { max-height: 0; opacity: 0; margin: 0; }
.pj.folded, .wkw.folded { padding-bottom: 22px; }
.pj.folded .pj-head, .wkw.folded .wkw-head { margin-bottom: 0; }
/* Le plan du jour · timeline horaire */
.pj { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px 38px; margin: 72px 0; }
.pj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pj-head b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.pj-head span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 5px; }
.pj-list { display: flex; flex-direction: column; }
.pj-b { display: flex; align-items: center; gap: 15px; padding: 13px 6px; border-radius: 12px; }
.pj-b[data-bgoto] { cursor: pointer; }
.pj-b:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
/* Poignée de glisser-déposer + états */
.pj-drag { flex: none; width: 16px; text-align: center; color: var(--faint); cursor: grab; font-size: 15px; line-height: 1; opacity: 0; transition: opacity .15s; user-select: none; }
.pj-b:hover .pj-drag { opacity: .7; }
.pj-drag:active { cursor: grabbing; }
.pj-b.pj-dragging { opacity: .4; }
.pj-b.pj-over { box-shadow: inset 0 2px 0 var(--flf); background: color-mix(in srgb, var(--flf) 7%, transparent); }
.pj-b .bc-act[data-bedit] { opacity: 0; transition: opacity .15s; }
.pj-b:hover .bc-act[data-bedit] { opacity: 1; }
.pj-h { flex: none; width: 78px; font-size: 14.5px; color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 600; }
.pj-line { flex: none; width: 4px; height: 42px; border-radius: 3px; }
.pj-main { flex: 1; min-width: 0; }
.pj-main b { display: block; font-size: 16.5px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-main i { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.pj-b .bc-acts { opacity: 0; }
.pj-b:hover .bc-acts { opacity: 1; }
.pj-foot { font-size: 13px; color: var(--faint); margin-top: 16px; }
/* Là, maintenant · check-in temps réel */
.jn { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px 38px; margin: 72px 0 0; }
.jn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.jn-now { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jn-now b { font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.jn-since { font-size: 15px; color: var(--muted); }
.jn-pulse { width: 11px; height: 11px; border-radius: 50%; animation: jnPulse 2s ease-in-out infinite; }
@keyframes jnPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.jn-mic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 19px; cursor: pointer; transition: transform .2s, border-color .2s; }
.jn-mic:hover { transform: scale(1.06); border-color: var(--faint); }
.jn-mic.rec { background: #ff3b30; color: #fff; border-color: #ff3b30; animation: jnPulse 1s ease-in-out infinite; }
/* Transcription en direct + bouton Arrêter (le carré) */
.jn-live { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,59,48,.3); background: rgba(255,59,48,.08); }
.jn-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; flex: 0 0 auto; animation: jnPulse 1s ease-in-out infinite; }
.jn-live-txt { flex: 1; min-width: 0; font-size: 14px; color: var(--text); line-height: 1.4; }
.jn-live-stop { flex: 0 0 auto; background: #ff3b30; color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.jn-live-stop:hover { background: #e0332a; }
.jn-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.jn-chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 600; padding: 11px 19px; cursor: pointer; font-family: var(--font); transition: border-color .15s, transform .15s; }
.jn-chip:hover { transform: translateY(-1px); border-color: var(--jc); }
.jn-chip.on { border-color: var(--jc); box-shadow: inset 0 0 0 1px var(--jc); color: var(--text); }
.jn-noterow { display: flex; gap: 10px; }
.jn-note { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--text); font-size: 14px; font-family: var(--font); outline: none; }
.jn-note:focus { border-color: var(--faint); }
.jn-tl { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; }
.jn-tl-e { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-radius: 8px; }
.jn-tl-e:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.jn-tl-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.jn-tl-h { flex: none; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; width: 44px; }
.jn-tl-t { flex: 1; min-width: 0; font-size: 15.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jn-tl-t b { color: var(--text); font-weight: 600; }
.jn-tl-d { flex: none; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.jn-tl-x { flex: none; background: transparent; border: none; color: var(--faint); font-size: 12px; cursor: pointer; opacity: 0; padding: 2px 6px; }
.jn-tl-e:hover .jn-tl-x { opacity: 1; }
.jn-tl-x:hover { color: #ff5a3c; }
.jn-total { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.jn-total span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; }
.jn-total i { width: 9px; height: 9px; border-radius: 50%; }
/* Brief v2 dans la tuile d'accueil */
.ab-brief { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; }
.ab-coup1 { background: transparent; border: none; text-align: left; cursor: pointer; font-family: var(--font); color: inherit; padding: 0; }
.ab-acts1 { position: absolute; top: 18px; right: 18px; opacity: 0; }
.ab-brief:hover .ab-acts1 { opacity: 1; }
.ab-coups-more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 6px; display: flex; flex-direction: column; }
.ab-coup-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; cursor: pointer; border-radius: 10px; text-align: left; }
.ab-cr-main b, .ab-cr-main i { text-align: left; }
.ab-coup-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.ab-coup-row .bc-rank { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ab-cr-main { flex: 1; min-width: 0; }
.ab-cr-main b { display: block; font-size: 14.5px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-cr-main i { display: block; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ab-coup-row .bc-acts { opacity: 0; }
.ab-coup-row:hover .bc-acts { opacity: 1; }
.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-2); text-align: center; }
.wt-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; }
.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; flex-direction: column; align-items: center; gap: 6px; }
.wt-big { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; text-align: center; transition: opacity .15s; }
.wt-big:hover { opacity: .82; }
.wt-val { font-family: var(--display); font-size: clamp(46px, 7.4vw, 84px); line-height: 1; letter-spacing: -.025em; color: var(--text); }
.wt-obj { font-family: var(--serif); font-style: italic; font-size: clamp(17px,1.7vw,20px); 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: 15px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.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(200px, 1fr)); gap: 14px; margin-top: 24px; }
.wt-stat { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px 22px 20px; text-align: left; cursor: pointer; transition: border-color .25s cubic-bezier(.16,1,.3,1), transform .25s cubic-bezier(.16,1,.3,1); }
.wt-stat:hover { border-color: rgba(43,87,230,.5); transform: translateY(-4px); }
.wt-stat span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
/* 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(43,87,230,.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: clamp(24px, 2.4vw, 32px); line-height: 1; color: var(--text); letter-spacing: -.02em; white-space: nowrap; display: block; }
.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: 16px; padding: 22px 22px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; transition: border-color .25s cubic-bezier(.16,1,.3,1), transform .25s cubic-bezier(.16,1,.3,1); }
.wt-e2:hover { transform: translateY(-3px); }
.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: clamp(22px,2.2vw,28px); color: var(--text); letter-spacing: -.02em; }
.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: 14.5px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.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(43,87,230,.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(43,87,230,.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; }
.cine-h1.fx-grad { text-shadow: none; background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.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; }
/* Fil d'Ariane universel · chaque niveau cliquable */
.bct { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0 14px; font-size: 13.5px; }
.bct-l { color: var(--muted); cursor: pointer; text-decoration: none; font-weight: 550; transition: color .16s; }
.bct-l:hover { color: var(--text); }
.bct-cur { color: var(--text); font-weight: 650; }
.bct-sep { color: var(--faint); font-size: 12px; }
/* Une page = un sujet : colonne pleine centrée (fini la sidebar + fini le héros vidéo), façon Bilan/Résultat. */
.cs-single { max-width: 1120px; margin: 8px auto 0; }
.cs-single .cs-main { min-width: 0; }
.cs-topbar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; margin: 18px 0 4px; }
.cs-topbar .air-eyebrow { margin: 0; }
.cs-controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cs-more { margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.cs-more-h { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.cs-more-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 22px; }
.cs-more-i { display: inline-flex; align-items: center; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 550; color: var(--text); cursor: pointer; text-decoration: none; transition: background .16s, border-color .16s; }
.cs-more-i:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--flf) 40%, var(--line)); }
.cs-more-hub { background: none; border: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 0; font-family: var(--font); transition: color .16s; }
.cs-more-hub:hover { color: var(--flf); }
/* Plan de la compta (hub) : groupes de cartes aérés */
.cpthub-g { margin-bottom: 38px; }
.cpthub-gh { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px 2px; }
.shc-c-groupe .shc-ic { background: #6b7280; }
.shc-c-att .shc-ic { background: #ff9f0a; }
.shc-c-banquesasu .shc-ic { background: #2F80FF; }
.shc-c-banquellc .shc-ic { background: #2B57E6; }
.shc-c-cli .shc-ic { background: #ff8f6b; }
.shc-c-fix .shc-ic { background: #a06bff; }
.shc-c-mat .shc-ic { background: #12b886; }
.shc-c-fou .shc-ic { background: #5b8def; }
.shc-c-val .shc-ic { background: #2F80FF; }
.shc-c-an .shc-ic { background: #FF2D78; }
.shc-c-prev .shc-ic { background: #e8c268; }
@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(43,87,230,.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; justify-content: center; gap: clamp(6px, 1.6vw, 26px); margin: 30px 0 8px; height: 58px; border-top: none; border-bottom: 1px solid var(--line-2); }
.navbar .nb-grow { display: none; }
.nb-top { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: -.01em; padding: 9px 8px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color .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(43,87,230,.55); box-shadow: 0 0 0 4px rgba(43,87,230,.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: 10px; flex-wrap: wrap; font-size: clamp(20px,2.4vw,28px); font-weight: 640; letter-spacing: -.015em; text-transform: none; color: var(--text); margin-bottom: 20px; }
.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: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.pdlg-f:last-child { margin-bottom: 0; }
.pdlg-f .field { margin-top: 9px; text-align: left; }
.pdlg-f .field { height: 54px; }
.pdlg-f select.field { height: 54px; }
.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, #2B57E6); }
.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, #2B57E6); }
.idea-dlg .idea-brief { font-size: 12px; color: var(--muted); background: rgba(43,87,230,.06); border-left: 2px solid var(--accent, #2B57E6); 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: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 4px 0 30px; }
.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: 14.5px; font-weight: 600; padding: 12px 8px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.pdlg-tab-btn:hover { color: var(--text); }
.pdlg-tab-btn.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 4px 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 { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 20px 4px; transition: border-color .15s; }
.gm-thread:hover { border-color: rgba(255,255,255,.16); }
.gm-thread.open { border-color: rgba(43,87,230,.35); }
.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: 16px 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: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.gm-meta { display: block; font-size: 14px; color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-th-date { font-size: 13px; 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-cc { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin-left: 8px; }
.gm-date { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.gm-snip { font-size: 15px; line-height: 1.55; color: var(--muted); cursor: pointer; }
/* Corps d'un MESSAGE de mail (déplié au clic) · scopé à .gm-msg : ne doit JAMAIS toucher les volets
   de section #gmBody / #dvBody des espaces, qui portent aussi la classe gm-body (bug DR107 corrigé). */
.gm-msg .gm-body { font-size: 14.5px; line-height: 1.68; color: #d6d6db; white-space: pre-wrap; word-break: break-word; display: none; background: none; border: none; padding: 0; margin-top: 0; border-radius: 0; }
.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, #2B57E6); 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: 13.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.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; gap: 12px; }

/* Suivi des envois · ouvertures + clics des mails partis du portail (edge mail-track) */
.mt-sec { margin: 4px 0 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.mt-h { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; font-size: 16px; font-weight: 650; color: var(--text); border-bottom: 1px solid var(--line); }
.mt-hint { font-size: 12.5px; font-weight: 400; color: var(--faint); }
.mt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.mt-row:last-of-type { border-bottom: 0; }
.mt-row-l { min-width: 0; }
.mt-subj { font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-meta { font-size: 12px; color: var(--faint); margin-top: 3px; }
.mt-row-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.mt-badge { font-size: 12px; font-weight: 650; border-radius: 999px; padding: 5px 12px; }
.mt-vu { color: #0a7d33; background: rgba(52, 199, 89, .12); }
.mt-no { color: var(--faint); background: var(--surface-2); }
.mt-clic { color: var(--flf); background: rgba(43,87,230, .12); }
.mt-t { font-size: 12px; color: var(--muted); }
.mt-link { font-size: 12px; color: #0066cc; text-decoration: underline; }
.mt-note { padding: 12px 20px; font-size: 11.5px; color: var(--faint); background: var(--surface-2); }
.mt-on .mt-subj { color: var(--text); }
body.page-white #view .mt-vu { color: #0a7d33; }
body.page-white #view .mt-clic { color: var(--flf); }
body.page-white #view .mt-subj { color: #1d1d1f; }

/* ============================================================
   MESSAGERIE · client mail complet dans la fiche (barre, avatars,
   cartes lisibles, texte cité repliable, composer flottant, animations)
   ============================================================ */
.gm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 0 18px; }
.gm-bar-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gm-bar-t { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.gm-bar-sub { font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-new { white-space: nowrap; flex-shrink: 0; }

/* En-tête de conversation : avatar + objet + méta, tout aligné, cliquable */
.gm-thread-head { align-items: center !important; gap: 14px !important; }
.gm-th-ava, .mm-ava { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: #fff; background: color-mix(in srgb, var(--accent, #2B57E6) 30%, #7a7a80); }
.gm-th-ava { width: 42px; height: 42px; }
.gm-th-l { flex: 1; }

/* Fil déplié : animation douce d'ouverture */
.gm-msgs { display: grid !important; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .34s var(--ease, cubic-bezier(.4,0,.2,1)), opacity .3s ease, padding .34s ease; padding: 0 2px !important; }
.gm-msgs > * { overflow: hidden; min-height: 0; }
.gm-thread.open .gm-msgs { grid-template-rows: 1fr; opacity: 1; padding: 14px 2px 4px !important; }
.gm-thread-foot { display: none; margin: 4px 2px 8px; }
.gm-thread.open .gm-thread-foot { display: block; }
.gm-reply-btn { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--flf); background: color-mix(in srgb, var(--accent, #2B57E6) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #2B57E6) 30%, transparent); border-radius: 999px; padding: 9px 20px; cursor: pointer; transition: background .2s, transform .1s; }
.gm-reply-btn:hover { background: color-mix(in srgb, var(--accent, #2B57E6) 18%, transparent); }
.gm-reply-btn:active { transform: scale(.97); }

/* MESSAGE (mm) · carte lisible, animation d'apparition */
.mm { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line); animation: mmIn .4s var(--ease, ease) both; }
.mm:first-child { border-top: none; }
@keyframes mmIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mm-head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.mm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mm-name { font-size: 15px; font-weight: 650; color: var(--text); }
.mm-me .mm-name { color: var(--flf); }
.mm-ava-me { background: color-mix(in srgb, var(--accent, #2B57E6) 55%, #000); }
.mm-addr { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-date { font-size: 12.5px; color: var(--faint); white-space: nowrap; flex-shrink: 0; }
.gm-cc { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.mm-preview { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 8px 0 0 52px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-full { display: grid; grid-template-rows: 0fr; opacity: 0; margin-left: 52px; transition: grid-template-rows .3s var(--ease, ease), opacity .26s ease, margin-top .3s ease; }
.mm-full > * { overflow: hidden; min-height: 0; }
.mm-open .mm-preview { display: none; }
.mm-open .mm-full { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.mm-text { font-size: 15px; line-height: 1.62; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.mm-qbtn { align-self: flex-start; margin-top: 12px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--faint); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 12px; cursor: pointer; line-height: 1.4; }
.mm-qbtn:hover { color: var(--text); }
.mm-quote { display: none; margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--faint); white-space: pre-wrap; word-break: break-word; }
.mm-full.show-quote .mm-quote { display: block; }

/* Lisibilité forcée sur les pages claires (le texte des mails doit être noir, pas gris) */
body.page-white #view .mm-name, body.page-white #view .mm-text { color: #1d1d1f; }
body.page-white #view .mm-me .mm-name { color: var(--flf); }
body.page-white #view .mm-preview { color: #6e6e73; }

/* COMPOSEUR FLOTTANT · fenêtre façon Gmail, ancrée en bas à droite, glisse à l'ouverture */
.mc-wrap { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 24px 24px; pointer-events: none; }
.mc-panel { pointer-events: auto; width: min(560px, 94vw); max-height: min(78vh, 720px); display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px 18px 14px 14px; box-shadow: 0 30px 80px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.14); transform: translateY(24px) scale(.98); opacity: 0; transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .22s ease; overflow: hidden; }
.mc-wrap.on .mc-panel { transform: none; opacity: 1; }
.mc-wrap.mini .mc-panel { max-height: 56px; }
.mc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); cursor: default; }
.mc-title { font-size: 15px; font-weight: 700; color: var(--text); }
.mc-head-a { display: flex; gap: 4px; }
.mc-min, .mc-x { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1; }
.mc-min:hover, .mc-x:hover { background: var(--line); color: var(--text); }
.mc-fields { padding: 4px 18px 0; }
.mc-f { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.mc-lab { font-size: 13px; color: var(--faint); width: 44px; flex-shrink: 0; }
.mc-in { flex: 1; border: none; background: transparent; padding: 13px 0; font-family: var(--font); font-size: 15px; color: var(--text); outline: none; }
.mc-body { flex: 1; min-height: 180px; border: none; background: transparent; padding: 16px 18px; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); outline: none; resize: none; }
.mc-attach { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px; }
.mc-attach:not(:empty) { padding: 4px 18px 10px; }
.mc-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 14px; }
.mc-chip-n { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-chip-s { color: var(--faint); font-size: 11px; }
.mc-chip button { width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--line); color: var(--muted); cursor: pointer; font-size: 11px; line-height: 1; }
.mc-chip button:hover { background: var(--flf); color: #fff; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.mc-tool { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); transition: background .2s; }
.mc-tool:hover { background: var(--surface-2); color: var(--text); }
.mc-clip { font-size: 15px; }
.mc-send-wrap { display: flex; align-items: center; gap: 12px; }
.mc-note { font-size: 12px; color: var(--muted); }
.mc-send { width: auto !important; padding: 12px 30px; background: var(--flf, #2B57E6) !important; color: #fff !important; font-weight: 700; box-shadow: 0 6px 20px rgba(43,87,230,.28); }
.mc-send:hover { opacity: 1; box-shadow: 0 8px 26px rgba(43,87,230,.38); }
.mc-send:disabled { opacity: .55; }
@media (max-width: 640px) { .mc-wrap { padding: 0; align-items: stretch; justify-content: stretch; } .mc-panel { width: 100%; max-height: 100%; height: 100%; border-radius: 0; } }
/* Composer toujours en clair (il flotte au-dessus de fiches blanches) — palette fixe, lisible, premium */
.mc-panel { background: #fff; color: #1d1d1f; border-color: #e3e3e6; }
.mc-head { background: #f5f5f7; border-color: #e8e8ea; }
.mc-title { color: #1d1d1f; }
.mc-min, .mc-x { color: #6e6e73; }
.mc-min:hover, .mc-x:hover { background: #e8e8ea; color: #1d1d1f; }
.mc-f { border-color: #e8e8ea; }
.mc-lab { color: #86868b; }
.mc-in, .mc-body { color: #1d1d1f; }
.mc-in::placeholder, .mc-body::placeholder { color: #b0b0b5; }
.mc-foot { background: #fff; border-color: #e8e8ea; }
.mc-tool { color: #515154; border-color: #e3e3e6; }
.mc-tool:hover { background: #f5f5f7; color: #1d1d1f; }
.mc-chip { background: #f5f5f7; border-color: #e3e3e6; color: #1d1d1f; }
.mc-chip-s { color: #86868b; }
.mc-chip button { background: #e3e3e6; color: #6e6e73; }
.mc-note { color: #6e6e73; }

/* Fiche contact · pleine page */
.cpage { max-width: 1080px; margin: 0 auto; }
.cpage-head { display: flex; align-items: center; gap: 22px; margin: 8px 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.cpage-head .pdlg-mono { width: 84px; height: 84px; font-size: 28px; border-radius: 50%; color: #fff; background: color-mix(in srgb, var(--accent, #2B57E6) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent, #2B57E6) 40%, transparent); }
.cpage-id { min-width: 0; }
.cpage-id h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; margin: 0 0 8px; }
.cpage-id .meta { font-size: 16px; }
.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: 15px 18px; border: 1px solid var(--line-2); border-radius: 16px;
  margin-bottom: 9px; background: var(--surface); transition: transform .15s var(--ease-out), border-color .2s;
}
.exp-row:hover { border-color: color-mix(in srgb, var(--flf) 26%, var(--line-2)); transform: translateY(-2px); }
.exp-info { font-size: 14px; }
.exp-info b { font-weight: 600; }
.exp-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.exp-meta.late { color: #ff6b6b; }
.exp-right { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; 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; }
/* Sélecteur segmenté façon apple.com (conteneur pilule + case blanche sélectionnée) */
.ct-chips { display: flex; gap: 4px; flex-wrap: wrap; width: fit-content; max-width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.ct-chip {
  background: transparent; border: none; color: var(--muted);
  border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: color .15s var(--ease-out), background .15s var(--ease-out);
}
.ct-chip:hover { color: var(--text); }
.ct-chip.on { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.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: 18px; padding: 20px 22px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; 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: 54px; height: 54px; border-radius: 50%; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; 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: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; 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, #2B57E6); border-color: var(--accent, #2B57E6); 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); }
/* FICHE CLIENT · pleine page apple */
.fiche { max-width: 1080px; margin: 0 auto; }
.fiche-bar { margin: 6px 0 20px; }
.fiche-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 8px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.fiche-ava { width: 88px; height: 88px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 30px; letter-spacing: .04em; color: #fff; background: color-mix(in srgb, var(--accent, #2B57E6) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent, #2B57E6) 40%, transparent); }
.fiche-id { flex: 1; min-width: 220px; }
.fiche-eyebrow { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent, #2B57E6); margin-bottom: 8px; }
.fiche-name { font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 0; }
.fiche-sub { font-size: 17px; color: var(--muted); margin: 12px 0 0; }
.fiche-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fiche-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
@media (max-width: 760px) { .fiche-stats { grid-template-columns: 1fr 1fr; } }
.fiche-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; animation: clxUp .55s cubic-bezier(.16,1,.3,1) both; }
.fiche-stat:nth-child(2){animation-delay:.06s}.fiche-stat:nth-child(3){animation-delay:.12s}.fiche-stat:nth-child(4){animation-delay:.18s}
.fiche-stat span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.fiche-stat b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.fiche-stat i { font-size: 13px; color: var(--muted); font-style: normal; }
.fiche-sec { margin-bottom: 48px; }
.fiche-sec .ac-sec-title { margin-bottom: 22px; }
.fiche-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.fiche-sec-h .ac-sec-title { margin-bottom: 0; }
.fiche-type { flex-shrink: 0; }

/* Lien personne → entreprise (fiche personne : où elle bosse) */
.fiche-employer { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.fiche-emp-l { font-size: 13px; color: var(--faint); }
.emp-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 15px; font-weight: 650; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.emp-chip:hover { border-color: color-mix(in srgb, var(--accent, #2B57E6) 40%, var(--line)); background: color-mix(in srgb, var(--accent, #2B57E6) 8%, var(--surface-2)); }
.emp-chip .emp-chev { color: var(--faint); }
.emp-add { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--flf); background: color-mix(in srgb, var(--accent, #2B57E6) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--accent, #2B57E6) 40%, transparent); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.emp-add:hover { background: color-mix(in srgb, var(--accent, #2B57E6) 16%, transparent); }
.emp-add b { font-weight: 700; }
body.page-white #view .emp-chip { color: #1d1d1f; }
.emp-results { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.emp-hint { font-size: 12px; color: var(--faint); margin: 4px 0; }
.emp-res { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; font-family: var(--font); }
.emp-res:hover { border-color: var(--flf); }
.emp-res b { font-size: 14.5px; color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.emp-res span { font-size: 12px; color: var(--faint); }
.emp-reg { border-color: color-mix(in srgb, var(--accent, #2B57E6) 22%, var(--line)); }
.emp-flag { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--flf); background: color-mix(in srgb, var(--accent, #2B57E6) 14%, transparent); border-radius: 6px; padding: 1px 7px; }

/* INTERLOCUTEURS · une entreprise, plusieurs profils humains rattachés */
.ppl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ppl-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 18px 20px; transition: border-color .2s, box-shadow .2s; }
.ppl-card:hover { border-color: color-mix(in srgb, var(--accent, #2B57E6) 30%, var(--line)); box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.ppl-head { display: flex; align-items: center; gap: 12px; }
.ppl-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 0; margin: 0; cursor: pointer; text-align: left; font-family: var(--font); }
.ppl-open:hover .ppl-id b { color: var(--flf); }
.pf-static { font-size: 15.5px; color: var(--text); line-height: 1.5; padding: 4px 0; }
.pf-notes { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; }
body.page-white #view .pf-static { color: #1d1d1f; }
.ppl-ava { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--accent, #2B57E6) 32%, #7a7a80); }
.ppl-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ppl-id b { font-size: 16px; font-weight: 650; color: var(--text); }
.ppl-id span { font-size: 13px; color: var(--faint); }
.ppl-star { color: #f5b301; font-size: 13px; }
.ppl-mini { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; flex-shrink: 0; }
.ppl-mini:hover { color: var(--text); border-color: var(--muted); }
.ppl-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ppl-chip { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; }
a.ppl-chip:hover { color: var(--text); border-color: var(--muted); }
.ppl-pcm { color: var(--flf); background: color-mix(in srgb, var(--accent, #2B57E6) 12%, transparent); border-color: color-mix(in srgb, var(--accent, #2B57E6) 28%, transparent); }
.ppl-int { margin-top: 12px; font-size: 13px; color: var(--faint); }
.ppl-mails-t { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; padding: 12px 16px; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: background .2s; }
.ppl-mails-t:hover { background: color-mix(in srgb, var(--accent, #2B57E6) 8%, var(--surface-2)); }
.ppl-chev { color: var(--faint); transition: transform .25s var(--ease, ease); }
.ppl-mails-t.open .ppl-chev { transform: rotate(90deg); }
.ppl-mails { margin-top: 12px; }
body.page-white #view .ppl-id b, body.page-white #view .ppl-mails-t { color: #1d1d1f; }
body.page-white #view .ppl-pcm { color: var(--flf); }
.fiche-list { display: flex; flex-direction: column; gap: 10px; }
.fiche-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; cursor: pointer; transition: border-color .15s, transform .15s var(--ease-out); }
.fiche-row:hover { border-color: rgba(43,87,230,.5); transform: translateX(2px); }
.fiche-row div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fiche-row b { font-size: 16px; font-weight: 600; color: var(--text); }
.fiche-row span { font-size: 13px; color: var(--muted); }
.fiche-row em { font-size: 15px; font-weight: 600; color: var(--muted); font-style: normal; white-space: nowrap; }
.fiche-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.fiche-badge.ok { color: #34c759; border-color: rgba(52,199,89,.4); }
.fiche-badge.wait { color: var(--muted); }
.fiche-badge.bad { color: #ff6b6b; border-color: rgba(255,107,107,.4); }
.fiche-time { display: flex; flex-direction: column; gap: 2px; }
.fiche-tl { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fiche-tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent, #2B57E6); flex: none; margin-top: 6px; }
.fiche-tl div { display: flex; flex-direction: column; gap: 3px; }
.fiche-tl b { font-size: 15px; font-weight: 550; color: var(--text); }
.fiche-tl span { font-size: 13px; color: var(--faint); }
.cd-resume { font-size: 14px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd-resume .ct-temp { gap: 3px; }
.cd-sec { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700;
  margin: 22px 0 6px; padding-bottom: 8px; 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: 16px; }
@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: 13px; color: var(--muted); letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.cd-hint { font-size: 12px; 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; }
/* Vue détaillée compta · langage Apple : grand format, air, révélations au défilement (tous les sujets) */
.cs { margin: 84px 0 0; scroll-margin-top: 130px; }
.cs:first-of-type { margin-top: 36px; }
/* ═══ Langage apple.com/iphone-17-pro appliqué à CHAQUE page compta ═══
   Centré, typo monumentale, stats géantes comme point focal, air maximal,
   révélations au défilement. Une page = une histoire qui se déroule. */
.cs-main > * { opacity: 0; transform: translateY(42px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.cs-main > *.in { opacity: 1; transform: none; }
.cs-main > * + * { margin-top: 72px; }
/* En-tête de section · centré et monumental, façon hero produit Apple */
.cs-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; margin-bottom: 8px; }
.cs-head h2 { font-family: var(--font); font-size: clamp(38px, 5vw, 68px); font-weight: 680; letter-spacing: -.035em; margin: 0 0 22px; line-height: 1.03;
  background: linear-gradient(180deg, #fff 30%, #b6b7bd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs-head h2 em { font-style: normal; font-weight: 680; background: linear-gradient(90deg, #2B57E6, #FF2D78 55%, #a06bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs-explain { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--muted); max-width: 44ch; margin: 0 auto; letter-spacing: -.01em; }
.cs-head > div { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
/* Stats en cartes aérées · taille juste (jamais déformé) + lueur de couleur par carte (variété Apple) */
.cs-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 0; border: none; }
.cs-num { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 38px 26px 32px; overflow: hidden; transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s; }
.cs-num::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% -12%, color-mix(in srgb, var(--kc, var(--flf)) 15%, transparent), transparent 62%); pointer-events: none; }
.cs-num:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--kc, var(--flf)) 45%, var(--line)); box-shadow: 0 24px 60px rgba(0,0,0,.34); }
.cs-num:nth-child(1) { --kc: #2F80FF; } .cs-num:nth-child(2) { --kc: #FF2D78; }
.cs-num:nth-child(3) { --kc: #2B57E6; } .cs-num:nth-child(4) { --kc: #a06bff; }
.cs-v { position: relative; font-family: var(--display); font-size: clamp(28px, 2.5vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-v.small { font-size: 24px; white-space: normal; }
.cs-u { font-size: .44em; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: .16em; white-space: nowrap; }
.cs-v.neg { color: #ff3b30; }
.cs-v.warn { color: #ff9f0a; }
.cs-v .k-usd { font-size: .5em; color: var(--muted); font-weight: 600; display: block; margin-top: 6px; }
.cs-nl { position: relative; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 20px; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 9px; }
.cs-nl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kc, var(--flf)); flex-shrink: 0; box-shadow: 0 0 12px var(--kc, var(--flf)); }
.cs-ns { position: relative; font-size: 13.5px; color: var(--faint); margin-top: 10px; font-style: normal; line-height: 1.5; }
.cs-list { display: flex; flex-direction: column; gap: 2px; }
/* Apparition en cascade des cartes (Apple) */
.cs-nums .cs-num { opacity: 0; transform: translateY(26px); animation: csRise .7s cubic-bezier(.22,1,.36,1) forwards; }
.cs-nums .cs-num:nth-child(2) { animation-delay: .09s; } .cs-nums .cs-num:nth-child(3) { animation-delay: .18s; } .cs-nums .cs-num:nth-child(4) { animation-delay: .27s; }
@keyframes csRise { to { opacity: 1; transform: none; } }
/* Nav latérale · plus grande et aérée */
.cs-side-i { font-size: 15.5px; padding: 11px 14px; }
.cs-side-h { font-size: 12px; }
@media (max-width: 640px) { .cs { margin-top: 48px; } .cs-v { font-size: 30px; } .cs-nav { top: 52px; } }
.cs-num.click { cursor: pointer; }
.cs-num.click:hover { border-color: color-mix(in srgb, var(--flf) 50%, var(--line)); transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0,0,0,.28); }

/* ============================================================
   GRAND FORMAT APPLE (compta d'entité) · préfixe .fx- pour éviter
   toute collision avec le composant .ap-* existant (sections landing).
   Rendu exactement comme une page produit apple.com : page qui se
   déroule, un chiffre géant par bande, révélations + count-up au
   défilement, nav locale à pastilles collante. Typo SF Pro (var --font).
   ============================================================ */
.fxpage { --fx-ease: cubic-bezier(.16,1,.3,1); margin: 4px 0 8px; }
.fx-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.fx-chips .fx-year { margin-left: auto; }

/* Héros produit : titre monumental centré + chiffre héros */
.fx-hero { text-align: center; padding: clamp(48px,9vh,120px) 20px clamp(40px,7vh,88px); }
.fx-eyebrow { font: 600 clamp(13px,1.3vw,17px)/1.3 var(--font); letter-spacing: .01em; color: var(--flf); margin-bottom: 14px; }
.fx-title { font: 700 clamp(40px,7.4vw,92px)/1.02 var(--font); letter-spacing: -.028em; color: var(--text); margin: 0 0 16px; }
.fx-sub { font: 400 clamp(18px,2.2vw,27px)/1.32 var(--font); color: var(--muted); max-width: 30ch; margin: 0 auto; letter-spacing: -.01em; }
.fx-figure { font: 700 clamp(44px,8vw,104px)/1 var(--font); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; margin: 22px 0 6px; }
.fx-figure.neg { color: #ff5a4d; }
.fx-figure.warn { color: #e8c268; }
.fx-hero-cap { font: 500 clamp(15px,1.6vw,19px)/1.4 var(--font); color: var(--faint); letter-spacing: .01em; }

/* Boutons pilule Apple : plein (inverse) + lien texte à chevron */
.fx-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.fx-btn { font: 500 17px/1 var(--font); border-radius: var(--radius-pill); padding: 13px 26px; cursor: pointer; border: 1px solid transparent; background: var(--text); color: var(--bg); transition: transform .25s var(--fx-ease), opacity .2s, background .2s; display: inline-flex; align-items: center; gap: 7px; }
.fx-btn:hover { transform: scale(1.035); }
.fx-btn.ghost { background: transparent; color: var(--flf); border-color: transparent; padding: 13px 12px; }
.fx-btn.ghost:hover { text-decoration: underline; transform: none; }
.fx-btn.ghost svg { transition: transform .25s var(--fx-ease); }
.fx-btn.ghost:hover svg { transform: translateX(3px); }

/* Nav locale collante à pastilles (façon Overview·Specs·Compare·Buy) */
.fx-subnav { position: sticky; top: 50px; z-index: 15; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; padding: 10px; margin: 6px 0 4px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-radius: var(--radius-pill); border: 1px solid var(--line-2); }
.fx-subnav a { font: 500 14px/1 var(--font); color: var(--muted); text-decoration: none; padding: 9px 16px; border-radius: var(--radius-pill); transition: background .2s, color .2s; }
.fx-subnav a:hover { color: var(--text); }
.fx-subnav a.on { color: var(--bg); background: var(--text); }

/* Bandes plein cadre, un chiffre géant chacune, alternance claire / sombre */
.fx-band { text-align: center; padding: clamp(64px,13vh,150px) 24px; border-radius: 30px; margin: 12px 0; scroll-margin-top: 120px; background: var(--bg); }
.fx-band.light { background: var(--surface); }
.fx-band.dark { background: #000; }
.fx-band.dark .fx-figure, .fx-band.dark .fx-h2 { color: #f5f5f7; }
.fx-band.dark .fx-cap-txt { color: rgba(255,255,255,.62); }
.fx-band.dark .fx-note { color: rgba(255,255,255,.46); }
.fx-in { max-width: 660px; margin: 0 auto; }
.fx-in-wide { max-width: 980px; }
.fx-cap-txt { font: 600 clamp(20px,2.6vw,34px)/1.2 var(--font); letter-spacing: -.02em; color: var(--text); margin-top: 4px; }
.fx-note { font: 400 clamp(16px,1.7vw,19px)/1.5 var(--font); color: var(--muted); max-width: 44ch; margin: 18px auto 0; letter-spacing: -.005em; }
.fx-h2 { font: 700 clamp(28px,4vw,52px)/1.06 var(--font); letter-spacing: -.025em; color: var(--text); margin: 12px 0 34px; }

/* Barre de cap fine, façon jauge Apple */
.fx-track { height: 8px; max-width: 520px; margin: 24px auto 0; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.fx-fill { display: block; height: 100%; background: var(--flf); border-radius: var(--radius-pill); transition: width 1.3s var(--fx-ease); }

/* Grille "aller plus loin" : cartes qui plongent dans le détail */
.fx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; text-align: left; }
.fx-card { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; cursor: pointer; transition: transform .25s var(--fx-ease), border-color .2s; color: var(--text); }
.fx-band.light .fx-card { background: var(--bg); }
.fx-card:hover { transform: translateY(-4px); border-color: var(--flf); }
.fx-card h4 { font: 600 20px/1.2 var(--font); letter-spacing: -.015em; margin: 0 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fx-card .fx-ch { color: var(--flf); display: inline-flex; transition: transform .25s var(--fx-ease); }
.fx-card:hover .fx-ch { transform: translateX(4px); }
.fx-card p { font: 400 15px/1.45 var(--font); color: var(--muted); margin: 0; }

/* Révélations au défilement (jamais figé caché : filet .in via JS + reduce-motion) */
.fx-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--fx-ease), transform .9s var(--fx-ease); }
.fx-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fx-reveal { opacity: 1; transform: none; transition: none; } .fx-fill { transition: none; } }
@media (max-width: 640px) { .fx-subnav { top: 56px; } .fx-band { border-radius: 22px; padding: 56px 18px; } .fx-hero { padding: 40px 16px 32px; } }

/* ============================================================
   APPRENDRE · l'univers du savoir. Gamifié, apple.com-grade.
   Chaque leçon ouvre une page entière immersive (voir .fx-band).
   Préfixe .lw- (learn world), aucune collision.
   ============================================================ */
.lw { --lw-ease: cubic-bezier(.16,1,.3,1); }
/* Héros gamifié : palier + anneau de progression + titre monumental */
.lw-hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: clamp(30px,5vh,64px) 0 clamp(24px,4vh,44px); }
.lw-hx { min-width: 0; }
.lw-eyebrow { font: 600 13px/1.3 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--flf); margin-bottom: 12px; }
.lw-title { font: 700 clamp(38px,6vw,76px)/1.0 var(--font); letter-spacing: -.03em; margin: 0 0 14px;
  background: linear-gradient(105deg, #2B57E6 0%, #ff2d78 26%, #8a74ff 52%, #2997ff 76%, #34c7a8 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: lwHue 9s ease-in-out infinite; }
@keyframes lwHue { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .lw-title, .fx-grad { animation: none; } }
/* Utilitaire apple couleur · titre en degrade vivant (facon Apple Intelligence), reutilisable partout */
.fx-grad { background: linear-gradient(105deg, #2B57E6 0%, #ff2d78 26%, #8a74ff 52%, #2997ff 76%, #34c7a8 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: lwHue 9s ease-in-out infinite; }
.lw-sub { font: 400 clamp(16px,1.8vw,21px)/1.4 var(--font); color: var(--muted); max-width: 46ch; margin: 0; }
/* Anneau de progression */
.lw-ring { position: relative; width: 168px; height: 168px; flex: none; }
.lw-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lw-ring .lw-track { fill: none; stroke: var(--line); stroke-width: 10; }
.lw-ring .lw-arc { fill: none; stroke: var(--flf); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--lw-ease); }
.lw-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lw-ring-n { font: 700 40px/1 var(--font); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.lw-ring-l { font: 500 12px/1.2 var(--font); color: var(--faint); margin-top: 4px; }
/* Piste des paliers (Apprenti → Maître) */
.lw-paliers { display: flex; gap: 8px; margin: 4px 0 30px; flex-wrap: wrap; }
.lw-pal { flex: 1 1 0; min-width: 140px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface); transition: border-color .3s, background .3s; }
.lw-pal.on { border-color: var(--flf); background: color-mix(in srgb, var(--flf) 10%, var(--surface)); }
.lw-pal.done { opacity: .55; }
.lw-pal-n { font: 700 15px/1.2 var(--font); letter-spacing: -.01em; color: var(--text); display: flex; align-items: center; gap: 7px; }
.lw-pal-n .lw-lock { font-size: 12px; color: var(--faint); }
.lw-pal-s { font: 400 12.5px/1.35 var(--font); color: var(--muted); margin-top: 4px; }
/* Grille des leçons (façon apple product tiles, un domaine = un accent) */
.lw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; margin-bottom: 30px; }
.lw-card { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 22px; cursor: pointer; color: var(--text); transition: transform .3s var(--lw-ease), border-color .25s, background .25s; overflow: hidden; }
.lw-card:hover { transform: translateY(-4px); border-color: var(--flf); }
.lw-card-dom { font: 700 11px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--flf); margin-bottom: 14px; }
.lw-card-t { font: 600 clamp(19px,1.7vw,22px)/1.2 var(--font); letter-spacing: -.015em; margin: 0 0 10px; }
.lw-card-c { font: 400 14.5px/1.5 var(--font); color: var(--muted); margin: 0 0 18px; }
.lw-card-f { font: 400 12.5px/1.3 var(--font); color: var(--faint); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lw-card-f .lw-arrow { color: var(--flf); transition: transform .25s var(--lw-ease); }
.lw-card:hover .lw-arrow { transform: translateX(4px); }
.lw-card.done { opacity: .62; }
.lw-card.done::after { content: "✓"; position: absolute; top: 18px; right: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--flf); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
/* Lecteur de leçon plein écran (réutilise .fx-band / .fx-eyebrow) */
.lw-read { }
.lw-principle { font: 500 clamp(22px,3vw,38px)/1.34 var(--font); letter-spacing: -.02em; color: var(--text); max-width: 20ch; margin: 0 auto; }
.fx-band.dark .lw-principle { color: #f5f5f7; }
.lw-body { font: 400 clamp(17px,1.8vw,21px)/1.6 var(--font); color: var(--muted); max-width: 40ch; margin: 0 auto; }
.lw-source { display: inline-flex; align-items: center; gap: 9px; font: 500 14px/1.3 var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 9px 18px; margin-top: 6px; }
.lw-source b { color: var(--text); font-weight: 600; }
.lw-action { max-width: 560px; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; background: var(--surface); text-align: left; }
.fx-band.dark .lw-action { background: #0b0b0b; border-color: rgba(255,255,255,.12); }
.lw-action-k { font: 700 11px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--flf); margin-bottom: 10px; }
.lw-action-t { font: 500 clamp(18px,2vw,24px)/1.4 var(--font); color: var(--text); margin: 0 0 20px; letter-spacing: -.01em; }
.fx-band.dark .lw-action-t { color: #f5f5f7; }
.lw-next { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.lw-next-k { font: 500 13px/1.2 var(--font); color: var(--faint); letter-spacing: .02em; }
.lw-next-t { font: 600 clamp(20px,2.4vw,30px)/1.15 var(--font); letter-spacing: -.02em; color: var(--text); }
.fx-band.dark .lw-next-t { color: #f5f5f7; }
.lw-next:hover .lw-next-t { color: var(--flf); }
@media (max-width: 720px) { .lw-hero { grid-template-columns: 1fr; gap: 20px; } .lw-ring { width: 128px; height: 128px; } }
/* Barres horizontales · la donnée qui se voit et se clique */
.hb-group { margin: 0; padding: 40px 42px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.hb-title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 22px; }
.hb { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.hb-l { width: 200px; flex: none; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-l i { color: var(--faint); font-style: normal; font-size: 11px; margin-left: 6px; }
.hb-track { flex: 1; height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--flf); border-radius: 99px; transition: width .8s cubic-bezier(.22,1,.36,1); }
.hb-v { width: 130px; flex: none; text-align: right; font-size: 13.5px; font-weight: 650; }
.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; justify-content: center; gap: 44px; margin: 0; flex-wrap: wrap; padding: 44px 42px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.pie { width: 190px; height: 190px; 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: 10px; font-size: 13.5px; color: var(--muted); }
.pie-leg i { display: inline-block; width: 10px; height: 10px; 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) 26%, transparent); border-radius: 30px; padding: 44px 46px; margin-top: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--flf) 9%, var(--surface)), var(--surface) 62%); }
.cs-tip span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--flf); font-weight: 700; margin-bottom: 16px; }
.cs-tip p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--text); max-width: 74ch; }
.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: rgba(43,87,230,0.4); }
/* 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(43,87,230,.12); color: var(--accent, #2B57E6); border-color: rgba(43,87,230,.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 Fransou (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: #2B57E6; }
::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(43,87,230,.25); }
body:not(.branded) .req-badge { background: var(--flf); color: #fff; }
body:not(.branded) .val-flag { border-color: rgba(43,87,230,.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(43,87,230,.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: #2B57E6; 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(43,87,230,.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(43,87,230,.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: #2B57E6; }
.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: #2B57E6; border-color: #2B57E6; 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: #2B57E6; border-color: #2B57E6; 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 #2B57E6; 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: #2B57E6; border-color: #2B57E6; }
.gal-card.is-sel .gal-mat { outline: 3px solid #2B57E6; 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: #2B57E6; }
.ds-note { font-size: 11px; color: var(--faint); }
/* ===== Organisateur · Agenda · Tâches · Notes ===== */
/* Ma journée · organiseur en cartes Apple (air, arrondis doux, lignes fluides) */
.orga { margin: 8px 0 44px; 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: 2px 4px 18px; }
.orga-title { display: none; }
.orga-date { font-size: 16px; color: var(--muted); text-transform: capitalize; font-weight: 500; letter-spacing: -.01em; }
.orga-toggle { background: transparent; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 6px 10px; border-radius: 10px; transition: background .18s, color .18s; }
.orga-toggle:hover { color: var(--text); background: var(--surface-2); }
.orga-body.hidden { display: none; }
.orga-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .orga-grid { grid-template-columns: 1fr; } }
.og-col { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; min-height: 190px; transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .2s; }
.og-col:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -30px rgba(0,0,0,.65); border-color: var(--line-2, #3a3a3a); }
.og-col-h { font-size: 15.5px; letter-spacing: -.01em; color: var(--text); font-weight: 640; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.og-sug-lbl { font-size: 9px; color: #2B57E6; border: 1px solid rgba(43,87,230,.4); border-radius: 999px; padding: 2px 8px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; }
.og-link { background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; text-transform: none; letter-spacing: 0; transition: color .18s; }
.og-link:hover { color: #2B57E6; }
.og-list { display: flex; flex-direction: column; gap: 2px; flex: 1; margin: 0 -8px; }
.og-empty { font-size: 13.5px; color: var(--faint); padding: 12px 8px; line-height: 1.5; }
.og-need { font-size: 13px; color: var(--muted); background: rgba(43,87,230,.08); border: 1px solid rgba(43,87,230,.3); border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; }
.og-sug { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.og-sug-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: linear-gradient(100deg, rgba(43,87,230,.16), rgba(43,87,230,.05)); border: 1px solid rgba(43,87,230,.35); color: var(--text); border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .15s var(--ease-out), border-color .2s; }
.og-sug-chip i { color: #2B57E6; font-style: normal; font-weight: 800; }
.og-sug-chip:hover { transform: translateX(3px); border-color: #2B57E6; }
.og-ev, .og-tsk, .og-note { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 13px; transition: background .18s var(--ease-out); }
.og-ev:hover, .og-tsk:hover, .og-note:hover { background: var(--surface-2); }
.og-ev-d { font-size: 11px; font-weight: 700; color: #2B57E6; min-width: 74px; letter-spacing: .02em; }
.og-ev-t { flex: 1; font-size: 14px; color: var(--text); line-height: 1.4; }
.og-check { width: 22px; height: 22px; border-radius: 7px; 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: 14px; color: var(--text); line-height: 1.4; transition: color .2s; }
.og-tsk.done .og-tsk-t { color: var(--faint); text-decoration: line-through; }
.og-note { align-items: flex-start; }
.og-note-t { flex: 1; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.og-x { background: none; border: none; color: var(--faint); font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; padding: 2px 4px; }
.og-ev:hover .og-x, .og-tsk:hover .og-x, .og-note:hover .og-x { opacity: .5; }
.og-x:hover { color: #e74c3c; opacity: 1; }
.og-add { display: flex; gap: 8px; margin-top: 16px; }
.og-in { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; color: var(--text); font-size: 13.5px; padding: 11px 14px; transition: border-color .18s, background .18s; }
.og-in:focus { outline: none; border-color: rgba(43,87,230,.5); background: var(--surface); }
.og-when { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; color: var(--muted); font-size: 12px; padding: 9px; max-width: 138px; }
.og-plus { background: #2B57E6; border: none; color: #fff; border-radius: 13px; width: 42px; font-size: 20px; font-weight: 600; cursor: pointer; flex: 0 0 auto; transition: background .15s, transform .15s; }
.og-plus:hover { background: #ff5238; transform: scale(1.06); }
/* ===== 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: #2B57E6; 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: #2B57E6; }
.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: #2B57E6; border-color: #2B57E6; }
.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: #2B57E6; box-shadow: inset 0 0 0 1px rgba(43,87,230,.3); }
.ag-cell-n { font-size: 12px; font-weight: 700; color: var(--text); }
.ag-cell.today .ag-cell-n { color: #2B57E6; }
.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: #2B57E6; }
.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: #2B57E6; }
.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(43,87,230,.18), rgba(43,87,230,.06)); border: 1px solid rgba(43,87,230,.3); border-radius: 7px; padding: 4px 7px; font-size: 11px; color: var(--text); line-height: 1.3; }
.ag-ev-h { font-weight: 700; color: #2B57E6; 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(43,87,230,.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 #2B57E6; 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: #2B57E6; 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: #2B57E6; border: 1px solid rgba(43,87,230,.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(43,87,230,.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: clamp(17px,1.9vw,22px); color: var(--muted); margin-top: 16px; max-width: 620px; line-height: 1.5; }
.prospect-hero { padding: 40px 0 24px; }
.prospect-hero h1 { font-size: clamp(34px,4.6vw,60px); line-height: 1; letter-spacing: -.028em; font-weight: 650; margin: 4px 0 0; }
.sp-greet-eyebrow { font-size: clamp(16px,2vw,23px); }

/* 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 20px; }
.pp-sec-head h2 { font-family: var(--display); font-size: clamp(22px,2.6vw,32px); text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; }

/* 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, #2B57E6); 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 Fransou) */
.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(43,87,230,.45); box-shadow: 0 0 0 6px rgba(43,87,230,.22); }
  35% { background: rgba(43,87,230,.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(43,87,230,.1); border: 1px solid rgba(43,87,230,.32); }
.df-floor-warn b { color: var(--accent, #2B57E6); 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: #2B57E6; border-color: #2B57E6; }
/* 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 rgba(46,204,113,0.32); background: rgba(46,204,113,0.06); 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: #FBF9F4; --surface: #ffffff; --surface-2: #F4F1EA;
  --line: rgba(0,0,0,.12); --line-2: rgba(0,0,0,.06);
  --text: #1A1712; --muted: rgba(0,0,0,.56); --faint: rgba(0,0,0,.4);
}
/* ===== PAGE BLANCHE PLEINE · facon apple.com (theme clair scoppe a une vue, ex. Docs-Factures) ===== */
/* Les variables claires sont scoppées à #view SEULEMENT : les modales/toasts (#modalRoot, hors #view)
   gardent le thème noir et ne subissent pas de noir-sur-noir. */
body.page-white #view {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f5f5f7;
  --line: rgba(0,0,0,.11); --line-2: rgba(0,0,0,.06);
  --text: #1d1d1f; --muted: rgba(0,0,0,.56); --faint: rgba(0,0,0,.4);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;  /* apple = SF Pro, jamais de Druk condensé sur fond blanc */
  color: #1d1d1f;   /* texte hérité foncé (sinon les noms restent gris clair invisibles sur blanc) */
}
body.page-white #view .prosp-who, body.page-white #view .ct-name, body.page-white #view .hr-card-n, body.page-white #view b { color: #1d1d1f; }
/* Overrides thème clair (Apple Support) : ce qui était calé pour le sombre doit s'inverser sur blanc */
body.page-white .ct-chips { background: rgba(0,0,0,.04); }
body.page-white .ct-chip.on { background: #1d1d1f; color: #fff; }
body.page-white .pdlg-tabs { background: rgba(0,0,0,.04); }
body.page-white .pdlg-tab-btn.on { background: #1d1d1f; color: #fff; }
body.page-white .cl-primary { color: #fff; }
body.page-white .fiche-ava, body.page-white .cpage-head .pdlg-mono { color: var(--accent, #2B57E6); background: rgba(43,87,230,.12); border-color: rgba(43,87,230,.3); }
body.page-white .prosp-score { color: var(--hc, #57575c); }
body.page-white .gm-thread.open { border-color: rgba(43,87,230,.4); }
body.page-white { background: #fff; }
body.page-white header.topbar { background: rgba(255,255,255,.78); border-bottom-color: rgba(0,0,0,.08); }
body.page-white .topbar .logo { filter: invert(1); }
body.page-white .lang-sel button.on { background: #1d1d1f; color: #fff; }
body.page-white #view { background: #fff; }
/* Hero apple de la page blanche */
.dw-hero { text-align: center; padding: clamp(40px,7vh,90px) 0 clamp(18px,3vh,32px); }
.dw-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #2B57E6; margin: 0 0 12px; }
.dw-title { font-family: var(--font); font-weight: 700; font-size: clamp(40px,6vw,80px); letter-spacing: -.035em; line-height: 1.04; color: #1d1d1f; margin: 0; }
.dw-sub { color: #57575c; font-size: clamp(16px,1.6vw,20px); line-height: 1.5; max-width: 48ch; margin: 18px auto 0; }
body.page-white .dw-actions { justify-content: center; margin: 6px 0 20px; border: none; }
body.page-white .docs-entity, body.page-white #docsTabs, body.page-white .docs-filter { justify-content: center; }
/* Pastilles de statut lisibles sur blanc (teintes douces, facon apple) */
body.page-white .status-pill.livre { background: rgba(40,167,90,.14); color: #1a8a4f; }
body.page-white .status-pill.cours { background: rgba(0,0,0,.06); color: #57575c; }
body.page-white .status-pill.refuse { background: rgba(255,59,48,.12); color: #c0392b; }
/* Segmented apple/iOS sur fond blanc : piste grise, pilule blanche, texte foncé (fini le noir-sur-noir) */
body.page-white .segmented { background: #ececef; border-color: rgba(0,0,0,.05); }
body.page-white .segmented button { color: #57575c; }
body.page-white .segmented button.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,.14), 0 1px 1px rgba(0,0,0,.04); }
body.page-white .acompte-btn { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
/* Boutons pleins sur page blanche = pilule foncée à texte BLANC (fini le noir-sur-noir). Les « ghost » ajourés gardent leur texte foncé. */
body.page-white .btn:not(.ghost) { color: #fff; }
/* Devis interactif · CONFIGURATEUR client (fond blanc apple) */
.cfg { max-width: 780px; margin: 0 auto; padding-bottom: 130px; }
.cfg-hero { text-align: center; padding: 24px 0 20px; }
.cfg-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2B57E6; margin: 0 0 12px; }
.cfg-title { font-family: var(--font); font-weight: 700; font-size: clamp(32px,5vw,60px); letter-spacing: -.03em; line-height: 1.04; color: #1d1d1f; margin: 0; }
.cfg-sub { color: #57575c; font-size: clamp(16px,1.6vw,19px); line-height: 1.55; max-width: 46ch; margin: 18px auto 0; }
.cfg-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cfg2-main .cfg-types { justify-content: flex-start; }
.cfg-type { background: #f0f0f2; border: 1px solid transparent; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #57575c; cursor: pointer; transition: background .18s, color .18s; }
.cfg-type:hover { color: #1d1d1f; }
.cfg-type.on { background: #1d1d1f; color: #fff; }
/* Page de choix du type · façon apple buy-mac */
.qt { max-width: 980px; margin: 0 auto; padding-bottom: 80px; }
.qt-hero { text-align: center; padding: 30px 0 34px; }
.qt-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #2B57E6; margin: 0 0 12px; }
.qt-title { font-family: var(--font); font-weight: 700; font-size: clamp(30px,4.6vw,54px); letter-spacing: -.03em; color: #1d1d1f; margin: 0; }
.qt-sub { color: #57575c; font-size: clamp(16px,1.6vw,19px); line-height: 1.5; max-width: 46ch; margin: 16px auto 0; }
.qt-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; }
.qt-card { text-align: left; background: #f5f5f7; border: 1.5px solid transparent; border-radius: 22px; padding: 28px 26px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-height: 168px; transition: transform .28s var(--ease-out), border-color .2s, background .2s; }
.qt-card:hover { transform: translateY(-4px); border-color: #1d1d1f; background: #fff; }
.qt-card-t { font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: #1d1d1f; }
.qt-card-s { font-size: 14px; color: #57575c; line-height: 1.45; }
.qt-card-go { margin-top: auto; font-size: 13px; font-weight: 600; color: #2B57E6; }
.qt-studio { margin-top: 18px; background: transparent; border: 1px solid var(--line); color: #57575c; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .18s, border-color .18s; }
.qt-studio:hover { color: #1d1d1f; border-color: #c8c8d0; }
/* Réglages studio (éditeur de prix) */
.qs { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.qs-sec { margin: 32px 0; }
.qs-sec > h2 { font-family: var(--font); font-size: 20px; font-weight: 650; color: #1d1d1f; margin: 0 0 14px; letter-spacing: -.01em; }
.qs-note { font-size: 13px; color: #86868b; margin: -8px 0 12px; line-height: 1.5; }
.qs-grp { margin-bottom: 20px; }
.qs-grp h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2B57E6; margin: 0 0 8px; }
.qs-step { background: #f5f5f7; border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; }
.qs-step-l { font-size: 13px; font-weight: 700; color: #1d1d1f; margin: 2px 0 6px; }
.qs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.qs-row > span { font-size: 14px; color: #1d1d1f; }
.qs-row em { color: #86868b; font-style: normal; font-size: 12px; }
.qs-in { width: 110px; text-align: right; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; color: #1d1d1f; }
.qs-in:disabled { opacity: .45; }
.qs-promo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qs-code { flex: 1; text-align: left; text-transform: uppercase; width: auto; }
.qs-pct { width: 70px; }
.qs-pctsign { color: #86868b; }
.qs-rm { border: none; background: rgba(0,0,0,.08); width: 26px; height: 26px; border-radius: 999px; cursor: pointer; color: #1d1d1f; }
.qs-save { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 45%); padding: 22px 0 10px; }
.qs-save .btn { width: 100%; }
.qs-io { display: inline-flex; gap: 6px; }
.qs-cost { color: #b5432c; }
/* Bloc marge (studio uniquement) dans le récap */
.cfg2-marge { margin-top: 14px; padding: 12px 14px; background: #1d1d1f; border-radius: 14px; color: #fff; }
.cfg2-marge-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.cfg2-marge-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; color: rgba(255,255,255,.8); }
.cfg2-marge-row b { color: #fff; }
.cfg2-marge-row.big { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15); font-size: 15px; }
.cfg2-marge-row.big b { color: #4ade80; }
.cfg2-marge-note { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 8px; line-height: 1.4; }
.cfg2-marge-warn { font-size: 12px; font-weight: 600; color: #ffb4a3; background: rgba(43,87,230,.16); border-radius: 8px; padding: 7px 9px; margin-top: 8px; line-height: 1.4; }
.cfg2-conseil { margin-top: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cfg2-conseil .cfg2-marge-h { color: #2B57E6; }
.cfg2-conseil-l { font-size: 13px; color: #57575c; line-height: 1.5; padding: 3px 0; }
.cfg2-conseil-l b { color: #1d1d1f; }
/* Lieu de tournage + frais studio */
.cfg-locv { width: 100%; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #1d1d1f; }
.cfg-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cfg-city { display: inline-flex; align-items: center; gap: 8px; background: #f0f0f2; border-radius: 999px; padding: 8px 8px 8px 14px; font-size: 13.5px; font-weight: 600; color: #1d1d1f; }
.cfg-city-x { border: none; background: rgba(0,0,0,.08); color: #1d1d1f; width: 20px; height: 20px; border-radius: 999px; cursor: pointer; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.cfg-city-x:hover { background: rgba(0,0,0,.16); }
.cfg-addcity { display: flex; gap: 8px; }
.cfg-addcity .cfg-locv { flex: 1; margin-bottom: 0; }
.cfg-addcity .btn { width: auto; }
.cfg2-admin { margin-top: 12px; font-size: 11.5px; color: #8a6d1b; background: rgba(255,184,0,.1); border: 1px solid rgba(255,184,0,.28); border-radius: 10px; padding: 9px 11px; line-height: 1.45; }
/* Simulation · étude · besoins sur étude */
.cfg-sim { background: rgba(43,87,230,.08); border: 1px solid rgba(43,87,230,.22); color: #b5432c; border-radius: 14px; padding: 12px 16px; font-size: 13px; font-weight: 500; margin: 0 0 30px; }
.cfg-cli { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 16px; background: #f5f5f7; border-radius: 14px; }
.cfg-cli-l { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #86868b; }
.cfg-cli-l .field { min-width: 260px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.cfg-cli-hint { font-size: 12.5px; color: #86868b; }
.cfg-choice-study { color: #86868b; font-weight: 600; font-size: 12.5px; }
.cfg2-study { margin: 14px 0 4px; padding: 12px 14px; background: #f5f5f7; border-radius: 12px; }
.cfg2-study-h { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #86868b; margin-bottom: 6px; }
.cfg2-study-i { font-size: 13px; color: #1d1d1f; line-height: 1.5; }
.cfg2-freenote { display: block; margin: 14px 0; }
.cfg2-freenote span { display: block; font-size: 12px; font-weight: 600; color: #86868b; margin-bottom: 5px; }
.cfg2-freenote textarea { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 13px; color: #1d1d1f; font-family: var(--font); resize: vertical; min-height: 46px; }
.cfg-sec { margin: 44px 0; }
.cfg-sec-h { text-align: center; margin-bottom: 22px; }
.cfg-sec-h h2 { font-family: var(--font); font-size: clamp(22px,2.6vw,30px); font-weight: 650; letter-spacing: -.02em; color: #1d1d1f; margin: 0 0 8px; }
.cfg-sec-h p { color: #57575c; font-size: 15px; line-height: 1.5; max-width: 48ch; margin: 0 auto; }
.cfg-inc { display: grid; gap: 10px; }
.cfg-inc-row { display: flex; align-items: center; gap: 14px; background: #f5f5f7; border-radius: 16px; padding: 16px 18px; }
.cfg-check { flex: none; width: 24px; height: 24px; border-radius: 999px; background: #1a8a4f; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.cfg-inc-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cfg-inc-name { font-size: 15.5px; font-weight: 600; color: #1d1d1f; }
.cfg-inc-why { font-size: 13px; color: #57575c; line-height: 1.45; }
.cfg-inc-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #86868b; }
.cfg-opts { display: grid; gap: 12px; }
.cfg-opt { display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; border: 1.5px solid #e4e4e9; border-radius: 18px; padding: 18px 20px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.cfg-opt:hover { border-color: #c8c8d0; }
.cfg-opt.on { border-color: #2B57E6; background: rgba(43,87,230,.05); box-shadow: 0 6px 20px -12px rgba(43,87,230,.6); }
.cfg-opt-check { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid #d0d0d8; color: #86868b; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.cfg-opt.on .cfg-opt-check { background: #2B57E6; border-color: #2B57E6; color: #fff; }
.cfg-opt-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cfg-opt-name { font-size: 15.5px; font-weight: 600; color: #1d1d1f; }
.cfg-opt-why { font-size: 13px; color: #57575c; line-height: 1.45; }
.cfg-opt-price { flex: none; font-size: 15px; font-weight: 700; color: #1d1d1f; letter-spacing: -.01em; }
.cfg-empty { text-align: center; color: #86868b; font-size: 14px; background: #f5f5f7; border-radius: 16px; padding: 26px; }
.cfg-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0,0,0,.09); }
.cfg-bar-in { max-width: 780px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cfg-total { display: flex; flex-direction: column; }
.cfg-total span { font-size: 12px; color: #86868b; letter-spacing: .02em; }
.cfg-total b { font-size: clamp(24px,3vw,34px); font-weight: 700; letter-spacing: -.02em; color: #1d1d1f; }
.cfg-bar-cta { display: flex; gap: 10px; }
.cfg-bar-cta .btn { width: auto; }
@media (max-width: 620px) { .cfg-bar-in { flex-direction: column; align-items: stretch; gap: 10px; } .cfg-bar-cta .btn { flex: 1; } }
/* Configurateur façon Apple buy-mac : options à gauche + récap COLLANT à droite */
.cfg2 { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 44px; max-width: 1080px; margin: 0 auto; align-items: start; padding-bottom: 90px; }
.cfg2-main { min-width: 0; }
.cfg2-main .cfg-hero { text-align: left; padding: 18px 0 8px; }
.cfg2-main .cfg-hero .cfg-sub { margin-left: 0; }
.cfg2-main .cfg-sec-h { text-align: left; }
.cfg2-main .cfg-sec-h p { margin: 0; }
.cfg2-side { position: sticky; top: 88px; }
.cfg2-card { background: #f5f5f7; border-radius: 24px; padding: 26px 24px; }
.cfg2-sum-h { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #86868b; }
.cfg2-sum-title { font-size: 20px; font-weight: 650; letter-spacing: -.01em; color: #1d1d1f; margin: 6px 0 18px; line-height: 1.2; }
.cfg2-lines { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,.1); }
.cfg2-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cfg2-line span { color: #57575c; }
.cfg2-line b { font-weight: 600; color: #1d1d1f; white-space: nowrap; }
.cfg2-tot { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 18px; }
.cfg2-tot span { font-size: 14px; color: #57575c; }
.cfg2-tot b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: #1d1d1f; }
.cfg2-cta { display: grid; gap: 10px; }
.cfg2-cta .btn { width: 100%; }
.cfg2-note { font-size: 11.5px; color: #86868b; line-height: 1.5; margin-top: 14px; }
.cfg2-id { margin: 4px 0 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,.1); }
.cfg2-id-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #86868b; text-transform: uppercase; margin-bottom: 8px; }
.cfg2-id-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cfg2-card .cfg2-id .field, .cfg2-seg .field, .cfg2-promo .field { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 13px; color: #1d1d1f; width: 100%; }
.cfg2-id .field { margin-bottom: 6px; }
.cfg2-seg { margin: 0 0 14px; }
.cfg2-seg span { display: block; font-size: 11px; color: #2B57E6; font-weight: 600; margin-bottom: 5px; line-height: 1.3; }
.cfg2-promo { display: flex; gap: 8px; margin: 14px 0; }
.cfg2-promo .field { flex: 1; }
.cfg2-promo .btn { width: auto; }
.cfg2-break { display: grid; gap: 8px; padding: 4px 0 2px; }
.cfg2-line.disc b { color: #1a8a4f; }
.cfg2-ent-hit { font-size: 12px; font-weight: 600; color: #1a8a4f; margin: -2px 0 6px; line-height: 1.3; }
.cfg2-ent-hit:empty { display: none; }
.cfg2-req { font-size: 11px; color: #9a9aa2; margin-top: 6px; }
.cfg2-for { font-size: 13.5px; color: #57575c; background: #f0f0f2; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; line-height: 1.4; }
.cfg2-for b { color: #1d1d1f; }
@media (max-width: 860px) {
  .cfg2 { grid-template-columns: 1fr; gap: 20px; }
  .cfg2-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 90; }
  .cfg2-card { border-radius: 20px 20px 0 0; background: rgba(245,245,247,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 -8px 30px -12px rgba(0,0,0,.25); padding: 16px 20px; }
  .cfg2-main { padding-bottom: 60px; }
  .cfg2-sum-h, .cfg2-sum-title, .cfg2-lines, .cfg2-note, .cfg2-id, .cfg2-seg, .cfg2-promo, .cfg2-break { display: none; }
  .cfg2-tot { margin: 0 0 10px; }
}
/* Étapes imposées (phases → sous-étapes → choix), façon Apple config */
.cfg-phase { margin: 40px 0; }
.cfg-phase-h { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cfg-phase-num { font-family: var(--font); font-weight: 700; font-size: 15px; color: #fff; background: #1d1d1f; width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cfg-phase-h h2 { font-family: var(--font); font-size: clamp(22px,2.6vw,30px); font-weight: 650; letter-spacing: -.02em; color: #1d1d1f; margin: 0 0 4px; }
.cfg-phase-h p { color: #57575c; font-size: 14px; line-height: 1.5; margin: 0; max-width: 60ch; }
.cfg-step { margin: 0 0 22px; }
.cfg-step-h { margin: 0 0 10px; }
.cfg-step-label { font-size: 16px; font-weight: 650; color: #1d1d1f; }
.cfg-step-why { display: block; font-size: 13px; color: #86868b; margin-top: 2px; }
.cfg-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .cfg-choices { grid-template-columns: 1fr; } }
.cfg-choice { display: flex; align-items: flex-start; gap: 12px; text-align: left; background: #fff; border: 1.5px solid #e4e4e9; border-radius: 16px; padding: 16px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.cfg-choice:hover { border-color: #c8c8d0; }
.cfg-choice.on { border-color: #2B57E6; background: rgba(43,87,230,.05); box-shadow: 0 6px 18px -12px rgba(43,87,230,.6); }
.cfg-choice-check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 999px; border: 1.5px solid #cfcfd6; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.cfg-choice.on .cfg-choice-check { background: #2B57E6; border-color: #2B57E6; }
.cfg-choice.on .cfg-choice-check::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; }
.cfg-choice-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cfg-choice-name { font-size: 14.5px; font-weight: 600; color: #1d1d1f; line-height: 1.3; }
.cfg-choice-desc { font-size: 12.5px; color: #57575c; line-height: 1.45; }
.cfg-choice-price { flex: none; font-size: 13.5px; font-weight: 700; color: #1d1d1f; white-space: nowrap; }
/* Stepper durée personnalisable (par demi-journée) */
.cfg-days { display: flex; align-items: center; gap: 16px; background: #f5f5f7; border-radius: 16px; padding: 16px 20px; }
.cfg-day-b { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 22px; cursor: pointer; color: #1d1d1f; display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s; }
.cfg-day-b:hover { border-color: #1d1d1f; }
.cfg-day-v { text-align: center; min-width: 96px; }
.cfg-day-v b { display: block; font-size: 26px; font-weight: 700; color: #1d1d1f; letter-spacing: -.02em; }
.cfg-day-v span { font-size: 12px; color: #57575c; }
.cfg-day-price { margin-left: auto; font-size: 16px; font-weight: 700; color: #1d1d1f; }
.cfg2-perday { font-size: 10px; font-weight: 700; color: #2B57E6; letter-spacing: .03em; }
.cfg-day-note { font-size: 12px; color: #57575c; margin-top: 8px; }
/* Bordereau BPU (marché public · Trélazé) */
.cfg-bpu { display: grid; gap: 10px; }
.cfg-bpu-row { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.cfg-bpu-l { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cfg-bpu-name { font-size: 15px; font-weight: 600; color: #1d1d1f; }
.cfg-bpu-unit { font-size: 12.5px; color: #86868b; }
.cfg-bpu-q { display: flex; align-items: center; gap: 12px; flex: none; }
.cfg-bpu-q b { min-width: 22px; text-align: center; font-size: 17px; font-weight: 700; color: #1d1d1f; }
.cfg-bpu-tot { min-width: 90px; text-align: right; font-weight: 700; color: #1d1d1f; flex: none; }
.qt-spec-h { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #86868b; margin: 34px 0 12px; }
@media (max-width: 560px) { .cfg-bpu-row { flex-wrap: wrap; gap: 10px; } .cfg-bpu-tot { min-width: 0; } }
/* Galerie de modèles de documents · cartes apple (dans la fenêtre noire) */
.tpl-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tpl-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-height: 148px; transition: transform .3s var(--ease-out), border-color .3s, background .3s; }
.tpl-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.2); background: var(--surface-2); }
.tpl-price { font-family: var(--font); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--corail); }
.tpl-name { font-size: 15px; font-weight: 650; color: var(--text); line-height: 1.25; }
.tpl-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-go { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--corail); }
.tpl-blank { border-style: dashed; }
.tpl-blank .tpl-name { color: var(--muted); }
/* Coordonnées studio · page entière apple (blanche) */
.co-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; }
.co-card-h { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.co-flag { font-size: 26px; line-height: 1; }
.co-card-t { font-size: 19px; font-weight: 650; letter-spacing: -.01em; color: #1d1d1f; }
.co-card-s { font-size: 13px; color: var(--muted); }
.co-grid { display: grid; gap: 14px; }
.co-f { display: flex; flex-direction: column; gap: 6px; }
.co-f > span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.co-bank-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 26px 0 12px; }
.co-acct { display: grid; grid-template-columns: 1fr 1.5fr .7fr; gap: 8px; margin-bottom: 8px; }
body.page-white .co-card .field { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 14px; color: #1d1d1f; }
body.page-white .co-card .field:focus { border-color: rgba(0,0,0,.28); outline: none; }
body.page-white .cd-mini { background: #f0f0f2; border: 1px solid var(--line); color: #1d1d1f; }
.co-actions { display: flex; align-items: center; gap: 12px; max-width: 1000px; margin: 26px auto 70px; }
.co-actions .grow { flex: 1; }
.co-actions .btn { width: auto; }
@media (max-width: 820px) { .co-cols2 { grid-template-columns: 1fr; } .co-acct { grid-template-columns: 1fr; } }
/* ===== LE CHEMIN DU MILLIARD · page vision (noir cinema) ===== */
.mrd-wrap { max-width: 1120px; margin: 0 auto; }
.mrd-hero { text-align: center; padding: clamp(36px,6vh,80px) 0 clamp(16px,3vh,30px); }
.mrd-eyebrow { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(16px,2vw,24px); color: var(--muted); margin: 0 0 12px; }
.mrd-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(36px,7vw,92px); letter-spacing: -.025em; line-height: .96; margin: 0 auto; max-width: 15ch; }
.mrd-sub { color: var(--muted); font-size: clamp(16px,1.6vw,20px); line-height: 1.55; max-width: 52ch; margin: 22px auto 0; }
.mrd-now { text-align: center; padding: 30px 0 10px; }
.mrd-now-lab { display: block; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--corail); margin: 0 0 14px; }
.mrd-now-fig { font-family: var(--display); font-weight: 800; font-size: clamp(46px,10vw,132px); letter-spacing: -.02em; line-height: 1; background: linear-gradient(180deg,#fff 32%,#c8c8ce 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mrd-now-note { display: block; color: var(--faint); font-size: 14px; margin-top: 14px; }
.mrd-ctrl { text-align: center; margin: 42px 0 8px; }
.mrd-ctrl-lab { display: block; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.mrd-presets { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mrd-preset { display: flex; flex-direction: column; gap: 3px; padding: 12px 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.mrd-preset b { font-size: 15px; }
.mrd-preset span { font-size: 12px; color: var(--muted); }
.mrd-preset.on { border-color: var(--corail); background: rgba(43,87,230,.1); }
.mrd-preset.on span { color: var(--corail); }
.mrd-ladder { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 44px 0; }
@media (max-width:760px){ .mrd-ladder { grid-template-columns: repeat(2,1fr); } }
.mrd-step { border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px; text-align: center; background: rgba(255,255,255,.02); }
.mrd-step.done { border-color: rgba(46,204,113,.5); background: rgba(46,204,113,.08); }
.mrd-step-fig { font-family: var(--display); font-weight: 800; font-size: clamp(19px,2.4vw,27px); letter-spacing: -.01em; }
.mrd-step-year { font-size: clamp(30px,4vw,48px); font-weight: 800; color: var(--corail); margin: 10px 0 4px; letter-spacing: -.02em; }
.mrd-step.done .mrd-step-year { color: #2ecc71; }
.mrd-step-note { font-size: 13px; color: var(--muted); }
.mrd-sec { margin: 56px 0 0; }
.mrd-sec-h { text-align: center; margin-bottom: 30px; }
.mrd-sec-h .es-num { display: block; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--corail); margin-bottom: 8px; }
.mrd-sec-h b { display: block; font-family: var(--display); text-transform: uppercase; font-size: clamp(24px,3.2vw,40px); letter-spacing: -.02em; }
.mrd-levers { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 16px; }
.mrd-lever { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: rgba(255,255,255,.02); transition: transform .4s var(--ease), border-color .3s; }
.mrd-lever:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); }
.mrd-lever h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: 0 0 8px; }
.mrd-lever p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.mrd-why { text-align: center; max-width: 760px; margin: 60px auto; padding: 40px 0 40px; border-top: 1px solid var(--line); }
.mrd-why p { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(18px,2.2vw,26px); line-height: 1.5; color: var(--text); margin: 14px auto 0; }
.mrd-why em { font-style: italic; color: var(--corail); }
/* 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, #2B57E6); 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, #2B57E6); 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: #2B57E6; border-color: rgba(43,87,230,.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; }
.sp-fl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sp-rushup { background: var(--accent, #2B57E6); color: #fff; border: none; font-weight: 650; }
.sp-rushup:hover { filter: brightness(1.06); }
.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, #2B57E6); 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(43,87,230,.6); box-shadow: 0 0 0 3px rgba(43,87,230,.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(43,87,230,.6); background: rgba(43,87,230,.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(43,87,230,.85); background: linear-gradient(165deg, rgba(43,87,230,.12), rgba(43,87,230,.02));
  box-shadow: 0 14px 40px rgba(43,87,230,.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(43,87,230,.16); border-color: rgba(43,87,230,.35); }
.ga-card.on .ga-ic svg { stroke: #2B57E6; }
.ga-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: #2B57E6; 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: #2B57E6; 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(43,87,230,.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: #2B57E6;
  background: rgba(43,87,230,.1); border: 1px solid rgba(43,87,230,.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: #2B57E6; flex: none;
  box-shadow: 0 0 0 0 rgba(43,87,230,.55); animation: gaPulse 1.8s ease-out infinite; }
.tile.has-new { border-color: rgba(43,87,230,.38); box-shadow: 0 0 0 1px rgba(43,87,230,.12), 0 14px 44px rgba(43,87,230,.07); }
.tile.has-new:hover { border-color: rgba(43,87,230,.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: #2B57E6; background: rgba(43,87,230,.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(43,87,230,.65); border-radius: 26px; padding: 64px 90px; text-align: center;
  background: rgba(43,87,230,.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(43,87,230,.14); color: #2B57E6; }
.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: #2B57E6; border-color: #2B57E6; color: #000; transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(43,87,230,.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(43,87,230,.1); border: 1px solid rgba(43,87,230,.4); color: #2B57E6;
  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: #2B57E6; color: #000; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(43,87,230,.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: #2B57E6; } .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: #2B57E6; background: rgba(43,87,230,.1); border: 1px solid rgba(43,87,230,.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: #2B57E6; box-shadow: 0 0 0 1px rgba(43,87,230,.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: #2B57E6; 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(43,87,230,.1); color: #2B57E6; 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(43,87,230,.55); box-shadow: 0 0 0 3px rgba(43,87,230,.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: #2B57E6; border-color: rgba(43,87,230,.4); }
.df-opt.on { background: rgba(43,87,230,.14); border-color: #2B57E6; color: #2B57E6; }
.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(43,87,230,.4); border-radius: 16px;
  background: linear-gradient(135deg, rgba(43,87,230,.1), rgba(43,87,230,.02));
  animation: gaIn .5s cubic-bezier(.22,1,.36,1) both; }
.annc-dot { width: 8px; height: 8px; border-radius: 50%; background: #2B57E6; flex: none;
  box-shadow: 0 0 0 0 rgba(43,87,230,.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(43,87,230,.45); background: rgba(43,87,230,.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: #2B57E6; 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: #2B57E6; border-color: rgba(43,87,230,.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,#2B57E6); 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,#2B57E6); 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,#2B57E6); 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(43,87,230,.12); outline: 1px solid rgba(43,87,230,.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(43,87,230,.4); border-radius: 12px; background: rgba(43,87,230,.06); }
.gal-selbar.on { display: flex; }
.gsb-count { font-size: 12.5px; font-weight: 700; color: #2B57E6; }
.gsb-grow { flex: 1; }
#galSelect.on { background: #2B57E6; color: #000; border-color: #2B57E6; }
.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: #2B57E6; border-color: #2B57E6; }
.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,#2B57E6); 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(43,87,230,.15) !important; border-color: rgba(43,87,230,.5) !important; color: #2B57E6 !important; }
.gsb-del:hover { background: #2B57E6 !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: #2B57E6; border-color: #2B57E6; }
.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: #2B57E6; border-color: #2B57E6; 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: #2B57E6; }
.mock-tool.danger:hover { color: #fff; background: #c0392b; border-color: #c0392b; }
.mock-link { background: none; border: none; color: #2B57E6; 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 #2B57E6; background: rgba(43,87,230,.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: #2B57E6; 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: #2B57E6; }
.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: #2B57E6; transform: translateX(2px); }
.ck-rev-go { font-size: 12px; color: #2B57E6; font-weight: 700; }
.ck-rev-sec { margin-top: 14px; }
.ck-rev-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #2B57E6; 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, #2B57E6); }
.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: #2B57E6; }
.sa-advisor .cfo-head { color: #2B57E6; }
.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: #2B57E6; 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, #2B57E6); 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(43,87,230,.16); color: #2B57E6; }
/* 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: #2B57E6; background: rgba(43,87,230,.1); border-color: rgba(43,87,230,.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(43,87,230,.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(43,87,230,.16); color: #2B57E6; }
.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(43,87,230,.6); background: rgba(43,87,230,.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(43,87,230,.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,#2B57E6) 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,#2B57E6), color-mix(in srgb, var(--cc,#2B57E6) 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); }
/* Picker équipe projet · Apple clean (relié à hr:people) */
.cwp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cwp-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.cwp-card:hover { border-color: var(--faint); }
.cwp-card.on { border-color: var(--flf); background: color-mix(in srgb, var(--flf) 8%, transparent); }
.cwp-ava { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; background-size: cover; background-position: center; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.cwp-ava.mono { background: var(--cc, #2B57E6); font-size: 15px; }
.cwp-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cwp-name { font-size: 14.5px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cwp-role { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cwp-check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; transition: background .15s, color .15s, border-color .15s; }
.cwp-card.on .cwp-check { background: var(--flf); border-color: var(--flf); color: #fff; }
.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,#2B57E6), color-mix(in srgb, var(--cc,#2B57E6) 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, #2B57E6); color: var(--accent, #2B57E6); }
/* 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, #2B57E6); }
.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, #2B57E6); color: #fff; border-color: var(--accent, #2B57E6); }
.seg-b[disabled] { opacity: .35; cursor: default; }
.an-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.an-kpi { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s var(--ease-out); }
.an-kpi[data-ango]:hover { border-color: color-mix(in srgb, var(--flf) 40%, var(--line)); transform: translateY(-3px); }
.an-kpi-l { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.an-kpi b { font-family: var(--display); font-size: clamp(22px, 2.2vw, 34px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-kpi i { font-size: 11px; color: var(--muted); font-style: normal; }
.an-kpi.in b { color: var(--accent, #2B57E6); }
.an-kpi.pos b { color: #2ecc71; }
.an-kpi.neg b { color: #2B57E6; }
.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, #2B57E6); }
.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) */
/* ═══ DÉCLARATIONS TVA (CA3) ═══ */
.tvad-wrap { border: 1px solid var(--line); border-radius: 28px; background: var(--surface); padding: 34px 36px; }
.tvad-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tvad-last { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); padding: 16px 20px; margin-bottom: 18px; border-radius: 14px; background: color-mix(in srgb, #2F80FF 7%, var(--bg)); border: 1px solid color-mix(in srgb, #2F80FF 18%, var(--line)); }
.tvad-last b { color: var(--text); font-weight: 650; }
.tvad-last.none { background: var(--bg); border-color: var(--line); }
.tvad-last-dot { width: 9px; height: 9px; border-radius: 50%; background: #2F80FF; box-shadow: 0 0 10px #2F80FF; flex: none; }
.tvad-last-dot.none { background: var(--faint); box-shadow: none; }
.tvad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tvad-per { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; cursor: pointer; font-family: var(--font); transition: transform .15s var(--ease-out), border-color .2s, box-shadow .2s; }
.tvad-per:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--flf) 40%, var(--line)); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.tvad-per-l b { display: block; font-size: 16px; font-weight: 650; text-transform: capitalize; }
.tvad-per-l span { font-size: 12px; color: var(--faint); }
.tvad-per-r { text-align: right; }
.tvad-per-r b { display: block; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tvad-per-r b.cr { color: #2F80FF; }
.tvad-badge { display: inline-block; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.tvad-badge.b-done { background: color-mix(in srgb, #2F80FF 18%, transparent); color: #2F80FF; }
.tvad-badge.b-todo { background: color-mix(in srgb, #ff9f0a 18%, transparent); color: #ff9f0a; }
.tvad-badge.b-soon { background: var(--surface-2); color: var(--muted); }
.tvad-badge.b-empty { background: var(--surface-2); color: var(--faint); }
.tvad-per.st-todo { border-color: color-mix(in srgb, #ff9f0a 30%, var(--line)); }
.tvad-per.st-done { opacity: .82; }
/* Modale CA3 */
.tvad-hero { text-align: center; padding: 30px; border-radius: 20px; margin-bottom: 22px; background: linear-gradient(155deg, color-mix(in srgb, #ff9f0a 15%, var(--surface)), var(--surface) 65%); border: 1px solid color-mix(in srgb, #ff9f0a 26%, var(--line)); }
.tvad-hero.credit { background: linear-gradient(155deg, color-mix(in srgb, #2F80FF 15%, var(--surface)), var(--surface) 65%); border-color: color-mix(in srgb, #2F80FF 26%, var(--line)); }
.tvad-hero span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tvad-hero b { display: block; font-family: var(--display); font-size: clamp(38px, 6vw, 58px); font-weight: 800; letter-spacing: -.03em; margin: 10px 0 6px; }
.tvad-hero i { font-style: normal; font-size: 13px; color: var(--faint); }
.tvad-ca3 { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.tvad-line { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.tvad-line:last-child { border-bottom: none; }
.tvad-cad { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; }
.tvad-l { flex: 1; color: var(--text); }
.tvad-line b { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.tvad-line:last-child { background: color-mix(in srgb, var(--flf) 6%, transparent); font-size: 16px; }
.tvad-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tvad-acts .btn { text-decoration: none; }
/* Options d'envoi de la déclaration */
.tvad-opts-h { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 4px 0 14px; }
.tvad-opts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.tvad-opt { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: var(--surface); }
.tvad-opt:first-child { border-color: color-mix(in srgb, #2F80FF 30%, var(--line)); background: color-mix(in srgb, #2F80FF 5%, var(--surface)); }
.tvad-opt-top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.tvad-opt-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #2F80FF; color: #fff; font-size: 13px; font-weight: 700; }
.tvad-opt-top b { font-size: 16.5px; font-weight: 650; }
.tvad-opt-tag { margin-left: auto; font-size: 11.5px; font-weight: 650; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.tvad-opt-tag.soon { color: #ff9f0a; border-color: color-mix(in srgb, #ff9f0a 34%, var(--line)); }
.tvad-opt p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.tvad-opt p b { color: var(--text); }
.tvad-steps { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.tvad-steps li { font-size: 14.5px; line-height: 1.55; color: var(--text); }
.tvad-steps li b { color: #2F80FF; font-weight: 650; }
.tvad-opt-acts { display: flex; flex-wrap: wrap; gap: 9px; }
.tvad-opt-acts .btn { text-decoration: none; }
.tvad-mark-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.tvad-mark-row .muted { font-size: 13px; }
.tvad-edi-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.tvad-edi { display: flex; gap: 14px; align-items: flex-start; }
.tvad-edi b { font-size: 15.5px; }
.tvad-edi p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
/* ═══ SIMULATEUR IMPOTS.GOUV.FR · réplique de l'écran CA3 (3310-CA3) ═══ */
.tvs-wrap { position: fixed; inset: 0; z-index: 360; background: #e9e9e6; overflow-y: auto; opacity: 0; transition: opacity .24s ease; color: #1d3557; }
.tvs-wrap.on { opacity: 1; }
.tvs-topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #0b0b0c; color: #fff; padding: 13px 22px; }
.tvs-topttl { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.tvs-close { background: #fff; color: #000; border: none; border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 650; cursor: pointer; font-family: var(--font); }
.tvs-page { max-width: 1180px; margin: 0 auto; padding: 22px 22px 60px; }
.tvs-steps { display: flex; gap: 4px; margin-bottom: 14px; }
.tvs-steps span { flex: 1; max-width: 250px; background: #c9c9c5; color: #3a3a3a; font-size: 13.5px; font-weight: 600; padding: 9px 16px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.tvs-steps span.on { background: #4a4a48; color: #fff; }
.tvs-meta { background: #fff; padding: 16px 22px; display: flex; gap: 60px; margin-bottom: 16px; }
.tvs-meta b { display: inline-block; min-width: 180px; color: #222; font-size: 14px; }
.tvs-meta span { font-size: 14px; color: #222; }
.tvs-tabs { display: flex; gap: 3px; }
.tvs-tabs span { background: #cfcfcb; color: #444; font-size: 14px; padding: 10px 40px; border-radius: 4px 4px 0 0; }
.tvs-tabs span.on { background: #fff; color: #14315c; font-weight: 650; }
.tvs-form { background: #fff; padding: 30px 34px 40px; }
.tvs-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.tvs-marianne { font-size: 15px; font-weight: 800; line-height: 1.15; color: #000; }
.tvs-marianne i { display: block; width: 34px; height: 10px; margin-bottom: 5px; background: linear-gradient(90deg, #000091 33%, #fff 33% 66%, #e1000f 66%); border: 1px solid #ddd; }
.tvs-marianne em { display: block; font-style: italic; font-weight: 400; font-size: 10.5px; margin-top: 4px; color: #333; }
.tvs-dgfip { text-align: center; font-size: 15px; letter-spacing: .04em; color: #3f5872; }
.tvs-dgfip b { display: block; margin-top: 10px; font-weight: 500; font-size: 17px; letter-spacing: 0; color: #3f5872; line-height: 1.35; }
.tvs-num { font-size: 17px; color: #3f5872; white-space: nowrap; }
.tvs-guide { border: 2px solid #2F80FF; background: #eef5ff; border-radius: 8px; padding: 13px 16px; font-size: 13.5px; line-height: 1.6; color: #1d3557; margin-bottom: 24px; }
.tvs-k { padding: 1px 8px; border-radius: 4px; font-weight: 650; }
.tvs-k.k-fill { background: #dcebff; border: 1px solid #2F80FF; color: #0f4faa; }
.tvs-k.k-auto { background: #e6e6e2; border: 1px solid #cfcfc9; color: #555; }
.tvs-sec { font-size: 16.5px; font-weight: 700; color: #14315c; border-bottom: 2px solid #14315c; padding-bottom: 6px; margin: 30px 0 12px; letter-spacing: .01em; }
.tvs-bandeau { background: #bcd9f0; color: #14315c; font-weight: 700; font-size: 13.5px; padding: 8px 12px; margin: 12px 0 4px; }
.tvs-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e3e3df; }
.tvs-code { flex: none; width: 42px; text-align: center; background: #f6c8c8; color: #7c1d1d; font-weight: 700; font-size: 13px; padding: 6px 0; border-radius: 2px; }
.tvs-lab { flex: 1; font-size: 14.5px; color: #14315c; line-height: 1.45; }
.tvs-fieldwrap { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tvs-field { display: inline-block; min-width: 150px; text-align: right; font-size: 15px; font-weight: 650; color: #111; background: #fff; border: 1px solid #9a9a94; padding: 7px 10px; font-variant-numeric: tabular-nums; }
.tvs-row.m-fill .tvs-field { border: 2px solid #2F80FF; background: #f2f8ff; box-shadow: 0 0 0 3px rgba(47,128,255,.14); }
.tvs-row.m-auto .tvs-field, .tvs-field.auto { background: #e6e6e2; border-color: #cfcfc9; color: #333; }
.tvs-row.m-vide .tvs-field { background: #fff; }
.tvs-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #9a9a94; }
.tvs-row.m-fill .tvs-tag { color: #0f4faa; }
.tvs-hint { font-size: 13px; color: #365a86; background: #eef5ff; border-left: 3px solid #2F80FF; padding: 8px 12px; margin: 6px 0 8px 54px; line-height: 1.55; border-radius: 0 6px 6px 0; }
.tvs-hint b { color: #0f4faa; }
.tvs-skip { font-size: 12.5px; color: #6a6a64; background: #f4f4f1; border-radius: 6px; padding: 9px 13px; margin: 10px 0; font-style: italic; }
.tvs-next { border: 1px solid #d7d7d2; background: #fbfbf9; border-radius: 8px; padding: 15px 18px; margin: 26px 0 18px; font-size: 14px; line-height: 1.65; color: #14315c; }
.tvs-btnghost { display: inline-block; background: #111; color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 3px; }
.tvs-actions { display: flex; align-items: center; gap: 14px; justify-content: center; padding-top: 18px; border-top: 1px solid #e3e3df; flex-wrap: wrap; }
.tvs-btn { background: #111; color: #fff; font-size: 15px; font-weight: 600; padding: 12px 44px; }
.tvs-actions i { font-style: normal; width: 100%; text-align: center; font-size: 12px; color: #8a8a84; }
@media (max-width: 760px) { .tvs-headrow { flex-direction: column; } .tvs-meta { flex-direction: column; gap: 8px; } .tvs-field { min-width: 110px; } }
/* ── Connecteur bancaire (états réels par entité) ── */
.bkc-empty { border: 1px dashed rgba(255,255,255,.18); border-radius: 22px; padding: 34px 32px; }
.bkc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bkc-row b { font-size: 17px; }
.bkc-note { font-size: 13.5px; color: var(--muted); width: 100%; padding-left: 26px; }
.bkc-dot { width: 12px; height: 12px; border-radius: 50%; background: #2F80FF; box-shadow: 0 0 12px #2F80FF; flex: none; }
.bkc-dot.off { background: var(--faint); box-shadow: none; }
.bkc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.bkc-item { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--surface); }
.bkc-item.on { border-color: color-mix(in srgb, #2F80FF 35%, var(--line)); }
.bkc-item > div { flex: 1; min-width: 0; }
.bkc-item b { display: block; font-size: 15.5px; }
.bkc-item span:not(.bkc-dot):not(.bkc-badge) { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.bkc-badge { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 5px 12px; background: color-mix(in srgb, #2F80FF 16%, transparent); color: #2F80FF; }
.bkc-badge.todo { background: color-mix(in srgb, #ff9f0a 14%, transparent); color: #ff9f0a; }
/* ═══ BANQUE · appli bancaire Apple (toutes les transactions, filtres, tri) ═══ */
.bank-views { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.bank-vt { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 550; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.bank-vt:hover { color: var(--text); }
.bank-vt.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 650; }
/* Solde en bandeau */
.bk-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 26px 30px; border-radius: 24px; margin-bottom: 20px; background: linear-gradient(150deg, color-mix(in srgb, #2F80FF 14%, var(--surface)), var(--surface) 62%); border: 1px solid color-mix(in srgb, #2F80FF 22%, var(--line)); }
.bk-balance span { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bk-balance b { font-family: var(--display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
/* Barre d'outils : recherche + segments */
.bk-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.bk-searchwrap { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; transition: border-color .2s, box-shadow .2s; }
.bk-searchwrap:focus-within { border-color: color-mix(in srgb, var(--flf) 50%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--flf) 12%, transparent); }
.bk-si { color: var(--faint); font-size: 17px; }
.bk-input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: var(--font); font-size: 15px; padding: 15px 0; }
.bk-input::placeholder { color: var(--faint); }
.bk-segs { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-seg-g { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.bk-seg { border: none; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; font-family: var(--font); }
.bk-seg.on { background: var(--text); color: var(--bg); }
.bk-seg:not(.on):hover { color: var(--text); }
/* Filtre par catégorie · chips défilables */
.bk-catbar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: thin; }
.bk-chip { flex: none; background: var(--surface); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.bk-chip i { font-style: normal; color: var(--faint); font-size: 11px; margin-left: 4px; }
.bk-chip:hover { color: var(--text); border-color: var(--muted); }
.bk-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.bk-chip.on i { color: color-mix(in srgb, var(--bg) 55%, var(--text)); }
/* Totaux du filtre */
.bk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.bk-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.bk-stat span { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.bk-stat b { display: block; margin-top: 8px; font-family: var(--display); font-size: clamp(15px, 1.55vw, 21px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-stat b i { font-style: normal; font-size: 14px; color: var(--faint); font-weight: 500; }
.bk-stat.in b { color: #2F80FF; } .bk-stat.out b { color: #2B57E6; }
.bk-stat b.up { color: #2F80FF; } .bk-stat b.down { color: #2B57E6; }
@media (max-width: 720px) { .bk-stats { grid-template-columns: repeat(2, 1fr); } }
/* Le fil */
.bk-feed { display: flex; flex-direction: column; }
.bk-more { display: flex; justify-content: center; padding: 28px 0 8px; }
.bk-morebtn { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 15px 30px; font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: border-color .2s, transform .15s, background .2s; }
.bk-morebtn:hover { border-color: color-mix(in srgb, var(--flf) 45%, var(--line)); transform: translateY(-2px); }
.bk-morebtn span { color: var(--faint); font-weight: 400; }
.bk-mh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 30px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bk-mh:first-child { margin-top: 4px; }
.bk-mh b { font-family: var(--display); font-size: 15px; letter-spacing: -.01em; text-transform: none; }
.bk-mh b.up { color: #2F80FF; } .bk-mh b.down { color: #2B57E6; }
.bk-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 10px; background: var(--surface); transition: border-color .18s, transform .15s, box-shadow .2s; }
.bk-row:hover { border-color: color-mix(in srgb, var(--flf) 24%, var(--line)); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.bk-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 600; flex: none; }
.bk-icon.in { background: color-mix(in srgb, #2F80FF 14%, transparent); color: #2F80FF; }
.bk-icon.out { background: color-mix(in srgb, #2B57E6 13%, transparent); color: #2B57E6; }
.bk-main { min-width: 0; }
.bk-label { font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.bk-acct { color: var(--faint); }
.bk-badges { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.bk-cat { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 14px; font-size: 13.5px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: border-color .2s; }
.bk-cat:hover { border-color: var(--muted); }
.bk-nat { border: none; border-radius: 8px; padding: 8px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: var(--font); color: #fff; }
.bk-nat.nat-client { background: #12b886; } .bk-nat.nat-in { background: #2F80FF; }
.bk-nat.nat-supp { background: #2B57E6; } .bk-nat.nat-free { background: #a06bff; }
.bk-nat.nat-sal, .bk-nat.nat-self { background: #ff9f0a; color: #1a1300; } .bk-nat.nat-tax { background: #e05a4a; }
.bk-nat.nat-int { background: #5a5a62; }
.bk-vat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; background: transparent; transition: border-color .2s, background .2s; }
.bk-vat.v-ded { color: #2F80FF; border-color: rgba(47,128,255,.4); }
.bk-vat.v-col { color: #2B57E6; border-color: rgba(43,87,230,.4); }
.bk-vat.v-auto { color: #8a74ff; border-color: rgba(138,116,255,.4); }
.bk-vat.v-exo { color: var(--muted); }
.bk-vat:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.bk-fv { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; 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-doc { background: transparent; border: 1px dashed var(--line); color: var(--muted); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s; }
.bk-doc:hover { border-color: var(--flf); color: var(--text); }
/* Virement → fiche de la personne (fournisseur/freelance connu) */
.bk-hr { background: color-mix(in srgb, var(--flf) 12%, transparent); border: 1px solid color-mix(in srgb, var(--flf) 34%, transparent); color: var(--text); border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.bk-hr:hover { background: color-mix(in srgb, var(--flf) 20%, transparent); }
/* Fournisseur compta → fiche */
.hb-hr { margin-left: 10px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.hb-hr:hover { border-color: var(--flf); color: var(--text); }
.bk-doc.on { border-style: solid; border-color: rgba(47,128,255,.5); color: #2F80FF; }
.bk-link { font-size: 13px; color: #2F80FF; white-space: nowrap; font-weight: 600; }
.bk-amt { font-family: var(--font); font-weight: 600; min-width: 96px; text-align: right; font-size: 17px; letter-spacing: -.01em; align-self: center; font-variant-numeric: tabular-nums; }
.bk-amt.ck-up { color: #2F80FF; }
.bk-amt.ck-down { color: var(--text); }
/* 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: #2B57E6; }
.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, #2B57E6); }
.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, #2B57E6); 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, #2B57E6); color: var(--accent, #2B57E6); }
.prr-btn.hot:hover { background: var(--accent, #2B57E6); 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: #2B57E6; }
.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, #2B57E6); }
.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(43,87,230,.16), rgba(43,87,230,.03)); border: 1px solid rgba(43,87,230,.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, #2B57E6); }
.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, #2B57E6); }
.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, #2B57E6); font-weight: 600; }
.gr-synth { margin-top: 20px; padding: 20px 24px; border-radius: 16px; background: linear-gradient(160deg, rgba(43,87,230,.12), rgba(43,87,230,.03)); border: 1px solid rgba(43,87,230,.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, #2B57E6); }
.soc-daynum { font-size: 12px; color: var(--muted); font-weight: 600; padding: 2px 4px; }
.soc-cell.soc-today .soc-daynum { color: var(--accent, #2B57E6); }
.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-post-badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 3px; margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; color: var(--sc); background: color-mix(in srgb, var(--sc) 16%, transparent); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.soc-post-en_ligne .soc-post-badge { color: #fff; background: #2ecc71; }   /* confirmé en ligne = plein, impossible à rater */
.soc-post-echec .soc-post-badge { color: #fff; background: #ff5a3c; }
.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, #2B57E6); }
.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, #2B57E6); }
/* 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, #2B57E6); } .sw-dh.sw-today b { color: var(--accent, #2B57E6); }
.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(43,87,230,.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); }

/* Analytics niveau Metricool · KPIs héros + interactions + heatmap créneaux */
.sa-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sa-herokpi { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--surface); }
.sa-hk-l { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sa-hk-v { font-family: var(--display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.025em; margin-top: 8px; line-height: 1; }
.sa-hk-s { font-size: 12.5px; color: var(--faint); margin-top: 8px; }
.sa-delta { font-weight: 700; font-size: 12px; }
.sa-sub { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.sa-subkpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.sa-subkpi span { font-size: 12px; color: var(--muted); }
.sa-subkpi b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.sa-card { margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--surface); }
/* Vue JOUR du calendrier · une colonne, heure par heure */
.sd-grid { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.sd-row { display: grid; grid-template-columns: 70px 1fr; min-height: 52px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.sd-row:last-child { border-bottom: none; }
.sd-row:hover { background: var(--surface-2); }
.sd-time { font-size: 13px; color: var(--faint); padding: 14px 16px; border-right: 1px solid var(--line); }
.sd-slot { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; align-items: center; }

/* Analytics · plus d'air, titres plus grands (façon Apple) */
.sa-hero { margin-top: 8px; gap: 16px; }
.sa-chart, .sa-card { padding: 26px 28px; margin-top: 22px; border-radius: 20px; }
.sa-chart-h { font-size: 17px; font-weight: 650; color: var(--text); margin-bottom: 18px; letter-spacing: -.01em; }
.sa-chart-h .cd-hint { font-size: 13px; font-weight: 400; }
.bt-take { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 2px 0 22px; max-width: 680px; }
.bt-take b { color: var(--text); font-weight: 650; }
.bt-real { font-size: 13.5px; color: var(--flf); background: color-mix(in srgb, var(--accent, #2B57E6) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #2B57E6) 24%, transparent); border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; }
.bt-real b { color: var(--flf); font-weight: 700; }
.bt-grid { display: grid; grid-template-columns: 96px repeat(7, 1fr); gap: 9px; align-items: center; }
.bt-dow { font-size: 12.5px; font-weight: 600; color: var(--faint); text-align: center; }
.bt-slot { display: flex; flex-direction: column; gap: 1px; }
.bt-slot b { font-size: 13.5px; color: var(--text); font-weight: 600; }
.bt-slot span { font-size: 11px; color: var(--faint); }
/* calme = vide (contour discret) · bon = corail moyen · optimal = corail plein avec point */
.bt-cell { height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 8px; color: #fff; background: transparent; border: 1px solid var(--line); transition: transform .1s; }
.bt-cell:hover { transform: scale(1.06); }
.bt-1 { background: transparent; border: 1px solid var(--line); }
.bt-2 { background: color-mix(in srgb, var(--accent, #2B57E6) 32%, transparent); border-color: transparent; }
.bt-3 { background: var(--accent, #2B57E6); border-color: transparent; box-shadow: 0 4px 14px rgba(43,87,230,.3); }
.bt-leg { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--faint); }
.bt-dot { width: 14px; height: 14px; border-radius: 5px; margin-left: 6px; }
.bt-dot.bt-1 { border: 1px solid var(--line); }
.bt-dot.bt-2 { background: color-mix(in srgb, var(--accent, #2B57E6) 32%, transparent); }
.bt-dot.bt-3 { background: var(--accent, #2B57E6); }

/* ============================================================
   ANALYTICS · refonte Apple (iphone-17-pro) : air maximal, neutre,
   corail en accent RARE, grande typo, animations. Surcharge tout ci-dessus.
   ============================================================ */
@keyframes saUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.sa-wrap > * { opacity: 0; animation: saUp .7s cubic-bezier(.22,1,.36,1) forwards; margin-top: 60px; }
.sa-wrap > *:first-child { margin-top: 30px; }
.sa-wrap > *:nth-child(1) { animation-delay: .02s; } .sa-wrap > *:nth-child(2) { animation-delay: .10s; }
.sa-wrap > *:nth-child(3) { animation-delay: .18s; } .sa-wrap > *:nth-child(4) { animation-delay: .26s; }
.sa-wrap > *:nth-child(5) { animation-delay: .34s; } .sa-wrap > *:nth-child(6) { animation-delay: .42s; }

/* KPIs héros · neutres, énormes, séparés par un simple filet (zéro carte lourde) */
.sa-hero { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sa-herokpi { border: none; border-right: 1px solid var(--line); border-radius: 0; background: transparent; padding: 34px 32px 38px; }
.sa-herokpi:last-child { border-right: none; }
.sa-hk-l { font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.sa-hk-l::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--kc, #2B57E6); flex-shrink: 0; }
.sa-herokpi:nth-child(1) { --kc: #2F80FF; } .sa-herokpi:nth-child(2) { --kc: #FF2D78; } .sa-herokpi:nth-child(3) { --kc: #2B57E6; } .sa-herokpi:nth-child(4) { --kc: #a06bff; }
.sa-hk-v { font-family: var(--display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.03em; margin-top: 16px; color: var(--text); line-height: .98; white-space: nowrap; }
.sa-hk-s { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Interactions · aérées, neutres, filet fin */
.sa-sub { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sa-subkpi { border: none; border-right: 1px solid var(--line); border-radius: 0; background: transparent; padding: 26px 28px; }
.sa-subkpi:last-child { border-right: none; }
.sa-subkpi span { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sa-subkpi span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kc, #2B57E6); }
.sa-subkpi:nth-child(1) { --kc: #FF2D78; } .sa-subkpi:nth-child(2) { --kc: #2F80FF; } .sa-subkpi:nth-child(3) { --kc: #ff9f0a; } .sa-subkpi:nth-child(4) { --kc: #2B57E6; } .sa-subkpi:nth-child(5) { --kc: #a06bff; }
.sa-subkpi b { font-size: 26px; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; }

/* Cartes · quasi invisibles, beaucoup d'air, grand titre */
.sa-chart, .sa-card { background: transparent; border: 1px solid var(--line); border-radius: 26px; padding: 38px 40px; }
.sa-chart-h { font-size: 22px; font-weight: 650; color: var(--text); margin-bottom: 28px; letter-spacing: -.02em; }
.sa-chart-h .cd-hint { font-size: 13.5px; font-weight: 400; color: var(--faint); }

/* Courbe qui se dessine + aire qui apparaît */
.sa-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: saDraw 1.5s cubic-bezier(.4,0,.2,1) .25s forwards; }
@keyframes saDraw { to { stroke-dashoffset: 0; } }
.sa-area { opacity: 0; animation: saFade 1s ease .95s forwards; }
@keyframes saFade { to { opacity: 1; } }
.sa-svg { height: 200px; }

/* Heatmap créneaux · NEUTRE (fini l'orange omniprésent) · corail seulement en point d'accent */
.bt-take { font-size: 17px; line-height: 1.6; color: var(--muted); }
.bt-take b { color: var(--text); }
.bt-real { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.bt-real b { color: var(--text); }
.bt-grid { gap: 12px; }
.bt-cell { height: 42px; border-radius: 12px; color: var(--accent, #2B57E6); font-size: 9px; }
.bt-1 { background: transparent; border: 1px solid var(--line); }
.bt-2 { background: rgba(255,255,255,.08); border-color: transparent; }
.bt-3 { background: rgba(255,255,255,.92); border-color: transparent; box-shadow: none; }
.bt-leg { margin-top: 18px; }
.bt-dot.bt-1 { border: 1px solid var(--line); background: transparent; }
.bt-dot.bt-2 { background: rgba(255,255,255,.08); }
.bt-dot.bt-3 { background: rgba(255,255,255,.92); }

/* Conseiller · neutre, PLUS GRAND, zéro vert */
.sa-advisor.cfo { border: 1px solid var(--line); background: transparent; padding: 38px 40px; border-radius: 26px; }
.sa-advisor .cfo-head { font-size: 16px; }
.sa-advisor .cfo-head span { font-size: 13.5px; }
.sa-advisor .sa-adv-verdict { font-size: 19px; line-height: 1.55; margin: 18px 0 24px; color: var(--text); }
.sa-advisor .cfo-actions { gap: 14px; }
.sa-advisor .cfo-actions li { font-size: 17px; line-height: 1.55; padding: 18px 22px 18px 58px; border-radius: 16px; }
.sa-advisor .cfo-actions li::before { width: 26px; height: 26px; left: 20px; font-size: 13px; }
.sa-advisor .cfo-actions li.sev-ok { border-left-color: #2F80FF; }
.sa-advisor .cfo-actions li.sev-ok::before { background: #2F80FF; }
.sa-advisor .cfo-actions li.sev-mid { border-left-color: #ff9f0a; }
.sa-advisor .cfo-actions li.sev-mid::before { background: #ff9f0a; }

/* ANIMATIONS APPLE AU SCROLL · chaque bloc apparaît en montant quand il entre dans l'écran */
.sa-wrap > * { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); animation: none; margin-top: 72px; }
.sa-wrap > *:first-child { margin-top: 34px; }
.sa-wrap > *.in { opacity: 1; transform: none; }
@media (max-width: 720px) { .sa-hero { grid-template-columns: repeat(2, 1fr); } .sa-sub { grid-template-columns: repeat(2, 1fr); } }
.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, #2B57E6); }
.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; }

/* Compositeur de post en PAGE ENTIÈRE (plus de modale) */
.sp-page { max-width: 1280px; margin: 0 auto; padding: 4px 4px 60px; }
.sp-page.sp-modal { max-height: none; overflow: visible; }
.sp-page-head { margin: 8px 0 30px; }
.sp-page-head { margin: 8px 0 30px; }
.sp-page-head h1 { font: 800 clamp(34px, 4vw, 52px)/1.03 var(--display); letter-spacing: -.03em; color: var(--text); }
.sp-page-head h1 em { font-style: italic; color: var(--flf); }
.sp-page-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.sp-page .sp-actions { bottom: 0; margin-top: 28px; border-radius: 0; }

/* Animation Apple générique · monte en fondu quand ça entre à l'écran (via flfReveal + IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.soc-hub-card.reveal:nth-child(1) { transition-delay: .04s; } .soc-hub-card.reveal:nth-child(2) { transition-delay: .10s; }
.soc-hub-card.reveal:nth-child(3) { transition-delay: .16s; } .soc-hub-card.reveal:nth-child(4) { transition-delay: .22s; }
.soc-hub-card.reveal:nth-child(5) { transition-delay: .28s; } .soc-hub-card.reveal:nth-child(6) { transition-delay: .34s; }

/* Hub Réseaux · grandes cartes, chacune une page entière */
.soc-hub-profiles { margin: 6px 0 24px; flex-wrap: wrap; }
.soc-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.soc-hub-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: 8px; min-height: 168px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); cursor: pointer; font-family: var(--font); overflow: hidden; transition: transform .14s var(--ease, ease), border-color .2s, box-shadow .2s; }
.soc-hub-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent, #2B57E6) 40%, var(--line)); box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.shc-top { display: flex; align-items: center; justify-content: space-between; }
.shc-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff; background: color-mix(in srgb, var(--accent, #2B57E6) 82%, #000); }
.shc-c-cal .shc-ic { background: #5b8def; }
.shc-c-compose .shc-ic { background: var(--accent, #2B57E6); }
.shc-c-analytics .shc-ic { background: #2ecc71; }
.shc-c-connect .shc-ic { background: #a06bff; }
.shc-c-biblio .shc-ic { background: #f5b301; }
.shc-c-clients .shc-ic { background: #ff8f6b; }
.shc-c-sasu .shc-ic { background: #2F80FF; }
.shc-c-llc .shc-ic { background: #2B57E6; }
.shc-c-resultat .shc-ic { background: #a06bff; }
.shc-c-tva .shc-ic { background: #ff9f0a; }
.shc-c-dep .shc-ic { background: #FF2D78; }
.shc-c-paie .shc-ic { background: #12b886; }
.shc-c-bilan .shc-ic { background: #5b8def; }
/* Compte de résultat · barres de charges par poste */
.cr-hero .sa-hk-v { white-space: nowrap; }
.cr-cats { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.cr-cat-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cr-cat-h b { font-size: 16px; font-weight: 600; color: var(--text); }
.cr-cat-h span { font-size: 14px; color: var(--muted); }
.cr-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.cr-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FF2D78, #2B57E6); }
.cr-note p { font-size: 15px; line-height: 1.6; color: var(--muted); }
/* Conseiller compta · vulgarisé + impôt estimé + actions (sans vert) */
.cr-baby { font-size: 17px; line-height: 1.6; color: var(--text); margin: 4px 0 20px; }
.cr-baby b { color: var(--text); font-weight: 650; }
.cr-tax { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.cr-tax > div { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.cr-tax span { font-size: 13.5px; color: var(--muted); display: block; margin-bottom: 8px; }
.cr-tax b { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
/* Le seuil mensuel (page Charges fixes) */
.seuil-card { margin-top: 0; }
.seuil-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; background: color-mix(in srgb, #2B57E6 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, #2B57E6 26%, var(--line)); margin-bottom: 20px; }
.seuil-hero.ok { background: color-mix(in srgb, #12b886 8%, var(--surface-2)); border-color: color-mix(in srgb, #12b886 26%, var(--line)); }
.seuil-lab { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.seuil-big { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; margin-top: 4px; white-space: nowrap; }
.seuil-prog { flex: 1; min-width: 220px; }
.seuil-bar { height: 8px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 8px; }
.seuil-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2B57E6, #FF2D78); }
.seuil-hero.ok .seuil-bar i { background: #12b886; }
.seuil-prog span { font-size: 13.5px; color: var(--muted); } .seuil-prog b { color: var(--text); }
.seuil-break { display: flex; flex-direction: column; }
.seuil-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.seuil-line span i { font-style: normal; color: var(--faint); font-size: 12.5px; margin-left: 8px; }
.seuil-line b { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.seuil-line.seuil-sub { font-weight: 700; border-top: 1px solid var(--text); border-bottom: none; margin-top: 4px; }
.seuil-line.seuil-tot { font-size: 18px; font-weight: 750; border-top: 2px solid var(--text); border-bottom: none; margin-top: 4px; padding-top: 16px; }
.seuil-line.seuil-tot b { color: #2B57E6; }
.seuil-note { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 16px; }
.seuil-sub-h { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 22px 0 12px; }
.seuil-sub-h b { color: var(--flf); }
.seuil-eq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seuil-eq-i { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.seuil-eq-i b { font-family: var(--display); font-size: 19px; color: var(--flf); margin-right: 5px; }
.seuil-eq-or { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.seuil-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 8px; }
.sd-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; position: relative; overflow: hidden; }
.sd-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.sd-cout::before { background: #2B57E6; } .sd-vise::before { background: #2F80FF; }
.sd-lab { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 8px; }
.sd-card b { display: block; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--text); white-space: nowrap; line-height: 1; }
.sd-card b em { font-size: 15px; font-weight: 600; color: var(--muted); font-style: normal; margin-left: 2px; }
.sd-card i { display: block; margin-top: 9px; font-size: 12.5px; line-height: 1.45; color: var(--muted); font-style: normal; }
.sd-cout b { color: #ff8a76; } .sd-vise b { color: #6ba7ff; }
.seuil-days-note { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; }
.seuil-days-note b { color: var(--text); }
.cs-seuil-link { display: flex; align-items: center; gap: 16px; justify-content: space-between; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 22px 0; cursor: pointer; transition: transform .3s cubic-bezier(.25,.46,.45,.94), border-color .3s; }
.cs-seuil-link:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--txt, #fff) 22%, var(--line)); }
.cs-seuil-link b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-bottom: 3px; }
.cs-seuil-link span:not(.shc-go) { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cs-seuil-link .shc-go { font-size: 20px; color: var(--muted); flex: none; }
@media (max-width: 720px) { .seuil-days { grid-template-columns: 1fr; } }
.seuil-passif { margin-top: 30px; }
.seuil-passif p { font-size: 16.5px; line-height: 1.65; color: var(--muted); margin: 0 0 14px; }
.seuil-passif p b { color: var(--text); }
.seuil-passif-lead { font-size: 17.5px !important; line-height: 1.6 !important; color: var(--text) !important; max-width: 760px; }
.seuil-sub-h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin: 26px 0 14px; }
.seuil-passif-l { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.seuil-passif-l li { font-size: 16px; line-height: 1.6; color: var(--muted); padding-left: 18px; border-left: 3px solid color-mix(in srgb, var(--flf) 55%, var(--line)); }
.seuil-passif-l li b { color: var(--text); font-weight: 700; }
/* Placements · cartes rendement */
.spf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.spf-card { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px; transition: transform .3s cubic-bezier(.25,.46,.45,.94), border-color .3s; overflow: hidden; }
.spf-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; opacity: .85; }
.spf-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--txt, #fff) 22%, var(--line)); }
.spf-bleu::before { background: #2F80FF; } .spf-ambre::before { background: #ff9f0a; } .spf-violet::before { background: #a06bff; } .spf-rose::before { background: #FF2D78; } .spf-corail::before { background: #2B57E6; }
.spf-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); margin-bottom: 12px; }
.spf-bleu .spf-tag { color: #2F80FF; } .spf-ambre .spf-tag { color: #ff9f0a; } .spf-violet .spf-tag { color: #a06bff; } .spf-rose .spf-tag { color: #FF2D78; } .spf-corail .spf-tag { color: #2B57E6; }
.spf-n { font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--text); margin-bottom: 7px; }
.spf-d { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-bottom: 16px; }
.spf-nums { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.spf-nums > div span { display: block; font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.spf-nums > div b { display: block; font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.spf-hint { font-size: 13px; line-height: 1.5; color: var(--faint); margin-top: 14px; }
/* Protection · prévoyance */
.seuil-prot { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.prot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.prot-card { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: transform .3s cubic-bezier(.25,.46,.45,.94), border-color .3s; }
.prot-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--txt, #fff) 22%, var(--line)); }
.prot-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; }
.prot-bleu .prot-badge { background: color-mix(in srgb, #2F80FF 16%, transparent); color: #6ba7ff; }
.prot-corail .prot-badge { background: color-mix(in srgb, #2B57E6 16%, transparent); color: #ff8a76; }
.prot-rose .prot-badge { background: color-mix(in srgb, #FF2D78 16%, transparent); color: #ff5c98; }
.prot-ambre .prot-badge { background: color-mix(in srgb, #ff9f0a 16%, transparent); color: #ffb84d; }
.prot-violet .prot-badge { background: color-mix(in srgb, #a06bff 16%, transparent); color: #b48cff; }
.prot-card .spf-d { margin-bottom: 0; font-size: 15px; }
@media (max-width: 640px) { .spf-nums { grid-template-columns: 1fr; gap: 8px; } .seuil-passif-lead { font-size: 16px !important; } }
/* Page Protection dédiée · FR / US, cartes détaillées avec liens officiels */
.prot-zone-seg { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.prot-zone-seg .seg-b { border: none; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.prot-zone-seg .seg-b.on { background: var(--text); color: var(--bg); }
.prot-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-bottom: 24px; }
.prot-card2 { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; transition: transform .3s cubic-bezier(.25,.46,.45,.94), border-color .3s; display: flex; flex-direction: column; }
.prot-card2:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--txt, #fff) 22%, var(--line)); }
.prot-card2-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.prot-card2 .prot-badge { margin-bottom: 0; }
.prot-prio { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.prot-prio-h { background: color-mix(in srgb, #ff3b30 16%, transparent); color: #ff6b60; }
.prot-prio-m { background: color-mix(in srgb, #ff9f0a 16%, transparent); color: #ffb84d; }
.prot-prio-o { background: color-mix(in srgb, #12b886 16%, transparent); color: #35d69e; }
.prot-n { font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--text); margin-bottom: 9px; }
.prot-d { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 16px; flex: 1; }
.prot-d b { color: var(--text); font-weight: 600; }
.prot-links { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.prot-lk { font-size: 13.5px; font-weight: 600; color: #6ba7ff; text-decoration: none; transition: color .2s; }
.prot-lk:hover { color: #8fbcff; text-decoration: underline; }
.prot-cta { background: color-mix(in srgb, #2F80FF 7%, var(--surface-2)); border: 1px solid color-mix(in srgb, #2F80FF 22%, var(--line)); border-radius: 18px; padding: 20px 22px; }
.prot-cta b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin-bottom: 7px; }
.prot-cta span { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.prot-cta span b { display: inline; font-size: inherit; color: var(--text); }
/* Résumé protection dans Ma Paie */
.pa-prot { margin: 26px 0; padding: 22px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; }
.pa-prot-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pa-prot-h h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0; color: var(--text); }
.pa-prot-lead { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 8px 0 16px; }
.pa-prot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pa-prot-c { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; }
.pa-prot-c .prot-badge { margin-bottom: 9px; }
.pa-prot-c p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.pa-prot-c p b { color: var(--text); font-weight: 600; }
.prot-b-bleu { background: color-mix(in srgb, #2F80FF 16%, transparent); color: #6ba7ff; }
.prot-b-corail { background: color-mix(in srgb, #2B57E6 16%, transparent); color: #ff8a76; }
.prot-b-rose { background: color-mix(in srgb, #FF2D78 16%, transparent); color: #ff5c98; }
.prot-b-ambre { background: color-mix(in srgb, #ff9f0a 16%, transparent); color: #ffb84d; }
.prot-b-violet { background: color-mix(in srgb, #a06bff 16%, transparent); color: #b48cff; }
.prot-clic { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; }
.prot-readmore { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: #6ba7ff; transition: transform .2s; }
.prot-clic:hover .prot-readmore { transform: translateX(3px); }
/* Vue détail · vraie page par protection */
.prot-back { background: transparent; border: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 0; margin: 4px 0 16px; transition: color .2s; }
.prot-back:hover { color: var(--text); }
.prot-detail-hero { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px; padding: 30px 30px 28px; margin-bottom: 26px; overflow: hidden; }
.prot-detail-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.prot-detail-hero.prot-bleu::before { background: #2F80FF; } .prot-detail-hero.prot-corail::before { background: #2B57E6; } .prot-detail-hero.prot-rose::before { background: #FF2D78; } .prot-detail-hero.prot-ambre::before { background: #ff9f0a; } .prot-detail-hero.prot-violet::before { background: #a06bff; }
.prot-detail-t { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.025em; color: var(--text); margin: 14px 0 10px; line-height: 1.08; }
.prot-detail-lead { font-size: 17.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 720px; }
.prot-detail-body { max-width: 780px; }
.prot-sec { margin-bottom: 26px; }
.prot-sec h4 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.prot-sec p { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin: 0; }
.prot-sec p b { color: var(--text); font-weight: 600; }
.prot-steps { margin: 0; padding: 0; list-style: none; counter-reset: ps; display: flex; flex-direction: column; gap: 13px; }
.prot-steps li { position: relative; padding-left: 40px; font-size: 16.5px; line-height: 1.6; color: var(--muted); counter-increment: ps; }
.prot-steps li b { color: var(--text); font-weight: 600; }
.prot-steps li::before { content: counter(ps); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, #2F80FF 16%, transparent); color: #6ba7ff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.prot-links-row { flex-direction: row; flex-wrap: wrap; gap: 20px; border-top: none; padding-top: 0; }
.prot-detail-note { font-size: 13.5px; line-height: 1.55; color: var(--faint); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
@media (max-width: 720px) { .prot-grid2 { grid-template-columns: 1fr; } .prot-sec p, .prot-steps li { font-size: 15.5px; } }
/* Le seuil sur l'accueil *//* Le seuil sur l'accueil */
.pa-daf { margin-top: 26px; }
.pa-daf-verdict { display: flex; align-items: flex-start; gap: 13px; font-size: 16px; line-height: 1.6; padding: 18px 20px; border-radius: 16px; margin-bottom: 18px; }
.pa-daf-verdict.v-high { background: color-mix(in srgb, #ff3b30 9%, transparent); border: 1px solid color-mix(in srgb, #ff3b30 26%, var(--line)); }
.pa-daf-verdict.v-mid { background: color-mix(in srgb, #ff9f0a 9%, transparent); border: 1px solid color-mix(in srgb, #ff9f0a 26%, var(--line)); }
.pa-daf-verdict.v-ok { background: color-mix(in srgb, #12b886 9%, transparent); border: 1px solid color-mix(in srgb, #12b886 26%, var(--line)); }
.pa-daf-verdict b { color: var(--text); font-weight: 700; }
.pa-daf-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; margin-top: 6px; }
.pa-daf-dot.high { background: #ff3b30; box-shadow: 0 0 12px #ff3b30; } .pa-daf-dot.mid { background: #ff9f0a; box-shadow: 0 0 12px #ff9f0a; } .pa-daf-dot.ok { background: #12b886; box-shadow: 0 0 12px #12b886; }
.pa-daf-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.pa-daf-nums > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pa-daf-nums span { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.pa-daf-nums b { display: block; margin-top: 6px; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.pa-daf-tips p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.pa-daf-tips p b { color: var(--text); }
@media (max-width: 720px) { .pa-daf-nums { grid-template-columns: repeat(2, 1fr); } }
.mois-seuil { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; width: 100%; text-align: left; margin: 14px 0; padding: 22px 28px; border-radius: 22px; cursor: pointer; font-family: var(--font); background: linear-gradient(120deg, color-mix(in srgb, #2B57E6 12%, var(--surface)), var(--surface) 65%); border: 1px solid color-mix(in srgb, #2B57E6 24%, var(--line)); transition: transform .18s var(--ease-out), border-color .2s; }
.mois-seuil.ok { background: linear-gradient(120deg, color-mix(in srgb, #12b886 12%, var(--surface)), var(--surface) 65%); border-color: color-mix(in srgb, #12b886 24%, var(--line)); }
.mois-seuil:hover { transform: translateY(-2px); }
.ms-eyebrow { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ms-big { font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.03em; margin: 4px 0; white-space: nowrap; }
.ms-sub { font-size: 13px; color: var(--muted); }
.ms-r { flex: 1; min-width: 240px; }
.ms-bar { height: 9px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 9px; }
.ms-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2B57E6, #FF2D78); }
.mois-seuil.ok .ms-bar i { background: #12b886; }
.ms-state { font-size: 14px; color: var(--muted); } .ms-state b { color: var(--text); }
/* La veille · le regard permanent (incohérences & critiques) *//* La veille · le regard permanent (incohérences & critiques) */
.cs-veille { border-radius: 18px; padding: 22px 26px; margin: 0 0 8px; border: 1px solid color-mix(in srgb, #ff9f0a 26%, var(--line)); background: color-mix(in srgb, #ff9f0a 6%, var(--surface)); }
.cs-veille.ok { border-color: color-mix(in srgb, #12b886 26%, var(--line)); background: color-mix(in srgb, #12b886 6%, var(--surface)); display: flex; align-items: center; gap: 12px; font-size: 16.5px; color: var(--text); }
.cs-veille-h { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.cs-veille-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.cs-veille-dot.high { background: #ff3b30; box-shadow: 0 0 12px #ff3b30; } .cs-veille-dot.mid { background: #ff9f0a; box-shadow: 0 0 12px #ff9f0a; } .cs-veille-dot.ok { background: #12b886; }
.cs-veille ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.cs-veille li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; line-height: 1.6; color: var(--text); padding-left: 18px; border-left: 3px solid var(--line); }
.cs-veille li.v-high { border-left-color: #ff3b30; } .cs-veille li.v-mid { border-left-color: #ff9f0a; } .cs-veille li.v-ok { border-left-color: #2F80FF; }
.cs-veille li b { font-weight: 700; }
.v-act { margin-left: auto; flex: none; background: var(--text); color: var(--bg); border: none; border-radius: 9px; width: 34px; height: 34px; font-size: 16px; cursor: pointer; font-weight: 700; }
.v-act:hover { transform: scale(1.08); }
/* Bilan · amortissement + actif/passif *//* Bilan · amortissement + actif/passif */
.bil-amort-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.bil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 44px; margin-top: 24px; }
.bil-col-h { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.bil-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.bil-line span { color: var(--text); }
.bil-line b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.bil-line.bil-strong { border-bottom: none; border-top: 2px solid var(--text); margin-top: 6px; padding-top: 20px; font-size: 24px; font-weight: 750; letter-spacing: -.01em; }
.bil-line .fb-edit { font-size: 13px; margin-left: 8px; }
.bil-ecart { margin-top: 22px; padding: 18px 22px; border-radius: 14px; background: color-mix(in srgb, #ff9f0a 8%, transparent); border: 1px solid color-mix(in srgb, #ff9f0a 30%, transparent); font-size: 15.5px; line-height: 1.65; color: var(--text); }
.bil-ecart.ok { background: color-mix(in srgb, #2ecc71 8%, transparent); border-color: color-mix(in srgb, #2ecc71 34%, transparent); }
@media (max-width: 720px) { .bil-grid { grid-template-columns: 1fr; } }
/* Le conseil injecté en bas de chaque page compta · grand format Apple + dégradé */
.cs-conseil { margin-top: 0; padding: 44px 46px; border-radius: 30px; background: linear-gradient(160deg, color-mix(in srgb, #2F80FF 8%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, #2F80FF 18%, var(--line)); }
.cs-conseil .sa-chart-h { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-acts { margin-left: auto; display: inline-flex; gap: 8px; }
.cc-aiout { margin-top: 14px; }
.cs-conseil .cfo-actions { gap: 16px; }
.cs-conseil .cfo-actions li { font-size: 18px; line-height: 1.6; padding: 22px 26px 22px 66px; border-radius: 18px; background: color-mix(in srgb, var(--text) 4%, transparent); border-left-width: 4px; }
.cs-conseil .cfo-actions li::before { width: 30px; height: 30px; left: 22px; font-size: 14px; }
.cs-conseil .cfo-actions li.sev-ok { border-left-color: #2F80FF; }
.cs-conseil .cfo-actions li.sev-ok::before { background: #2F80FF; box-shadow: 0 0 18px color-mix(in srgb, #2F80FF 60%, transparent); }
.cs-conseil .cfo-actions li.sev-mid { border-left-color: #ff9f0a; }
.cs-conseil .cfo-actions li.sev-mid::before { background: #ff9f0a; box-shadow: 0 0 18px color-mix(in srgb, #ff9f0a 60%, transparent); }
.cs-conseil .cfo-actions li.sev-high { border-left-color: #ff3b30; }
.cs-conseil .cfo-actions li.sev-high::before { background: #ff3b30; box-shadow: 0 0 18px color-mix(in srgb, #ff3b30 60%, transparent); }
.cr-conseil .cfo-actions { gap: 12px; }
.cr-conseil .cfo-actions li { font-size: 16px; line-height: 1.55; padding: 16px 20px 16px 54px; border-radius: 14px; }
.cr-conseil .cfo-actions li::before { width: 24px; height: 24px; left: 18px; font-size: 12px; }
.cr-conseil .cfo-actions li.sev-ok { border-left-color: #2F80FF; }
.cr-conseil .cfo-actions li.sev-ok::before { background: #2F80FF; }
.cr-conseil .cfo-actions li.sev-mid { border-left-color: #ff9f0a; }
.cr-conseil .cfo-actions li.sev-mid::before { background: #ff9f0a; }
@media (max-width: 640px) { .cr-tax { grid-template-columns: 1fr; } }
.shc-c-client .shc-ic { background: color-mix(in srgb, var(--accent, #2B57E6) 30%, #7a7a80); font-size: 16px; }
.soc-bar-space { font-size: 16px; font-weight: 650; color: var(--text); }
.shc-badge { font-size: 12px; font-weight: 650; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.shc-t { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin-top: 10px; }
.shc-d { font-size: 14px; color: var(--muted); line-height: 1.45; }
.shc-go { position: absolute; right: 24px; bottom: 22px; font-size: 20px; color: var(--faint); transition: transform .16s, color .2s; }
.soc-hub-card:hover .shc-go { transform: translateX(4px); color: var(--flf); }

/* Hub de connexion des réseaux · page entière */
.sx-page { max-width: 1080px; margin: 0 auto; padding: 4px 4px 60px; }
.sx-profiles { margin: 6px 0 26px; flex-wrap: wrap; }
.sx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sx-profile { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.sx-sub { font-size: 14px; color: var(--muted); }
.sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sx-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 20px; transition: border-color .2s, transform .12s, box-shadow .2s; }
.sx-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.sx-card.on { border-color: color-mix(in srgb, var(--pc) 55%, var(--line)); }
.sx-card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sx-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; font-weight: 800; color: #fff; }
.sx-net { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sx-net b { font-size: 16px; font-weight: 650; color: var(--text); }
.sx-handle { font-size: 12.5px; color: color-mix(in srgb, var(--pc) 80%, var(--text)); font-weight: 600; }
.sx-off { font-size: 12.5px; color: var(--faint); }
.sx-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: #34c759; }
.sx-btn { width: 100%; font-family: var(--font); font-size: 14px; font-weight: 650; border-radius: 12px; padding: 12px; cursor: pointer; transition: opacity .2s, background .2s; border: 1px solid var(--line); }
.sx-btn.go { background: var(--pc); color: #fff; border-color: transparent; }
.sx-btn.go:hover { opacity: .9; }
.sx-btn.ghost { background: transparent; color: var(--muted); }
.sx-btn.ghost:hover { color: var(--text); border-color: var(--muted); }
.sx-note { margin-top: 26px; font-size: 13px; color: var(--faint); line-height: 1.6; max-width: 720px; }
.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: #2B57E6; }
/* 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: #2B57E6; }
.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, #2B57E6); }
.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, #2B57E6); 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: #2B57E6; opacity: .92; }
.cl-serv-card:hover { border-color: rgba(43,87,230,.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(43,87,230,.14), rgba(43,87,230,.04)); border-color: rgba(43,87,230,.3); }
.pa-rl.hi b { color: var(--accent, #2B57E6); }
.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(43,87,230,.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(220px, 1fr)); gap: 16px; margin: 8px 0 30px; }
.cm-tile { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px 24px; cursor: pointer; transition: border-color .15s, transform .18s var(--ease-out), background .15s; animation: clxUp .55s cubic-bezier(.16,1,.3,1) both; }
.cm-tile:hover { border-color: rgba(43,87,230,.5); transform: translateY(-2px); }
.cm-tile-l { font-size: 17px; font-weight: 650; letter-spacing: -.015em; color: var(--text); }
.cm-tile-s { font-size: 13px; color: var(--muted); }
.cm-tile:nth-child(1){animation-delay:.02s}.cm-tile:nth-child(2){animation-delay:.05s}.cm-tile:nth-child(3){animation-delay:.08s}.cm-tile:nth-child(4){animation-delay:.11s}.cm-tile:nth-child(5){animation-delay:.14s}.cm-tile:nth-child(6){animation-delay:.17s}.cm-tile:nth-child(7){animation-delay:.2s}.cm-tile:nth-child(8){animation-delay:.23s}.cm-tile:nth-child(n+9){animation-delay:.26s}
@media (prefers-reduced-motion: reduce) { .cm-tile { animation: none; } }

/* ===== 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(43,87,230,.16); color: var(--flf); border-color: rgba(43,87,230,.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(43,87,230,.55); background: rgba(43,87,230,.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(43,87,230,.5); background: rgba(43,87,230,.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(43,87,230,.5); background: rgba(43,87,230,.05); }
.rm-en_cours .rm-num { background: var(--flf); color: #000; border-color: var(--flf); }
.rm-pill-en_cours { background: rgba(43,87,230,.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(43,87,230,.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(43,87,230,.12); }
.opp-score.heat-hot { --hc: #2B57E6; } .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: #2B57E6; border-color: #2B57E6; 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; gap: 12px; }
.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(43,87,230,.14); color: #2B57E6; }
.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(43,87,230,.1); border-left: 3px solid #2B57E6; border-radius: 8px; padding: 12px 14px; }
.prev-action b { color: #2B57E6; }
/* 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(43,87,230,.16); color: #2B57E6; }
.prosp-type.tp-client { background: rgba(46,204,113,.16); color: #2ecc71; }
.prosp-bulk { background: none; border: none; color: #2B57E6; 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(43,87,230,.13); box-shadow: inset 3px 0 0 #2B57E6, 0 0 26px -8px rgba(43,87,230,.6); transform: translateX(4px); }
.prosp-row.sel b { color: #2B57E6; }
.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(43,87,230,.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(43,87,230,.14); color: var(--flf); border-color: rgba(43,87,230,.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(43,87,230,.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(43,87,230,.45); animation: engPulse 2.6s ease-in-out infinite; }
@keyframes engPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(43,87,230,0); } 50% { box-shadow: 0 0 26px -6px rgba(43,87,230,.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(43,87,230,.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(43,87,230,.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(43,87,230,.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(43,87,230,.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: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; 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: #2B57E6; 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(43,87,230,.6); background: rgba(43,87,230,.05); outline: none; }
.drop-zone.over { border-color: #2B57E6; background: rgba(43,87,230,.1); transform: scale(1.01); }
.drop-zone-ic { font-size: 34px; color: #2B57E6; 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: #2B57E6; }
.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(43,87,230,.06); border: 1px solid rgba(43,87,230,.16); border-radius: 9px; padding: 9px 12px; }
.dlk-rush-note { margin-bottom: 16px; background: rgba(43,87,230,.08); border: 1px solid rgba(43,87,230,.2); border-radius: 12px; padding: 13px 15px; }
.dlk-rush-note b { color: var(--text); }
/* Fenêtre de dépôt des rushs (freelance) */
.fr-drop { margin-top: 14px; border: 2px dashed var(--line); border-radius: 16px; padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fr-drop:hover, .fr-drop.over { border-color: var(--flf); background: color-mix(in srgb, var(--flf) 7%, transparent); }
.fr-drop-ic { font-size: 26px; color: var(--flf); margin-bottom: 4px; }
.fr-drop b { font-size: 15px; color: var(--text); }
.fr-drop span { font-size: 12.5px; color: var(--muted); }
.fr-prog { font-size: 13px; color: var(--text); margin-top: 12px; padding: 11px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.rd-form { max-width: 620px; margin-top: 24px; }
/* Bandeau d'aperçu · « tu es dans la vue de X » (bien visible, sticky en haut) */
.preview-banner { position: sticky; top: 8px; z-index: 60; display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--flf) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--flf) 40%, transparent); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pvb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--flf); flex: 0 0 auto; animation: jnPulse 1.6s ease-in-out infinite; }
.pvb-txt { flex: 1; font-size: 13.5px; color: var(--text); }
.pvb-txt b { font-weight: 700; }
.lib-rush-count { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lib-rush-grp { margin: 6px 0 22px; }
.lib-rush-grp-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.lib-rush-grp-h b { font-size: 15px; color: var(--text); font-weight: 700; }
.lib-rush-grp-h span { font-size: 12.5px; color: var(--muted); }
.lib-rush-gal .gallery-item { position: relative; }
.lr-del { position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.lib-rush-gal .gallery-item:hover .lr-del { opacity: 1; }
.lr-del:hover { background: #ff453a; }
.lib-rush-grp-h { align-items: center; }
.lr-share { margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 13px; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.lr-share:hover { border-color: var(--flf); color: var(--text); }
.lr-shared { margin-left: auto; font-size: 12px; font-weight: 650; color: #34c759; white-space: nowrap; }
.dlk-rush-note > b { display: block; font-size: 13px; margin-bottom: 5px; }
.dlk-rush-note span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.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: #2B57E6; }
.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(43,87,230,.05); outline: none; }
.fold-dz.over { border-color: var(--flf); background: rgba(43,87,230,.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, #2B57E6); }

/* 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(43,87,230,.4); transform: translateY(-1px); }
.dm-opt.on { border-color: #2B57E6; background: rgba(43,87,230,.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: #2B57E6; 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(43,87,230,.16); color: #2B57E6; border-color: rgba(43,87,230,.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(43,87,230,.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(43,87,230,.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(43,87,230,.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: 18px; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; cursor: pointer; transition: border-color .15s, transform .2s var(--ease-out); }
.hr-card:hover { border-color: rgba(43,87,230,.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,#2B57E6), color-mix(in srgb, var(--cc,#2B57E6) 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: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-card-r { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.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(43,87,230,.16); color: #2B57E6; }
.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; }
.hr-row-file { 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-row-file:hover { color: var(--text); border-color: var(--line-2); }
/* Arbre d'accès clients → projets (fiche freelance) */
.hr-tree { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.hr-tree-c { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); }
.hr-tree-cl { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.hr-tree-cl input, .hr-tree-pl input { width: 17px; height: 17px; accent-color: var(--accent, #2B57E6); flex: none; cursor: pointer; }
.hr-tree-cl b { color: var(--text); }
.hr-tree-n { font-size: 12px; color: var(--faint); margin-left: auto; }
.hr-tree-pj { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0 8px; padding-left: 12px; border-left: 2px solid var(--line); }
.hr-tree-pl { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; padding: 5px 0; }
.hr-tree-path { color: var(--muted); }
.hr-tree-sep { color: var(--faint); margin: 0 2px; }
.hr-tree-st { margin-left: auto; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.hr-tree-empty, .hr-tree-noemail { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.hr-tree-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.hr-tree-count { font-size: 13px; color: var(--muted); font-weight: 600; }
/* Résumé de l'accès ACTIF (confirmé) · vert */
.hr-grant { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); margin: 4px 0 2px; }
.hr-grant.on { border-color: rgba(52,199,89,.32); background: rgba(52,199,89,.08); }
.hr-grant-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-top: 5px; flex: 0 0 auto; }
.hr-grant.on .hr-grant-dot { background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.18); }
.hr-grant-t { font-size: 13px; font-weight: 700; color: var(--text); }
.hr-grant-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.hr-grant-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.hr-grant-chip { font-size: 12px; font-weight: 600; color: var(--text); background: rgba(52,199,89,.14); border: 1px solid rgba(52,199,89,.28); border-radius: 999px; padding: 4px 11px; }
/* Arbre repliable + barre de confirmation */
.hr-tree-wrap { margin-top: 14px; }
.hr-tree-wrap.hidden { display: none; }
.hr-confirm-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,159,10,.34); background: rgba(255,159,10,.1); position: sticky; bottom: 10px; }
.hr-confirm-bar.hidden { display: none; }
.hr-confirm-txt { font-size: 13px; font-weight: 600; color: var(--text); }
.hr-confirm-bar .btn { width: auto; flex: 0 0 auto; white-space: nowrap; }
/* États d'une ligne projet avant confirmation */
.hr-tree-pl.hr-granted .hr-tree-path { color: var(--text); }
.hr-tree-pl.hr-pend-add { background: rgba(255,159,10,.1); border-radius: 8px; }
.hr-tree-pl.hr-pend-add .hr-tree-path::after { content: " · à confirmer"; color: #ff9f0a; font-size: 11px; font-weight: 700; }
.hr-tree-pl.hr-pend-rm .hr-tree-path { text-decoration: line-through; opacity: .55; }
.hr-tree-pl.hr-pend-rm .hr-tree-path::after { content: " · retiré (à confirmer)"; color: #ff453a; font-size: 11px; font-weight: 700; text-decoration: none; }
.va-tree { display: flex; flex-direction: column; gap: 12px; }
.va-c { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.va-cn { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.va-pl { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; }
.va-empty { font-size: 12.5px; color: var(--faint); }
.va-mods { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ============================================================
   RESPIRATION · grands espaces entre les blocs (Fransou : "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: #2B57E6; 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 #2B57E6; margin-bottom: 24px; }
.env-coup .ec-k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #2B57E6; }
.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(43,87,230,.16); color: #2B57E6; }
.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(43,87,230,.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: #2B57E6; 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: #2B57E6; 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: #2B57E6; 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(43,87,230,.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, #2B57E6); 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 #2B57E6; margin: 0 0 22px; }
.lost-lesson .ll-k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #2B57E6; }
.lost-lesson .ll-v { font-size: 15px; line-height: 1.55; color: var(--text); }
.lost-lesson .ll-v b { color: #2B57E6; }
@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: #2B57E6; }
.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(43,87,230,.5); color: var(--text); }
.db-mood.on { background: rgba(43,87,230,.12); border-color: #2B57E6; 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 #2B57E6; margin: 16px 0; }
.db-r-tomorrow span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #2B57E6; }
.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 #2B57E6; }
.onething.done { border-left-color: #2ecc71; }
.ot-eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #2B57E6; 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: #2B57E6; 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-chan { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
/* Boutons du Commercial : compacts et groupés (pas des pilules pleine largeur empilées) = retenue Apple */
.cl-row .btn { width: auto; }
/* Hiérarchie apple : UN bouton principal (pilule pleine accent), les autres discrets */
.cl-primary { background: var(--accent, #2B57E6); border: 1px solid var(--accent, #2B57E6); color: #fff; border-radius: 999px; padding: 13px 26px; font-size: 15px; font-weight: 640; box-shadow: 0 8px 24px -12px rgba(43,87,230,.7); transition: filter .15s, transform .15s var(--ease-out); }
.cl-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cl-row .btn.ghost { border-radius: 999px; }
/* Deux tons apple (mot d'attaque blanc + suite grise) — réutilisable */
.ap-lead b { color: var(--text); font-weight: 600; }
.ap-lead { color: var(--faint); }
/* Flèches rondes de navigation façon apple.com */
.ap-navarrow { width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.1); color: var(--text); font-size: 16px; cursor: pointer; transition: background .15s; }
.ap-navarrow:hover { background: rgba(255,255,255,.18); }
.cl-row .btn.small, .cl-src { font-size: 13.5px; padding: 11px 18px; }
.cl-pcm { margin: 16px 0 46px; }
.cl-pcm-h { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.028em; line-height: 1.08; color: var(--text); margin: 0 0 26px; }
.cl-pcm-h b { font-weight: 600; color: var(--text); }
.cl-pcm-h span { font-size: inherit; color: var(--faint); font-weight: 600; letter-spacing: -.028em; }
.cl-pcm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .cl-pcm-grid { grid-template-columns: 1fr 1fr; } }
.cl-pcm-card { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .18s var(--ease-out), border-color .18s, box-shadow .18s, background .18s; animation: clxUp .6s cubic-bezier(.16,1,.3,1) both; }
.cl-pcm-card:nth-child(1){animation-delay:.02s}.cl-pcm-card:nth-child(2){animation-delay:.07s}.cl-pcm-card:nth-child(3){animation-delay:.12s}.cl-pcm-card:nth-child(4){animation-delay:.17s}.cl-pcm-card:nth-child(5){animation-delay:.22s}.cl-pcm-card:nth-child(6){animation-delay:.27s}
.cl-pcm-h { animation: clxUp .55s cubic-bezier(.16,1,.3,1) both; }
@keyframes clxUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cl-pcm-card, .cl-pcm-h { animation: none; } }
.cl-pcm-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pc) 55%, transparent); box-shadow: 0 10px 30px -26px var(--pc); }
.cl-pcm-card.on { border-color: color-mix(in srgb, var(--pc) 62%, transparent); background: color-mix(in srgb, var(--pc) 8%, transparent); box-shadow: none; }
.cl-pcm-k { font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.cl-pcm-card.on .cl-pcm-k { color: var(--pc); }
.cl-pcm-tells { display: flex; flex-direction: column; gap: 3px; }
.cl-pcm-tells i { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.35; padding-left: 12px; position: relative; }
.cl-pcm-tells i::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); transition: background .18s; }
.cl-pcm-card:hover .cl-pcm-tells i::before, .cl-pcm-card.on .cl-pcm-tells i::before { background: var(--pc); }
.cl-pcm-detected { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent, #2B57E6); font-weight: 700; }
.cl-pcm-say { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); padding: 14px 2px 0; }
.cl-pcm-say b { color: var(--text); }
.cl-recap { margin: 14px 0 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--accent, #2B57E6); border-radius: 16px; }
.cl-recap-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.cl-recap-r { font-size: 15px; line-height: 1.55; color: var(--text); margin: 0 0 10px; }
.cl-recap-ul { margin: 0; padding-left: 18px; }
.cl-recap-ul li { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.cl-recap-next { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.cl-recap-next b { color: var(--text); }
.cl-biais-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-biais-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 8px 14px; cursor: pointer; transition: all .18s var(--ease-out); }
.cl-biais-chip:hover { border-color: #2B57E6; color: var(--text); }
.cl-biais-chip.on { background: rgba(43,87,230,.14); border-color: #2B57E6; color: #ff9d8a; }
.cl-talk { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 260px; }
.cl-talk > span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--faint); }
.cl-talk-b { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 999px; font-size: 12.5px; font-weight: 600; padding: 8px 14px; cursor: pointer; flex: none; transition: all .15s; }
.cl-talk-b.on { background: #34c759; border-color: #34c759; color: #05140a; }
.cl-talk-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; min-width: 70px; }
.cl-talk-bar i { display: block; height: 100%; width: 0; background: #2997ff; border-radius: 999px; transition: width .4s var(--ease-out), background .3s; }
.cl-talk-v { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cl-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.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: transparent; border: none; border-left: 2px solid rgba(230,160,40,.55); border-radius: 0; padding: 3px 0 3px 15px; font-size: 13px; line-height: 1.55; color: var(--muted); margin-bottom: 26px; }
.cl-consent b { color: #e6a028; font-weight: 600; }
#clMic.on { background: #e74c3c; border-color: #e74c3c; color: #fff; }

.cl-dossier { margin-top: 8px; }
/* Fiche PCM façon carte de jeu : grand profil avec halo coloré, blocs stat colorés, motion vivant. */
.cl-profil { position: relative; display: flex; align-items: center; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; margin-bottom: 30px; }
.cl-prof-badge { flex: none; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 750; color: #fff; background: linear-gradient(140deg, #2B57E6, #ff2d78); }
.cl-prof-txt { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.cl-prof-k { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: #ff9d8a; }
.cl-prof-txt > b { font-size: 30px; font-weight: 850; letter-spacing: -.03em; color: #fff; line-height: 1; }
.cl-prof-how { font-size: 15px; color: rgba(255,255,255,.9); line-height: 1.5; }
.cl-prof-ind { font-size: 12.5px; color: rgba(255,255,255,.55); }
.cl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.cl-block { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s; }
.cl-block:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(0,0,0,.6); }
.cl-block h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; margin: 0 0 12px; color: var(--muted); }
/* Retenue Apple : monochrome, un seul accent sémantique (vert = à dire, rouge = à éviter), pas d'arc-en-ciel. */
.cl-block.ok h4 { color: #34c759; }
.cl-block.bad h4 { color: #ff5a3c; }
.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: #2B57E6; 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: 8px; background: linear-gradient(120deg, rgba(43,87,230,.16), rgba(255,45,120,.10)); border: 1px solid rgba(43,87,230,.4); border-radius: 18px; padding: 22px 26px; margin: 18px 0; box-shadow: 0 20px 50px -32px rgba(43,87,230,.6); }
.cl-close span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: #ff9d8a; }
.cl-close b { font-size: 20px; color: #fff; font-weight: 700; line-height: 1.4; }
.cl-foot { font-size: 12.5px; color: var(--faint); margin-top: 14px; }

.cl-suggest { margin-top: 8px; }
.cl-alert { background: rgba(43,87,230,.14); border: 1px solid rgba(43,87,230,.4); color: #2B57E6; 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-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: var(--muted); }
.cl-sug-now b { font-size: 19px; color: var(--text); font-weight: 600; line-height: 1.4; }
.cl-sug-lbl { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.cl-sug-lbl span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.cl-sug-lbl i { font-size: 11px; color: var(--muted); font-style: normal; }
.cl-opts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.cl-opt { display: flex; gap: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; transition: border-color .15s, transform .15s; }
.cl-opt:first-child { border-left: 2px solid var(--accent, #2B57E6); }
.cl-opt:hover { border-color: rgba(43,87,230,.5); transform: translateX(2px); }
.cl-opt-n { flex: 0 0 20px; font-size: 14px; font-weight: 800; color: var(--muted); }
.cl-opt:first-child .cl-opt-n { color: var(--accent, #2B57E6); }
.cl-opt-body { display: flex; flex-direction: column; gap: 3px; }
.cl-opt-angle { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); font-style: normal; }
.cl-opt-body b { font-size: 18.5px; color: var(--text); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.cl-desktop { display: flex; align-items: center; gap: 16px; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--accent, #2B57E6); border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; }
.cl-desktop-t { display: flex; flex-direction: column; gap: 3px; }
.cl-desktop-t b { font-size: 14px; color: var(--text); font-weight: 650; }
.cl-desktop-t span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cl-opt-pin { flex: 0 0 auto; align-self: flex-start; width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; transition: .15s var(--ease-out); }
.cl-opt-pin:hover { border-color: var(--accent, #2B57E6); color: var(--accent, #2B57E6); }
.cl-opt-pin.done { border-color: var(--accent, #2B57E6); color: var(--accent, #2B57E6); background: rgba(43,87,230,.1); cursor: default; }
.cl-sug-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.cl-antic { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.cl-antic h4 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 5px; }
.cl-antic p { font-size: 13.5px; color: var(--text); line-height: 1.5; margin: 0; }
.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: #2B57E6; 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(43,87,230,.6); background: rgba(43,87,230,.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 #2B57E6; 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: #2B57E6; }
.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(43,87,230,.6); background: rgba(43,87,230,.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(43,87,230,.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: #2B57E6; margin-left: 2px; animation: piCaret .8s step-end infinite; }
.pt-in { animation: ptIn .62s cubic-bezier(.16,1,.3,1) both; }
@keyframes ptIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@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(43,87,230,.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(43,87,230,.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(43,87,230,.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" */
/* Héros de page partagé · centré, aéré, façon apple.fr (upgrade global de toutes les pages qui l'utilisent) */
.xhero { text-align: center; padding: clamp(60px, 11vh, 140px) 0 clamp(30px, 5vh, 54px); }
.xh-eyebrow { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(17px, 2.1vw, 28px); color: var(--muted); letter-spacing: .01em; margin: 0 0 12px; }
.xh-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; line-height: .92; margin: 0 auto; color: var(--text); max-width: 17ch;
  background: linear-gradient(180deg, #fff 30%, #cfcfd4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.theme-light .xh-title { background: linear-gradient(180deg, #1d1d1f 28%, #57575c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.page-white #view .xh-title { background: linear-gradient(180deg, #1d1d1f 30%, #6e6e73 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(16px, 1.6vw, 21px); line-height: 1.5; max-width: 44ch; margin: 26px auto 0; }
@media (max-width: 760px) { .xhero { padding: 40px 0 20px; } }
/* Titre heros en couleur (gamme Apple Intelligence) · surcharge la version metallique */
.xh-title.fx-grad { background: linear-gradient(105deg, #2B57E6 0%, #ff2d78 26%, #8a74ff 52%, #2997ff 76%, #34c7a8 100%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: lwHue 9s ease-in-out infinite; }

/* ===== ESPACE CREATION · apple, aere, couleur ===== */
.crea2 { padding-bottom: 44px; }
.crea2-hero { padding-bottom: clamp(20px, 4vh, 38px); }
.crea2-idea-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 26px; }
.crea2-week { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; }
.crea2-hint { color: var(--muted); font-size: 15px; max-width: 54ch; line-height: 1.55; }
.crea2-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 26px; }
.crea2-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.crea2-grid, .crea2 .ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.crea2-empty { grid-column: 1/-1; color: var(--muted); font-size: 15px; line-height: 1.6; border: 1px dashed var(--line); border-radius: 18px; padding: 30px 34px; text-align: center; background: rgba(255,255,255,.015); max-width: 720px; margin: 0 auto; }
/* Cartes modeles · tuiles apple : hairline, coins doux, survol subtil */
.crea2 .crea-card { background: #0f0f11; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; text-align: left; cursor: pointer; transition: transform .28s var(--ease-out), border-color .28s, background .28s, box-shadow .28s; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.crea2 .crea-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); background: #131316; box-shadow: 0 18px 40px -24px rgba(0,0,0,.8); }
.crea2 .crea-cat-badge { align-self: flex-start; }
.crea2 .crea-title { font-family: var(--font); text-transform: none; font-size: 18px; font-weight: 650; letter-spacing: -.012em; color: var(--text); line-height: 1.28; }
.crea2 .crea-snip { font-size: 13.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .crea2-idea-top, .crea2-toolbar { flex-direction: column; align-items: stretch; } }
/* Formats de base · badge plateforme + affordance */
.crea2 .crea-use { margin-top: auto; padding-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--corail); letter-spacing: .01em; }
.crea-cat-badge.pl-linkedin { background: rgba(10,102,194,.18); color: #4a9eef; }
.crea-cat-badge.pl-instagram { background: rgba(214,41,118,.18); color: #ff5fa2; }
.crea-cat-badge.pl-tiktok { background: rgba(37,244,238,.14); color: #35e0da; }
.crea-cat-badge.pl-youtube { background: rgba(255,0,0,.16); color: #ff5a5a; }
.crea-cat-badge.pl-shorts { background: rgba(255,60,60,.14); color: #ff8080; }
.crea-cat-badge.pl-x { background: rgba(255,255,255,.12); color: #e6e6e6; }
.crea-cat-badge.pl-newsletter { background: rgba(43,87,230,.16); color: #2B57E6; }
.crea-cat-badge.pl-all { background: rgba(255,255,255,.08); color: var(--muted); }
/* La boite a conseils · accordeon apple (details natif) */
.crea2-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px 44px; align-items: start; }
.crea2-tipgroup h4 { font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--corail); margin: 0 0 6px; }
.crea2-tip { border-bottom: 1px solid var(--line); }
.crea2-tip summary { list-style: none; cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 14px; transition: color .18s; }
.crea2-tip summary::-webkit-details-marker { display: none; }
.crea2-tip summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--muted); transition: transform .25s var(--ease-out); line-height: 1; flex: none; }
.crea2-tip[open] summary::after { transform: rotate(45deg); }
.crea2-tip summary:hover { color: var(--corail); }
.crea2-tip-body { padding: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.62; white-space: pre-line; animation: fadeIn .3s var(--ease-out) both; }
/* Modal de format · refonte apple + reseaux */
.ct2-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--corail); margin: 0 0 8px; }
.ct2-body .ct2-sec { margin: 0 0 22px; }
.ct2-body .sp-sec-h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: var(--text); margin: 0 0 14px; letter-spacing: -.01em; }
.ct2-body .sp-sec-h span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); font-size: 11px; font-weight: 700; }
.ct2-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ct2-actions .btn { width: auto; }
.ct2-actions .grow { flex: 1; }
.ct2-actions #ctPlan { box-shadow: 0 12px 30px -14px rgba(43,87,230,.7); }
/* Carrousel apple · peu de grandes cartes a la fois, on glisse pour la suite */
.crea2-railhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.crea2-railhead .env-sech { flex: 1; }
.crea2-nav { display: inline-flex; gap: 8px; padding-bottom: 4px; flex: none; }
.crea2-nav button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .18s, border-color .18s; }
.crea2-nav button:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
.crea2-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 32%); gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding: 6px 2px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.crea2-rail::-webkit-scrollbar { display: none; }
.crea2-rail > * { scroll-snap-align: start; }
@media (max-width: 900px) { .crea2-rail { grid-auto-columns: minmax(250px, 82%); } }
/* Cartes sujet · boite a conseils (ouvrent leur propre page) */
.crea2-topic { text-align: left; cursor: pointer; background: #0f0f11; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 168px; transition: transform .28s var(--ease-out), border-color .28s, background .28s; }
.crea2-topic:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); background: #131316; }
.crea2-topic .tp-num { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--corail); text-transform: uppercase; }
.crea2-topic .tp-title { font-size: 20px; font-weight: 650; letter-spacing: -.015em; color: var(--text); line-height: 1.22; }
.crea2-topic .tp-meta { margin-top: auto; font-size: 13px; color: var(--muted); }
.crea2-topic .tp-go { color: var(--corail); font-weight: 600; font-size: 13px; }
/* Page dediee d'un sujet de conseils */
.tip-h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.6vw, 56px); letter-spacing: -.02em; line-height: 1.02; margin: 0 auto; max-width: 20ch; }
.tip-page { max-width: 760px; margin: 10px auto 60px; }
.tip-block { border-top: 1px solid var(--line); padding: 26px 0; }
.tip-block:first-child { border-top: none; }
.tip-block h3 { font-size: clamp(19px, 2.3vw, 25px); font-weight: 650; letter-spacing: -.015em; color: var(--text); margin: 0 0 12px; }
.tip-block p { color: var(--muted); font-size: 16px; line-height: 1.66; white-space: pre-line; margin: 0; }
/* Section BLANCHE · le blanc en minorite (feature apple clair au milieu du noir) */
.crea2-white { background: #f5f5f7; color: #1d1d1f; border-radius: 28px; padding: clamp(36px,5vw,66px) clamp(24px,4vw,54px); margin: 40px 0 8px; text-align: center; }
.crea2-white .cw-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2B57E6; margin: 0 0 14px; }
.crea2-white .cw-title { font-family: var(--display); font-size: clamp(28px,4vw,50px); font-weight: 800; letter-spacing: -.02em; color: #1d1d1f; margin: 0 0 14px; line-height: 1.02; }
.crea2-white .cw-sub { color: #5f5f6b; font-size: clamp(15px,1.5vw,18px); line-height: 1.55; max-width: 52ch; margin: 0 auto 26px; }
.crea2-white .cw-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.crea2-white .cw-week { color: #5f5f6b; font-style: italic; font-family: var(--serif); }
.crea2-white #edGen { width: auto; background: #1d1d1f; color: #fff; border: none; border-radius: 999px; padding: 12px 26px; font-weight: 600; }
.crea2-white #edGen:hover { background: #000; }
.crea2-white .ed-grid { margin-top: 30px; text-align: left; }
.crea2-white .ed-card { background: #fff; border: 1px solid #e4e4e9; color: #1d1d1f; }
.crea2-white .ed-card:hover { background: #fff; border-color: #d0d0d8; }
.crea2-white .ed-card .ed-title { color: #1d1d1f; }
.crea2-white .ed-card .ed-hook { color: #1d1d1f; }
.crea2-white .ed-card .ed-why { color: #5f5f6b; }
.crea2-white .ed-card .ed-fmt { color: #86868b; border-color: #e4e4e9; }
.crea2-white .ed-card .ed-vis { color: #86868b; }

/* ============================================================
   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: #2B57E6; }
/* 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; }

/* ============================================================
   PASSE APPLE · ACCUEIL CONSOLE (nuit du 1er juillet)
   Le luxe = l'air. Héros monumental, actes éditoriaux qui respirent,
   retenue partout : rien de nouveau à lire, juste mieux posé.
   ============================================================ */
/* Héros : l'entrée en scène, plus grande, plus posée */
/* Héros façon apple.fr : centré, plein écran, une idée dans un océan d'air */
.cine-hero { min-height: 84vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: clamp(56px, 9vh, 120px) 0 clamp(44px, 7vh, 72px); }
.cine-hero .ch-eyebrow { margin-bottom: 28px; justify-content: center; }
.cine-hero .ch-title { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -.025em; margin: 0 auto 30px; max-width: 17ch; }
.cine-hero .ch-sub { font-size: clamp(19px, 2vw, 24px); margin: 0 auto; }
.cine-hero .ask-bar { margin: 42px auto 0; max-width: 640px; width: 100%; }
/* Actes : chaque grande section = un titre éditorial, avec du champ avant lui */
#view > .section-head { margin-top: 76px; margin-bottom: 24px; }
#view > .section-head h2 { font-size: clamp(18px, 2.2vw, 26px); letter-spacing: .035em; }
#view > .section-head h2::before { width: 8px; height: 8px; vertical-align: 3px; }
/* Le brief et la seule chose : des cartes qui ont de la place */
.brief { padding: 26px 28px; border-radius: 24px; }
.onething { padding: 30px 34px; border-radius: 24px; margin: 16px 0 28px; }
/* La grille clients : plus d'air entre les tuiles, longue traîne en bas */
.desktop { gap: 20px; padding-bottom: 84px; }
/* Volets repliés : dans le rythme des actes */
.fold { margin: 26px 0; }
/* Petit écran : on garde l'air, à l'échelle */
@media (max-width: 760px) {
  .cine-hero { padding: 72px 0 10px; }
  #view > .section-head { margin-top: 52px; }
}

/* ============================================================
   DOSSIER VIVANT · la ligne de temps unique du contact
   (fiche prospect · mails Gmail + documents + actions fusionnés)
   ============================================================ */
.pdlg .ph-list { max-height: 62vh; }
.dv-sub { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-tag { flex: none; align-self: center; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); }
.dv-tag-mail { color: var(--flf); border-color: rgba(43,87,230,.35); }
.dv-tag-doc { color: #8a74ff; border-color: rgba(138,116,255,.35); }
.ph-ev.dv-mail .ph-ic, .ph-ev.dv-doc .ph-ic { opacity: .9; }

/* Le brief à l'oral · bouton discret à droite de « Bonjour Fransou » */
.brief-head-r { display: flex; align-items: center; gap: 12px; }
.brief-head-r #briefListen { width: auto; padding: 5px 13px; font-size: 11.5px; }

/* Couche « ? » du Cockpit · chaque chiffre expliqué comme à un enfant de 10 ans */
.ck-help { position: absolute; top: 10px; right: 10px; width: 21px; height: 21px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--faint); font-size: 11.5px; font-weight: 700; cursor: pointer; line-height: 1; transition: color .15s, border-color .15s; }
.ck-help:hover { color: var(--flf); border-color: rgba(43,87,230,.5); }
.ck-card.ck-manual .ck-help { right: 10px; }
.kh-body { display: flex; flex-direction: column; gap: 16px; }
.kh-row .kh-k { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--flf); margin-bottom: 5px; }
.kh-row p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }

/* L'escalade de relance · 3 niveaux gradués (aimable → ferme → mise en demeure) */
.rl-levels { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.rl-lvl { flex: 1; min-width: 120px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.rl-lvl:hover { border-color: var(--faint); color: var(--text); }
.rl-lvl.on { border-color: rgba(43,87,230,.6); color: var(--text); background: rgba(43,87,230,.07); }
.rl-lvl[data-rl="3"].on { border-color: rgba(231,76,60,.6); background: rgba(231,76,60,.08); }
.rl-hint { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.rl-lra { font-size: 12.5px; line-height: 1.5; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; margin-top: 10px; }
.rl-lra.hidden { display: none; }

/* Couche « ? » du tableau de guerre · explication dépliable dans le détail d'une stat */
.wd-help-t { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 2px 2px 12px; color: var(--faint); font-size: 12px; font-weight: 600; cursor: pointer; transition: color .15s; }
.wd-help-t:hover { color: var(--flf); }
.wd-help { padding: 4px 2px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.wd-help.hidden { display: none; }

/* Couche « ? » · Prospection (tuiles héros) + pastille santé cliquable */
.ph-stat { position: relative; }
.ph-help { top: 12px; right: 12px; }
.tile .t-health { cursor: pointer; font-family: inherit; }
.tile .t-health:hover { filter: brightness(1.25); }

/* Couche « ? » · Conseil financier */
.cfo-stat { position: relative; }
.cfo-help { top: 8px; right: 8px; width: 19px; height: 19px; font-size: 10.5px; }

/* État des connexions · action de réparation en un clic sur une ligne orange */
.cx-fix { padding: 0; margin: 0; font-size: inherit; color: var(--flf); background: none; border: 0; cursor: pointer; }
.cx-fix:hover { text-decoration: underline; }

/* Le débrief du soir à l'oral · R2 te répond de vive voix */
.db-r-head { display: flex; align-items: center; gap: 10px; }
.db-r-head .db-listen { width: auto; margin-left: auto; padding: 5px 13px; font-size: 11.5px; }

/* ============================================================
   CODES MACBOOK-PRO · les 5 composants exacts de apple.com/fr/macbook-pro
   (demande Fransou 2 juil : « exactement des trucs similaires partout »)
   ============================================================ */
/* 1 · Pastilles « + » dépliables posées sur une image (Tailles / Couleurs / Écran) */
.ap-pills { position: absolute; right: 26px; bottom: 26px; display: flex; flex-direction: column; gap: 10px; z-index: 5; align-items: flex-end; }
.ap-pill { display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px 9px 9px; border-radius: 999px; background: rgba(28,28,30,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 0; color: #f5f5f7; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .3s var(--ease), transform .3s var(--ease); text-align: left; max-width: min(400px, 42vw); }
.ap-pill:hover { background: rgba(44,44,46,.88); }
.ap-pill .app-ic { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.13); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 400; flex: none; transition: transform .35s var(--ease); }
.ap-pill.open .app-ic { transform: rotate(45deg); }
.ap-pill .app-x { display: none; font-weight: 400; color: #d6d6db; }
.ap-pill.open .app-x { display: inline; animation: fadeIn .35s var(--ease); }
@media (max-width: 760px) { .ap-pills { position: static; transform: none; flex-direction: row; flex-wrap: wrap; margin: 14px 0 4px; align-items: flex-start; } }

/* 2 · Grand titre en dégradé (« M5. M5 Pro. M5 Max. Vive allure. ») */
.ap-sec { padding: 96px 0 90px; }
.ap-eyebrow { text-align: center; font-size: 15px; font-weight: 700; color: #f5f5f7; margin-bottom: 16px; }
.ap-grad-title { text-align: center; font-weight: 700; letter-spacing: -.015em; line-height: 1.06; font-size: clamp(34px, 5.4vw, 72px); margin: 0 auto 34px; max-width: 940px;
  background-image: linear-gradient(96deg, #d8f3ec 4%, #a7d8e8 32%, #6fa8d8 60%, #3c7bb8 88%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-grad-title.warm { background-image: linear-gradient(96deg, #ffe1d4 4%, #ff9a76 38%, #2B57E6 66%, #d84a35 92%); }

/* 3 · Copy Apple : paragraphe centré dont les MOTS s'allument au fil du scroll */
.ap-copy { max-width: 720px; margin: 0 auto; text-align: center; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.5; font-weight: 600; color: #86868b; }
.ap-copy .apw { color: #57575c; transition: color .3s linear; }
.ap-copy .apw.lit { color: #a9a9ae; }
.ap-copy b { font-weight: 600; }
.ap-copy b .apw.lit { color: #f5f5f7; }

/* 4 · Damier promo clair/sombre (Watch / iPad Pro / Trade In) */
.ap-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.ap-tile { border-radius: 22px; overflow: hidden; padding: 56px 30px 50px; text-align: center; background: #0b0b0d; min-height: 260px; }
.ap-tile.light { background: #f5f5f7; }
.ap-tile.light h3, .ap-tile.light .apt-k { color: #1d1d1f; }
.ap-tile .apt-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f5f5f7; opacity: .8; margin-bottom: 10px; }
.ap-tile h3 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 700; letter-spacing: -.015em; margin: 0 0 8px; color: #f5f5f7; }
.ap-tile p { font-size: 15.5px; color: #86868b; margin: 0 0 20px; }
.ap-tile .apt-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 5 · Carrousel de cartes à légendes (macOS Tahoe : Liquid Glass / Spotlight) */
.ap-carousel { position: relative; }
.ap-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ap-track::-webkit-scrollbar { display: none; }
.ap-card { flex: 0 0 min(560px, 82%); scroll-snap-align: start; }
.ap-card .apc-media { border-radius: 20px; overflow: hidden; aspect-ratio: 16/10; background: #101013; position: relative; cursor: pointer; }
.ap-card .apc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ap-card .apc-media:hover img { transform: scale(1.035); }
.ap-card .apc-play { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(28,28,30,.7); backdrop-filter: blur(10px); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; pointer-events: none; }
.ap-cap { margin-top: 16px; font-size: 14.5px; line-height: 1.5; color: #86868b; max-width: 94%; }
.ap-cap b { color: #f5f5f7; }
.ap-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.ap-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.09); color: #f5f5f7; font-size: 18px; cursor: pointer; transition: background .2s; }
.ap-nav button:hover { background: rgba(255,255,255,.18); }
body.theme-light .ap-nav button { background: rgba(0,0,0,.08); color: #1d1d1f; }

/* ============================================================
   LE COMPARATEUR · codes apple.com/compare (colonnes, totaux en
   direct, ✓ par prestation) + petit bouton pill BLEU Apple
   ============================================================ */
.cmp-hero { padding: 64px 0 38px; text-align: center; }
.cmp-hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.015em; color: #f5f5f7; margin: 0 0 14px; }
.cmp-lead { max-width: 660px; margin: 0 auto; color: #86868b; font-size: 16.5px; line-height: 1.5; }
.cmp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.cmp-col { background: #16161a; border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px 22px; text-align: center; animation: fadeUp .5s var(--ease-out) both; }
.cmp-cols .cmp-col:nth-child(2) { animation-delay: .08s; }
.cmp-cols .cmp-col:nth-child(3) { animation-delay: .16s; }
.cmp-name { width: 100%; background: #0c0c0e; border: 1px solid var(--line); border-radius: 12px; color: #f5f5f7; font-size: 15px; font-weight: 700; text-align: center; padding: 11px; margin-bottom: 20px; font-family: var(--font); transition: border-color .2s; }
.cmp-name:focus { border-color: #0071e3; outline: none; }
.cmp-price { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); color: var(--flf); line-height: 1; }
.cmp-price i { font-style: normal; font-size: .55em; }
.cmp-empty-p { color: var(--faint); }
.cmp-sub { font-size: 12.5px; color: var(--faint); margin: 9px 0 18px; }
.ap-blue { display: inline-block; background: #0071e3; color: #fff; border: 0; border-radius: 999px; padding: 9px 22px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s; font-family: var(--font); }
.ap-blue:hover { background: #0077ed; }
.ap-blue:disabled { opacity: .4; cursor: default; }
.cmp-items { margin: 22px 0 6px; text-align: left; display: flex; flex-direction: column; }
.cmp-it { display: flex; align-items: baseline; gap: 10px; padding: 11px 2px; border-top: 1px solid var(--line); }
.cmp-check { color: #2ecc71; font-size: 12px; flex: none; }
.cmp-desc { flex: 1; font-size: 13.5px; color: #d6d6db; line-height: 1.4; }
.cmp-p { font-size: 13px; color: #86868b; white-space: nowrap; }
.cmp-x { background: none; border: 0; color: var(--faint); font-size: 11px; cursor: pointer; opacity: 0; transition: opacity .15s; flex: none; }
.cmp-it:hover .cmp-x { opacity: 1; }
.cmp-add { width: 100%; margin-top: 10px; background: transparent; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); padding: 12px; font-size: 13px; cursor: pointer; transition: color .15s, border-color .15s; font-family: var(--font); }
.cmp-add:hover { color: var(--text); border-color: var(--faint); }
.cmp-note { text-align: center; color: var(--faint); font-size: 12px; margin: 28px 0 64px; }
.cmp-cat { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; margin: 12px 0; }
.cmp-cat-row { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; cursor: pointer; color: var(--text); font-size: 13.5px; transition: border-color .15s; font-family: var(--font); }
.cmp-cat-row:hover { border-color: rgba(0,113,227,.65); }
.cmp-cat-row span { flex: 1; }
.cmp-cat-row b { font-family: var(--display); font-size: 14px; }
.cmp-cat-row i { font-style: normal; font-size: 11px; color: var(--faint); min-width: 22px; text-align: right; }
.cmp-custom { display: flex; gap: 8px; }

/* ============================================================
   R2 v2 · L'APPLI DU BONHEUR · le panneau devient une carte
   CLAIRE qui respire (codes macbook-air : blanc, air, doux)
   + le geste du jour (science validée) + le pouls WHO-5.
   ============================================================ */
/* R2 v3 · une PERSONNE : il écrit, tu réponds. Verre sombre, une voix, zéro empilement. */
#r2Panel { background: rgba(14,14,17,.94); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-color: rgba(255,255,255,.12); width: 384px; display: flex; flex-direction: column; max-height: 74vh; }
#r2Panel .r2-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.r2-ava { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 13px; letter-spacing: .05em; color: #f5f5f7; }
.r2-ava i { width: 10px; height: 10px; border-radius: 50%; background: var(--flf); box-shadow: 0 0 12px rgba(43,87,230,.8); animation: r2alive 3.2s ease-in-out infinite; }
@keyframes r2alive { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.78); opacity: .7; } }
#r2Panel .r2-st { flex: 1; font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 12.5px; color: var(--muted); }
.r2-chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; min-height: 120px; scrollbar-width: none; }
.r2-chat::-webkit-scrollbar { display: none; }
.r2-msg { align-self: flex-start; max-width: 88%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px 16px 16px 5px; padding: 11px 14px; font-size: 13.8px; line-height: 1.6; color: #ececf0; animation: fadeUp .35s var(--ease-out) both; }
.r2-msg.r2-soft { background: transparent; border: 0; font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--muted); padding: 2px 4px; }
.r2-msg.r2-me { align-self: flex-end; background: rgba(43,87,230,.13); border-color: rgba(43,87,230,.3); border-radius: 16px 16px 5px 16px; color: #ffd9cf; font-size: 13px; }
.r2-replies { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.r2-chip { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #ececf0; border-radius: 999px; padding: 8px 15px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; font-family: var(--font); animation: fadeUp .35s var(--ease-out) both; }
.r2-chip:hover { border-color: rgba(43,87,230,.6); background: rgba(43,87,230,.09); transform: translateY(-1px); }
#r2Panel .r2-foot { color: var(--faint); font-size: 10px; line-height: 1.5; margin-top: 10px; }
/* WHO-5 · le questionnaire (modale) */
.w5-q p { font-size: 13.5px; color: var(--text); margin: 0 0 8px; }
.w5-q { padding: 12px 0; border-top: 1px solid var(--line); }
.w5-q:first-child { border-top: 0; padding-top: 0; }
.w5-opts { display: flex; gap: 6px; }
.w5-o { flex: 1; padding: 8px 0; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.w5-o:hover { border-color: var(--faint); color: var(--text); }
.w5-o.on { border-color: rgba(43,87,230,.65); color: var(--text); background: rgba(43,87,230,.08); }
.w5-legend { font-size: 11px; color: var(--faint); margin-top: 10px; }

/* ============================================================
   CÉLÉBRATION CINÉMA · peak-end : le carton de fin de film
   ============================================================ */
#flfCeleb { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .6s var(--ease); cursor: pointer; }
#flfCeleb.in { opacity: 1; }
#flfCeleb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 220px rgba(0,0,0,.9); pointer-events: none; }
#flfCeleb .fc-in { text-align: center; padding: 0 6vw; transform: translateY(16px); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); transition-delay: .25s; }
#flfCeleb.in .fc-in { transform: none; opacity: 1; }
#flfCeleb .fc-t { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(40px, 8vw, 110px); color: #f5f5f7; line-height: 1; }
#flfCeleb .fc-s { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(15px, 1.8vw, 21px); color: #a8a8ad; margin-top: 22px; }

/* COUPURE IMAGE · une respiration cinéma entre deux actes (vraies frames des films) */
.ap-imgbreak { position: relative; height: clamp(220px, 34vw, 380px); border-radius: 26px; overflow: hidden; margin: 76px 0; background-size: cover; background-position: center; }
.ap-imgbreak::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); }
.ap-imgbreak span { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; font-family: var(--display); font-size: 11px; letter-spacing: .3em; color: rgba(255,255,255,.85); }

/* ENVIRONNEMENT · le COMMENT : plus grand, plus d'air, moins de mur (règle enfant de 10 ans) */
.env-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 26px; }
.env-quad { padding: 36px 38px 30px; border-radius: 24px; }
.env-quad .eq-h { font-size: 16px; margin-bottom: 22px; }
.env-quad .eq-ic { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.env-quad ul { gap: 0; }
.env-quad li { font-size: 16.5px; line-height: 1.6; color: #c9c9cf; padding: 15px 0 15px 20px; border-top: 1px solid var(--line); }
.env-quad li:first-child { border-top: 0; padding-top: 0; }
.env-quad li::before { top: 25px; }
.env-quad li:first-child::before { top: 10px; }
.env-synth { font-size: clamp(17px, 1.8vw, 21px) !important; line-height: 1.65 !important; max-width: 860px; }
.env-risk { padding: 24px 28px; border-radius: 18px; }
.env-risk .er-top b { font-size: 17px; }
.env-risk .er-why, .env-risk .er-act { font-size: 15.5px; line-height: 1.6; }
.env-horizon .eh-v { font-size: 16.5px; }

/* Révélation du prix (Pitch) · chaque caractère arrive avec un petit pop */
.ppr .ppr-c { display: inline-block; }
.ppr .ppr-c[data-new="1"] { animation: pprPop .28s var(--ease-out); }
@keyframes pprPop { from { transform: scale(1.6) translateY(-4px); opacity: 0; } to { transform: none; opacity: 1; } }
.ppr .ppr-note { opacity: 0; transition: opacity .8s var(--ease); display: block; }
.ppr .ppr-note.in { opacity: 1; }

/* ============================================================
   LE CONSTRUCTEUR · paramétrage admin (jeu vidéo) + composeur client
   ============================================================ */
.bd-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px; margin: 26px 0; }
.bd-sec .bd-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.bd-sec .bd-h b { font-family: var(--display); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.bd-sec .bd-h span { flex: 1; font-size: 12.5px; color: var(--muted); }
.bd-rows { display: flex; flex-direction: column; gap: 10px; }
.bd-row { display: flex; gap: 10px; align-items: center; }
.bd-in { text-align: left !important; height: 42px; }
.bd-desc { flex: 1.6; }
.bd-price { max-width: 110px; font-family: var(--display); }
.bd-x { flex: none; background: none; border: 0; color: var(--faint); font-size: 12px; cursor: pointer; padding: 6px; }
.bd-x:hover { color: #e74c3c; }
.bd-rule { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; }
.bd-rule span { color: var(--faint); font-size: 12px; }
.bd-rule b { color: var(--text); }
.bd-rule-new { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.bd-rule-new span { color: var(--faint); font-size: 12px; }
.bd-rule-new .field { width: auto; max-width: 300px; height: 40px; }
.bd-seg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.bd-seg-l { min-width: 250px; font-size: 14px; font-weight: 700; color: var(--text); }
.bd-seg-m { display: flex; align-items: center; gap: 4px; font-family: var(--display); color: var(--flf); }
.bd-mult { max-width: 74px; height: 38px; font-family: var(--display); }
.bd-seg-n { flex: 1; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.bd-note { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.bd-foot { display: flex; align-items: center; gap: 16px; margin: 8px 0 70px; }
/* Le composeur, côté espace */
.compose-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px 32px; }
.cmpz-h { margin-bottom: 18px; }
.cmpz-admin { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.cmpz-admin .field { width: auto; height: 38px; font-size: 13px; }
.cmpz-bases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cmpz-base { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; cursor: pointer; transition: border-color .2s, transform .2s; font-family: var(--font); }
.cmpz-base:hover { transform: translateY(-2px); border-color: var(--faint); }
.cmpz-base.on { border-color: rgba(43,87,230,.65); background: rgba(43,87,230,.06); }
.cmpz-base b { display: block; font-size: 15.5px; color: var(--text); margin-bottom: 6px; }
.cmpz-base span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cmpz-opts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.cmpz-opt { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 9px 16px; font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s; font-family: var(--font); }
.cmpz-opt i { font-style: normal; color: var(--faint); }
.cmpz-opt.on { border-color: rgba(43,87,230,.6); background: rgba(43,87,230,.09); }
.cmpz-opt.on i { color: #2ecc71; }
.cmpz-total { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cmpz-total span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.cmpz-total b { font-family: var(--display); font-size: clamp(24px, 3vw, 36px); color: var(--flf); }
.cmpz-total i { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 12.5px; color: var(--muted); }
.cmpz-cta { margin-top: 16px; }
.cmpz-cta .btn { width: auto; padding: 12px 26px; }

/* Profils de prix · niveau de service visible + script privé */
.bd-seg-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.bd-seg-card .bd-seg { background: none; border: 0; padding: 0; }
.bd-seg-x { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bd-seg-x label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.bd-seg-x .field { margin-top: 5px; font-size: 12.5px; height: 38px; }
@media (max-width: 760px) { .bd-seg-x { grid-template-columns: 1fr; } }
.cmpz-incl { margin-top: 10px; font-size: 13px; font-weight: 600; color: #2ecc71; }

/* LA VISITE GUIDÉE · projecteur qui glisse + carte qui s'écrit */
#flfTour { position: fixed; inset: 0; z-index: 210; }
.ft-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.78); border: 1px solid rgba(43,87,230,.7); transition: all .65s var(--ease); pointer-events: none; }
.ft-card { position: fixed; width: min(400px, calc(100vw - 32px)); background: rgba(16,16,19,.96); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px 20px; transition: top .65s var(--ease), left .65s var(--ease); box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.ft-txt { font-size: 14.5px; line-height: 1.6; color: #ececf0; min-height: 46px; }
.ft-acts { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ft-n { flex: 1; font-family: var(--display); font-size: 11px; color: var(--faint); letter-spacing: .1em; }
.ft-acts .btn { width: auto; }

/* ============================================================
   LE DÉFILEMENT APPLE, PARTOUT · tout ce qui est sous le pli
   entre en scène au scroll (montée + fondu), sur toutes les vues.
   ============================================================ */
.srv { opacity: 0; transform: translateY(18px); }
.srv.srv-scale { transform: scale(.965); }             /* médias et grandes cartes : la signature apple.com */
.srv.srv-soft { transform: translateY(10px); }         /* entêtes et textes : à peine, et vite */
.srv.srv-in { opacity: 1; transform: none; transition: opacity .85s var(--ease), transform .85s var(--ease); }
.srv.srv-soft.srv-in { transition-duration: .55s; }
.srv.srv-scale.srv-in { transition-duration: 1.05s; }
@media (prefers-reduced-motion: reduce) { .srv { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* COHÉRENCE DES GRANDS CHIFFRES · grands oui, illisibles non (retour compta) :
   les montants longs cassaient à 90+px · on plafonne partout au même gabarit. */
.tc-hero-v { font-size: clamp(38px, 5.2vw, 62px) !important; }
.cac-ratio { font-size: clamp(38px, 5.2vw, 62px) !important; }
.gr-eqv b { font-size: clamp(28px, 4.2vw, 46px) !important; }
.air-h1 { font-size: clamp(36px, 5vw, 60px) !important; }
.ck-hero-num { font-size: clamp(34px, 4.6vw, 52px) !important; }

/* ============================================================
   L'ALTERNANCE /store · des respirations CLAIRES sur le noir
   (demande répétée : « parfois des cartes blanches, faut pas que
   ce soit lourd »). Technique : on re-scope les variables de
   couleur DANS la carte → tout son contenu passe en clair seul.
   ============================================================ */
.ap-lightify {
  background: #f5f5f7 !important; border-color: rgba(0,0,0,.07) !important; color: #1d1d1f;
  --text: #1d1d1f; --muted: #57575c; --faint: #86868b;
  --line: rgba(0,0,0,.09); --line-2: rgba(0,0,0,.07);
  --surface: #fff; --surface-2: #fff;
  border-radius: 24px; box-shadow: 0 12px 44px rgba(0,0,0,.28);
}
.ap-lightify .btn.ghost { border-color: rgba(0,0,0,.18); color: #1d1d1f; }
.ap-lightify .btn:not(.ghost) { background: #1d1d1f; color: #fff; }

/* La grille « Pourquoi ? Pour tout ça. » (iphone-17-pro) · 6 tuiles, différents noirs, chiffres corail géants */
.pw-t { font-size: clamp(34px, 4.6vw, 60px); font-weight: 700; letter-spacing: -.02em; color: #f5f5f7; margin: 6px 0 30px; }
.pw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 auto 34px; width: min(1060px, 94vw); }
@media (max-width: 920px) { .pw-grid { grid-template-columns: 1fr; } }
.pw-card { background: #1a1a1e; border-radius: 20px; padding: 34px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; }
.pw-card span { font-size: 13.5px; color: #a8a8ad; }
.pw-card b { font-family: var(--display); font-size: clamp(34px, 4.5vw, 58px); color: var(--flf); line-height: 1; letter-spacing: -.01em; }
.pw-card i { font-style: normal; font-size: 13.5px; color: #d6d6db; line-height: 1.5; max-width: 300px; }

/* ============================================================
   LE STUDIO DE COMMANDE · simulation plein écran (Tesla/Apple) :
   chaque étape = une page en fondu, alternance noir / blanc luxe.
   ============================================================ */
#cmdStudio { position: fixed; inset: 0; z-index: 180; background: #000; overflow-y: auto; }
#cmdStudio .cs-x { position: fixed; top: 22px; left: 22px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.4); backdrop-filter: blur(10px); color: #f5f5f7; cursor: pointer; font-size: 14px; }
.cs-dots { position: fixed; top: 34px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.cs-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); transition: background .3s, transform .3s; }
.cs-dots i.on { background: var(--flf); transform: scale(1.2); }
.cs-stage { min-height: 100vh; padding: 110px clamp(20px, 6vw, 80px) 60px; display: flex; flex-direction: column; opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); background: #000; color: #f5f5f7; }
.cs-stage.in { opacity: 1; transform: none; }
.cs-stage.cs-light { background: #f5f5f7; color: #1d1d1f;
  --text: #1d1d1f; --muted: #57575c; --faint: #86868b; --line: rgba(0,0,0,.1); --surface: #fff; --surface-2: #fff; }
.cs-h { text-align: center; margin-bottom: 44px; }
.cs-k { font-family: var(--display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--flf); margin-bottom: 16px; }
.cs-t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(32px, 5.4vw, 72px); line-height: .98; margin: 0; }
.cs-s { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 16px; color: inherit; opacity: .65; margin: 14px 0 0; }
.cs-bases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; width: 100%; }
.cs-base { text-align: left; background: #101013; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; overflow: hidden; padding: 0 0 22px; cursor: pointer; transition: transform .4s var(--ease), border-color .3s; font-family: var(--font); color: #f5f5f7; }
.cs-base:hover { transform: translateY(-6px); border-color: rgba(43,87,230,.55); }
.cs-bimg { display: block; aspect-ratio: 16/9; background-size: cover; background-position: center; margin-bottom: 18px; filter: saturate(.85); }
.cs-base b { display: block; font-size: 19px; padding: 0 22px; margin-bottom: 8px; }
.cs-base .cs-bd { display: block; font-size: 13.5px; color: #a8a8ad; line-height: 1.5; padding: 0 22px; }
.cs-opts { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; width: 100%; }
.cs-opt { display: flex; align-items: center; gap: 16px; text-align: left; background: #fff; border: 1px solid rgba(0,0,0,.09); border-radius: 16px; padding: 16px 20px; cursor: pointer; transition: border-color .2s, transform .2s; font-family: var(--font); color: #1d1d1f; }
.cs-opt:hover { transform: translateY(-1px); border-color: rgba(0,0,0,.2); }
.cs-opt.on { border-color: rgba(43,87,230,.65); box-shadow: 0 0 0 1px rgba(43,87,230,.35); }
.cs-oi { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); display: grid; place-items: center; font-size: 13px; color: #86868b; }
.cs-opt.on .cs-oi { background: var(--flf); border-color: var(--flf); color: #fff; }
.cs-ol { flex: 1; font-size: 15px; font-weight: 600; }
.cs-ol i { display: block; font-style: normal; font-size: 12.5px; font-weight: 400; color: #6e6e73; margin-top: 2px; }
.cs-op { font-family: var(--display); font-size: 15px; color: #1d1d1f; }
.cs-form { display: flex; flex-direction: column; gap: 22px; max-width: 620px; margin: 0 auto; width: 100%; }
.cs-form label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: inherit; opacity: .8; }
.cs-form .field { margin-top: 8px; }
.cs-chips { display: flex; gap: 10px; margin-top: 10px; }
.cs-chip { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #f5f5f7; border-radius: 999px; padding: 10px 20px; font-size: 13.5px; cursor: pointer; transition: border-color .2s, background .2s; font-family: var(--font); }
.cs-chip.on { border-color: var(--flf); background: rgba(43,87,230,.12); }
.cs-recap { max-width: 620px; margin: 0 auto; width: 100%; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 22px; padding: 26px 28px; }
.cs-rrow { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(0,0,0,.07); font-size: 14.5px; color: #1d1d1f; }
.cs-rrow:first-child { border-top: 0; }
.cs-rmain span { font-weight: 800; font-size: 16px; }
.cs-rtotal { align-items: baseline; }
.cs-rtotal b { font-family: var(--display); font-size: 30px; color: var(--flf); }
.cs-rincl { font-size: 13px; font-weight: 600; color: #1a8917; padding-top: 12px; }
.cs-rnote { font-size: 12px; color: #86868b; padding-top: 8px; }
.cs-foot { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 44px auto 0; max-width: 760px; width: 100%; }
.cs-total { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.cs-total span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.cs-total b { font-family: var(--display); font-size: 28px; color: var(--flf); }
.cs-next { border: 0; border-radius: 999px; background: #0071e3; color: #fff; padding: 13px 30px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; font-family: var(--font); }
.cs-next:hover { background: #0077ed; transform: translateY(-1px); }
.cs-back { border: 1px solid currentColor; opacity: .5; background: none; color: inherit; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.cs-back:hover { opacity: 1; }

/* ============================================================
   LE PITCH · écran format REFAIT 100 % macbook-pro (retour
   Fransou : centré, aéré, média plein cadre, zéro brouillard)
   ============================================================ */
.po2 { display: flex; flex-direction: column; align-items: center; padding-top: 8vh; }
.po2-head { text-align: center; max-width: 900px; margin: 0 auto 46px; }
.po2-t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.005em; color: #f5f5f7; margin: 18px 0 22px; }
.po2-d { font-size: clamp(15px, 1.5vw, 19px); line-height: 1.55; color: #a8a8ad; max-width: 640px; margin: 0 auto 30px; font-weight: 500; }
.po2-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.po2-media { position: relative; display: block; width: min(1060px, 94vw); aspect-ratio: 16/9; border-radius: 26px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #101013; margin: 0 auto 34px; }
.po2-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.po2-media:hover img { transform: scale(1.02); }
.pov-play.big { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 74px; height: 74px; border-radius: 50%; background: rgba(28,28,30,.65); backdrop-filter: blur(14px); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform .3s var(--ease), background .3s; }
.po2-media:hover .pov-play.big { transform: translate(-50%,-50%) scale(1.1); background: rgba(28,28,30,.85); }
.po2-films { width: min(1060px, 94vw); margin: 0 auto; }
.po2 .pitch-back { margin: 34px auto 0; }
.po2 #poPriceBox .po-price { justify-content: center; text-align: center; }

/* Le cockpit de RDV du Closer · chrono + mentions du prix (Gong) */
.cl-cockpit { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0 24px; }
.cl-chrono, .cl-prix { display: flex; align-items: center; gap: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.cl-chrono span, .cl-prix span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.cl-chrono b { font-family: var(--display); font-size: 28px; color: var(--text); min-width: 82px; }
.cl-chrono-b { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 11px; }
.cl-prix-dots { display: flex; gap: 6px; }
.cl-prix-dots i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); transition: background .2s, border-color .2s; }
.cl-prix-dots i.on { background: var(--flf); border-color: var(--flf); box-shadow: 0 0 8px rgba(43,87,230,.5); }
.cl-prix-b { background: none; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-size: 11.5px; padding: 6px 12px; cursor: pointer; }
.cl-prix-b:hover { color: var(--text); border-color: var(--faint); }
.cl-prix-verdict { font-size: 12px; color: var(--flf); font-weight: 700; }

/* ============================================================
   R2 · LA PAGE + APPRENDRE · le bien-être et l'école, VISIBLES
   (alternance Apple : la leçon/le geste du jour en carte claire)
   ============================================================ */
.r2p-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin: 10px 0 30px; }
@media (max-width: 860px) { .r2p-top { grid-template-columns: 1fr; } }
.r2p-geste { padding: 32px 34px; }
.r2p-g-t { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; color: #1d1d1f; margin: 10px 0 12px; }
.r2p-g-q { font-size: 16.5px; line-height: 1.6; color: #424245; margin-bottom: 14px; }
.r2p-g-sci { font-size: 13px; line-height: 1.55; color: #6e6e73; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); margin-bottom: 16px; }
.r2p-pouls { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.r2p-score b { font-family: var(--display); font-size: clamp(34px, 3.4vw, 46px); color: var(--flf); line-height: 1; letter-spacing: -.02em; }
.r2p-score i { font-style: normal; font-size: 15px; color: var(--faint); }
.r2p-spark { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.r2p-spark i { flex: 1; max-width: 26px; background: rgba(43,87,230,.4); border-radius: 4px 4px 0 0; min-height: 6px; transition: background .2s; }
.r2p-spark i:last-child { background: var(--flf); }
.r2need { margin-bottom: 34px; }
.r2need .r2p-grid { margin-bottom: 0; }
.r2need-h { display: flex; align-items: baseline; gap: 11px; margin-bottom: 14px; }
.r2need-h b { font-size: 19px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.r2need-h i { font-style: normal; font-size: 14px; color: var(--muted); }
.r2need-dot { width: 10px; height: 10px; border-radius: 50%; align-self: center; flex: none; }
.r2need-bleu .r2need-dot { background: #2F80FF; box-shadow: 0 0 12px #2F80FF; }
.r2need-violet .r2need-dot { background: #a06bff; box-shadow: 0 0 12px #a06bff; }
.r2need-ambre .r2need-dot { background: #ff9f0a; box-shadow: 0 0 12px #ff9f0a; }
.r2need-rose .r2need-dot { background: #FF2D78; box-shadow: 0 0 12px #FF2D78; }
.r2need-corail .r2need-dot { background: #2B57E6; box-shadow: 0 0 12px #2B57E6; }
/* LE CARNET · carnet manuscrit virtuel */
.carnet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: 1080px; margin: 0 auto 26px; flex-wrap: wrap; }
.carnet-title { font-family: var(--display); font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -.025em; margin: 0; color: var(--text); }
.carnet-sub { font-size: 16px; color: var(--muted); margin: 8px 0 0; }
.carnet-wrap { perspective: 2400px; max-width: 1080px; margin: 0 auto; position: relative; }
/* Couverture du livre (rituel d'ouverture) */
.carnet-cover { position: absolute; inset: 0; z-index: 20; cursor: pointer; transform-origin: left center; transform-style: preserve-3d; border-radius: 8px 18px 18px 8px; background: linear-gradient(135deg, #3c2c19, #241910 55%, #12100c); box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 1px rgba(212,175,110,.25), inset 0 0 60px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; transition: transform .75s cubic-bezier(.65,.05,.3,1), opacity .75s ease; }
.carnet-cover::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(212,175,110,.35); border-radius: 4px 12px 12px 4px; pointer-events: none; }
.carnet-cover.open { transform: rotateY(-158deg); opacity: 0; }
.carnet-cover-in { text-align: center; color: #e7d9ba; }
.carnet-cover-k { display: block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(212,175,110,.8); margin-bottom: 14px; }
.carnet-cover-in h2 { font-family: var(--display); font-size: clamp(40px, 5vw, 62px); font-weight: 800; letter-spacing: -.02em; margin: 0; color: #f0e6cd; }
.carnet-cover-sub { display: block; font-family: "Bradley Hand", cursive; font-size: 19px; color: rgba(231,217,186,.7); margin-top: 16px; }
/* Épaisseur de plume */
.carnet-widths { gap: 5px; }
.cbt-w { padding: 8px 9px; display: flex; align-items: center; justify-content: center; width: 34px; }
.cbt-w span { display: block; width: 16px; border-radius: 3px; background: currentColor; }
/* Recherche dans le carnet */
.carnet-head-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.carnet-search { position: relative; }
.carnet-search input { width: 220px; max-width: 46vw; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; color: var(--text); font-size: 14px; font-family: var(--font); outline: none; }
.carnet-search input:focus { border-color: var(--faint); }
.carnet-results { position: absolute; top: calc(100% + 6px); right: 0; width: 340px; max-width: 80vw; max-height: 320px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.4); padding: 6px; z-index: 30; display: none; }
.carnet-results.on { display: block; }
.carnet-res { display: block; width: 100%; text-align: left; background: transparent; border: none; border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--text); }
.carnet-res:hover { background: var(--surface-2); }
.carnet-res b { font-size: 13px; color: var(--flf); margin-right: 8px; }
.carnet-res span { font-size: 13px; color: var(--muted); }
.carnet-res-empty { padding: 12px; font-size: 13px; color: var(--faint); text-align: center; }
.carnet-book { position: relative; transform-style: preserve-3d; }
.carnet-page { position: relative; background-color: #f4ecd6; border-radius: 6px 18px 18px 6px; box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 100px rgba(120,90,40,.05); padding: 60px 64px 66px 96px; min-height: 760px; transform-origin: left center;
  background-image: repeating-linear-gradient(#f4ecd6 0 47px, #d6c7a1 47px 48px); background-position: 0 30px; }
.carnet-page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 72px; width: 2px; background: #cf908b; opacity: .55; }
.carnet-page::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 32px; background: linear-gradient(90deg, rgba(120,90,40,.16), transparent); border-radius: 6px 0 0 6px; }
.carnet-date { position: absolute; top: 22px; right: 34px; font-family: "Bradley Hand", "Snell Roundhand", cursive; font-size: 17px; color: #7c6a44; opacity: .85; }
.carnet-ink { font-family: "Bradley Hand", "Snell Roundhand", "Segoe Script", cursive; font-size: 30px; line-height: 48px; color: #1a3a6b; outline: none; min-height: 580px; white-space: pre-wrap; word-break: break-word; caret-color: currentColor; padding-top: 6px; }
.carnet-ink:empty::before { content: attr(data-ph); color: #a99a76; font-style: italic; }
.carnet-empty { font-family: "Bradley Hand", "Snell Roundhand", cursive; font-size: 30px; line-height: 1.7; color: #8a7a54; text-align: center; padding-top: 230px; }
.carnet-foot { position: absolute; bottom: 22px; right: 34px; font-family: "Bradley Hand", cursive; font-size: 16px; color: #8a7a54; }
.carnet-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1080px; margin: 24px auto 0; flex-wrap: wrap; }
.carnet-inks { display: flex; gap: 10px; }
.carnet-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; transition: transform .15s, border-color .15s; }
.carnet-swatch:hover { transform: scale(1.1); }
.carnet-swatch.on { border-color: var(--text); transform: scale(1.15); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor; }
.carnet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.carnet-nav { display: flex; align-items: center; justify-content: center; gap: 22px; max-width: 1080px; margin: 20px auto 0; }
.carnet-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; transition: transform .2s, border-color .2s; }
.carnet-arrow:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--faint); }
.carnet-arrow:disabled { opacity: .3; cursor: default; }
.carnet-nav span { font-size: 14.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 90px; text-align: center; }
.carnet-book.flip-next .carnet-page { animation: carnetNext .19s ease-in forwards; }
.carnet-book.flip-prev .carnet-page { animation: carnetPrev .19s ease-in forwards; }
@keyframes carnetNext { to { transform: rotateY(-22deg); opacity: .25; } }
@keyframes carnetPrev { to { transform: rotateY(22deg); opacity: .25; } }
@media (max-width: 640px) { .carnet-page { padding: 36px 26px 48px 54px; min-height: 520px; background-image: repeating-linear-gradient(#f4ecd6 0 37px, #d6c7a1 37px 38px); background-position: 0 22px; } .carnet-ink { font-size: 23px; line-height: 38px; min-height: 400px; } .carnet-page::before { left: 40px; } }
/* Carnet · barre d'outils éditeur */
.carnet-toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; max-width: 1080px; margin: 0 auto 20px; padding: 11px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; }
.cbt-grp { display: flex; gap: 6px; align-items: center; }
.cbt-grp + .cbt-grp { border-left: 1px solid var(--line); padding-left: 16px; }
.cbt { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 14px; padding: 8px 12px; cursor: pointer; font-family: var(--font); line-height: 1; transition: border-color .2s, background .2s; }
.cbt:hover:not(.on) { border-color: var(--faint); }
.cbt.on { background: var(--text); color: var(--bg); border-color: var(--text); }
/* Livre ouvert */
.carnet-open { display: flex; align-items: stretch; }
.carnet-open .carnet-page { flex: 1 1 0; min-width: 0; min-height: 720px; border-radius: 8px 0 0 8px; }
.carnet-open .carnet-page:last-child { border-radius: 0 18px 18px 0; }
.carnet-open.solo .carnet-page { border-radius: 8px 18px 18px 8px; }
.carnet-spine { flex: none; width: 34px; align-self: stretch; background: linear-gradient(90deg, rgba(60,42,18,.42), rgba(60,42,18,.08) 34%, rgba(255,255,255,.12) 50%, rgba(60,42,18,.08) 66%, rgba(60,42,18,.42)); z-index: 7; }
.carnet-ghost { background-color: #efe7d0; opacity: .45; }
/* Écriture sur lignes = base */
.carnet-ink { position: relative; z-index: 1; }
.carnet-open:not(.mode-write) .carnet-ink { cursor: crosshair; }
/* Calque texte libre */
.carnet-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.carnet-note { position: absolute; pointer-events: auto; min-width: 30px; max-width: 62%; font-family: "Bradley Hand", "Snell Roundhand", "Segoe Script", cursive; font-size: 26px; line-height: 1.28; color: #1a3a6b; outline: none; padding: 2px 5px; cursor: text; border-radius: 5px; }
.carnet-note:focus { background: rgba(207,144,139,.08); box-shadow: 0 0 0 1px rgba(207,144,139,.4); }
.carnet-grip { position: absolute; width: 15px; height: 15px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgba(120,90,40,.4); border: 2px solid #f4ecd6; z-index: 5; cursor: grab; pointer-events: auto; }
.carnet-grip:active { cursor: grabbing; }
.carnet-open:not(.mode-write) .carnet-grip { display: none; }
/* Dessin (formes) */
.carnet-draw { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.carnet-catch { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.carnet-open:not(.mode-write) .carnet-catch { pointer-events: auto; cursor: crosshair; }
@media (max-width: 640px) { .carnet-open .carnet-page { min-height: 520px; } }
/* Citation en exergue · éditorial Apple, respire */
.r2cite { max-width: 820px; margin: 8px auto 30px; text-align: center; position: relative; padding: 0 20px; }
.r2cite-mark { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 60px; line-height: .5; color: color-mix(in srgb, var(--flf) 55%, transparent); margin-bottom: 6px; }
.r2cite p { font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 2.6vw, 30px); font-style: italic; line-height: 1.4; color: var(--text); margin: 0; letter-spacing: -.01em; }
/* Accès journal de bord */
.r2jrn-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 34px; cursor: pointer; font-family: var(--font); text-align: left; transition: transform .3s var(--ease), border-color .2s; }
.r2jrn-link:hover { transform: translateY(-2px); border-color: var(--faint); }
.r2jrn-link b { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.r2jrn-link span:not(.shc-go) { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.r2jrn-link .shc-go { font-size: 20px; color: var(--muted); flex: none; }
/* Éditeur journal (fiche pratique d'écriture) */
.r2jrn { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 26px; }
.r2jrn-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.r2jrn-h b { display: block; font-size: 17px; font-weight: 700; color: var(--text); }
.r2jrn-h span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.r2jrn-all { font-size: 13px; font-weight: 600; color: #6ba7ff; cursor: pointer; white-space: nowrap; }
.r2jrn-all:hover { text-decoration: underline; }
.r2jrn-ta { width: 100%; min-height: 150px; resize: vertical; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-family: Georgia, "Times New Roman", serif; font-size: 16.5px; line-height: 1.7; color: var(--text); }
.r2jrn-ta:focus { outline: none; border-color: var(--flf); }
.r2jrn-ta::placeholder { color: var(--faint); font-style: italic; }
.r2jrn-actions { display: flex; gap: 10px; margin-top: 12px; }
.r2jrn-past { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.r2jrn-past-h { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.r2jrn-e { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.r2jrn-e-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.r2jrn-e-top span { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--faint); }
.r2jrn-del { background: transparent; border: none; color: var(--faint); font-size: 13px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.r2jrn-del:hover { color: #ff5a3c; background: color-mix(in srgb, #ff5a3c 12%, transparent); }
.r2jrn-e p { font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.7; color: var(--text); margin: 0; }
/* Vue journal complète */
.r2jrn-view { max-width: 720px; margin: 0 auto; }
.r2jrn-view .r2jrn-e { margin-bottom: 16px; padding: 20px 22px; }
/* Chrono circulaire inline (fiche pratique) */
.r2chr-wrap { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 26px; text-align: center; }
.r2chr-lab { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.r2chr { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.r2chr-dial { position: relative; width: 132px; height: 132px; }
.r2chr-ring { width: 132px; height: 132px; transform: rotate(-90deg); }
.r2chr-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.r2chr-fg { fill: none; stroke: #2F80FF; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.r2chr-time { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 27px; font-weight: 600; letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.r2chr-btns { display: flex; gap: 10px; justify-content: center; }
/* Schéma de respiration animé */
.r2breath-sch { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 30px 24px; margin-bottom: 26px; text-align: center; }
.r2bs-stage { position: relative; width: 200px; height: 200px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.r2bs-orb { position: absolute; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #6ba7ff, #2F80FF); box-shadow: 0 0 40px rgba(47,128,255,.5); animation: r2bsPulse 10s ease-in-out infinite; }
@keyframes r2bsPulse { 0%, 100% { transform: scale(.62); } 50% { transform: scale(1.25); } }
.r2bs-word { position: relative; z-index: 2; font-size: 17px; font-weight: 700; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.r2bs-cap { font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 460px; margin: 6px auto 16px; }
/* Bloc corps + ambiance */
.r2blk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.r2sante, .r2music { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.r2blk-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.r2blk-h b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.r2blk-h span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 3px; max-width: 340px; }
.r2blk-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.r2sante-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.r2sante-c { display: flex; align-items: center; gap: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.r2sante-ic { flex: none; width: 30px; height: 30px; color: var(--flf); }
.r2sante-ic svg { width: 30px; height: 30px; }
.r2sante-v { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.r2sante-l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.r2sante-s { font-size: 11px; color: var(--faint); margin-top: 2px; }
.r2audio { width: 100%; margin-bottom: 14px; }
.r2mus-list { display: flex; flex-wrap: wrap; gap: 8px; }
.r2mus-t { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; }
.r2mus-t.on { border-color: var(--flf); color: var(--text); }
.r2mus-t b { font-weight: 600; }
.r2mus-t i { font-style: normal; color: var(--faint); font-size: 12px; cursor: pointer; }
.r2mus-t i:hover { color: #ff5a3c; }
.r2mus-empty { font-size: 14px; line-height: 1.5; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 14px; padding: 18px; }
/* Modale connexion Apple Santé */
.r2cx-lead { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; } .r2cx-lead b { color: var(--text); }
.r2cx-steps { margin: 0 0 18px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.r2cx-steps li { font-size: 14.5px; line-height: 1.55; color: var(--muted); } .r2cx-steps li b { color: var(--text); } .r2cx-steps code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.r2cx-field { margin-bottom: 12px; } .r2cx-field > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.r2cx-copy { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.r2cx-copy code { flex: 1; font-size: 13px; color: var(--text); overflow-x: auto; white-space: nowrap; }
.r2cx-note { font-size: 13px; line-height: 1.5; color: var(--faint); margin: 6px 0 0; }
@media (max-width: 760px) { .r2blk-grid { grid-template-columns: 1fr; } }
.r2p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 40px; }
.r2p-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; cursor: pointer; transition: transform .3s var(--ease), border-color .2s; font-family: var(--font); display: flex; flex-direction: column; gap: 8px; }
.r2p-card:hover { transform: translateY(-3px); border-color: var(--faint); }
.r2p-card.done { border-color: rgba(46,204,113,.4); }
.r2p-card b { font-size: 16px; color: var(--text); letter-spacing: -.01em; }
.r2p-card span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.r2p-card i { font-style: normal; font-size: 11.5px; color: var(--faint); }
.r2p-card.done i { color: #2ecc71; }
.lrn-dom { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--flf); }
.lrn-today { padding: 34px 38px; margin: 10px 0 30px; }
.lrn-t { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; color: #1d1d1f; margin: 10px 0 14px; }
.lrn-c { font-size: 17px; line-height: 1.65; color: #424245; margin: 0 0 12px; max-width: 820px; }
.lrn-src { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 14px; color: #6e6e73; margin-bottom: 18px; }
.lrn-act { background: #fff; border-radius: 14px; padding: 14px 18px; font-size: 15px; color: #1d1d1f; font-weight: 600; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.lrn-act span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--flf); margin-bottom: 5px; }

/* 🔴 MONTAGE EN DIRECT · l'interrupteur (admin) + le lecteur (client) */
.live-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; margin: 22px 0; transition: border-color .3s; }
.live-card.on { border-color: rgba(231,76,60,.5); }
.live-h { display: flex; align-items: center; gap: 14px; }
.live-h .btn { width: auto; margin-left: auto; }
.live-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #e74c3c; box-shadow: 0 0 12px rgba(231,76,60,.8); animation: r2alive 1.6s ease-in-out infinite; }
.live-dot.off { background: var(--faint); box-shadow: none; animation: none; }
.live-frame { margin-top: 18px; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.live-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-note { font-size: 12px; color: var(--faint); margin-top: 10px; line-height: 1.5; }
.live-keys { margin-top: 14px; }
.live-obs { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.live-obs-r { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; flex-wrap: wrap; }
.live-obs-r span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); min-width: 220px; }
.live-obs-r code { flex: 1; font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-obs-r .btn { width: auto; }

/* Le journal de tournage vivant · le film qui se fabrique, ligne par ligne */
.jt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; margin: 22px 0; }
.jt-h { margin-bottom: 16px; }
.jt-add { display: flex; gap: 10px; margin-bottom: 16px; }
.jt-add .field { flex: 1; height: 44px; margin: 0; }
.jt-add .btn { width: auto; }
.jt-list { display: flex; flex-direction: column; }
.jt-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 2px; border-top: 1px solid var(--line); }
.jt-row:first-child { border-top: 0; padding-top: 2px; }
.jt-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--flf); margin-top: 7px; box-shadow: 0 0 10px rgba(43,87,230,.5); }
.jt-row:not(:first-child) .jt-dot { background: var(--faint); box-shadow: none; }
.jt-b { flex: 1; min-width: 0; }
.jt-t { font-size: 15px; line-height: 1.55; color: var(--text); }
.jt-d { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.jt-x { background: none; border: 0; color: var(--faint); font-size: 11px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.jt-row:hover .jt-x { opacity: 1; }
.jt-add #jtShot { width: auto; flex: none; padding: 0 14px; }
.jt-img { margin: 10px 0 4px; aspect-ratio: 16/9; max-width: 560px; border-radius: 14px; background: #101013 center/cover no-repeat; border: 1px solid var(--line); }

/* ============================================================
   PLANNING SOCIAL · passe Metricool : un VRAI calendrier, grand,
   moderne, qui donne envie de venir poster (retour Fransou).
   ============================================================ */
.soc-cal-head { font-size: clamp(20px, 2.2vw, 28px); margin: 26px 0 18px; gap: 18px; }
.soc-cal-head .abo-y-nav { width: 38px; height: 38px; border-radius: 50%; font-size: 16px; }
.soc-dow { gap: 10px; margin-bottom: 12px; }
.soc-dow span { font-size: 13.5px; font-weight: 650; letter-spacing: .02em; text-transform: none; color: var(--muted); padding-left: 12px; }
.soc-grid { gap: 10px; }
.soc-cell { min-height: 150px; border-radius: 16px; padding: 12px 12px 10px; background: var(--surface); transition: border-color .2s, transform .25s var(--ease), box-shadow .3s; }
.soc-cell:hover { transform: translateY(-2px); border-color: var(--faint); box-shadow: 0 14px 34px -18px rgba(0,0,0,.6); }
.soc-cell.soc-today { border-color: rgba(43,87,230,.6); box-shadow: 0 0 0 1px rgba(43,87,230,.25); }
.soc-daynum { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--text); padding: 2px 4px 8px; letter-spacing: -.01em; }
.soc-cell.soc-today .soc-daynum { color: var(--flf); }
.soc-day-posts { gap: 7px; }
.soc-post { border-radius: 11px; padding: 7px; border-left: 3px solid var(--sc, var(--line)); }
.soc-post-thumb { width: 38px; border-radius: 8px; }
.soc-connect { border-radius: 18px; padding: 18px 22px; }
.soc-conn { border-radius: 999px; padding: 9px 16px; font-size: 13px; }
.soc-bar { margin: 18px 0 8px; }

/* L'insight d'abord (Pitch) · 3 écrans de conviction */
.pitch-insight { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 60vh; }
.pi-n { font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--flf); margin-bottom: 26px; }
.pi-t { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(28px, 4.4vw, 54px); line-height: 1.25; color: #f5f5f7; max-width: 900px; margin: 0 0 40px; min-height: 2.6em; }

/* ============================================================
   LA PREMIÈRE PRIVÉE · motion design maison : amorce 3-2-1 façon
   pellicule (anneau qui balaie), puis carton au nom du client.
   ============================================================ */
#flfPrem { position: fixed; inset: 0; z-index: 220; background: #000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .5s var(--ease); cursor: pointer; }
#flfPrem.in { opacity: 1; }
#flfPrem.out { opacity: 0; transition: opacity .8s var(--ease); }
#flfPrem::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 240px rgba(0,0,0,.95); pointer-events: none; }
#flfPrem::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(255,255,255,.015) 56%, transparent 57%); animation: prFlicker .14s steps(2) infinite; pointer-events: none; }
@keyframes prFlicker { 50% { opacity: .4; } }
.pr-ring { position: absolute; width: min(46vmin, 380px); height: min(46vmin, 380px); border-radius: 50%; border: 2px solid rgba(255,255,255,.18); opacity: 0; transition: opacity .4s; }
#flfPrem.counting .pr-ring { opacity: 1; }
.pr-ring::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; border-top-color: #f5f5f7; animation: prSweep .95s linear infinite; }
@keyframes prSweep { to { transform: rotate(360deg); } }
.pr-count { font-family: var(--display); font-size: clamp(90px, 22vmin, 200px); color: #f5f5f7; line-height: 1; position: relative; z-index: 2; }
.pr-count.pop { animation: prPop .9s var(--ease) both; }
@keyframes prPop { from { transform: scale(1.25); opacity: 0; } 25% { opacity: 1; } to { transform: scale(.96); opacity: .9; } }
.pr-card { position: absolute; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); padding: 0 6vw; }
#flfPrem.titling .pr-card { opacity: 1; transform: none; }
#flfPrem.titling .pr-count, #flfPrem.titling .pr-ring { opacity: 0; transition: opacity .4s; }
.pr-k { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(15px, 2vw, 22px); color: #a8a8ad; margin-bottom: 18px; }
.pr-t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 9vw, 120px); color: #f5f5f7; line-height: .95; letter-spacing: .01em; }
.pr-s { font-family: var(--display); font-size: 11px; letter-spacing: .34em; color: var(--flf); margin-top: 26px; text-transform: uppercase; }

/* L'accueil humain · le prénom de la personne, une phrase qui change à chaque visite */
.sp-greet { font-size: clamp(28px, 3.6vw, 46px) !important; letter-spacing: -.02em; }
.sp-greet-eyebrow { display: block; font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 16px; color: var(--muted); text-transform: none; letter-spacing: .01em; margin-bottom: 8px; }

/* R2 MURMURE · le conseiller temps réel : une bulle discrète en bas à gauche, qui glisse et s'efface */
#r2Murmure { position: fixed; left: 22px; bottom: 22px; z-index: 92; display: flex; align-items: center; gap: 11px; max-width: min(430px, calc(100vw - 120px)); padding: 11px 16px 11px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(16,16,19,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #e8e8ec; font-size: 13px; line-height: 1.45; text-align: left; cursor: pointer; box-shadow: 0 16px 50px rgba(0,0,0,.5); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); font-family: var(--font); }
#r2Murmure.in { opacity: 1; transform: none; }
#r2Murmure .r2m-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(43,87,230,.14); border: 1px solid rgba(43,87,230,.35); color: var(--flf); font-family: var(--display); font-size: 10px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { #r2Murmure { bottom: 82px; } }

/* Le Pitch · les vrais films du format (miniatures + titres réels) */
.po-films { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.po-film { position: relative; border: 0; padding: 0; background: #101013; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 16/9; }
.po-film img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); opacity: .92; }
.po-film:hover img { transform: scale(1.05); opacity: 1; }
.pof-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; pointer-events: none; }
.pof-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #f5f5f7; font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

/* ============ L'APP SUR LE TÉLÉPHONE (installation) ============ */
.pwa-steps{margin:6px 0 2px;padding-left:20px;display:grid;gap:10px;font-size:15px;line-height:1.55}
.pwa-steps b{color:var(--text)}

/* ============ LA MAGIE (avant-première · madeleine · Disney) ============ */
.magic-wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin:26px 0}
.magic-prem{background:#0b0b0d;border:1px solid rgba(255,255,255,.08);border-radius:26px;padding:36px 30px 30px;text-align:center}
.mg-k{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.magic-prem .mg-big{font-family:var(--display);font-size:clamp(42px,6.5vw,80px);line-height:1.02;color:#2B57E6;margin:12px 0 10px;text-transform:uppercase}
.magic-prem .mg-t{font-size:19px;font-weight:700}
.magic-prem .mg-s{color:var(--muted);font-size:14px;margin:6px 0 14px}
.magic-mad{background:#f5f5f7;border-radius:26px;padding:32px 30px;display:flex;flex-direction:column;gap:8px;align-items:flex-start;justify-content:center}
.magic-mad .mg-k{color:#b04a35}
.magic-mad .mg-t{font-size:21px;font-weight:700;color:#1d1d1f;letter-spacing:-.01em}
.magic-mad .mg-s{color:#6e6e73;font-size:14.5px;line-height:1.5;margin-bottom:8px}
.magic-mad .btn{background:#1d1d1f;color:#fff;border:0}
.magic-admin{display:flex;align-items:center;gap:14px;justify-content:space-between;background:var(--surface);border:1px dashed rgba(255,255,255,.16);border-radius:18px;padding:14px 18px;font-size:13.5px;color:var(--muted);grid-column:1/-1}
@media (max-width:700px){.magic-wrap{grid-template-columns:1fr}}

/* ============ LE RADAR ULTIME (Opportunités) ============ */
/* ═══ LE RADAR · design MacBook Pro (noir premium, chiffres géants, bento hairline) ═══ */
.rad-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 46px 0 30px; }
.rad-title { font-family: var(--font); font-size: clamp(40px, 5.4vw, 74px); font-weight: 680; letter-spacing: -.04em; line-height: 1.04; margin: 18px 0 22px;
  background: linear-gradient(180deg, #fff 30%, #b6b7bd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rad-title em { font-style: normal; background: linear-gradient(90deg, #2F80FF, #FF2D78 60%, #2B57E6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rad-sub { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 52ch; margin: 0 0 26px; letter-spacing: -.01em; }
.rad-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.rad-pill { background: #fff; color: #000; border: 1px solid #fff; border-radius: 980px; padding: 14px 28px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: transform .18s var(--ease-out), opacity .2s; }
.rad-pill:hover { transform: scale(1.04); }
.rad-pill:disabled { opacity: .55; transform: none; cursor: default; }
.rad-pill.ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.24); }
.rad-pill.ghost:hover { border-color: rgba(255,255,255,.5); }
.rad-note { font-size: 13px; color: var(--faint); margin-top: 14px; }
/* Bande de stats géantes · ligne accent dégradée (signature MacBook Pro) + count-up */
.rad-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 70px; }
.rad-stat { background: #0f0f10; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 34px 32px 30px; transition: border-color .25s, background .25s, transform .22s var(--ease-out); }
.rad-stat:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.02); transform: translateY(-4px); }
.rad-stat i { display: block; height: 4px; width: 60px; border-radius: 3px; margin-bottom: 20px; background: linear-gradient(90deg, var(--rc, #2F80FF), transparent); }
.rad-stat.c-blue { --rc: #2F80FF; } .rad-stat.c-pink { --rc: #FF2D78; } .rad-stat.c-coral { --rc: #2B57E6; }
.rad-stat b { display: block; font-family: var(--display); font-size: clamp(40px, 4.4vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rad-stat span { display: block; margin-top: 12px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.rad-stat small { display: block; margin-top: 4px; font-size: 13px; color: var(--faint); }
@media (max-width: 820px) { .rad-stats { grid-template-columns: 1fr; } }
/* Sections · tête centrée monumentale, séparées par hairline */
.op-sec { margin: 0 0 26px; padding-top: 64px; border-top: 1px solid rgba(255,255,255,.06); }
.rad-sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 34px; }
.rad-sec-head h2 { font-family: var(--font); font-size: clamp(30px, 3.6vw, 52px); font-weight: 680; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 16px;
  background: linear-gradient(180deg, #fff 30%, #b6b7bd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rad-sec-head h2 em { font-style: normal; background: linear-gradient(90deg, #2F80FF, #a06bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rad-sec-head p { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 62ch; margin: 0 0 18px; }
/* Cartes bento MacBook Pro + stagger d'apparition */
.op-list{display:grid;gap:12px}
.op-row{display:flex;align-items:center;gap:18px;justify-content:space-between;background:#0f0f10;border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:22px 24px;transition:border-color .22s, background .22s, transform .2s var(--ease-out);opacity:0;transform:translateY(22px);animation:radRise .65s cubic-bezier(.22,1,.36,1) forwards}
.op-row:hover{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.02);transform:translateY(-3px)}
.op-list .op-row:nth-child(1){animation-delay:.05s}.op-list .op-row:nth-child(2){animation-delay:.12s}.op-list .op-row:nth-child(3){animation-delay:.19s}.op-list .op-row:nth-child(4){animation-delay:.26s}.op-list .op-row:nth-child(5){animation-delay:.33s}.op-list .op-row:nth-child(n+6){animation-delay:.4s}
@keyframes radRise{to{opacity:1;transform:none}}
.op-org{font-weight:650;font-size:17px;letter-spacing:-.01em}
.op-city{font-style:normal;color:var(--muted);font-weight:400}
.op-what{font-size:14.5px;color:#c9c9ce;margin-top:5px;line-height:1.5;max-width:78ch}
.op-sub{font-size:13px;margin-top:5px;line-height:1.5;max-width:78ch}
.op-side{display:flex;align-items:center;gap:10px;flex-shrink:0}
.op-j{font-family:var(--display);font-size:17px;font-weight:800;color:var(--text);background:rgba(255,255,255,.08);border-radius:100px;padding:6px 15px;white-space:nowrap;font-variant-numeric:tabular-nums}
.op-j.hot{color:#fff;background:linear-gradient(135deg,#2B57E6,#FF2D78)}
.op-t{font-size:12.5px;color:var(--muted);white-space:nowrap;border:1px solid rgba(255,255,255,.14);border-radius:100px;padding:5px 12px}
.rad-pill.sm { padding: 9px 18px; font-size: 13.5px; }
/* ── Le transformateur (modale Prospecter) ── */
.rp-sum { font-size: 15px; line-height: 1.6; color: var(--text); background: var(--surface-2); border-radius: 14px; padding: 16px 18px; margin: 0 0 18px; }
.rp-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 20px; }
.rp-act { position: relative; text-align: left; background: #0f0f10; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px 20px 16px; cursor: pointer; font-family: var(--font); transition: border-color .2s, background .2s, transform .18s var(--ease-out); }
.rp-act:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.02); transform: translateY(-3px); }
.rp-act:disabled { opacity: .6; transform: none; cursor: default; }
.rp-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; font-style: normal; margin-bottom: 12px; }
.rp-n.c1 { background: #2F80FF; box-shadow: 0 0 14px rgba(47,128,255,.5); }
.rp-n.c2 { background: #FF2D78; box-shadow: 0 0 14px rgba(255,45,120,.45); }
.rp-n.c3 { background: #2B57E6; box-shadow: 0 0 14px rgba(43,87,230,.45); }
.rp-act b { display: block; font-size: 15.5px; font-weight: 650; color: var(--text); margin-bottom: 5px; }
.rp-act span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.rp-h { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.rp-contact { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px; }
.rp-links { display: flex; flex-wrap: wrap; gap: 9px; }
.rp-link { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 550; color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.rp-link:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.03); }
.rp-link-hi { border-color: color-mix(in srgb, #2F80FF 45%, var(--line)); color: #fff; background: color-mix(in srgb, #2F80FF 16%, transparent); font-weight: 600; cursor: pointer; font-family: var(--font); font-size: 13.5px; }
.rp-link-hi:hover { background: color-mix(in srgb, #2F80FF 26%, transparent); }
.rp-marche { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px; }
.rp-marche-p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; max-width: 70ch; }
.rp-marche-p b { color: var(--text); }
.rp-dirs { margin-top: 14px; }
.rp-dir-note { display: block; font-size: 12.5px; color: var(--faint); margin-bottom: 10px; line-height: 1.5; }
.rp-dirbtn { cursor: pointer; font-family: var(--font); font-size: 13.5px; background: transparent; }
.rp-dirbtn i { font-style: normal; color: var(--faint); }
.rp-dirbtn:hover { border-color: #2F80FF; }
.rp-patbtn { cursor: pointer; font-family: var(--font); font-size: 13px; background: transparent; font-variant-numeric: tabular-nums; }
.rp-found { border-color: color-mix(in srgb, #2F80FF 45%, var(--line)); background: color-mix(in srgb, #2F80FF 10%, transparent); }
.rp-found i { font-style: normal; color: var(--faint); }
.rp-found:hover { background: color-mix(in srgb, #2F80FF 20%, transparent); }
.rp-pats { margin-bottom: 12px; }
.rp-ctform { border: 1px solid color-mix(in srgb, #2F80FF 30%, var(--line)); background: color-mix(in srgb, #2F80FF 5%, transparent); border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; animation: radRise .4s cubic-bezier(.22,1,.36,1); }
.rp-ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.rp-ct-grid input:nth-child(3) { grid-column: 1 / -1; }
@media (max-width: 640px) { .rp-ct-grid { grid-template-columns: 1fr; } .rp-ct-grid input:nth-child(3) { grid-column: auto; } }
.rp-mailout { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px; }
.rp-mail-ta { width: 100%; min-height: 170px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-family: var(--font); font-size: 14.5px; line-height: 1.6; padding: 15px 17px; resize: vertical; }
.rp-mail-a { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
/* ═══ L'ATELIER MAIL · fenêtre pleine page (Apple : grand, aéré, respirant) ═══ */
.ma-wrap { position: fixed; inset: 0; z-index: 340; background: rgba(4,4,5,.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow-y: auto; opacity: 0; transition: opacity .26s ease; }
.ma-wrap.on { opacity: 1; }
.ma-close { position: fixed; top: 26px; right: 30px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--text); font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .18s; }
.ma-close:hover { background: rgba(255,255,255,.16); transform: scale(1.06); }
.ma-panel { max-width: 1360px; margin: 0 auto; padding: 72px 48px 100px; }
.ma-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 46px; }
.ma-title { font-family: var(--font); font-size: clamp(36px, 4.6vw, 64px); font-weight: 680; letter-spacing: -.04em; line-height: 1.04; margin: 16px 0 18px;
  background: linear-gradient(180deg, #fff 30%, #b6b7bd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ma-sub { font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 68ch; margin: 0; }
.ma-learnbadge { display: inline-flex; align-items: center; margin-top: 16px; font-size: 12.5px; font-weight: 650; color: #2F80FF; background: color-mix(in srgb, #2F80FF 10%, transparent); border: 1px solid color-mix(in srgb, #2F80FF 26%, transparent); border-radius: 999px; padding: 7px 15px; }
/* Bouton « Nouveaux · 10 j » du Centre de commandement */
.prosp-new10 { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); white-space: nowrap; transition: color .18s, border-color .18s, background .18s; }
.prosp-new10 b { font-size: 12px; background: var(--surface-2); border-radius: 999px; padding: 2px 9px; }
.prosp-new10:hover { color: var(--text); border-color: rgba(127,127,127,.5); }
.prosp-new10.on { background: #2F80FF; border-color: #2F80FF; color: #fff; }
.prosp-new10.on b { background: rgba(255,255,255,.22); }
.ma-load { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 70px 0; font-size: 16px; color: var(--muted); }
.ma-load .spinner { width: 22px; height: 22px; }
.ma-offers-h { text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.ma-offers-h i { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); margin-left: 8px; }
.ma-offers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.ma-off { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--muted); border-radius: 999px; padding: 13px 24px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: background .18s, color .18s, border-color .18s, transform .15s; }
.ma-off:hover { color: var(--text); border-color: rgba(255,255,255,.32); transform: translateY(-2px); }
.ma-off.on { background: #2F80FF; border-color: #2F80FF; color: #fff; box-shadow: 0 0 26px color-mix(in srgb, #2F80FF 45%, transparent); }
.ma-why { max-width: 720px; margin: 0 auto 40px; text-align: center; font-size: 14.5px; color: var(--muted); line-height: 1.6; background: color-mix(in srgb, #2F80FF 7%, transparent); border: 1px solid color-mix(in srgb, #2F80FF 18%, var(--line)); border-radius: 14px; padding: 15px 22px; }
.ma-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; align-items: start; }
.ma-var { background: #0e0e10; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 28px 28px 24px; opacity: 0; transform: translateY(26px); animation: radRise .6s cubic-bezier(.22,1,.36,1) forwards; transition: border-color .2s; }
.ma-var:hover { border-color: rgba(255,255,255,.22); }
.ma-var-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #2F80FF; background: color-mix(in srgb, #2F80FF 14%, transparent); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }
.ma-var:nth-child(2) .ma-var-tag { color: #FF2D78; background: color-mix(in srgb, #FF2D78 13%, transparent); }
.ma-var:nth-child(3) .ma-var-tag { color: #2B57E6; background: color-mix(in srgb, #2B57E6 13%, transparent); }
.ma-var-obj { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 16px; line-height: 1.35; }
.ma-var-ta { width: 100%; min-height: 300px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.7; padding: 18px 20px; resize: vertical; transition: border-color .2s; }
.ma-var-ta:focus { outline: none; border-color: color-mix(in srgb, #2F80FF 45%, transparent); }
.ma-var-a { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ma-pill { background: #fff; color: #000; border: 1px solid #fff; border-radius: 980px; padding: 11px 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: transform .16s var(--ease-out); }
.ma-pill:hover { transform: scale(1.04); }
.ma-pill.ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.22); }
@media (max-width: 900px) { .ma-panel { padding: 56px 20px 80px; } .ma-grid { grid-template-columns: 1fr; } }
/* Sélecteur d'offre (interconnexion offres FLF) + variantes de mail */
.rp-h-hint { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); margin-left: 8px; }
.rp-offers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rp-off { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 9px 17px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: background .18s, color .18s, border-color .18s, transform .15s; }
.rp-off:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.rp-off.on { background: #2F80FF; border-color: #2F80FF; color: #fff; box-shadow: 0 0 18px color-mix(in srgb, #2F80FF 45%, transparent); }
.rp-why { font-size: 13.5px; color: var(--muted); line-height: 1.55; background: color-mix(in srgb, #2F80FF 7%, transparent); border: 1px solid color-mix(in srgb, #2F80FF 18%, var(--line)); border-radius: 12px; padding: 12px 15px; margin-bottom: 16px; }
.rp-vars { display: flex; flex-direction: column; gap: 16px; }
.rp-var { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: #0f0f10; animation: radRise .5s cubic-bezier(.22,1,.36,1); }
.rp-var-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.rp-var-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2F80FF; background: color-mix(in srgb, #2F80FF 14%, transparent); border-radius: 999px; padding: 5px 12px; }
.rp-var-obj { font-size: 14px; font-weight: 650; color: var(--text); }
.rp-var-ta { min-height: 120px; }
.rp-pieces { border-top: 1px solid var(--line); padding-top: 18px; }
.rp-piece-l { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-piece { border: 1px solid rgba(43,87,230,.3); background: rgba(43,87,230,.06); color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; }
.rp-note { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 12px 0 0; }
/* ── Le Scanner · réglages du radar (fenêtre Apple) ── */
.rs-title { background: linear-gradient(90deg, #fff 40%, #b6b7bd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rs-body .rs-sec { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rs-body .rs-sec:first-child { padding-top: 6px; }
.rs-h { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 15px; }
.rs-h i { font-size: 11px; }
.rs-h b { display: block; font-size: 16px; font-weight: 650; }
.rs-h span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rs-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 8px 8px 15px; font-size: 13.5px; font-weight: 550; animation: rsChipIn .22s var(--ease-out); }
@keyframes rsChipIn { from { opacity: 0; transform: scale(.9); } }
.rs-chip button { background: rgba(255,255,255,.1); border: none; color: var(--muted); width: 20px; height: 20px; border-radius: 50%; font-size: 10px; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.rs-chip button:hover { background: #ff3b30; color: #fff; }
.rs-addwrap { position: relative; display: inline-flex; }
.rs-add { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: var(--text); font-family: var(--font); font-size: 13.5px; padding: 9px 16px; width: 210px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.rs-add::placeholder { color: var(--faint); }
.rs-add:focus { border-color: color-mix(in srgb, #2F80FF 60%, transparent); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px color-mix(in srgb, #2F80FF 14%, transparent); }
/* Autocomplétion façon Lemlist : panneau sous l'input, navigable au clavier */
.rs-drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; z-index: 40; background: #1b1b1e; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.55); display: none; max-height: 260px; overflow: auto; }
.rs-drop.open { display: block; animation: rsDropIn .16s var(--ease-out); }
@keyframes rsDropIn { from { opacity: 0; transform: translateY(-4px); } }
.rs-drop-i { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: var(--font); font-size: 13.5px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.rs-drop-i:hover, .rs-drop-i.on { background: color-mix(in srgb, #2F80FF 18%, transparent); }
.rs-sugg { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; min-height: 24px; }
.rs-sug { background: none; border: none; color: var(--faint); font-size: 12.5px; font-family: var(--font); cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: color .15s, background .15s; }
.rs-sug:hover { color: var(--text); background: var(--surface-2); }
.rs-sliders { display: flex; flex-direction: column; gap: 18px; }
.rs-slider-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 14.5px; font-weight: 550; }
.rs-slider-h b { font-family: var(--display); font-size: 18px; color: var(--flf); }
.rs-slider input[type="range"] { width: 100%; accent-color: #2F80FF; }
@media (max-width:760px){.op-row{flex-direction:column;align-items:flex-start}.op-side{width:100%;justify-content:flex-end}}

/* ============ LE CONSEILLER (fiscal · juridique · comptable) ============ */
.fx-schema{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;margin:10px 0 4px}
.fx-box{background:#16161a;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:18px 26px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:3px}
.fx-box b{font-family:var(--display);font-size:16px;letter-spacing:.04em}
.fx-box span{font-size:12px;color:var(--muted)}
.fx-box.fx-me{background:#f5f5f7}.fx-box.fx-me b{color:#1d1d1f}.fx-box.fx-me span{color:#6e6e73}
.fx-arrow{display:flex;flex-direction:column;justify-content:center;align-items:center;color:#2B57E6;font-size:22px;padding:0 4px}
.fx-arrow i{font-style:normal;font-size:11px;color:var(--muted);max-width:150px;text-align:center;line-height:1.35}
.fx-sec{margin:34px 0}
.fx-sec h2{font-size:23px;letter-spacing:-.01em;margin-bottom:14px}
.fx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.fx-card{text-align:left;background:var(--surface);border:1px solid rgba(255,255,255,.08);border-radius:22px;padding:22px;cursor:pointer;color:var(--text);display:flex;flex-direction:column;gap:8px;transition:transform .3s cubic-bezier(.16,1,.3,1),border-color .3s}
.fx-card:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.2)}
.fx-card-t{font-weight:700;font-size:16.5px}
.fx-card-b{font-size:13.5px;color:var(--muted);line-height:1.5}
.fx-card-go{font-size:13px;color:#2B57E6;margin-top:auto}
.fx-bebe{border-radius:26px;padding:34px 32px;margin:6px 0 10px;background:#f5f5f7}
.fx-bebe .r2-g-k{color:#b04a35}
.fx-bebe-t{font-size:clamp(20px,2.6vw,27px);font-weight:700;color:#1d1d1f;letter-spacing:-.015em;line-height:1.35;max-width:850px}
.fx-steps{display:grid;gap:10px}
.fx-step{display:flex;gap:14px;align-items:flex-start;background:var(--surface);border-radius:16px;padding:15px 18px}
.fx-n{font-family:var(--display);color:#2B57E6;font-size:15px;min-width:22px}
.fx-step p{margin:0;font-size:15px;line-height:1.55}
.fx-nums{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.fx-num{background:#16161a;border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:15px 18px;font-size:14px;line-height:1.5}
.fx-piege{background:rgba(43,87,230,.08);border:1px solid rgba(43,87,230,.3);border-radius:18px;padding:18px 22px;margin:26px 0 14px}
.fx-piege b{color:#6E90FF;font-size:13px;letter-spacing:.1em;text-transform:uppercase}
.fx-piege p{margin:8px 0 0;font-size:15px;line-height:1.55}
.fx-src{font-size:12.5px;line-height:1.5}
@media (max-width:760px){.fx-schema{flex-direction:column}.fx-arrow{transform:rotate(90deg);padding:8px 0}}

.fx-ask{display:flex;gap:10px;align-items:center}
.fx-ask .field{flex:1;margin:0}

.fx-hist{display:grid;gap:8px}
.fx-hq{text-align:left;background:var(--surface);border:1px solid rgba(255,255,255,.07);border-radius:14px;padding:13px 16px;color:var(--text);font-size:14px;cursor:pointer;display:flex;justify-content:space-between;gap:14px;align-items:center}
.fx-hq:hover{border-color:rgba(255,255,255,.18)}
.fx-hq i{font-style:normal;color:var(--muted);font-size:12px;white-space:nowrap}

/* ============ LE VOLANT (métriques d'input · playbook Amazon WBR) ============ */
.brief-volant{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:14px 0 4px;padding:14px 18px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);border-radius:16px}
.bv-k{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.bv-i{display:flex;align-items:baseline;gap:7px;background:none;border:0;color:var(--text);cursor:pointer;padding:0}
.bv-i b{font-family:var(--display);font-size:22px;color:#2B57E6}
.bv-i i{font-style:normal;font-size:13px;color:var(--muted)}
.bv-note{margin-left:auto;font-size:12.5px;color:var(--muted)}
@media (max-width:700px){.bv-note{margin-left:0;width:100%}}

/* ============================================================
   BARRE D'ONGLETS BAS · vraie app mobile (iOS/apple).
   Visible sur mobile ET dans l'app installée (standalone).
   ============================================================ */
/* Feuille « Plus » de la barre mobile · tout le portail */
.mtab-sheet { position: fixed; inset: 0; z-index: 320; opacity: 0; transition: opacity .22s ease; }
.mtab-sheet.on { opacity: 1; }
.mts-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mts-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 76vh; overflow-y: auto; background: #131315; border-radius: 24px 24px 0 0; padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .26s cubic-bezier(.22,1,.36,1); }
.mtab-sheet.on .mts-panel { transform: none; }
.mts-grip { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); margin: 4px auto 16px; }
.mts-g { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); }
.mts-g:first-of-type { border-top: none; }
.mts-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.mts-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mts-i { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--text); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 550; cursor: pointer; font-family: var(--font); }
.mts-i:active { background: rgba(255,255,255,.14); }
.mtab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; align-items: stretch; justify-content: space-around; gap: 2px; padding: 9px 6px calc(9px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-top: 1px solid var(--line-2); }
.mtab-b { flex: 1; background: none; border: none; color: var(--faint); font: 500 10.5px/1.2 var(--font); letter-spacing: .01em; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; cursor: pointer; transition: color .2s, transform .2s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.mtab-b svg { width: 23px; height: 23px; }
.mtab-b.on { color: var(--flf); }
.mtab-b:active { transform: scale(.92); }
@media (max-width: 720px), (display-mode: standalone) { .mtab { display: flex; } #view { padding-bottom: 92px; } }

/* Mobile · le héros et le header pensés pour le téléphone (fini le bureau rétréci) */
@media (max-width: 720px) {
  .cine-hero { min-height: 72vh; padding: 36px 0 28px; }
  .cine-hero .ch-title { font-size: clamp(28px, 8.4vw, 46px); line-height: 1.04; max-width: 100%; }
  .cine-hero .ch-sub { font-size: 16px; }
  .cine-hero .ch-eyebrow { font-size: 11px; letter-spacing: .18em; }
  header.topbar .client-name { display: none; }
  .navbar { display: none; }   /* sur mobile, la barre d'onglets du bas remplace le menu du haut */
}

/* Mobile · derniers ajustements : titre qui tient pile, pion R2 remonté au-dessus de la barre d'onglets */
@media (max-width: 720px) {
  .cine-hero .ch-title { font-size: clamp(25px, 7.2vw, 42px); }
  #r2Pill { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  #r2Panel { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); }
}

/* Bibliothèque de mails prêts (espace client admin) */
.mlib { display: flex; flex-direction: column; gap: 10px; }
.mlib-row { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 20px; cursor: pointer; color: var(--text); transition: border-color .2s, transform .2s var(--ease-out), background .2s; }
.mlib-row:hover { border-color: var(--flf); transform: translateY(-2px); }
.mlib-tx { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.mlib-tx b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.mlib-tx i { font-size: 13.5px; font-style: normal; color: var(--muted); }
.mlib-go { color: var(--flf); font-size: 20px; flex: none; }

/* ============================================================
   ACCUEIL APPLE · bandes plein cadre, une idée par écran.
   Majorité NOIR + accents vraiment BLANCS (inverse d'apple.fr, ADN cinéma).
   ============================================================ */
.ac-band { padding: clamp(46px,8vh,92px) 24px; text-align: center; border-radius: 26px; margin: 12px 0; background: var(--bg); }
.ac-band.ac-white { background: #fff; }
.ac-band.ac-white .ac-figure, .ac-band.ac-white .ac-cap { color: #1d1d1f; }
.ac-band.ac-white .ac-note { color: #6e6e73; }
.ac-in { max-width: 680px; margin: 0 auto; }
.ac-eyebrow { display: block; font: 600 12px/1.3 var(--font); letter-spacing: .13em; text-transform: uppercase; color: var(--flf); margin-bottom: 16px; }
.ac-figure { font: 700 clamp(38px,5.4vw,66px)/1 var(--font); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; cursor: pointer; }
.ac-cap { font: 600 clamp(16px,1.9vw,23px)/1.25 var(--font); letter-spacing: -.02em; color: var(--text); margin-top: 10px; }
.ac-note { font: 400 clamp(15px,1.6vw,18px)/1.5 var(--font); color: var(--muted); max-width: 42ch; margin: 16px auto 0; }
.ac-fold-band { margin: 22px 0; }
@media (max-width: 640px) { .ac-band { border-radius: 22px; padding: 56px 18px; } }

/* Bande showreel · la vidéo qui joue en plein cadre (remplace la photo statique) */
.wclocks { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin: 0 0 14px; padding: 2px 2px 12px; border-bottom: 1px solid var(--line); }
.wc { display: flex; align-items: center; gap: 8px; }
.wc-city { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.wc-time { font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.wc.here .wc-city { color: var(--accent, #2B57E6); }
.wc-dn { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.wc-dn.day { background: var(--accent, #2B57E6); }
.wc-dn.night { background: transparent; border: 1px solid var(--faint); }
.day-quote { position: relative; margin: 0 0 18px; padding: 2px 40px 2px 2px; }
.day-quote .dq-eyebrow { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.day-quote .dq-t { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 27px); line-height: 1.32; color: var(--text); margin: 0 0 6px; letter-spacing: -.01em; }
.day-quote .dq-a { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.day-quote .dq-a::before { content: "— "; }
.dq-more { position: absolute; top: 0; right: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; transition: .15s var(--ease-out); }
.dq-more:hover { color: var(--accent, #2B57E6); border-color: var(--accent, #2B57E6); transform: rotate(90deg); }
.ac-reel { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 26px; overflow: hidden; margin: 16px 0; background: #000; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.ac-reel iframe, .ac-reel video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.ac-reel-label { position: absolute; left: 22px; bottom: 18px; z-index: 2; font: 700 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #fff; pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.55); }

/* Mission 2026 recomposé apple : le grand chiffre centré, éléments contenus et aérés */
.war-table .bg-bar { max-width: 520px; margin: 20px auto 0; }
.war-table .wt-pace, .war-table .wt-sub { margin-left: auto; margin-right: auto; max-width: 640px; }
.war-table .wt-row { max-width: 780px; margin: 24px auto 0; }
.war-table .wt-e2 { max-width: 780px; margin-left: auto; margin-right: auto; }
.wt-pct { margin: 0 auto; }

/* Mission 2026 · fini les écritures minuscules : on retire les sous-montants $ et on agrandit les libellés */
.war-table .wt-usd { display: none; }
.war-table .wt-stat span { font-size: 13px; letter-spacing: .04em; }
.war-table .wt-pace { font-size: 14.5px; line-height: 1.5; margin-top: 6px; }
.war-table .wt-e2-k, .war-table .wt-e2-deadline { font-size: 13px; }
.war-table .wt-e2-sub { font-size: 14.5px; }

/* ============================================================
   ACCUEIL · bento de tuiles façon page d'accueil apple.fr.
   Tuiles qui alternent noir / blanc, chacune une idée, gros chiffre,
   coins arrondis, animées à l'arrivée. (Propre à l'accueil, pas la compta.)
   ============================================================ */
.abento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 18px 0; }
.abento-tile { animation: clxUp .6s cubic-bezier(.16,1,.3,1) both; }
.abento-tile:nth-child(1){animation-delay:.02s}.abento-tile:nth-child(2){animation-delay:.07s}.abento-tile:nth-child(3){animation-delay:.12s}.abento-tile:nth-child(4){animation-delay:.17s}.abento-tile:nth-child(5){animation-delay:.22s}.abento-tile:nth-child(6){animation-delay:.27s}.abento-tile:nth-child(n+7){animation-delay:.32s}
@media (prefers-reduced-motion: reduce) { .abento-tile { animation: none; } }
.abento-tile { border-radius: 28px; padding: clamp(34px,3.6vw,58px) clamp(24px,3vw,44px); min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #0c0c0e; color: #f5f5f7; border: 1px solid rgba(255,255,255,.06); cursor: pointer; transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .25s; overflow: hidden; }
.abento-tile:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.abento-tile.white { background: #f5f5f7; color: #1d1d1f; border-color: rgba(0,0,0,.06); }
.abento-tile.wide { grid-column: 1 / -1; min-height: auto; }
.abento-eyebrow { font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--flf); margin-bottom: 16px; }
.abento-h { font: 700 clamp(23px,2.4vw,34px)/1.08 var(--font); letter-spacing: -.02em; margin: 0 0 4px; }
.abento-fig { font: 700 clamp(42px,5.4vw,76px)/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 4px 0; }
.abento-sub { font: 400 15.5px/1.45 var(--font); opacity: .66; margin-top: 6px; max-width: 34ch; }
.abento-link { margin-top: 18px; color: var(--flf); font: 600 15px/1 var(--font); }
.abento-tile.white .abento-eyebrow, .abento-tile.white .abento-link { color: #c0432f; }
.abento-reel { grid-column: 1 / -1; }
@media (max-width: 720px) { .abento { grid-template-columns: 1fr; gap: 12px; } .abento-tile { min-height: 240px; } }

/* En-têtes de section de l'accueil, façon apple : grand titre aéré + eyebrow */
.ac-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 68px 0 26px; }
.ac-sec-title { font: 700 clamp(28px,3.4vw,44px)/1.05 var(--font); letter-spacing: -.025em; color: var(--text); margin: 6px 0 0; }
.ac-sec-head .ac-eyebrow { margin-bottom: 0; }

/* Débrief du soir + Mes réserves : alignés au bento apple (mêmes cartes sombres arrondies, aérées) */
.debrief { background: #0c0c0e; border: 1px solid rgba(255,255,255,.06); border-radius: 28px; padding: 34px 38px; margin: 16px 0; }
.fold-t { background: #0c0c0e; border: 1px solid rgba(255,255,255,.06); border-radius: 22px; padding: 20px 24px; font-size: 15px; }
.fold-t:hover { background: #131316; border-color: rgba(255,255,255,.16); }
.tax-env { background: #0c0c0e; border: 1px solid rgba(255,255,255,.06); border-radius: 22px; }

/* Débrief du soir · vrai moment bien-être : ciel de nuit doux, humeurs vivantes */
.debrief.db-zen { position: relative; overflow: hidden; text-align: center; background: radial-gradient(120% 90% at 50% -10%, rgba(138,116,255,.14), transparent 55%), linear-gradient(180deg, #0e0d16, #0a0a0c); border: 1px solid rgba(255,255,255,.07); border-radius: 30px; padding: clamp(38px,5vw,64px) clamp(24px,4vw,52px); }
.db-glow { position: absolute; inset: 0; background: radial-gradient(50% 42% at 50% 0%, rgba(43,87,230,.10), transparent 60%); pointer-events: none; }
.db-zen .db-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 32px; }
.db-moon-lg { font-size: 42px; margin-bottom: 6px; filter: drop-shadow(0 0 22px rgba(138,116,255,.42)); animation: dbFloat 5s ease-in-out infinite; }
@keyframes dbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.db-zen .db-eyebrow { font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--flf); }
.db-zen h3 { font: 600 clamp(23px,2.7vw,33px)/1.2 var(--font); letter-spacing: -.02em; color: #f5f5f7; margin: 8px 0 0; }
.db-zen .db-sub { font: 400 15px/1.45 var(--font); color: rgba(255,255,255,.5); max-width: 40ch; }
.db-zen .db-streak { font: 500 13px/1 var(--font); color: #c9b8ff; }
.db-zen .db-moods { display: flex; justify-content: center; gap: clamp(8px,1.8vw,20px); flex-wrap: wrap; margin: 0 auto 32px; }
.db-zen .db-mood { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; opacity: .5; transition: opacity .25s, transform .25s var(--ease); }
.db-mood-e { font-size: clamp(28px,3.6vw,40px); width: clamp(58px,7vw,76px); height: clamp(58px,7vw,76px); display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--ease), background .25s, box-shadow .35s, border-color .25s; }
.db-mood-l { font: 500 12.5px/1 var(--font); color: rgba(255,255,255,.6); }
.db-zen .db-mood:hover { opacity: .9; }
.db-zen .db-mood:hover .db-mood-e { transform: translateY(-3px); }
.db-zen .db-mood.on { opacity: 1; }
.db-zen .db-mood.on .db-mood-e { background: rgba(43,87,230,.16); border-color: rgba(43,87,230,.5); transform: scale(1.12); box-shadow: 0 0 30px rgba(43,87,230,.3); }
.db-zen .db-mood.on .db-mood-l { color: #f5f5f7; }
.db-zen .db-f { display: block; max-width: 520px; margin: 0 auto 14px; text-align: left; }
.db-zen .db-f span { display: block; font: 500 13px/1.4 var(--font); color: rgba(255,255,255,.6); margin-bottom: 8px; }
.db-zen .db-f i { color: rgba(255,255,255,.35); font-style: normal; }
.db-zen .db-f .field { border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); padding: 15px 18px; }
.db-zen .db-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.db-zen .db-cta { border-radius: 980px; padding: 14px 36px; font-size: 16px; }

/* Bouton réduire du débrief + état réduit apple */
.db-reduce { position: absolute; top: 18px; right: 20px; z-index: 3; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; transition: background .2s, color .2s; }
.db-reduce:hover { background: rgba(255,255,255,.12); color: #fff; }
.debrief.slim { background: #0c0c0e; border: 1px solid rgba(255,255,255,.06); border-radius: 22px; padding: 20px 24px; }

/* Mes réserves · plus apple : carte arrondie, contenu aéré, chiffres lisibles */
.film-bridge { background: #0c0c0e; border: 1px solid rgba(255,255,255,.06); border-radius: 24px; padding: clamp(24px,3vw,36px); }
.fb-line { font-size: 15px; line-height: 1.55; }
.fb-pot { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 18px 20px; }
.fb-pot-v b { font-size: 19px; }
.tax-env { padding: 20px 24px; }

/* Mes réserves · textes agrandis, lisibles (fini le petit) */
.film-bridge .fb-line { font-size: 16.5px; line-height: 1.55; }
.film-bridge .fb-pot-h { font-size: 12px; }
.film-bridge .fb-pot-v { font-size: 14.5px; }
.film-bridge .fb-pot-v b { font-size: 20px; }
.tax-env .tax-main b { font-size: 17px; }
.tax-env .tax-main span { font-size: 15px; line-height: 1.5; }
.tax-env .tax-pot span { font-size: 12px; }
.tax-env .tax-pot b { font-size: 19px; }

/* PLANCHER APPLE · le corps de texte "normal" ne descend jamais sous 17px (base de lecture apple.com).
   Les eyebrows/labels en capitales restent ~12px, comme chez eux. */
.abento-sub { font-size: 17px; }
.film-bridge .fb-line { font-size: 17px; }
.tax-env .tax-main span { font-size: 17px; line-height: 1.5; }
.db-zen .db-sub { font-size: 17px; }
.fx-note { font-size: clamp(17px, 1.7vw, 19px); }
.ac-note { font-size: clamp(17px, 1.6vw, 18px); }
.lw-card-c { font-size: 15.5px; }

/* Espace bien-être · courbe du moral + outils (sobre, apaisant) */
.r2-curve { background: #0c0c0e; border: 1px solid rgba(255,255,255,.06); border-radius: 24px; padding: clamp(22px,3vw,32px); margin: 18px 0; }
.r2-curve-h { font: 600 12px/1 var(--font); letter-spacing: .13em; text-transform: uppercase; color: var(--flf); margin-bottom: 18px; }
.r2-curve-svg { width: 100%; height: 120px; display: block; overflow: visible; }
.r2-curve-legend { margin-top: 14px; font: 400 15px/1.5 var(--font); color: var(--muted); }
.r2-curve-legend b { color: var(--text); }
.r2-curve-warn { color: #e8c268; }
.r2-curve-empty { background: #0c0c0e; border: 1px solid rgba(255,255,255,.06); border-radius: 24px; padding: 28px; margin: 18px 0; text-align: center; font: 400 16px/1.5 var(--font); color: var(--muted); }
.r2-tool .pdlg-f span { font-size: 14px; color: var(--muted); }
.r2-sc-intro { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.r2-sc-line { font: 400 clamp(18px,2vw,22px)/1.5 var(--serif); font-style: italic; color: var(--text); margin: 10px 0; }

/* ===== KIT VITRINE "iPhone 17 Pro" · page-histoire cinématique (hero plein cadre, bandes alternées, chiffres géants, scroll) ===== */
.shf { --shf-ink:#f5f5f7; }
.shf-hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; border-radius: 0; }
.shf-hero video, .shf-hero .shf-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.5) saturate(.85) contrast(1.05); transform: scale(1.05); animation: shfKen 22s ease-in-out infinite alternate; }
@keyframes shfKen { to { transform: scale(1.16); } }
.shf-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(0,0,0,.55) 100%), linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.7)); }
.shf-eyebrow { font-size: clamp(12px,1.4vw,15px); letter-spacing: .26em; text-transform: uppercase; font-weight: 700; color: #2B57E6; margin: 0 0 18px; }
.shf-title { font-family: var(--display, -apple-system); font-size: clamp(52px, 10vw, 150px); font-weight: 800; letter-spacing: -.035em; line-height: .92; color: #fff; margin: 0; text-shadow: 0 8px 60px rgba(0,0,0,.5); }
.shf-sub { font-size: clamp(18px,2.2vw,27px); color: rgba(255,255,255,.86); max-width: 20ch; margin: 22px auto 0; line-height: 1.35; font-weight: 400; }
.shf-cta { display: inline-flex; gap: 12px; margin-top: 34px; }
.shf-pill { background: #fff; color: #0a0a0b; border: none; border-radius: 999px; padding: 15px 30px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; transition: transform .15s; }
.shf-pill:hover { transform: translateY(-2px); }
.shf-pill.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
/* bandes alternées, une idée par écran, révélées au scroll */
.shf-band { padding: clamp(80px,12vh,160px) 6vw; text-align: center; }
.shf-band.dark { background: #000; color: #f5f5f7; }
.shf-band.light { background: #f5f5f7; color: #1d1d1f; }
.shf-band.ink { background: #0a0a0b; color: #f5f5f7; }
.shf-band h2 { font-family: var(--display, -apple-system); font-size: clamp(34px,5.2vw,68px); font-weight: 750; letter-spacing: -.03em; line-height: 1.02; margin: 0 auto; max-width: 16ch; }
.shf-band p { font-size: clamp(17px,2vw,23px); line-height: 1.5; max-width: 40ch; margin: 22px auto 0; opacity: .82; }
.shf-band .shf-media { margin: 44px auto 0; max-width: 1000px; border-radius: 24px; overflow: hidden; aspect-ratio: 16/9; background:#000; box-shadow: 0 40px 100px -40px rgba(0,0,0,.7); }
.shf-band .shf-media img, .shf-band .shf-media iframe, .shf-band .shf-media video { width:100%; height:100%; object-fit: cover; border:0; display:block; }
/* bande de chiffres géants */
.shf-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
@media (max-width:760px){ .shf-stats { grid-template-columns: 1fr; gap: 30px; } }
.shf-stat b { display: block; font-family: var(--display,-apple-system); font-size: clamp(46px,7vw,92px); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: linear-gradient(180deg,#fff,#9a9aa0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.shf-band.light .shf-stat b { background: linear-gradient(180deg,#1d1d1f,#6e6e73); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.shf-stat span { display: block; margin-top: 12px; font-size: 15px; opacity: .7; }
/* grille de films plein cadre */
.shf-films { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 1100px; margin: 44px auto 0; }
@media (max-width:760px){ .shf-films { grid-template-columns: 1fr; } }
.shf-film { position: relative; aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; cursor: pointer; background:#111; }
.shf-film img { width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease-out,ease); }
.shf-film:hover img { transform: scale(1.06); }
.shf-film span { position: absolute; left: 16px; bottom: 14px; color:#fff; font-weight:650; font-size:15px; text-shadow:0 2px 12px rgba(0,0,0,.6); z-index:1; }
.shf-film::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg,transparent 45%,rgba(0,0,0,.6)); }

/* Héros cinéma COMPACT (outils : garder le contenu visible, pas 92vh) */
.shf-hero-sm { min-height: 42vh; border-radius: 26px; margin: 8px 0 0; }
.shf-hero-sm .shf-title, .shf-title-sm { font-size: clamp(40px, 6.4vw, 88px); }
.shf-hero-sm .shf-sub { font-size: clamp(16px, 1.7vw, 20px); max-width: 34ch; }

/* Pages de travail : le grain reste (ADN cinéma) mais NE BOUGE PLUS — fini le scintillement en arrière-plan */
.sp-page.lux::before, .sp-modal.lux::before, .sx-page.lux::before { animation: none; opacity: .05; }
.soc-lc-live { font-size: 12.5px; color: #2ecc71; margin-top: 5px; }
.soc-lc-live a { color: #2ecc71; text-decoration: underline; text-underline-offset: 3px; }
.spp-mode { display: inline-flex; align-items: center; justify-content: center; }

/* ═══ Composer social niveau Metricool : GÉANT, aéré, repliable ═══ */
.sp-page { max-width: 1560px; margin: 0 auto; }
.sp-page .sp-2col { gap: 64px; }
.sp-mhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.sp-mhead > .btn { flex: none; width: auto; padding: 13px 24px; font-size: 15px; margin-top: 10px; }
details.sp-sec > summary { list-style: none; cursor: pointer; user-select: none; }
details.sp-sec > summary::-webkit-details-marker { display: none; }
details.sp-sec > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 1.7px solid var(--muted); border-bottom: 1.7px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .28s var(--ease); }
details.sp-sec[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.sp-sec:not([open]) { padding-bottom: 30px; }
details.sp-sec > summary.sp-sec-h { margin-bottom: 0; }
details.sp-sec[open] > summary.sp-sec-h { margin-bottom: 22px; }
/* Bannières vérité du média (façon « 1 erreur / 1 avertissement ») */
.spb { border-radius: 16px; padding: 16px 20px; margin-top: 16px; font-size: 14px; line-height: 1.6; }
.spb b { display: block; margin-bottom: 6px; font-size: 14.5px; }
.spb-err { background: rgba(255,90,60,.09); border: 1px solid rgba(255,90,60,.38); color: #ffb0a3; }
.spb-err b { color: #ff6b60; }
.spb-warn { background: rgba(255,184,77,.08); border: 1px solid rgba(255,184,77,.32); color: #ecd0a0; }
.spb-warn b { color: #ffb84d; }
details.spx-wrap > summary { cursor: pointer; list-style: none; user-select: none; display: flex; align-items: center; gap: 10px; }
details.spx-wrap > summary::-webkit-details-marker { display: none; }
details.spx-wrap > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg); transition: transform .25s var(--ease); }
details.spx-wrap[open] > summary::after { transform: rotate(-135deg); }
details.spx-wrap > summary + .spx { margin-top: 14px; }
/* L'aperçu, la vraie star : plus grand */
.sp-page .spp-media.vert { max-height: 600px; }
.sp-page .sp-side { top: 24px; }
@media (max-width: 860px) { .sp-mhead { flex-direction: column-reverse; } }

/* ═══ Composer « exactement Metricool » : carte d'écriture géante, accordéons, barre du bas, aperçu à droite ═══ */
.spm { max-width: 1560px; margin: 0 auto; }
.spm-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 26px; }
.spm-head h1 { font: 700 clamp(24px,2.4vw,32px)/1.1 var(--font); letter-spacing: -.02em; margin: 0; }
.spm-close { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 10px 14px; border-radius: 10px; }
.spm-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.spm-navr { display: flex; align-items: center; gap: 6px; }
.spm-navb { background: none; border: 1px solid var(--line-2, rgba(255,255,255,.14)); color: var(--muted); font-size: 14px; cursor: pointer; padding: 9px 15px; border-radius: 10px; font-family: var(--font); transition: color .15s, background .15s, border-color .15s; }
.spm-navb:hover { color: var(--text); background: rgba(255,255,255,.06); border-color: var(--line-2, rgba(255,255,255,.24)); }
.spm-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.spm-left { min-width: 0; }
/* LA carte de composition */
.spm-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.spm-nets { margin: 0; }
.spm .soc-pl { padding: 10px 18px; font-size: 14px; border-radius: 999px; }
.spm-client { width: auto !important; max-width: 340px; font-size: 13.5px !important; padding: 10px 14px !important; border-radius: 10px !important; text-align: left; }
.spm .sp-types { margin-top: 12px; }
.spm .sp-conn { margin-top: 10px; }
.spm-writer { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); overflow: hidden; }
.spm-cap { display: block; width: 100%; min-height: 220px; padding: 20px 22px; background: transparent; border: none; outline: none; resize: vertical; color: var(--text); font: 400 16.5px/1.6 var(--font); }
.spm-cap::placeholder { color: var(--faint); }
.spm-strip { padding: 0 22px; }
.spm-thumb { position: relative; display: inline-block; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 12px; }
.spm-thumb img, .spm-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.spm-thumb-x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; cursor: pointer; display: grid; place-items: center; }
.spm-toolbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line); }
.spm-ic { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--muted); padding: 9px 11px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.spm-ic:hover { color: var(--text); background: rgba(255,255,255,.06); }
.spm-ai { color: var(--flf); }
.spm-toolbar .sp-counts { margin: 0; }
/* Accordéons de configuration (cartes repliables) */
.spm-acc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; margin-top: 16px; overflow: hidden; }
.spm-acc > summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-size: 15.5px; font-weight: 650; color: var(--text); }
.spm-acc > summary::-webkit-details-marker { display: none; }
.spm-acc > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-135deg); transition: transform .25s var(--ease); }
.spm-acc[open] > summary::after { transform: rotate(45deg); }
.spm-acc-body { padding: 4px 22px 22px; }
.spm .sp-adv { margin-top: 16px; }
.spm .sp-adv-det { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.spm .sp-adv-det > summary { padding: 18px 0; font-size: 15.5px; font-weight: 650; }
.spm .spb, .spm .spx-wrap { margin-top: 16px; }
/* Barre du bas façon Metricool : Annuler … date · Publier maintenant · Programmer */
.spm-foot { position: static; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; padding: 16px 0 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 1px solid var(--line-2); }
.spm-draftline { margin-top: 14px; font-size: 13px; }
.spm-draftline:empty { display: none; }
.spm-foot .btn { width: auto; flex: none; padding: 11px 14px; font-size: 14px; }
.spm-when #spDate { width: 128px; } .spm-when #spTime { width: 80px; }
.spm-foot .btn.approve { width: auto; flex: none; }
.spm-when { display: flex; align-items: center; }
.spm-when .field { width: auto; padding: 10px 10px; font-size: 13px; border-radius: 10px; }
.spm-when { gap: 6px; }
/* Aperçu à droite : zone distincte + note */
.spm-right { position: sticky; top: 16px; }
.spm-note { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: rgba(127,180,255,.07); border: 1px solid rgba(127,180,255,.22); color: var(--muted); font-size: 13px; line-height: 1.55; }
.spm .spp-media.vert { max-height: 600px; }
@media (max-width: 960px) { .spm-body { grid-template-columns: 1fr; } .spm-right { position: static; order: -1; } }
/* Le composer prend toute la largeur, comme le modal plein écran de Metricool */
#view:has(.spm) { max-width: 1560px; }

/* Rangée réseaux façon Metricool : icône ronde + type attaché + « + » */
.spm-nets { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.spm-net { display: flex; align-items: center; gap: 7px; }
.spm-netic { width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; background: var(--pc, #666); color: #fff; transition: transform .15s var(--ease), opacity .2s; }
.spm-netic svg { width: 22px; height: 22px; }
.spm-netic:hover { transform: scale(1.06); }
.spm-net.on .spm-netic { box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.spm-type { appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text); font: 600 11.5px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 8px 26px 8px 12px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.spm-type-solo { background-image: none; padding: 8px 12px; color: var(--muted); cursor: default; }
.spm-netadd { width: 42px; height: 42px; border-radius: 50%; border: 1px dashed var(--line-2); background: none; color: var(--muted); font-size: 22px; font-weight: 300; cursor: pointer; display: grid; place-items: center; }
.spm-netadd:hover { color: var(--text); border-color: var(--muted); }
/* Onglets d'aperçu = icônes rondes */
.spp-tab-ic { width: 36px; height: 36px; border-radius: 50% !important; padding: 0 !important; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
.spp-tab-ic svg { width: 18px; height: 18px; }
.spp-tab-ic.on { background: var(--pc, #666); color: #fff; border-color: transparent; }
/* Mockup Reels : rail d'icônes + pied handle/audio, comme le vrai Instagram */
.spp-media { position: relative; }
.spp-reel-rail { position: absolute; right: 12px; bottom: 58px; display: flex; flex-direction: column; gap: 16px; color: #fff; z-index: 2; }
.spp-reel-rail span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.spp-reel-foot { position: absolute; left: 14px; right: 60px; bottom: 14px; color: #fff; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.spp-reel-foot b { display: block; font-size: 13.5px; margin-bottom: 5px; }
.spp-reel-foot span { display: inline-block; font-size: 12px; opacity: .9; background: rgba(0,0,0,.35); border-radius: 999px; padding: 4px 10px; }
/* Le planning social aussi en PLEINE PAGE, comme Metricool */
#view:has(.soc-bar), #view:has(.soc-hub-grid) { max-width: 1560px; }
.spm .spp-media.vert { min-height: 460px; background: #000; }

/* ═══ Analytics façon Metricool Evolution : GRAND, lisible, aéré, par réseau ═══ */
#view:has(.sa-wrap) { max-width: 1560px; }
.sa2-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sa2-tab { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 11px 22px; font-size: 14.5px; font-weight: 650; cursor: pointer; transition: all .18s var(--ease); }
.sa2-tab.on { background: var(--text); color: #000; border-color: transparent; }
.sa2-tab-ic { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
.sa2-tab-ic svg { width: 21px; height: 21px; }
.sa2-tab-ic.on { background: var(--pc, #666); color: #fff; }
.sa2 { margin-top: 44px; }
.sa2-head { margin-bottom: 36px; }
.sa2-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.sa2-h2 { font: 750 clamp(34px,3.6vw,52px)/1.03 var(--display); letter-spacing: -.025em; margin: 0 0 10px; color: var(--text); }
.sa2-handle { color: var(--muted); font-size: 15.5px; }
/* Les 4 grandes cartes chiffres (leurs cartes violette/verte/jaune, version FLF sobre) */
.sa2-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 44px; }
.sa2-big { border-radius: 22px; padding: 34px 30px; border: 1px solid var(--line); }
.sa2-big b { display: block; font: 750 clamp(38px,3.4vw,54px)/1 var(--font); letter-spacing: -.03em; color: var(--text); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.sa2-big span { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.sa2-c1 { background: rgba(127,140,255,.10); border-color: rgba(127,140,255,.28); }
.sa2-c2 { background: rgba(53,214,158,.08); border-color: rgba(53,214,158,.24); }
.sa2-c3 { background: rgba(232,194,104,.08); border-color: rgba(232,194,104,.24); }
.sa2-c4 { background: rgba(43,87,230,.08); border-color: rgba(43,87,230,.26); }
.sa2 .sa-chart { margin-bottom: 44px; }
/* Rangée de petites cartes (leur ligne -4 Abonnés / -0,13 quotidiens…) */
.sa2-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 44px; }
.sa2-mini { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; text-align: center; }
.sa2-mini b { display: block; font: 700 26px/1 var(--font); color: var(--text); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.sa2-mini span { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .sa2-hero { grid-template-columns: 1fr; } }

/* ═══ Le Squelette · l'ADN visible et modifiable ═══ */
.dna-meta { color: var(--muted); font-size: 13.5px; margin: 0 0 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dna-meta b { color: var(--text); font-size: 15px; }
.dna-src { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; color: var(--sc, #9aa0a6); border: 1px solid color-mix(in srgb, var(--sc, #9aa0a6) 45%, transparent); background: color-mix(in srgb, var(--sc, #9aa0a6) 9%, transparent); }
.dna-sec { border-top: 1px solid var(--line); padding: 0 2px; }
.dna-sec > summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: baseline; gap: 14px; padding: 24px 0; }
.dna-sec > summary::-webkit-details-marker { display: none; }
.dna-sec > summary b { font-family: var(--display); font-size: clamp(19px, 2vw, 24px); font-weight: 750; letter-spacing: -.02em; color: var(--text); }
.dna-sec-d { color: var(--muted); font-size: 13.5px; flex: 1; }
.dna-count { color: var(--faint); font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.dna-sec > summary::after { content: ""; width: 9px; height: 9px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); flex: none; align-self: center; }
.dna-sec[open] > summary::after { transform: rotate(-135deg); }
.dna-items { padding: 0 0 28px; display: grid; gap: 14px; }
.dna-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.dna-l { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.dna-label { font-size: 14px; font-weight: 700; color: var(--text); }
.dna-v { display: block; width: 100%; background: transparent; border: none; outline: none; resize: none; overflow: hidden; color: var(--muted); font: 400 14.5px/1.6 var(--font); }
.dna-v:focus { color: var(--text); }
.dna-items > .btn { justify-self: start; width: auto; }
/* Plan du jour · carte nuit : la journée est close, rien ne se programme la nuit */
.pj-night-body { padding: 4px 2px 6px; }
.pj-night-body p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; max-width: 62ch; }
.pj-night-body b { color: var(--text); }

/* ═══ PARAMÈTRES · façon Réglages Apple : sidebar sections + questions + CRUD ═══ */
.prm-prog { display: flex; align-items: center; gap: 16px; margin: 6px 0 40px; }
.prm-prog-bar { flex: 1; max-width: 340px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.prm-prog-bar i { display: block; height: 100%; border-radius: 99px; background: var(--text); transition: width .6s var(--ease); }
.prm-prog span { color: var(--muted); font-size: 13.5px; }
.prm-prog b { color: var(--text); }
.prm-wrap { display: grid; grid-template-columns: 270px 1fr; gap: 48px; align-items: start; }
.prm-side { position: sticky; top: 18px; display: grid; gap: 4px; }
.prm-nav { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: none; background: none; border-radius: 14px; cursor: pointer; text-align: left; color: var(--muted); font: 500 14.5px/1 var(--font); transition: background .15s; }
.prm-nav:hover { background: rgba(255,255,255,.05); }
.prm-nav.on { background: rgba(255,255,255,.09); color: var(--text); font-weight: 650; }
.prm-nav i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 13px; font-weight: 700; flex: none; }
.prm-nav span { flex: 1; }
.prm-nav em { font-style: normal; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.prm-sect { font: 750 clamp(24px,2.4vw,32px)/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 26px; }
.prm-q { margin-bottom: 34px; }
.prm-qh { display: flex; align-items: baseline; gap: 10px; }
.prm-qh b { font-size: 16.5px; font-weight: 650; color: var(--text); letter-spacing: -.01em; }
.prm-help { color: var(--faint); font-size: 13px; line-height: 1.5; margin: 4px 0 0; max-width: 60ch; }
.prm-q .prm-row:first-of-type, .prm-list { margin-top: 12px; }
.prm-list { display: grid; gap: 8px; }
.prm-row { display: flex; align-items: flex-start; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; transition: border-color .15s; }
.prm-row:focus-within { border-color: rgba(255,255,255,.25); }
.prm-it { flex: 1; background: transparent; border: none; outline: none; resize: none; overflow: hidden; color: var(--text); font: 400 14.5px/1.55 var(--font); min-height: 22px; }
.prm-it::placeholder { color: var(--faint); }
.prm-src { flex: none; align-self: center; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; color: var(--sc, #9aa0a6); border: 1px solid color-mix(in srgb, var(--sc, #9aa0a6) 40%, transparent); opacity: .85; }
.prm-x { flex: none; align-self: center; width: 24px; height: 24px; border-radius: 50%; border: none; background: none; color: var(--faint); font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.prm-row:hover .prm-x, .prm-qh:hover .prm-x { opacity: 1; }
.prm-x:hover { color: #ff6b60; background: rgba(255,90,60,.1); }
.prm-add { border: 1px dashed var(--line-2); background: none; color: var(--muted); border-radius: 14px; padding: 11px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.prm-add:hover { color: var(--text); border-color: var(--muted); }
.prm-addq { margin-top: 8px; border: 1px dashed var(--line-2); background: none; color: var(--muted); border-radius: 14px; padding: 14px 20px; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; text-align: left; }
.prm-addq:hover { color: var(--text); border-color: var(--muted); }
.prm-q.todo .prm-qh b::after { content: "à répondre"; margin-left: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: #e8c268; border: 1px solid rgba(232,194,104,.4); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
@media (max-width: 860px) { .prm-wrap { grid-template-columns: 1fr; } .prm-side { position: static; display: flex; overflow-x: auto; } .prm-nav span { white-space: nowrap; } }
/* Paramètres · barre d'actions, socle de données, propositions d'import */
.prm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 40px; }
.prm-top .prm-prog { margin: 0; flex: 1; }
.prm-actions { display: flex; gap: 8px; }
.prm-actions .btn { width: auto; }
.prm-sep { height: 1px; background: var(--line); margin: 10px 6px; }
.prm-dom { margin-bottom: 34px; }
.prm-dom h3 { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.prm-drow { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 8px; }
.prm-dmain { flex: 1; min-width: 0; }
.prm-dmain b { display: block; font-size: 14px; font-weight: 650; color: var(--text); margin-bottom: 3px; }
.prm-dmain span { font-size: 12.5px; color: var(--faint); }
.prm-state { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; color: var(--sc); border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent); background: color-mix(in srgb, var(--sc) 9%, transparent); }
.pi-prop { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; margin-bottom: 8px; cursor: pointer; }
.pi-prop input { margin-top: 3px; accent-color: #2B57E6; }
.pi-prop b { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.pi-prop span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pi-prop i { display: block; font-size: 11.5px; color: #e8c268; font-style: normal; margin-top: 4px; }
/* Le référentiel de données · domaines repliables, lignes techniques, valeurs éditables */
.prm-meta2 { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.prm-meta2 b { color: var(--text); }
.prm-refdom { border-top: 1px solid var(--line); }
.prm-refdom > summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 14px; padding: 20px 2px; }
.prm-refdom > summary::-webkit-details-marker { display: none; }
.prm-refdom > summary b { font-size: 17px; font-weight: 700; color: var(--text); flex: 1; }
.prm-refdom > summary em { font-style: normal; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.prm-refdom > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); flex: none; }
.prm-refdom[open] > summary::after { transform: rotate(-135deg); }
.prm-refg { padding: 0 2px 18px; }
.prm-refg h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 10px 0 8px; }
.prm-refrow { display: grid; grid-template-columns: minmax(220px, 1.2fr) 130px 1fr; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 12px; }
.prm-refrow:hover { background: rgba(255,255,255,.03); }
.prm-reflabel { font-size: 13.5px; color: var(--text); line-height: 1.4; }
.prm-refhow { justify-self: start; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; color: var(--sc); border: 1px solid color-mix(in srgb, var(--sc) 40%, transparent); white-space: nowrap; }
.prm-refval { background: transparent; border: none; outline: none; border-bottom: 1px solid transparent; color: var(--text); font: 400 13.5px/1.4 var(--font); padding: 4px 2px; min-width: 0; }
.prm-refval:focus { border-bottom-color: var(--muted); }
.prm-refval.empty { color: var(--faint); font-style: italic; }
@media (max-width: 760px) { .prm-refrow { grid-template-columns: 1fr; gap: 4px; } }

/* ═══ Paramètres sur FOND BLANC · registre technique façon support.apple.com ═══ */
body.page-white .air-eyebrow { color: #2B57E6; }
body.page-white .air-h1 { color: #1d1d1f; }
body.page-white .air-h1 em { color: #2B57E6; }
body.page-white .air-lead { color: #57575c; }
body.page-white .breadcrumb a, body.page-white .bc-home { color: #57575c; }
body.page-white .prm-prog-bar { background: #e8e8ed; }
body.page-white .prm-prog-bar i { background: #1d1d1f; }
body.page-white .prm-prog span { color: #57575c; }
body.page-white .prm-prog b { color: #1d1d1f; }
body.page-white .prm-nav { color: #57575c; }
body.page-white .prm-nav:hover { background: #f5f5f7; }
body.page-white .prm-nav.on { background: #f5f5f7; color: #1d1d1f; }
body.page-white .prm-nav i { background: #e8e8ed !important; color: #1d1d1f; border: none !important; }
body.page-white .prm-nav em { color: #a1a1a6; }
.prm-nav-neutral { background: #1d1d20; border: 1px solid var(--line-2); }
body.page-white .prm-sep { background: #e8e8ed; }
body.page-white .prm-sect { color: #1d1d1f; }
body.page-white .prm-qh b { color: #1d1d1f; }
body.page-white .prm-help { color: #86868b; }
body.page-white .prm-row, body.page-white .prm-drow, body.page-white .pi-prop { background: #fff; border-color: #d2d2d7; }
body.page-white .prm-row:focus-within { border-color: #86868b; }
body.page-white .prm-it { color: #1d1d1f; }
body.page-white .prm-it::placeholder { color: #a1a1a6; }
body.page-white .prm-dmain b { color: #1d1d1f; }
body.page-white .prm-dmain span { color: #86868b; }
body.page-white .prm-dom h3 { color: #1d1d1f; }
body.page-white .prm-add, body.page-white .prm-addq { border-color: #d2d2d7; color: #57575c; }
body.page-white .prm-add:hover, body.page-white .prm-addq:hover { color: #1d1d1f; border-color: #86868b; }
body.page-white .prm-meta2 { color: #57575c; }
body.page-white .prm-meta2 b { color: #1d1d1f; }
body.page-white .prm-refdom { border-color: #e8e8ed; }
body.page-white .prm-refdom > summary b { color: #1d1d1f; }
body.page-white .prm-refdom > summary em { color: #a1a1a6; }
body.page-white .prm-refg h4 { color: #a1a1a6; }
body.page-white .prm-refrow:hover { background: #f5f5f7; }
body.page-white .prm-reflabel { color: #1d1d1f; }
body.page-white .prm-refval { color: #1d1d1f; }
body.page-white .prm-refval.empty { color: #a1a1a6; }
body.page-white .prm-refval:focus { border-bottom-color: #1d1d1f; }
body.page-white .prm-x { color: #a1a1a6; }
body.page-white .pi-prop b { color: #1d1d1f; }
body.page-white .pi-prop span { color: #57575c; }
body.page-white .prm-top .btn.ghost { border-color: #d2d2d7; color: #1d1d1f; }
/* Badges sur blanc : teintes douces lisibles */
body.page-white .prm-src, body.page-white .prm-refhow, body.page-white .prm-state { background: color-mix(in srgb, var(--sc) 12%, #fff); }
body.page-white header.topbar { color: #1d1d1f; }
body.page-white header.topbar a, body.page-white header.topbar button, body.page-white header.topbar .lang-sel button { color: #1d1d1f; }
body.page-white header.topbar .btn, body.page-white header.topbar button { border-color: rgba(0,0,0,.16); }
body.page-white #clientName, body.page-white #clientName b { color: #1d1d1f; }
/* Paramètres · démarrage, checklist officielle, guides d'import */
.prm-check { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px; cursor: pointer; font-size: 14px; color: var(--text); }
.prm-check:hover { background: rgba(255,255,255,.04); }
.prm-check input { accent-color: #2B57E6; width: 16px; height: 16px; flex: none; }
body.page-white .prm-check { color: #1d1d1f; }
body.page-white .prm-check:hover { background: #f5f5f7; }
.pi-guide { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.pi-guide summary { list-style: none; cursor: pointer; padding: 12px 0; font-size: 13.5px; font-weight: 650; color: var(--text); }
.pi-guide summary::-webkit-details-marker { display: none; }
.pi-guide ol { margin: 0 0 12px 18px; }
.pi-guide li { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 4px; }
body.page-white .pi-guide { border-color: #d2d2d7; }
body.page-white .pi-guide summary { color: #1d1d1f; }
body.page-white .pi-guide li { color: #57575c; }

/* ═══ Paramètres v7 · vrai formulaire logiciel (façon préférences HubSpot, sobre) ═══ */
body.page-white .prm-g { margin-bottom: 18px; }
body.page-white .prm-gh { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #86868b; padding: 0 12px; margin: 0 0 6px; }
body.page-white .prm-nav { padding: 8px 12px; border-radius: 8px; font-size: 14px; gap: 8px; }
body.page-white .prm-nav span { flex: 1; }
body.page-white .prm-sub { color: #86868b; font-size: 13px; margin: -14px 0 26px; padding-bottom: 18px; border-bottom: 1px solid #e8e8ed; }
body.page-white .prm-q { margin-bottom: 24px; max-width: 640px; }
body.page-white .prm-qh b { font-size: 13.5px; font-weight: 650; }
body.page-white .prm-help { font-size: 12.5px; margin: 3px 0 0; }
body.page-white .prm-q .prm-row:first-of-type, body.page-white .prm-list { margin-top: 8px; }
body.page-white .prm-row { border: 1px solid #b9b9bf; border-radius: 8px; padding: 10px 12px; background: #fff; box-shadow: none; }
body.page-white .prm-row:focus-within { border-color: #1d1d1f; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
body.page-white .prm-it { font-size: 14px; line-height: 1.5; }
body.page-white .prm-list { gap: 6px; }
body.page-white .prm-add, body.page-white .prm-addq { border-radius: 8px; padding: 9px 12px; font-size: 13px; border-style: solid; }
body.page-white .prm-src { font-size: 9.5px; padding: 2px 8px; }
body.page-white .prm-q.todo .prm-qh b::after { content: "à renseigner"; }

/* ═══ Le parcours guidé · plein écran blanc, une question à la fois (enfant de 10 ans) ═══ */
.pwz { position: fixed; inset: 0; z-index: 200; background: #fff; display: grid; place-items: center; overflow: auto; }
.pwz-in { width: min(600px, 92vw); text-align: center; position: relative; padding: 40px 0 80px; }
.pwz-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; }
.pwz-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e8e8ed; }
.pwz-dots i.on { background: #1d1d1f; transform: scale(1.25); }
.pwz-dots i.done { background: #a1a1a6; }
.pwz-t { font: 700 clamp(28px,4vw,40px)/1.15 var(--font); letter-spacing: -.02em; color: #1d1d1f; margin: 0 0 14px; }
.pwz-h { color: #57575c; font-size: 16px; line-height: 1.55; margin: 0 auto 36px; max-width: 46ch; }
.pwz-f { display: block; width: 100%; border: 1.5px solid #b9b9bf; border-radius: 12px; background: #fff; color: #1d1d1f; font: 400 18px/1.5 var(--font); padding: 16px 18px; outline: none; text-align: left; }
.pwz-f:focus { border-color: #1d1d1f; box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.pwz-ta { resize: vertical; min-height: 110px; }
.pwz-opts { display: grid; gap: 10px; }
.pwz-opt { border: 1.5px solid #d2d2d7; background: #fff; border-radius: 12px; padding: 16px 18px; font: 600 15.5px/1.3 var(--font); color: #1d1d1f; cursor: pointer; transition: all .15s; }
.pwz-opt:hover { border-color: #86868b; }
.pwz-opt.on { border-color: #1d1d1f; background: #1d1d1f; color: #fff; }
.pwz-acts { margin-top: 32px; display: grid; gap: 12px; justify-items: center; }
.pwz-go { background: #1d1d1f; color: #fff; border: none; border-radius: 999px; padding: 15px 44px; font: 650 16px/1 var(--font); cursor: pointer; }
.pwz-go:hover { background: #000; }
.pwz-skip { background: none; border: none; color: #86868b; font-size: 14px; cursor: pointer; padding: 6px; }
.pwz-skip:hover { color: #1d1d1f; }
.pwz-x { position: absolute; top: 0; right: 0; width: 34px; height: 34px; border-radius: 50%; border: none; background: #f5f5f7; color: #57575c; cursor: pointer; }
.pwz-invite { display: flex; align-items: center; gap: 16px; justify-content: space-between; border: 1px solid #d2d2d7; border-radius: 12px; padding: 16px 20px; margin-bottom: 26px; background: #fff; }
.pwz-invite b { display: block; font-size: 14.5px; color: #1d1d1f; margin-bottom: 3px; }
.pwz-invite span { font-size: 13px; color: #86868b; }
/* Parcours guidé v2 · voix légère, cartes de résultats, grands espaces */
.pwz-in { width: min(680px, 92vw); padding: 48px 0 100px; }
.pwz-voice { color: #86868b; font-size: 14.5px; font-style: italic; margin: 0 0 18px; }
.pwz-voice::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2B57E6; margin-right: 9px; vertical-align: 2px; }
.pwz-t2 { font: 700 clamp(24px,3vw,32px)/1.15 var(--font); letter-spacing: -.02em; color: #1d1d1f; margin: 0 0 22px; }
.pwz-card { text-align: left; border: 1px solid #d2d2d7; border-radius: 14px; background: #fff; padding: 6px 0; }
.pwz-line { display: grid; grid-template-columns: 150px 1fr 30px; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f0f0f2; }
.pwz-line:last-child { border-bottom: none; }
.pwz-lk { font-size: 12px; font-weight: 700; color: #86868b; }
.pwz-lv { border: none; outline: none; background: transparent; color: #1d1d1f; font: 500 14px/1.4 var(--font); width: 100%; }
.pwz-lv:focus { color: #000; }
.pwz-ldel { border: none; background: none; color: #c7c7cc; cursor: pointer; font-size: 12px; border-radius: 50%; width: 24px; height: 24px; }
.pwz-ldel:hover { color: #ff3b30; background: rgba(255,59,48,.08); }
.pwz-recap { padding: 14px 20px; }
.pwz-rline { font-size: 15px; color: #1d1d1f; font-weight: 600; padding: 7px 0; }
@media (max-width: 600px) { .pwz-line { grid-template-columns: 1fr; gap: 2px; } }
/* Structures · une carte par société */
.prm-struct { border: 1px solid #d2d2d7; border-radius: 14px; background: #fff; padding: 6px 8px 10px; margin-bottom: 16px; }
.prm-struct-h { display: flex; align-items: center; gap: 12px; padding: 12px 12px 8px; }
.prm-struct-h b { flex: 1; font-size: 15.5px; color: #1d1d1f; }
.prm-flag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #1d1d1f; background: #f5f5f7; border: 1px solid #d2d2d7; border-radius: 6px; padding: 3px 8px; }
.prm-drow .btn.small { width: auto; flex: none; }
/* Connexions · vrais logos */
.cx-logo { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; }
.cx-logo svg { display: block; }
.cx-logo.cx-white { background: #fff; border: 1px solid #d2d2d7; }
.cxa { gap: 14px; }
/* Champs groupés · Prénom / Nom / Métier séparés, chacun son label */
.prm-grp { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.prm-gf label { display: block; font-size: 12px; font-weight: 650; color: #57575c; margin-bottom: 5px; }
.prm-gf .prm-row { margin-top: 0; }
.prm-gf input.prm-it { min-height: auto; }
body.page-white .prm-gf label { color: #57575c; }
/* Tables de paramètres · colonnes structurées façon logiciel */
.prm-tblwrap { margin-top: 8px; }
.prm-tbl { border: 1px solid #d2d2d7; border-radius: 10px; background: #fff; overflow: hidden; margin-top: 8px; }
.prm-tbl-h, .prm-tbl-r { display: grid; grid-template-columns: repeat(var(--cols), 1fr) 34px; gap: 0; align-items: center; }
.prm-tbl-h { background: #f5f5f7; border-bottom: 1px solid #e3e3e8; }
.prm-tbl-h span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #86868b; padding: 9px 12px; }
.prm-tbl-r { border-bottom: 1px solid #f0f0f2; }
.prm-tbl-r:last-child { border-bottom: none; }
.prm-tc { border: none; outline: none; background: transparent; color: #1d1d1f; font: 400 13.5px/1.4 var(--font); padding: 10px 12px; min-width: 0; border-right: 1px solid #f5f5f7; }
.prm-tc:focus { background: #fafafa; }
.prm-tbl-r .prm-x { opacity: 0; margin: 0 auto; }
.prm-tbl-r:hover .prm-x { opacity: 1; }
.prm-tblwrap .prm-add { margin-top: 8px; width: 100%; text-align: left; }
@media (max-width: 700px) { .prm-tbl-h { display: none; } .prm-tbl-r { grid-template-columns: 1fr 34px; } .prm-tc { border-right: none; border-bottom: 1px dashed #f0f0f2; } }

/* Équipe · matrice d'accès (cases à cocher + presets par poste) */
.hr-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hr-preset { border: 1px solid var(--line-2); background: none; color: var(--muted); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.hr-preset:hover { color: var(--text); border-color: var(--muted); }
.hr-access { display: grid; gap: 8px; }
.hr-acc-row { display: flex; gap: 13px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s; }
.hr-acc-row:hover { border-color: var(--line-2); }
.hr-acc-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: #2B57E6; flex: none; }
.hr-acc-row b { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 2px; }
.hr-acc-row span { font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.hr-acc-note { color: var(--faint); font-size: 12.5px; line-height: 1.55; margin: 12px 0 0; }

/* Notes d'espace · visibilité choisie, filtre serveur */
.snotes { margin: 18px 0 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.snotes-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.snotes-h b { font-size: 15.5px; color: var(--text); }
.snote-new { margin-bottom: 14px; }
.snote-newrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.snote-vissel { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.snote-vb { border: 1px solid var(--line-2); background: none; color: var(--muted); border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.snote-vb.on { background: var(--text); color: #000; border-color: transparent; }
.snote { border-top: 1px solid var(--line); padding: 12px 2px; }
.snote-b { font-size: 14.5px; color: var(--text); line-height: 1.55; white-space: pre-wrap; }
.snote-m { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: 12px; color: var(--faint); }
.snote-vis { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--sc); border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent); }
.snote-x { margin-left: auto; border: none; background: none; color: var(--faint); cursor: pointer; font-size: 12px; }
.snote-x:hover { color: #ff6b60; }
.snotes.client { border-color: rgba(232,194,104,.3); }

/* ═══ ÉQUIPE · copié-collé macbook-pro : hero monumental, bento, grandes cartes ═══ */
.tm-hero { text-align: center; padding: clamp(50px,9vh,110px) 0 clamp(30px,5vh,54px); }
.tm-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.tm-title { font: 800 clamp(56px,9vw,120px)/0.98 var(--display); letter-spacing: -.035em; color: var(--text); margin: 0; }
.tm-sub { color: var(--muted); font-size: clamp(16px,1.8vw,21px); line-height: 1.5; max-width: 52ch; margin: 22px auto 0; }
.tm-cta { margin-top: 30px; background: var(--text); color: #000; border: none; border-radius: 999px; padding: 16px 36px; font: 650 16px/1 var(--font); cursor: pointer; }
.tm-cta:hover { opacity: .9; }
.tm-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 26px 0 40px; }
.tm-b { background: var(--surface-2); border: 1px solid var(--line); border-radius: 24px; padding: 36px 30px; text-align: center; }
.tm-b b { display: block; font: 750 clamp(30px,3.2vw,46px)/1.05 var(--font); letter-spacing: -.02em; color: var(--text); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.tm-b b i { display: block; font-style: normal; font-size: 16px; color: var(--muted); margin-top: 4px; }
.tm-b span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tm-seg { justify-content: center; margin-bottom: 10px; }
.tm-sec { margin: 46px 0; }
.tm-h2 { font: 750 clamp(24px,2.6vw,36px)/1.05 var(--display); letter-spacing: -.02em; color: var(--text); margin: 0 0 22px; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tm-card { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 24px; padding: 36px 24px 30px; text-align: center; cursor: pointer; transition: transform .18s var(--ease), border-color .2s; }
.tm-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tm-ava { display: block; width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 18px; background-size: cover; background-position: center; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 55%, transparent); }
.tm-ava.mono { display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 22%, #0e0e10); color: var(--cc); font: 750 26px/1 var(--font); }
.tm-card-n { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.tm-card-r { color: var(--muted); font-size: 14px; margin-top: 4px; }
.tm-card-meta { color: var(--faint); font-size: 12.5px; margin-top: 10px; }
.tm-dispo { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; }
.tm-dispo.dispo { color: #35d69e; border: 1px solid rgba(53,214,158,.4); background: rgba(53,214,158,.08); }
.tm-dispo.indispo { color: #ff6b60; border: 1px solid rgba(255,90,60,.4); background: rgba(255,90,60,.08); }
.tm-foot { text-align: center; color: var(--faint); font-size: 13px; margin: 30px 0 60px; }
.tm-empty { text-align: center; }
/* La page personne (création / édition) · pleine page Apple */
.tmf { max-width: 880px; margin: 0 auto; padding-bottom: 80px; }
.tmf-head { padding: 26px 0 40px; }
.tmf-head h1 { font: 750 clamp(34px,4.5vw,58px)/1.05 var(--display); letter-spacing: -.025em; color: var(--text); margin: 0 0 12px; }
.tmf-head h1 em { font-style: italic; color: var(--flf); }
.tmf-head p { color: var(--muted); font-size: 16.5px; margin: 0; }
.tmf-sec { display: grid; grid-template-columns: 170px 1fr; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); align-items: start; }
.tmf-l { font-size: 15px; font-weight: 700; color: var(--text); padding-top: 8px; }
.tmf-row { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 2px 4px; }
.tmf-row:focus-within { border-color: var(--muted); }
.tmf-in { width: 100%; background: transparent; border: none; outline: none; color: var(--text); font: 400 15.5px/1.4 var(--font); padding: 12px 14px; }
.tmf-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.tmf-opt { text-align: left; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; cursor: pointer; transition: all .15s; }
.tmf-opt b { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.tmf-opt span { font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.tmf-opt.on { border-color: var(--text); background: rgba(255,255,255,.05); }
.tmf-opt-hint { font-style: normal; font-weight: 400; font-size: 11px; color: var(--faint); }
.tmf-actions { display: flex; align-items: center; gap: 12px; padding: 30px 0 0; border-top: 1px solid var(--line); margin-top: 10px; }
.hr-avail-new { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hr-avail-new .field { margin: 0; }
@media (max-width: 720px) { .tmf-sec { grid-template-columns: 1fr; gap: 10px; } .tmf-seg { grid-template-columns: 1fr; } }
.tmf-photo { display: flex; align-items: center; gap: 20px; }
.tmf-photo .tm-ava { margin: 0; }
.tm-title.fx-grad { background: linear-gradient(105deg, #fff 0%, #dcdce0 30%, #2B57E6 55%, #ff2d78 75%, #a06bff 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: lwHue 11s ease-in-out infinite; }
.tm-b b { background: linear-gradient(120deg, #fff 20%, #c9c9ce 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tm-b b i { -webkit-text-fill-color: var(--muted); }
/* Tarifs freelance · une ligne par mission */
.hp-rate { display: grid; grid-template-columns: 1.5fr .7fr .8fr 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.hp-rate .tmf-in { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.hp-rate .tmf-in:focus { border-color: var(--muted); }
@media (max-width: 640px) { .hp-rate { grid-template-columns: 1fr 34px; } }

/* ═══ ÉQUIPE · typo APPLE (SF Pro / Inter), pas Druk : copié-collé macbook-pro ═══ */
.tm-title { font-family: var(--font); font-weight: 700; letter-spacing: -.03em; }
.tm-h2 { font-family: var(--font); font-weight: 700; letter-spacing: -.02em; }
.tm-eyebrow { color: #86868b; }
.tm-sub { color: #a1a1a6; }
.tmf-head h1 { font-family: var(--font); font-weight: 700; letter-spacing: -.025em; }
.tmf-head h1 em { font-style: normal; color: inherit; }
.tm-card-n { letter-spacing: -.02em; }
.tm-b { border-radius: 28px; }
.tm-card { border-radius: 28px; }
/* le dégradé du hero : palette froide Apple (bleu → violet → rose), plus de corail */
.tm-title.fx-grad { background: linear-gradient(100deg, #f5f5f7 0%, #d6d6db 35%, #2997ff 60%, #8a74ff 80%, #ff2d78 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; }

/* ═══ TTC · Le chemin du million + typo Apple ═══ */
.ttc-hero-t { font-family: var(--font) !important; font-weight: 700; letter-spacing: -.03em; }
.ttc-hero-t em { font-style: normal; background: linear-gradient(100deg, #f5f5f7 10%, #2997ff 60%, #8a74ff 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tmm { text-align: center; padding: clamp(48px,8vh,96px) 0 30px; }
.tmm-t { font: 700 clamp(34px,4.6vw,64px)/1.05 var(--font); letter-spacing: -.03em; color: var(--text); margin: 10px 0 14px; }
.tmm-sub { color: #a1a1a6; font-size: clamp(15px,1.6vw,19px); max-width: 52ch; margin: 0 auto 30px; }
.tmm-prices { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.tmm-price { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 26px; cursor: pointer; transition: all .15s; }
.tmm-price b { display: block; font-size: 17px; color: var(--text); }
.tmm-price span { font-size: 12px; color: var(--faint); }
.tmm-price.on { border-color: var(--text); background: rgba(255,255,255,.05); }
.tmm-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; max-width: 1000px; margin: 0 auto; }
.tmm-b { background: var(--surface-2); border: 1px solid var(--line); border-radius: 24px; padding: 30px 20px; }
.tmm-b b { display: block; font: 750 clamp(30px,3.4vw,52px)/1 var(--font); letter-spacing: -.02em; margin-bottom: 10px; background: linear-gradient(120deg, #fff 25%, #2997ff 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.tmm-b span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.tmm-big b { font-size: clamp(44px,5vw,72px); }
.tmm-note { color: var(--faint); font-size: 13.5px; margin: 22px auto 0; max-width: 60ch; }
/* TTC · le détecteur */
.tdet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; text-align: left; max-width: 1100px; margin: 0 auto; }
.tdet-card { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 18px; }
.tdet-score { position: absolute; top: 16px; right: 16px; font: 750 15px/1 var(--font); color: #2997ff; background: rgba(41,151,255,.1); border: 1px solid rgba(41,151,255,.3); border-radius: 999px; padding: 5px 11px; }
.tdet-n { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.01em; padding-right: 54px; }
.tdet-r { color: var(--muted); font-size: 13px; margin-top: 3px; }
.tdet-why { margin: 12px 0; padding-left: 16px; }
.tdet-why li { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-bottom: 3px; }
.tdet-coord { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.tdet-coord span { font-size: 12.5px; color: var(--faint); }
.tdet-locs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
/* TTC · rareté + scout web */
.ttc-rare { margin-top: 20px; display: inline-block; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 11px 24px; font-size: 13.5px; color: #e8e8ed; letter-spacing: .01em; backdrop-filter: blur(8px); background: rgba(0,0,0,.25); }
.ttc-rare b { color: #fff; }
.tdw-terr { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.tdw-head { text-align: center; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.tdw-head b { font: 750 26px/1 var(--font); color: var(--text); background: linear-gradient(120deg, #fff 25%, #2997ff 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* Détecteur · panneau de filtres */
.tdf { max-width: 860px; margin: 26px auto 0; text-align: left; display: grid; gap: 14px; }
.tdf-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.tdf-l { font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; }
.tdf-in { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; color: var(--text); font: 500 15px/1.3 var(--font); padding: 12px 16px; outline: none; max-width: 340px; }
.tdf-in:focus { border-color: var(--text); }
.tdf-chips { display: flex; gap: 7px; flex-wrap: wrap; }
@media (max-width: 640px) { .tdf-row { grid-template-columns: 1fr; gap: 6px; } .tdf-l { text-align: left; } }

/* ============================================================
   ESPACES CLIENT & PROSPECT · retenue macbook-pro (DR464)
   Les grandes capitales Druk = pages cinéma FLF (TTC, heros site).
   Ici, face au client : SF Pro, air, élégance · photo & couverture gardées.
   ============================================================ */
.brand-hero h1, .sp-hero h1, .prospect-hero h1, .sp-greet {
  font-family: var(--font) !important;
  text-transform: none !important;
  font-weight: 650;
  letter-spacing: -.032em;
  line-height: 1.06;
}
.brand-hero h1 { font-size: clamp(30px, 4vw, 48px); }
/* Titres de section · sentence case, poids juste, tracking serré (fini l'uppercase Druk) */
.pp-sec-head h2, .section-head h2 {
  font-family: var(--font);
  text-transform: none;
  font-weight: 700;
  letter-spacing: -.022em;
  font-size: clamp(19px, 2vw, 25px);
}
/* Le point signature reste, mais discret (un point de vie, pas un gyrophare) */
.pp-sec-head h2::before, .section-head h2::before { width: 5px; height: 5px; margin-right: 9px; vertical-align: 3px; }
/* Plus d'air entre les sections · le luxe = le vide */
.pp-sec-head { margin-bottom: 16px; }
.section-head { margin-top: 84px; }
/* Tuiles & dossiers · noms plus fins, moins criards */
.tile .t-name { font-weight: 600; letter-spacing: -.02em; }
.doc-name { font-size: 13px; color: var(--text); }

/* ── Dégradés de titre façon macbook-pro (DR465) ──
   Le hero prend un métal blanc qui glisse vers la COULEUR DU CLIENT (son accent de marque) :
   chaque espace a son dégradé à lui, subtil. Les sections = métal doux uniforme. */
.brand-hero h1, .sp-greet {
  background: linear-gradient(112deg, #fff 52%, color-mix(in srgb, var(--accent, #b9bac1) 78%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pp-sec-head h2, .section-head h2 {
  background: linear-gradient(180deg, #fff 38%, #b9bac1 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* Thème clair : mêmes dégradés, en encre (le blanc serait invisible) */
body.theme-light .brand-hero h1, body.theme-light .sp-greet {
  background: linear-gradient(112deg, #1d1d1f 52%, color-mix(in srgb, var(--accent, #57575c) 68%, #1d1d1f) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.theme-light .pp-sec-head h2, body.theme-light .section-head h2 {
  background: linear-gradient(180deg, #1d1d1f 32%, #57575c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Cartes bento · lueur, image, hiérarchie (DR466) ──
   Les cartes prennent de la vie : lueur colorée (accent du client) qui respire au survol,
   image du client DANS la carte Galerie, hiérarchie bold → regular. */
.desktop .tile {
  background: linear-gradient(175deg, #101013 0%, #070709 100%);
  border-radius: 28px;
  border-color: rgba(255,255,255,.06);
  padding: 34px 32px 30px;
  overflow: hidden;
}
.desktop .tile::before {
  content: ""; position: absolute; inset: -30% -20% auto; height: 90%;
  background: radial-gradient(58% 52% at 50% 0%, color-mix(in srgb, var(--accent, #9aa0a6) 14%, transparent), transparent 72%);
  opacity: .5; transition: opacity .6s var(--ease); pointer-events: none;
}
.desktop .tile:hover::before { opacity: 1; }
.desktop .tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent, #fff) 26%, rgba(255,255,255,.08)); }
body:not(.branded) .desktop .tile::before { background: radial-gradient(58% 52% at 50% 0%, rgba(255,255,255,.09), transparent 72%); }
/* L'image du client DANS la carte (Galerie) · fondue vers le bas, le texte reste lisible */
.tile-visual {
  position: absolute; inset: 0 0 38% 0; border-radius: 28px 28px 0 0;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.92) 30%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.92) 30%, transparent 100%);
  opacity: .8; transition: opacity .5s, transform .8s var(--ease); pointer-events: none;
}
.tile.tile-media:hover .tile-visual { opacity: 1; transform: scale(1.03); }
.tile.tile-media .ic { position: relative; z-index: 2; }
.tile.tile-media > div:last-child { position: relative; z-index: 2; }
/* Hiérarchie type produit : nom net, sous-ligne grise calme */
.desktop .tile .t-name { font-size: 21px; font-weight: 650; letter-spacing: -.022em; color: #f5f5f7; }
.desktop .tile .t-count { font-size: 13px; color: #86868b; margin-top: 2px; }
.desktop .tile .ic { opacity: .85; }
/* Le pattern éditorial Apple · début de phrase en blanc, suite en gris (même corps) */
.sec-lead { display: block; font-size: 15px; line-height: 1.5; color: #86868b; max-width: 640px; margin: 2px 0 14px; }
.sec-lead b { color: #f5f5f7; font-weight: 650; }
body.theme-light .sec-lead { color: #6e6e73; }
body.theme-light .sec-lead b { color: #1d1d1f; }
body.theme-light .desktop .tile .t-name { color: #1d1d1f; }
body.theme-light .desktop .tile .t-count { color: #6e6e73; }

/* ── ÉCHELLE TYPOGRAPHIQUE page produit (DR467) ──
   Ce qui fait le rendu : le CONTRASTE d'échelle. Titres de section très grands (bold serré),
   corps calme, palette de gris stricte (#f5f5f7 · #86868b), énormément d'air entre les sections.
   La photo dans les cartes : retirée (jugée en trop). */
.brand-hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.03; }
.pp-sec-head h2, .section-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.05;
}
/* Le point signature disparaît sur ces grands titres (retenue totale, rien ne parasite) */
.pp-sec-head h2::before, .section-head h2::before { content: none; }
/* Corps éditorial · 17px, interligne généreux (la lisibilité produit) */
.sec-lead { font-size: 17px; line-height: 1.47; max-width: 680px; margin: 6px 0 18px; }
/* Air massif entre les sections · chaque bloc respire seul */
.pp-sec-head { margin-top: 8px; margin-bottom: 18px; }
#view > .pp-sec-head, .section-head { margin-top: 96px; }
/* Cartes : nom plus présent, sous-ligne calme · l'échelle suit le reste */
.desktop .tile .t-name { font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.desktop .tile .t-count { font-size: 14px; margin-top: 3px; }
/* Sous-titres du hero (serif) légèrement plus grands pour tenir face au titre */
.brand-hero p { font-size: 19px; }

/* ── GRILLE MESURÉE AU PIXEL sur la page de référence (DR468) ──
   Valeurs relevées en computed styles, appliquées à NOTRE contenu :
   · titres de section : 48px · 600 · tracking -0.003em (quasi neutre, PAS condensé) · lh 1.08
   · grand titre : 56px · 600 · -0.005em · lh 1.07
   · titres de carte : 24px · 600 · tracking +0.009em (légèrement positif)
   · texte : #f5f5f7 sur noir pur · secondaire #86868b */
.brand-hero h1 { font-size: clamp(38px, 4.6vw, 56px); font-weight: 600; letter-spacing: -.005em; line-height: 1.07; }
.pp-sec-head h2, .section-head h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -.003em;
  line-height: 1.08;
}
.desktop .tile .t-name { font-size: 24px; font-weight: 600; letter-spacing: .009em; line-height: 1.17; }
.desktop .tile .t-count { font-size: 14px; font-weight: 400; letter-spacing: -.016em; }
.sec-lead { font-size: 17px; font-weight: 400; letter-spacing: -.014em; line-height: 1.47; }
/* Lignes de titre équilibrées (pas de mot orphelin sur la 2e ligne) */
.brand-hero h1, .pp-sec-head h2, .section-head h2 { text-wrap: balance; }

/* ── LE DESIGN S'APPLIQUE À TOUT LE PORTAIL (DR469) ──
   Pas seulement les espaces client : TES pages aussi (Docs, Compta, Contacts, tous les heros).
   Grille mesurée : 600 · tracking quasi neutre · lh 1.07 · dégradé métal · sentence case. */
.hero h1 {
  font-family: var(--font);
  text-transform: none;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.07;
  font-size: clamp(34px, 4.2vw, 52px);
  background: linear-gradient(180deg, #fff 30%, #b6b7bd 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
body.theme-light .hero h1 { background: linear-gradient(180deg, #1d1d1f 28%, #57575c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* Les em italiques dans les titres : gardent l'accent, sans casser le dégradé */
.hero h1 em { -webkit-text-fill-color: initial; background: none; color: var(--flf); font-style: normal; }
body.branded .hero h1 em { color: var(--accent, var(--flf)); }

/* ── GRAMMAIRE CENTRÉE page produit · espaces client & prospect (DR470) ──
   La structure qui fait le rendu : eyebrow centré → titre géant centré → sous-titre gris centré
   → la photo de couverture en GRAND PANNEAU arrondi dessous (le visuel produit) → pastilles centrées.
   Les sections suivent : titres centrés, leads centrés, cartes en grille. */
.sp-centered { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(56px, 9vh, 110px) 0 20px; }
.sp-centered .client-logo { margin: 0 auto 20px; }
.sp-centered .sp-eyebrow { margin-bottom: 8px; }
.sp-centered .sp-greet { max-width: 20ch; margin: 0 auto; }
.spc-since { color: #86868b; font-size: 17px; letter-spacing: -.014em; margin-top: 14px; }
body.theme-light .spc-since { color: #6e6e73; }
.spc-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.spc-actions .btn { width: auto; }
/* La couverture = le visuel produit : grand panneau arrondi, plein cadre */
.spc-cover { width: 100%; aspect-ratio: 21 / 8.4; border-radius: 28px; margin-top: 48px;
  background-size: cover; background-position: center; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
@media (max-width: 760px) { .spc-cover { aspect-ratio: 16 / 10; border-radius: 20px; margin-top: 32px; } }
.sp-centered .ap-pills { justify-content: center; margin-top: 28px; position: static; }
.sp-centered #spExitPreview { align-self: flex-start; margin-bottom: 6px; }
/* Les sections de l'espace suivent la même grammaire : titres et leads centrés */
#view:has(.sp-centered) .pp-sec-head { display: block; text-align: center; margin-top: 96px; margin-bottom: 14px; }
#view:has(.sp-centered) .pp-sec-head h2 { margin: 0 auto; }
#view:has(.sp-centered) .pp-sec-head .lib-rush-count, #view:has(.sp-centered) .pp-sec-head .btn { margin-top: 12px; }
#view:has(.sp-centered) .sec-lead { text-align: center; margin: 8px auto 26px; }
#view:has(.sp-centered) .chat-wrap { max-width: 820px; margin: 0 auto; }
#view:has(.sp-centered) .empty-note.slim { text-align: center; }

/* ── DERNIERS COMPOSANTS ALIGNÉS SUR LA GRILLE (DR471) ──
   Audit complet de l'espace client : plus AUCUN Druk uppercase face au client.
   Numéros de carte discrets (gris, pas de corail criard), titres SF Pro sentence case. */
.cs-svc-t { font-family: var(--font); text-transform: none; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: #f5f5f7; }
body.theme-light .cs-svc-t { color: #1d1d1f; }
.cl-serv-card::before { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: #86868b; opacity: 1; }
.cl-serv-card:hover { border-color: rgba(255,255,255,.18); }
.cs-svc-d { font-size: 15px; line-height: 1.5; color: #86868b; }
.cl-serv-h h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.003em; line-height: 1.08;
  background: linear-gradient(180deg, #fff 38%, #b9bac1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.theme-light .cl-serv-h h2 { background: linear-gradient(180deg, #1d1d1f 32%, #57575c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cl-serv-h p { font-size: 17px; letter-spacing: -.014em; line-height: 1.47; color: #86868b; max-width: 640px; }
#view:has(.sp-centered) .cl-serv-h { text-align: center; }
#view:has(.sp-centered) .cl-serv-h p { margin: 8px auto 0; }
#view:has(.sp-centered) .cl-services { margin-top: 96px; }
/* Bandeau nouveau projet + quiz + code parrainage : SF Pro, plus de Druk */
.order-cta-title { font-family: var(--font); text-transform: none; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.fq-banner-kicker { font-family: var(--font); font-weight: 600; letter-spacing: -.01em; }
.ref-code { font-family: var(--font); font-weight: 700; letter-spacing: .04em; }

/* ── COUVERTURE PLEINE + DÉGRADÉS COLORÉS + MINI-INFO (DR472) ──
   La photo redevient une VRAIE couverture : plein cadre derrière le hero centré, voile sombre,
   le texte au-dessus. Dégradés de couleur VISIBLES sur les titres (blanc → bleu → violet).
   « Client depuis » = mini-info discrète, plus une ligne mise en avant. */
.sp-centered { position: relative; }
.sp-centered.has-fullcover { border-radius: 28px; overflow: hidden; padding: clamp(70px, 11vh, 130px) 24px 64px; margin-top: 10px; }
.sp-centered.has-fullcover .space-cover { position: absolute; inset: 0; height: 100%; width: 100%; border-radius: 0; background-size: cover; background-position: center; }
.sp-centered.has-fullcover .space-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.46) 0%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.86) 100%); }
.sp-centered.has-fullcover > *:not(.space-cover) { position: relative; z-index: 2; }
.spc-cover { display: none; }
/* Les DÉGRADÉS DE COULEUR sur les titres · le froid blanc → bleu → violet (visible, pas subliminal) */
.pp-sec-head h2, .section-head h2, .cl-serv-h h2 {
  background: linear-gradient(97deg, #f5f5f7 18%, #6ba7ff 55%, #a48aff 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-hero h1, .sp-greet {
  background: linear-gradient(100deg, #ffffff 30%, color-mix(in srgb, var(--accent, #6ba7ff) 90%, #fff) 72%, #a48aff 105%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.theme-light .pp-sec-head h2, body.theme-light .section-head h2, body.theme-light .cl-serv-h h2 {
  background: linear-gradient(97deg, #1d1d1f 18%, #2456c4 55%, #6b4fd8 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* « Client Fransou depuis 2026 » = mini-info, pas une ligne vedette */
.spc-since { font-family: var(--font); font-style: normal; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(245,245,247,.55); margin-top: 12px; }
.sp-centered .sp-eyebrow { font-size: clamp(15px, 1.6vw, 20px); }

/* ── PASTILLE D'ACTION + NOM DU CLIENT NET (DR473) ──
   Le langage validé : pastille sombre translucide (texte) + bouton bleu arrondi (action).
   Le nom du client passe en typo nette, bien visible (fini le serif discret sur le hero). */
.pill-cta { display: inline-flex; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgba(44,44,49,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.08); }
.pill-cta > span { font-size: 15px; font-weight: 500; letter-spacing: -.014em; color: #f5f5f7; white-space: nowrap; }
.pill-btn { border: 0; border-radius: 999px; padding: 9px 20px; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  background: #0071e3; color: #fff; cursor: pointer; transition: background .18s; white-space: nowrap; width: auto; }
.pill-btn:hover { background: #0077ed; }
body.theme-light .pill-cta { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.08); }
body.theme-light .pill-cta > span { color: #1d1d1f; }
/* Le nom du client sur le hero : net, visible, SF Pro (plus le serif pâle) */
.sp-centered .sp-eyebrow { font-family: var(--font); font-style: normal; font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: #f5f5f7; margin-bottom: 10px; }

/* ── Finitions hero (DR474) · mini-info dans le coin, « En ce moment » au langage pastille ── */
.spc-since { text-transform: none; font-size: 12px; font-weight: 400; letter-spacing: .01em; color: rgba(245,245,247,.5); }
.sp-centered.has-fullcover .spc-since { position: absolute; right: 24px; bottom: 16px; margin: 0; z-index: 2; }
.sp-centered .ap-pills { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 18px; }
.sp-centered .ap-pill { background: rgba(44,44,49,.72); border: 1px solid rgba(255,255,255,.08); font-size: 15px; font-weight: 500; }
.sp-centered .ap-pill .app-ic { background: #0071e3; color: #fff; }
.sp-centered .spc-since, .brand-hero p.spc-since { font-size: 12px; font-family: var(--font); font-style: normal; }
/* Rangée d'actions du hub Équipe (personne + associé) */
.tm-cta-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.tm-cta-row .tm-cta { margin: 0; }
/* Couverture : cachée tant qu'elle n'est pas décodée, puis fondu doux (fini le à-coup) */
.space-cover { opacity: 0; transition: opacity .45s ease; }
.space-cover.bg-in { opacity: 1; }

/* ── OPTION B · sous-pages de l'espace client cohérentes (DR477) ──
   Sur les sous-vues (Projets, Factures, Galerie), on garde la grammaire centrée
   SANS re-servir la grande couverture : en-tête centré + dégradé + air. */
body.client-space .section-head, body.client-space .gal-head { flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-top: 72px; }
body.client-space .section-head h2, body.client-space .gal-title { margin: 0 auto; }
body.client-space .gal-lede, body.client-space .section-head .cs-explain { text-align: center; margin-left: auto; margin-right: auto; }
body.client-space .gal-title {
  background: linear-gradient(97deg, #f5f5f7 18%, #6ba7ff 55%, #a48aff 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.client-space .proj-tools, body.client-space .gal-tools { justify-content: center; }
body.client-space .breadcrumb, body.client-space .section-nav { justify-content: center; }


/* Barre d'onglets admin masquée quand on prévisualise un espace client/freelance (on n'y est pas admin). */
body.client-space .mtab, body.lib-mode .mtab { display: none !important; }

/* ═══ CORRECTIFS MISE EN PAGE MOBILE · rien ne déborde à droite, les rangées passent à la ligne ═══ */
@media (max-width: 760px) {
  /* Ligne check-in « Sur quoi ? » + « Toute la journée » + bouton : passe à la ligne au lieu de déborder */
  .jn-noterow { flex-wrap: wrap; }
  .jn-noterow .jn-note { flex: 1 1 100%; min-width: 0; }
  .jn-day { flex: 1 1 auto; justify-content: center; }
  .jn-noterow > .btn.small, .jn-noterow #jnGo { flex: 1 1 auto; }
  /* Rangées de boutons (agenda Google, +1 h, replier…) : passent à la ligne */
  .pj-hbtns { flex-wrap: wrap; flex: 1 1 auto; }
  /* Garde-fou : jamais de défilement horizontal de la page (les vrais tableaux scrollent dans leur propre cadre) */
  #view { overflow-x: hidden; }
  #view img, #view video, #view canvas { max-width: 100%; height: auto; }
}

/* Filigrane de version : au-dessus de la barre d'onglets sur mobile (sinon il chevauche « Plus ») */
@media (max-width: 760px) { #verBadge { bottom: calc(74px + env(safe-area-inset-bottom)) !important; } }

/* Widget semaine : colonnes strictement égales qui ne débordent jamais (sinon la 4e case est coupée) */
@media (max-width: 760px) {
  .wkw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .wkw-day { min-width: 0; padding: 10px 8px; overflow: hidden; }
  .wkw-day *, .wkw-ev, .wkw-dh b { min-width: 0; overflow-wrap: anywhere; }
}

/* ═══ CHIFFRAGE MARCHÉ · panneau admin dans la page projet (Trélazé / Loire-Authion) ═══ */
#chiffrageSec { margin: 18px 0 4px; }
.chf-card { background: var(--surface, #131315); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 20px; padding: 20px 22px; }
.chf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.chf-eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--flf, #2B57E6); }
.chf-h { font: 600 22px/1.1 var(--font, -apple-system, "SF Pro Display", sans-serif); letter-spacing: -.02em; color: var(--text, #fff); margin-top: 6px; }
.chf-total { text-align: right; flex: 0 0 auto; }
.chf-total span { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #86868b); }
.chf-total b { font: 700 26px/1 var(--font, -apple-system, sans-serif); letter-spacing: -.02em; color: var(--text, #fff); }
.chf-note { color: var(--muted, #86868b); font-size: 13px; margin: 10px 0 16px; }
.chf-lines { display: flex; flex-direction: column; gap: 8px; }
.chf-line { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2, rgba(255,255,255,.04)); border: 1px solid transparent; }
.chf-line.on { border-color: color-mix(in srgb, var(--flf, #2B57E6) 40%, transparent); background: color-mix(in srgb, var(--flf, #2B57E6) 7%, var(--surface-2, rgba(255,255,255,.04))); }
.chf-l-main { flex: 1; min-width: 0; }
.chf-l-main b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text, #fff); }
.chf-l-main span { font-size: 12.5px; color: var(--muted, #86868b); }
.chf-qty { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.chf-q { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: var(--text, #fff); font-size: 17px; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chf-q:active { transform: scale(.9); }
.chf-qn { min-width: 26px; text-align: center; font-weight: 700; font-size: 15px; color: var(--text, #fff); }
.chf-l-sub { flex: 0 0 auto; min-width: 92px; text-align: right; font-weight: 600; font-size: 14px; color: var(--text, #fff); font-variant-numeric: tabular-nums; }
.chf-acts { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
@media (max-width: 760px) {
  .chf-line { flex-wrap: wrap; }
  .chf-l-main { flex: 1 1 60%; }
  .chf-l-sub { min-width: auto; }
}

/* ═══ FUTURES RENTRÉES · vue marchés publics (chiffrages agrégés) ═══ */
.fx-big { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--surface, #131315); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 20px; padding: 22px 24px; margin: 6px 0 24px; }
.fx-big-l { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #86868b); }
.fx-big b { font: 700 clamp(30px,5vw,46px)/1 var(--font, -apple-system, sans-serif); letter-spacing: -.025em; color: var(--text, #fff); font-variant-numeric: tabular-nums; }
.fx-rows { display: flex; flex-direction: column; gap: 8px; }
.fx-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--surface-2, rgba(255,255,255,.04)); border: 1px solid var(--line, rgba(255,255,255,.07)); color: var(--text, #fff); cursor: pointer; transition: transform .1s, border-color .15s; }
.fx-row:active { transform: scale(.99); }
.fx-row:hover { border-color: color-mix(in srgb, var(--flf, #2B57E6) 35%, var(--line, rgba(255,255,255,.07))); }
.fx-r-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-r-n { font-size: 15px; font-weight: 600; }
.fx-r-s { font-size: 12.5px; color: var(--muted, #86868b); }
.fx-r-a { flex: 0 0 auto; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Sélecteurs mois/année de la vue banque */
.bank-sel { width: auto; min-width: 90px; padding: 8px 12px; font-size: 13.5px; text-align: left; cursor: pointer; }
.bank-nav .bank-sel { flex: 0 0 auto; }

/* Courbe de solde · ligne Apple (remplace le mur de barres) */
.bank-curve { background: var(--surface, #131315); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 18px; padding: 18px 20px 14px; margin-top: 14px; }
.bank-curve-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bank-curve-h span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #86868b); font-weight: 600; }
.bank-curve-h b { font: 700 18px/1 var(--font, -apple-system, sans-serif); letter-spacing: -.02em; color: var(--text, #fff); font-variant-numeric: tabular-nums; }
.bcv-svg { width: 100%; height: auto; display: block; overflow: visible; }
.bcv-x { display: flex; justify-content: space-between; margin-top: 8px; }
.bcv-x span { font-size: 11px; color: var(--muted, #86868b); }

/* Chiffres KPI banque/compta en SF Pro (Apple) · plus de Druk sur les nombres */
.bk-stat b, .ds-chip b { font-family: var(--font, -apple-system, "SF Pro Display", sans-serif) !important; font-weight: 600 !important; letter-spacing: -.02em; }
.bk-balance b { font-family: var(--font, -apple-system, "SF Pro Display", sans-serif) !important; font-weight: 700 !important; letter-spacing: -.025em; }

/* Date de paiement prévue · factures freelance (fiche = éditable, espace freelance = lecture) */
.hr-due { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted, #86868b); background: var(--surface-2, rgba(255,255,255,.05)); border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 999px; padding: 5px 10px 5px 12px; cursor: pointer; white-space: nowrap; }
.hr-due input[type=date] { background: transparent; border: 0; color: var(--text, #fff); font-size: 12px; font-family: var(--font, -apple-system, sans-serif); cursor: pointer; width: auto; padding: 0; }
.hr-due-note { font-size: 12px; color: var(--muted, #86868b); background: var(--surface-2, rgba(255,255,255,.05)); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }

/* Chiffres de la fiche freelance (paie, KPI) en SF Pro · titres restent en Druk */
.hr-pf-v, .hr-kpi-v { font-family: var(--font, -apple-system, "SF Pro Display", sans-serif) !important; font-weight: 600 !important; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ═══ MESSAGERIE · bulles lisibles (style iMessage) + pièces jointes ═══ */
.chat-msg.mine .chat-text,
body.branded .chat-msg.mine .chat-text,
body.theme-light .chat-msg.mine .chat-text { background: #0A84FF !important; color: #fff !important; border-color: transparent !important; }
.chat-text { line-height: 1.45; }
.chat-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chat-msg.mine .chat-atts { justify-content: flex-end; }
.chat-att-img { width: 132px; height: 132px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; display: block; }
.chat-att-file { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 13px; cursor: pointer; text-align: left; }
.chat-att-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-att-file .ic-svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.chat-attach { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.chat-attach:hover { color: var(--text); }
.chat-attach .ic-svg { width: 20px; height: 20px; }
.chat-pending { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; }
.chat-pending:empty { display: none; }
.chat-pend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 6px 4px 12px; max-width: 220px; }
.chat-pend > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pend button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 2px; }

/* Messagerie · actions modifier / supprimer + édition en place */
.chat-acts { display: flex; gap: 12px; margin-top: 5px; opacity: 0; transition: opacity .15s; }
.chat-msg.mine .chat-acts { justify-content: flex-end; }
.chat-msg:hover .chat-acts { opacity: 1; }
.chat-acts button { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); cursor: pointer; }
.chat-acts button:hover { color: var(--text); }
.chat-acts button[data-mdel] { color: #d05a4b; }
.chat-acts button[data-mdel]:hover { color: #b23c2e; }
.chat-edit { width: 100%; min-width: 200px; font: inherit; color: #000; background: #fff; border: 0; border-radius: 8px; padding: 4px 8px; outline: none; }
@media (hover: none) { .chat-acts { opacity: 1; } }

/* Invitation · carte identifiants affichée à l'inviteur */
.inv-creds { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.inv-creds-t { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.inv-cred-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.inv-cred-row span { font-size: 12px; color: var(--muted); }
.inv-cred-row b { font-weight: 600; word-break: break-all; text-align: right; }
.inv-cred-row b.mono { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; letter-spacing: .03em; }
.inv-creds .btn { margin-top: 10px; }

/* Mails · file « À valider » (réponses préparées 24/7) + bandeau notif */
.mh-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0A84FF; color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 14px; margin: 0 0 14px; }
.mh-alert-x { background: rgba(255,255,255,.22); border: 0; color: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.mh-val { border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; margin: 0 0 18px; background: var(--surface-2); }
.mh-val-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.mh-val-h b { font-size: 16px; }
.mh-val-h span { font-size: 12px; color: var(--muted); }
.mh-val-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-top: 10px; }
.mh-val-to { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mh-val-to b { font-size: 14px; }
.mh-val-to span { font-size: 12px; color: var(--muted); }
.mh-val-kind { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--line-2); color: var(--text); text-transform: capitalize; }
.mh-val-kind.mh-client { background: #e6f4ea; color: #137333; }
.mh-val-kind.mh-prospect { background: #fef0e6; color: #b35309; }
.mh-val-subj { font-size: 13px; color: var(--muted); margin: 6px 0 8px; }
.mh-val-ta { width: 100%; min-height: 130px; font: inherit; font-size: 14px; line-height: 1.5; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; resize: vertical; box-sizing: border-box; }
.mh-val-acts { display: flex; gap: 8px; margin-top: 10px; }

/* Mails · sourdine (candidatures/fournisseurs, pour info) */
.mh-muted { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 14px; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.mh-muted > span:first-child { flex: 1; }
.mh-muted b { color: var(--text); font-weight: 600; }
.mh-muted-toggle, .mh-muted-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px 8px; }
.mh-muted-toggle:hover, .mh-muted-x:hover { color: var(--text); }
.mh-muted-list { margin: -6px 0 14px; padding: 6px 4px; }
.mh-muted-row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.mh-muted-row > span:last-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-muted-tag { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: var(--line-2); color: var(--muted); text-transform: capitalize; flex: 0 0 auto; }
.mh-muted-tag.mh-candidature { background: #eef1f6; color: #5b6b8c; }
.mh-muted-tag.mh-fournisseur { background: #f4efe6; color: #8a6d3b; }

/* Fenêtre mail · vue FIL de discussion (façon Gmail) */
.mr-thread { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 2px; }
.mrm { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.mrm.mine { background: var(--surface-2); }
.mrm-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; }
.mrm-head .mono-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--text); font-weight: 600; font-size: 13px; flex: 0 0 auto; }
.mrm-who { flex: 1; min-width: 0; }
.mrm-who b { display: block; font-size: 14px; }
.mrm-who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.mrm-clip { font-size: 11px; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 2px 8px; flex: 0 0 auto; }
.mrm-date { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.mrm-body { display: none; border-top: 1px solid var(--line); }
.mrm.open .mrm-body { display: block; }
.mrm-frame { width: 100%; min-height: 180px; height: 46vh; border: 0; background: #fff; }
.mrm .mr-text { margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 14px; line-height: 1.6; color: var(--text); background: #fff; }
.mrm.mine .mr-text { background: var(--surface-2); }
.mrm-atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.mrm-att { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 13px; cursor: pointer; }
.mrm-att b { font-weight: 600; }
.mrm-att span { color: var(--muted); font-size: 12px; }
.mr-actionbar { display: flex; gap: 8px; padding: 12px 2px 4px; }

/* Fenêtre mail · lisibilité type Gmail (hauteur auto + aperçu replié) */
.mrm-who { display: flex; align-items: baseline; gap: 8px; }
.mrm-who b { flex: 0 0 auto; }
.mrm-email, .mrm-snip { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrm.open .mrm-snip { display: none; }
.mrm:not(.open) .mrm-email { display: none; }
.mrm-frame { width: 100%; height: auto; min-height: 48px; border: 0; background: #fff; display: block; }
.mrm-head:hover { background: var(--surface-2); }
.mrm.mine .mrm-head:hover { background: var(--line-2); }

/* Fenêtre mail · FOND BLANC style Apple (lisibilité maximale, indépendant du thème) */
.mr-win { background: #ffffff !important; color: #1d1d1f !important; border: 1px solid #e5e5ea; }
.mr-win .mr-titlebar { background: #f5f5f7 !important; border-bottom: 1px solid #e5e5ea; color: #1d1d1f !important; }
.mr-win .mr-title { color: #1d1d1f !important; }
.mr-win .mono-badge { background: #e5e5ea !important; color: #1d1d1f !important; }
.mr-win .mrm { background: #ffffff !important; border-color: #e5e5ea !important; }
.mr-win .mrm.mine { background: #f5f5f7 !important; }
.mr-win .mrm-who b { color: #1d1d1f !important; }
.mr-win .mrm-email, .mr-win .mrm-snip, .mr-win .mrm-date, .mr-win .mrm-clip { color: #6e6e73 !important; }
.mr-win .mrm-clip { background: #ececed !important; }
.mr-win .mrm-head:hover { background: #f5f5f7 !important; }
.mr-win .mrm.mine .mrm-head:hover { background: #ececef !important; }
.mr-win .mrm-body { border-top-color: #ececed !important; }
.mr-win .mr-text { color: #1d1d1f !important; background: #ffffff !important; }
.mr-win .mrm.mine .mr-text { background: #f5f5f7 !important; }
.mr-win .mrm-atts { border-top-color: #ececed !important; }
.mr-win .mrm-att { background: #f5f5f7 !important; border-color: #e5e5ea !important; color: #1d1d1f !important; }
.mr-win .mrm-att span { color: #6e6e73 !important; }
.mr-win .mr-ta { background: #ffffff !important; border-color: #d2d2d7 !important; color: #1d1d1f !important; }
.mr-win .modal-close { color: #1d1d1f !important; }

/* Fenêtre mail blanche · boutons + fermeture lisibles */
.mr-win .modal-close { background: #e5e5ea !important; color: #1d1d1f !important; }
.mr-win .mr-actionbar .btn { background: #1d1d1f !important; color: #ffffff !important; border: 0 !important; }
.mr-win .mr-actionbar .btn.ghost { background: #ffffff !important; color: #1d1d1f !important; border: 1px solid #d2d2d7 !important; }
.mr-win .mr-reply-acts .btn { background: #1d1d1f !important; color: #ffffff !important; border: 0 !important; }
.mr-win .mr-reply-acts .btn.ghost { background: #ffffff !important; color: #1d1d1f !important; border: 1px solid #d2d2d7 !important; }

/* PAGE MAILS · fond blanc Apple (redéfinit les tokens pour tous les descendants) */
.mh-page {
  --surface: #ffffff; --surface-2: #f5f5f7; --line: #ececed; --line-2: #e5e5ea;
  --text: #1d1d1f; --muted: #6e6e73; --faint: #8a8a8e; --bg: #ffffff;
  background: #ffffff; color: #1d1d1f;
  border-radius: 22px; padding: 26px 30px 34px; margin: 0 0 24px;
}
.mh-page .air-h1 { color: #1d1d1f !important; }
.mh-page .air-lead { color: #6e6e73 !important; }
.mh-page .air-eyebrow { color: #2B57E6 !important; }
.mh-page .bc-trail, .mh-page .bc-trail a { color: #6e6e73 !important; }
.mh-page .mh-row { background: #ffffff; border-color: #e5e5ea; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.mh-page .mh-row[data-mropen]:hover { border-color: #c7c7cc; }
.mh-page .mh-tab.on { background: #1d1d1f; color: #ffffff; }
.mh-page .mh-badge.mh-fourn { color: #9a6200; }
.mh-page .mh-badge.mh-candid { color: #5b4fb0; }
.mh-page .mh-badge.mh-urgent { color: #d70015; }
.mh-page .mh-att, .mh-page .mh-val-ta, .mh-page .field { background: #ffffff; color: #1d1d1f; }

/* Mails · CLARTÉ Apple : page resserrée + centrée, lignes compactes, brouillons repliés */
.mh-page { max-width: 860px; margin-left: auto; margin-right: auto; }
.mh-page .mh-list { gap: 8px; }
.mh-page .mh-row { padding: 12px 15px; gap: 12px; align-items: center; border-radius: 14px; }
.mh-page .mh-from b { font-size: 14px; }
.mh-page .mh-from span { font-size: 12px; }
.mh-page .mh-subj { font-size: 14px; font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-page .mh-snip { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-page .mh-main { min-width: 0; }
/* File "À valider" repliée par défaut */
.mh-val-card { padding: 10px 14px; }
.mh-val-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.mh-val-head .mh-val-to { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.mh-val-head .mh-val-to b { flex: 0 0 auto; }
.mh-val-head .mh-val-subj { color: var(--muted); font-weight: 400; font-size: 13px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-val-chev { color: var(--faint); transition: transform .2s; flex: 0 0 auto; font-size: 18px; }
.mh-val-card.open .mh-val-chev { transform: rotate(90deg); }
.mh-val-fold { margin-top: 12px; }

/* Lecteur mail PAGE ENTIÈRE (plus de modale) */
.mt-page .mt-subject { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin: 14px 0 18px; }
.mt-page #mtBack { display: inline-block; margin-bottom: 8px; }
.mh-page .mono-badge { background: var(--line-2); color: var(--text); }
.mh-page .mr-actionbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 4px; }
.mh-page .mr-actionbar .btn, .mh-page .mr-reply-acts .btn { background: #1d1d1f; color: #fff; border: 0; }
.mh-page .mr-actionbar .btn.ghost, .mh-page .mr-reply-acts .btn.ghost { background: #fff; color: #1d1d1f; border: 1px solid #d2d2d7; }
.mt-compose { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; background: var(--surface-2); }
.mt-c-lbl { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.mt-c-lbl .field { flex: 1; text-align: left; }
.mt-ta { width: 100%; min-height: 190px; font: inherit; font-size: 15px; line-height: 1.6; color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; box-sizing: border-box; resize: vertical; }

/* Page Mails · le blanc vient de body.page-white (#view blanc plein) : la carte devient transparente */
.mh-page { background: transparent !important; border-radius: 0 !important; }
.mh-val-seemail { display: inline-block; margin: 0 0 10px; background: none; border: 0; padding: 0; color: #0A84FF; font-size: 13px; cursor: pointer; font-weight: 600; }
.mh-val-seemail:hover { text-decoration: underline; }

/* Plan du jour · blocs proportionnels à la durée + heure de fin visible */
.pj-b { align-items: stretch; }
.pj-b .pj-line { align-self: stretch; height: auto; min-height: 100%; }
.pj-h { display: flex; flex-direction: column; gap: 2px; }
.pj-end { font-style: normal; font-size: 11px; opacity: .55; white-space: nowrap; }
.pj-main { align-self: center; }

/* Check-in · sélecteur « jusqu'à quelle heure » (planification propre, sans décaler la journée) */
.jn-until { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; }
.jn-until-l { font-size: 13px; color: var(--muted); }
.jn-until-t { width: 120px; text-align: left; }

/* Configurateur · invite admin (au lieu du formulaire client "pour recevoir ta proposition") */
.cfg2-pick { border: 1px dashed var(--line-2); background: rgba(43,87,230,.05); }

/* Mails · badge Envoyé + toggle boîte */
.mh-badge.mh-sent { background: #e7eef7; color: #35618e; }
.mh-page .mh-badge.mh-sent { background: #e7eef7; color: #35618e; }

/* Alerte mail globale · toast Apple (verre, coin haut-droit), visible partout */
.flf-mailtoast { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; align-items: flex-start; gap: 12px; width: min(360px, calc(100vw - 36px)); padding: 14px 14px 14px 16px; border-radius: 16px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(0,0,0,.08); box-shadow: 0 12px 40px rgba(0,0,0,.18); color: #1d1d1f; cursor: pointer; opacity: 0; transform: translateY(-10px) scale(.98); transition: opacity .3s var(--ease, ease), transform .3s var(--ease, ease); }
.flf-mailtoast.in { opacity: 1; transform: translateY(0) scale(1); }
.fmt-ic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: #0A84FF; color: #fff; display: grid; place-items: center; }
.fmt-ic .ic-svg { width: 18px; height: 18px; }
.fmt-main { flex: 1; min-width: 0; }
.fmt-h { display: flex; align-items: center; gap: 8px; }
.fmt-h b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmt-kind { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: #ececed; color: #6e6e73; flex: 0 0 auto; }
.fmt-kind.fmt-client { background: #e6f4ea; color: #137333; }
.fmt-kind.fmt-prospect { background: #fef0e6; color: #b35309; }
.fmt-sub { font-size: 13px; color: #3c3c43; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmt-more { font-size: 12px; color: #6e6e73; margin-top: 3px; }
.fmt-x { background: none; border: 0; color: #86868b; cursor: pointer; font-size: 14px; padding: 2px 4px; flex: 0 0 auto; }
.fmt-x:hover { color: #1d1d1f; }

/* Devis Express · builder libre (blanc Apple) */
.ex-page { max-width: 880px; margin: 0 auto; }
.ex-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 18px; }
.ex-title { flex: 1; min-width: 240px; text-align: left; }
.ex-cli { min-width: 200px; }
.ex-lines { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.ex-lh, .ex-line { display: grid; grid-template-columns: 1fr 80px 120px 110px 34px; gap: 10px; align-items: center; padding: 10px 12px; }
.ex-lh { background: var(--surface-2); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ex-line { border-top: 1px solid var(--line); }
.ex-line .field { text-align: left; }
.ex-qty, .ex-price { text-align: right; }
.ex-lt { text-align: right; font-weight: 600; font-size: 14px; }
.ex-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
.ex-x:hover { color: #d05a4b; }
#exAdd { margin: 12px 0 0; }
.ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.ex-total { display: flex; align-items: baseline; gap: 12px; }
.ex-total span { font-size: 13px; color: var(--muted); }
.ex-total b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 620px) { .ex-lh { display: none; } .ex-line { grid-template-columns: 1fr 60px 90px; grid-auto-rows: auto; } .ex-lt, .ex-x { grid-column: span 3; text-align: left; } }

/* Plan du jour · blocs reportés (au-delà de 22h) */
.pj-defer { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }

/* ═══ DEVIS AUTOMATIQUES · brouillons préparés depuis les demandes par mail ═══ */
/* Notif d'accueil */
.aqn { display:flex; align-items:center; gap:14px; width:100%; text-align:left; margin:12px 0 4px; padding:14px 16px; border-radius:16px; cursor:pointer;
  background:linear-gradient(180deg, rgba(43,87,230,.10), rgba(43,87,230,.04)); border:1px solid rgba(43,87,230,.28); color:inherit; transition:transform .12s ease, box-shadow .2s ease; }
.aqn:hover { transform:translateY(-1px); box-shadow:0 8px 26px rgba(43,87,230,.14); }
.aqn-ic { flex:none; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-size:15px; color:#fff; background:var(--flf,#2B57E6); }
.aqn-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.aqn-main b { font-size:14.5px; font-weight:650; }
.aqn-main i { font-style:normal; font-size:12.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.aqn-go { flex:none; font-size:13px; font-weight:600; color:var(--flf,#2B57E6); }

/* Bandeau Devis & Factures (page blanche · thème clair) */
.aqz { margin:0 0 20px; padding:18px; border-radius:20px; background:#fff; border:1px solid #ececec; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.aqz-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; }
.aqz-eyebrow { display:block; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--flf,#2B57E6); margin-bottom:4px; }
.aqz-head b { display:block; font-size:17px; font-weight:650; color:#1d1d1f; }
.aqz-sub { display:block; font-size:12.5px; color:#86868b; margin-top:3px; max-width:520px; }
.aqz-list { display:flex; flex-direction:column; gap:12px; }
.aqz-card { display:flex; gap:16px; padding:15px 16px; border-radius:15px; background:#f5f5f7; border:1px solid #ececec; }
.aqz-main { flex:1; min-width:0; }
.aqz-title { font-size:14.5px; font-weight:650; color:#1d1d1f; margin-bottom:3px; }
.aqz-meta { font-size:12px; color:#86868b; margin-bottom:10px; }
.aqz-meta b { color:#1d1d1f; font-weight:600; }
.aqz-lines { display:flex; flex-direction:column; gap:5px; }
.aqz-line { display:flex; justify-content:space-between; gap:12px; font-size:13px; color:#424245; }
.aqz-line b { color:#1d1d1f; font-weight:600; white-space:nowrap; }
.aqz-side { flex:none; width:172px; display:flex; flex-direction:column; gap:8px; align-items:stretch; justify-content:center; padding-left:16px; border-left:1px solid #e5e5e7; }
.aqz-total { display:flex; flex-direction:column; gap:1px; margin-bottom:2px; }
.aqz-total span { font-size:11px; color:#86868b; text-transform:uppercase; letter-spacing:.04em; }
.aqz-total b { font-size:20px; font-weight:680; color:#1d1d1f; }
@media (max-width:640px){ .aqz-card{ flex-direction:column; } .aqz-side{ width:auto; padding-left:0; border-left:0; border-top:1px solid #e5e5e7; padding-top:12px; } }

/* Banque · comptes reliés + mouvements inter-comptes neutralisés */
.bank-acct-note { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.bank-inter { margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); padding: 8px 12px; border-radius: 10px; background: rgba(90,120,255,.07); border: 1px solid rgba(90,120,255,.16); }

/* ═══ Fenêtre « Classer » une transaction · design Apple (pastilles, plus de menu natif) ═══ */
.ov-sheet { width: min(460px, 94vw); max-height: 86vh; display: flex; flex-direction: column; background: #1c1c1e; border: 1px solid rgba(255,255,255,.10); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; animation: ovIn .22s cubic-bezier(.2,.8,.2,1); }
@keyframes ovIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 12px; }
.ov-head h2 { font-size: 22px; font-weight: 680; letter-spacing: -.02em; margin: 0; color: #fff; }
.ov-sub { font-size: 13px; color: rgba(235,235,245,.6); margin-top: 3px; }
.ov-sub b { color: rgba(255,255,255,.92); font-weight: 620; }
.ov-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(120,120,128,.24); color: #fff; font-size: 14px; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.ov-x:hover { background: rgba(120,120,128,.4); }
.ov-body { padding: 4px 22px 8px; overflow-y: auto; }
.ov-sec-t { font-size: 12px; font-weight: 640; text-transform: uppercase; letter-spacing: .05em; color: rgba(235,235,245,.5); margin: 16px 0 9px; }
.ov-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-cats { max-height: 190px; overflow-y: auto; padding-bottom: 2px; }
.ovp { font: inherit; font-size: 13.5px; font-weight: 550; padding: 9px 14px; border-radius: 980px; border: 1px solid rgba(255,255,255,.14); background: rgba(118,118,128,.16); color: rgba(235,235,245,.85); cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.ovp:hover { background: rgba(118,118,128,.28); }
.ovp:active { transform: scale(.96); }
.ovp.on { background: #fff; color: #1c1c1e; border-color: #fff; font-weight: 650; }
.ovp-vat.on.v-col { background: #2B57E6; border-color: #2B57E6; color: #fff; }
.ovp-vat.on.v-ded { background: #19a974; border-color: #19a974; color: #fff; }
.ovp-vat.on.v-auto { background: #ff9f0a; border-color: #ff9f0a; color: #1c1c1e; }
.ovp-vat.on.v-exo { background: rgba(235,235,245,.5); border-color: transparent; color: #1c1c1e; }
.ov-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px 20px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 6px; }
.ov-foot .btn { flex: 1; padding: 13px; border-radius: 14px; font-size: 15px; }
.ov-foot .btn:not(.ghost) { background: #fff; color: #1c1c1e; font-weight: 620; }

/* ═══ ARSENAL · protection A à Z ═══ */
.ars-zones { display: flex; gap: 8px; margin: 4px 0 18px; }
.ars-zt { font: inherit; font-size: 14px; font-weight: 560; padding: 10px 18px; border-radius: 980px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all .15s; }
.ars-zt.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 640; }
.ars-score { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 24px; }
.ars-score-n { display: flex; align-items: baseline; gap: 8px; }
.ars-score-n b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.ars-score-n span { color: var(--muted); font-size: 15px; }
.ars-score-alert { font-size: 13.5px; font-weight: 600; color: #2B57E6; background: rgba(43,87,230,.12); border: 1px solid rgba(43,87,230,.28); padding: 7px 14px; border-radius: 980px; }
.ars-score-ok { font-size: 13.5px; font-weight: 600; color: #19a974; }
.ars-sec { margin: 26px 0; }
.ars-sec-h { font-size: 13px; font-weight: 680; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 14px; }
.ars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ars-card { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: border-color .18s, background .18s; }
.ars-card.on { background: rgba(25,169,116,.06); border-color: rgba(25,169,116,.3); }
.ars-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ars-card-t { font-size: 15.5px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.ars-must { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #2B57E6; background: rgba(43,87,230,.12); padding: 2px 7px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.ars-check { flex: none; font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 980px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .15s; }
.ars-check:hover { border-color: var(--muted); }
.ars-check.on { background: #19a974; border-color: #19a974; color: #fff; }
.ars-bebe { font-size: 14px; line-height: 1.5; color: var(--text); margin-bottom: 12px; }
.ars-risque { font-size: 12.5px; line-height: 1.5; color: var(--muted); background: rgba(255,255,255,.02); border-left: 2px solid rgba(43,87,230,.4); padding: 8px 12px; border-radius: 0 10px 10px 0; margin-bottom: 10px; }
.ars-risque span { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #2B57E6; margin-bottom: 3px; }
.ars-prix { font-size: 13px; font-weight: 620; color: var(--text); }

/* Micro check-in · icône SVG centrée (remplace l'émoji) */
.jn-mic { display: grid; place-items: center; color: var(--muted); }
.jn-mic.rec { color: #fff; }

/* ═══ LIASSE FISCALE ═══ */
.lz-card { padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 14px; }
.lz-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lz-card-h b { font-size: 15px; font-weight: 650; }
.lz-l { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.05); }
.lz-l:last-child { border-bottom: 0; }
.lz-l b { color: var(--text); font-weight: 600; white-space: nowrap; }
.lz-l.lz-strong { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); border-bottom: 0; font-weight: 600; }
.lz-l.lz-strong span { color: var(--text); font-weight: 640; }
.lz-l.lz-strong b { font-size: 17px; }
.lz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lz-col-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.lz-is .lz-l.lz-strong b { color: #2B57E6; }
.lz-note-mini { font-size: 12px; color: var(--muted); margin-top: 10px; padding: 8px 12px; background: rgba(255,255,255,.02); border-radius: 10px; }
.lz-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lz-doc { padding: 15px 16px; border-radius: 15px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.lz-doc.pre { border-color: rgba(25,169,116,.3); }
.lz-doc.done { border-color: rgba(47,128,255,.3); }
.lz-doc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lz-doc-code { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--text); background: rgba(255,255,255,.06); padding: 3px 9px; border-radius: 7px; }
.lz-doc-st { font-size: 11px; color: var(--muted); }
.lz-doc.pre .lz-doc-st { color: #19a974; }
.lz-doc.done .lz-doc-st { color: #2f80ff; }
.lz-doc-t { font-size: 14.5px; font-weight: 620; margin-bottom: 5px; }
.lz-doc-b { font-size: 13px; line-height: 1.5; color: var(--muted); margin-bottom: 8px; }
.lz-doc-e { font-size: 12px; color: var(--faint); }
@media (max-width:560px){ .lz-cols{ grid-template-columns: 1fr; } }

/* ═══ Couche anti-bug · frontière de secours + page Santé ═══ */
.flf-boundary { max-width: 480px; margin: 60px auto; text-align: center; padding: 32px; border-radius: 22px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.flf-b-ic { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #ff9f0a; background: rgba(255,159,10,.14); border: 1px solid rgba(255,159,10,.3); }
.flf-boundary h2 { font-size: 20px; font-weight: 660; margin: 0 0 8px; }
.flf-boundary p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 20px; }
.flf-b-acts { display: flex; gap: 10px; justify-content: center; }
.diag-status { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); margin-bottom: 14px; }
.diag-status.ok { background: rgba(25,169,116,.06); border-color: rgba(25,169,116,.28); }
.diag-status.warn { background: rgba(255,159,10,.07); border-color: rgba(255,159,10,.28); }
.diag-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.diag-status.ok .diag-dot { background: #19a974; box-shadow: 0 0 0 4px rgba(25,169,116,.18); }
.diag-status.warn .diag-dot { background: #ff9f0a; box-shadow: 0 0 0 4px rgba(255,159,10,.18); }
.diag-status-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.diag-status-t b { font-size: 16px; font-weight: 640; }
.diag-status-t span { font-size: 13px; color: var(--muted); }
.diag-meta { font-size: 12.5px; color: var(--muted); margin: 0 2px 18px; }
.diag-list { display: flex; flex-direction: column; gap: 10px; }
.diag-row { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.diag-row.seen { opacity: .5; }
.diag-row-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.diag-where { font-size: 12px; font-weight: 700; color: #ff9f0a; background: rgba(255,159,10,.1); padding: 2px 8px; border-radius: 6px; }
.diag-when { font-size: 12px; color: var(--muted); }
.diag-msg { font-size: 13.5px; color: var(--text); line-height: 1.45; word-break: break-word; }
.diag-url { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.diag-seen { margin-top: 10px; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 980px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.diag-seen:hover { border-color: var(--muted); color: var(--text); }

/* Alerte critique · La Sentinelle (toast global, où que tu sois) */
.flf-senttoast { position: fixed; z-index: 100000; right: 20px; bottom: 20px; width: min(360px, calc(100vw - 40px)); display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; cursor: pointer;
  background: rgba(28,22,10,.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255,159,10,.35); box-shadow: 0 16px 46px rgba(0,0,0,.5); animation: fstIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes fstIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fst-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #1c1c1e; background: #ff9f0a; }
.fst-main { flex: 1; min-width: 0; }
.fst-h { display: flex; align-items: center; gap: 8px; }
.fst-h b { font-size: 14px; font-weight: 650; color: #fff; }
.fst-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #ff9f0a; background: rgba(255,159,10,.14); padding: 2px 7px; border-radius: 6px; }
.fst-sub { font-size: 12px; color: rgba(235,235,245,.6); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fst-x { flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font-size: 11px; }

/* === FRANSOU · lisibilite clair + chaleur (auto) === */
body.theme-light{--bg:#FAF6EF;--surface:#FFFDF9;--surface-2:#F3EEE4}
body.theme-light .card,body.theme-light .aide-cat,body.theme-light .tile{box-shadow:0 1px 2px rgba(60,40,20,.04),0 8px 24px -18px rgba(60,40,20,.10)}
body.theme-light .lb-note{color:var(--text)}
body.theme-light .idea-dlg .idea-brief b{color:var(--text)}
body.theme-light .cap-band{background:var(--surface);border-color:var(--line);color:var(--text)}
body.theme-light .crea2 .crea-card{background:var(--surface);color:var(--text)}
body.theme-light .crea2 .crea-card:hover{background:var(--surface-2);border-color:var(--line)}
body.theme-light .crea2-topic{background:var(--surface);color:var(--text)}
body.theme-light .crea2-topic:hover{background:var(--surface-2);border-color:var(--line)}
body.theme-light .magic-prem{background:var(--surface);border-color:var(--line);color:var(--text)}
body.theme-light .sp-modal .spp-card{background:var(--surface);border-color:var(--line);color:var(--text)}
body.theme-light .cl-prof-ind{color:var(--muted)}
body.theme-light .field:focus{border-color:var(--accent)}
body.theme-light .btn.ghost:hover{border-color:var(--text)}
body.theme-light .cs-expert:hover{border-color:var(--line-2)}
body.theme-light .ed-card:hover{border-color:rgba(0,0,0,.2)}
body.theme-light .ct-more:hover{border-color:rgba(0,0,0,.28)}
body.theme-light .fold-t:hover{border-color:rgba(0,0,0,.2)}
body.theme-light .gm-toggle:hover{border-color:rgba(0,0,0,.2)}
body.theme-light .kpi:hover{border-color:rgba(0,0,0,.2)}
body.theme-light .project:hover{border-color:rgba(0,0,0,.22)}
body.theme-light .modal-close:hover{border-color:rgba(0,0,0,.4)}
body.theme-light .btn.changes:hover{border-color:var(--text)}
body.theme-light .pdlg-expand:hover{border-color:rgba(0,0,0,.4)}
body.theme-light .gmail-thread:hover{border-color:rgba(0,0,0,.2)}
body.theme-light .gm-thread:hover{border-color:rgba(0,0,0,.18)}
body.theme-light .tpl-card:hover{border-color:rgba(0,0,0,.2)}
body.theme-light .mrd-lever:hover{border-color:rgba(0,0,0,.18)}
body.theme-light .stepper-cfg:hover{border-color:rgba(0,0,0,.4)}
body.theme-light .ga-pwbtn{background:var(--surface-2);border-color:var(--line)}
body.theme-light .ga-link{background:var(--surface-2);border-color:var(--line)}
body.theme-light .ga-credval{background:var(--surface-2);border-color:var(--line)}
body.theme-light .prm-row:focus-within{border-color:var(--accent)}
body.theme-light .rs-chip{background:var(--surface-2);border-color:var(--line)}
body.theme-light .rs-add{background:var(--surface-2);border-color:var(--line)}
body.theme-light .mts-i{background:var(--surface-2);border-color:var(--line)}
body.theme-light .mts-g{border-top-color:var(--line)}
body.theme-light .magic-admin{border-color:var(--line)}
body.theme-light .brief-volant{background:var(--surface-2);border-color:var(--line)}
body.theme-light .status-pill.livre{color:var(--surface)}
body.theme-light .badge.paid{color:var(--surface)}
body.theme-light .sp-when-b.on{color:var(--surface)}
body.theme-light .dl:hover{color:var(--surface)}
body.theme-light .segmented button.on{color:var(--surface)}
body.theme-light .phase-chip.on,body.theme-light .phase-chip.done{color:var(--surface)}
body.theme-light .pf-chip.on{color:var(--surface)}
body.theme-light .draw-btn.on{color:var(--surface)}
body.theme-light .seg-opt.on{color:var(--surface)}
body.theme-light .sa2-tab.on{color:var(--surface)}
body.theme-light .snote-vb.on{color:var(--surface)}
body.theme-light .tm-cta{color:var(--surface)}
body.theme-light .r2-curve,body.theme-light .r2-curve-empty{background:var(--surface);border-color:var(--line)}
body.theme-light .modal-close:hover{border-color:var(--line)}
/* === fin FRANSOU lisibilite === */
/* Plan du jour · créneaux libres (temps libre entre deux blocs) */
.pj-free { display:flex; align-items:center; gap:12px; padding:6px 6px 6px 0; }
.pj-free-h { flex:none; width:78px; padding-left:6px; color:var(--faint); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.pj-free-b { flex:1; border-left:2px dashed color-mix(in srgb, var(--muted) 32%, transparent); padding-left:13px; }
.pj-free-b b { font-size:13.5px; font-weight:600; color:var(--muted); }
.pj-free-b i { display:block; font-size:12px; color:var(--faint); font-style:normal; margin-top:2px; }
.pj-free-add { flex:none; background:transparent; border:1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); color:var(--accent); font-size:12.5px; font-weight:600; padding:6px 13px; border-radius:20px; cursor:pointer; }
.pj-free-add:hover { border-style:solid; }
/* Blocs restés sombres sur crème (débrief du soir, réserves) → forcés en clair + texte lisible */
body.theme-light .debrief { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
body.theme-light .debrief b, body.theme-light .debrief .db-slim-l b, body.theme-light .debrief h2, body.theme-light .debrief h3 { color: var(--text); }
body.theme-light .debrief span, body.theme-light .debrief .db-slim-l span, body.theme-light .debrief p, body.theme-light .debrief .meta, body.theme-light .debrief i { color: var(--muted); }
body.theme-light .debrief .btn.ghost { color: var(--text); border-color: var(--line); background: transparent; }
body.theme-light .fold-t { background: var(--surface); color: var(--text); border-color: var(--line); }
body.theme-light .fold-hint { color: var(--muted); }

/* Espace · carte réalisation : fond dégradé (jamais d'image cassée si la miniature est bloquée) */
.apc-media { background: linear-gradient(150deg, #17181e 0%, #0d0e12 55%, #050506 100%) !important; }

/* Document · bande "modalités de règlement" (acompte) sous le total */
.doc-payterm { display:flex; align-items:baseline; gap:12px; margin:12px 0 4px; padding:11px 14px; border-radius:10px; background: rgba(127,127,127,0.1); border-left: 3px solid currentColor; }
.doc-payterm-k { font-size:10.5px; letter-spacing:.12em; font-weight:700; opacity:.62; white-space:nowrap; }
.doc-payterm-v { font-size:13px; font-weight:600; line-height:1.4; }

/* Tuile devis · titre long qui se casse et reste dans la carte */
.gen-title { overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
.gen-cover, .gen-mid, .gen-name-row { max-width: 100%; min-width: 0; }
.gen-name-row .doc-name { overflow-wrap: anywhere; word-break: break-word; }

/* Titre du PDF · s'adapte à la longueur (jamais de débordement) + césure de secours */
.doc-title { overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
.doc-title.ttl-md { font-size: 42px !important; }
.doc-title.ttl-sm { font-size: 33px !important; }
.doc-title.ttl-xs { font-size: 26px !important; }

/* ═══════════════ L'ENTITÉ · l'interface du futur ═══════════════
   Une présence, pas un tableau de bord. Blanc pur sur noir profond,
   tout respire, rien ne s'affiche tant qu'on ne le demande pas. */
body.ent-on #view { padding: 0; max-width: none; }
.ent-stage { position: relative; min-height: calc(100vh - 60px); background: radial-gradient(120% 90% at 50% 38%, #0b0b0c 0%, #030304 62%, #000 100%); overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.ent-topbar { position: absolute; top: 22px; right: 26px; display: flex; gap: 18px; z-index: 5; }
.ent-link { background: transparent; border: 0; color: rgba(255,255,255,.34); font-size: 12px; letter-spacing: .08em; cursor: pointer; transition: color .3s; }
.ent-link:hover { color: rgba(255,255,255,.85); }
.ent-center { position: relative; width: min(560px, 92vw); height: min(560px, 92vw); margin-top: max(4vh, 20px); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
/* le cœur : un cercle blanc qui RESPIRE */
.ent-core { position: absolute; width: 168px; height: 168px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .8s cubic-bezier(.22,1,.36,1); z-index: 3; }
.ent-core-in { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #ffffff 0%, #e9e9ee 46%, #cfcfd8 100%); box-shadow: 0 0 60px rgba(255,255,255,.18), 0 0 160px rgba(255,255,255,.08), inset 0 -14px 34px rgba(0,0,0,.10); animation: entBreath 5.2s ease-in-out infinite; }
@keyframes entBreath { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.045); filter: brightness(1.06); } }
.ent-core:hover .ent-core-in { animation-duration: 2.6s; }
.ent-open .ent-core { transform: scale(.62) translateY(-36px); }
/* halo lent autour du cœur */
.ent-center::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); animation: entHalo 9s ease-in-out infinite; }
.ent-center::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.04); animation: entHalo 9s ease-in-out infinite reverse; }
@keyframes entHalo { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: .55; } }
/* l'orbite des domaines */
.ent-orbit { position: absolute; inset: 0; animation: entSpin 90s linear infinite; }
.ent-open .ent-orbit { animation-play-state: paused; }
@keyframes entSpin { to { transform: rotate(360deg); } }
.ent-sat { position: absolute; inset: 0; transform: rotate(calc(var(--i) / var(--n) * 360deg)); pointer-events: none; }
.ent-dot { position: absolute; top: 6%; left: 50%; transform: translateX(-50%) rotate(calc(var(--i) / var(--n) * -360deg)); background: transparent; border: 0; cursor: pointer; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; }
.ent-sat .ent-dot { animation: entCounter 90s linear infinite; }
@keyframes entCounter { to { transform: translateX(-50%) rotate(calc(var(--i) / var(--n) * -360deg - 360deg)); } }
.ent-dot-c { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px rgba(255,255,255,.55); transition: transform .35s, box-shadow .35s; }
.ent-dot:hover .ent-dot-c, .ent-dot.on .ent-dot-c { transform: scale(1.7); box-shadow: 0 0 26px rgba(255,255,255,.95); }
.ent-dot-l { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.42); transition: color .35s; white-space: nowrap; }
.ent-dot:hover .ent-dot-l, .ent-dot.on .ent-dot-l { color: #fff; }
/* la parole de l'entité */
.ent-say { position: absolute; bottom: -7%; left: 50%; transform: translateX(-50%); width: min(640px, 88vw); text-align: center; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.66); font-weight: 400; }
.ent-caret { display: inline-block; width: 1px; height: 15px; background: rgba(255,255,255,.7); margin-left: 3px; vertical-align: -2px; animation: entCaret 1.1s steps(1) infinite; }
@keyframes entCaret { 50% { opacity: 0; } }
/* la révélation : UN domaine à la fois */
.ent-panel { width: min(560px, 90vw); margin: -8px auto 60px; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1); }
.ent-panel.on { opacity: 1; transform: none; }
.ent-pk { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.ent-pbig { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 8vw, 76px); letter-spacing: -.02em; color: #fff; line-height: 1; margin-bottom: 14px; }
.ent-psub { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 22px; }
.ent-btn { background: #fff; color: #000; border: 0; border-radius: 999px; padding: 11px 26px; font-weight: 650; font-size: 13px; cursor: pointer; transition: transform .25s; }
.ent-btn:hover { transform: translateY(-1px); }
.nb-ent { color: rgba(255,255,255,.55) !important; }
.nb-ent:hover { color: #fff !important; }
.ent-open .ent-sat .ent-dot { animation-play-state: paused; }
.ent-open .ent-say { opacity: 0; transition: opacity .3s; }

/* ═══ ENTITÉ · v2 LUMIÈRE : tout blanc, sobre, rien de gros · l'esthétique d'un jeu venu de nulle part ═══ */
.ent-stage { background: radial-gradient(130% 100% at 50% 30%, #ffffff 0%, #fafafa 55%, #f2f2f4 100%); }
.ent-link { color: rgba(0,0,0,.32); }
.ent-link:hover { color: rgba(0,0,0,.85); }
/* l'orbe blanc sur blanc : il existe par la lumière et l'ombre, pas par le contraste */
.ent-core-in { background: radial-gradient(circle at 36% 30%, #ffffff 0%, #fdfdfe 40%, #ececf1 100%);
  box-shadow: 0 24px 70px rgba(20,20,30,.14), 0 4px 18px rgba(20,20,30,.08), inset 0 -18px 40px rgba(20,20,30,.05), inset 0 10px 24px rgba(255,255,255,.9); }
.ent-core.ent-speaking .ent-core-in { animation-duration: 1.6s; box-shadow: 0 24px 80px rgba(20,20,30,.2), 0 4px 18px rgba(20,20,30,.1), inset 0 -18px 40px rgba(20,20,30,.05); }
.ent-center::before { border-color: rgba(0,0,0,.055); }
.ent-center::after { border-color: rgba(0,0,0,.03); }
.ent-dot-c { width: 8px; height: 8px; background: #101014; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.ent-dot:hover .ent-dot-c, .ent-dot.on .ent-dot-c { transform: scale(1.5); box-shadow: 0 3px 14px rgba(0,0,0,.35); }
.ent-dot-l { color: rgba(0,0,0,.34); font-size: 10px; letter-spacing: .26em; }
.ent-dot:hover .ent-dot-l, .ent-dot.on .ent-dot-l { color: #101014; }
.ent-say { color: rgba(0,0,0,.5); font-size: 14px; font-weight: 400; }
.ent-caret { background: rgba(0,0,0,.55); }
/* la révélation : sobre, fin, petit · plus de monumental */
.ent-pk { color: rgba(0,0,0,.32); }
.ent-pbig { font-family: var(--font); font-weight: 550; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.015em; color: #0c0c10; }
.ent-psub { color: rgba(0,0,0,.48); font-size: 13.5px; }
.ent-btn { background: #0c0c10; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.14); }
/* ── L'analyse de brief ── */
.bfa-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.bfa-titre { width: 100%; border-radius: 14px; }
.bfa-brief { background: #0a0a0a; border: 1px solid var(--line); border-radius: 16px; color: var(--text); font-size: 14px; line-height: 1.6; padding: 16px 18px; font-family: inherit; resize: vertical; outline: none; }
.bfa-brief:focus { border-color: rgba(255,255,255,.3); }
.bfa-form .asso-rethink { align-self: flex-start; }
.bfa-res { margin-bottom: 26px; }
.bfa-sec { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; }
.bfa-p { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.85); }
.bfa-mut { color: var(--muted); }
.bfa-seq { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.82); margin-bottom: 7px; }
.bfa-seq b { color: var(--text); }
.bfa-t { display: inline-block; min-width: 92px; color: var(--flf); font-variant-numeric: tabular-nums; font-size: 12px; }
.bfa-shots { margin-bottom: 14px; font-size: 13.5px; }
.bfa-shots b { color: var(--text); display: block; margin-bottom: 6px; }
.bfa-plan { color: var(--muted); line-height: 1.55; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.1); margin-bottom: 5px; }

/* ── Analyse de brief · v2 ÉDITORIAL (l'air d'Apple, le calme d'un dossier de prod) ── */
.bfa2 { max-width: 720px; margin: 0 auto 40px; }
.bfa2-head { text-align: center; padding: 26px 0 8px; }
.bfa2-kick { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.bfa2-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 4vw, 40px); letter-spacing: .005em; color: var(--text); margin: 0; }
.bfa2-dir { margin: 40px 0 8px; padding: 24px 28px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.bfa2-dir p { margin: 0 0 8px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.85); }
.bfa2-dir p:last-child { margin-bottom: 0; }
.bfa2-ecart { color: var(--flf) !important; font-size: 13px !important; }
.bfa2-sec { position: relative; margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.07); }
.bfa2-num { position: absolute; top: 26px; right: 0; font-family: var(--display); font-weight: 700; font-size: 15px; color: rgba(255,255,255,.16); }
.bfa2-k { font-size: 11px; font-weight: 650; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.bfa2 h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; color: var(--text); }
.bfa2 p { font-size: 14.5px; line-height: 1.75; color: rgba(255,255,255,.72); margin: 0 0 10px; }
.bfa2-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
@media (max-width: 700px) { .bfa2-duo { grid-template-columns: 1fr; } }
.bfa2-pitch { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 21px !important; line-height: 1.55 !important; color: rgba(255,255,255,.92) !important; margin-bottom: 16px !important; }
.bfa2-mut { color: var(--muted) !important; font-size: 13.5px !important; }
.bfa2-mut b { color: rgba(255,255,255,.8); font-weight: 650; }
.bfa2-alt { color: var(--muted) !important; font-size: 13.5px !important; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.12); }
.bfa2-seqs { margin-top: 8px; }
.bfa2-seq { display: grid; grid-template-columns: 104px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.bfa2-seq > span { color: var(--flf); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.bfa2-seq p { margin-bottom: 4px; }
.bfa2-shots { margin-bottom: 26px; }
.bfa2-shots p { padding-left: 18px; position: relative; }
.bfa2-shots p::before { content: "·"; position: absolute; left: 4px; color: var(--muted); }
.bfa2-qs p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 16.5px !important; color: rgba(255,255,255,.85) !important; }
.bfa2-final { margin-top: 64px; padding: 30px 34px; border-radius: 20px; border: 1px solid rgba(255,107,82,.32); background: linear-gradient(180deg, rgba(255,107,82,.06), rgba(255,107,82,.015)); }
.bfa2-final p { font-size: 15.5px; color: var(--text); margin: 0; }
/* le lanceur dans l'Espace création */
.crea-brief { display: block; width: 100%; text-align: left; margin-top: 18px; background: linear-gradient(180deg, #0d0d0d, #070707); border: 1px solid var(--line); border-radius: 22px; padding: 30px 34px; cursor: pointer; transition: border-color .25s, transform .25s; }
.crea-brief:hover { border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.cbf-t { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 20px; color: var(--text); margin-bottom: 10px; }
.cbf-s { display: block; font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 640px; margin-bottom: 14px; }
/* ── TVA · cartes CA3 assagies (10 juil.) : fini le Druk géant bleu · sobre, lisible, charte noir/blanc ── */
.tvad-per-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tvad-per-k { font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tvad-per-r b, .tvad-per-r b.cr { font-family: var(--font); font-size: 16.5px; font-weight: 650; letter-spacing: 0; color: var(--text); white-space: nowrap; }
.tvad-carry { color: var(--muted); font-weight: 500; }
body.theme-light .tvad-carry { color: var(--muted); }
/* ── Son équipe : les huit moteurs incarnés ── */
.asso-equipe { margin-top: 26px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #0c0c0c, #070707); padding: 30px 32px; }
.asso-eqgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
@media (max-width: 760px) { .asso-eqgrid { grid-template-columns: 1fr; } }
.asso-eq { border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 18px 20px; background: rgba(255,255,255,.015); }
.asso-eqh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.asso-eqh b { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 13.5px; letter-spacing: .02em; color: var(--text); }
.asso-eqch { font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.asso-eqr { margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.asso-eql { margin: 0; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.68); border-top: 1px solid rgba(255,255,255,.06); padding-top: 9px; }
/* ── Analyse de brief · la zone d'insertion du fichier ── */
.bfa-dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px; border: 1.5px dashed rgba(255,255,255,.2); border-radius: 18px; cursor: pointer; text-align: center; transition: border-color .25s, background .25s; }
.bfa-dropzone:hover, .bfa-dropzone.on { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.03); }
.bfa-dz-t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 15px; color: var(--text); }
.bfa-dz-s { font-size: 12.5px; color: var(--muted); }
.bfa-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bfa-chips:empty { display: none; }
.bfa-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 8px 7px 14px; background: rgba(255,255,255,.04); }
.bfa-chip button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 11px; padding: 2px 6px; }
.bfa-chip button:hover { color: var(--text); }
.dl-card .dl-meta.dl-warn { color: #ffcf8f; }

/* ===== À VALIDER · posts proposés par l'Associé (planning social) ===== */
.soc-val { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 0 0 22px; background: rgba(255,255,255,.03); }
.soc-val-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.soc-val-head b { font-size: 15px; font-weight: 650; display: block; }
.soc-val-head span { font-size: 12.5px; color: var(--muted); }
.soc-val-row { display: grid; grid-template-columns: 130px 150px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.soc-val-when { font-size: 12.5px; color: var(--text); font-weight: 600; text-transform: capitalize; }
.soc-val-nets { font-size: 12px; color: var(--muted); }
.soc-val-cap { font-size: 13px; color: var(--text); opacity: .85; line-height: 1.45; overflow: hidden; }
.soc-val-acts { display: flex; gap: 8px; }
@media (max-width: 820px) { .soc-val-row { grid-template-columns: 1fr; gap: 6px; } .soc-val-acts { justify-content: flex-end; } }
.asso-attente { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 18px 0; background: rgba(255,255,255,.03); font-size: 14px; color: var(--text); }
.asso-attente b { font-weight: 650; }
.soc-val-oeil { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; }

/* ===== SUIVI DE MONTAGE · façon Amazon (capture Première) ===== */
.pulse-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 18px 0; background: rgba(255,255,255,.03); }
.pulse-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pulse-head b { font-size: 15px; font-weight: 650; }
.pulse-when { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 9px; vertical-align: 1px; }
.pulse-dot.on { background: #35c759; box-shadow: 0 0 0 4px rgba(53,199,89,.15); }
.pulse-img { display: block; width: 100%; border-radius: 12px; margin-top: 14px; border: 1px solid var(--line); }
.pulse-admin { display: flex; align-items: center; gap: 12px; }
.pulse-share { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.pulse-libres { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ===== DERUSHAGE · l'assistant monteur ===== */
.dr-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 6px 0 22px; background: rgba(255,255,255,.03); }
.dr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dr-head b { font-size: 15px; font-weight: 650; }
.dr-head span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dr-live { width: 9px; height: 9px; border-radius: 50%; background: #35c759; box-shadow: 0 0 0 4px rgba(53,199,89,.15); animation: drPulse 1.6s ease-in-out infinite; }
@keyframes drPulse { 50% { opacity: .35; } }
.dr-gk { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }
.dr-row { display: grid; grid-template-columns: 240px 210px 1fr; gap: 14px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.dr-name b { font-size: 13px; font-weight: 600; display: block; }
.dr-name span { font-size: 11.5px; color: var(--muted); }
.dr-notes i { font-style: normal; font-weight: 700; font-size: 16px; display: block; }
.dr-notes span { font-size: 11.5px; color: var(--muted); }
.dr-why { font-size: 12.5px; color: var(--text); opacity: .8; line-height: 1.5; }
.dr-why em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.dr-exploiter .dr-notes i { color: #35c759; }
.dr-passable .dr-notes i { color: #e8c268; }
.dr-ecarter .dr-notes i { color: #ff6b52; }
@media (max-width: 860px) { .dr-row { grid-template-columns: 1fr; gap: 4px; } }

/* ===== « UNE NOUVELLE VIDÉO VOUS ATTEND » · bannière d'accueil client ===== */
.wait-band { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 18px 0 6px; background: rgba(255,255,255,.04); color: var(--text); transition: border-color .25s, transform .25s; }
.wait-band:hover { border-color: rgba(255,107,82,.55); transform: translateY(-1px); }
.wait-ic { width: 42px; height: 42px; border-radius: 50%; flex: none; background: #FF6B52; position: relative; }
.wait-ic::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 12px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.wait-tx { flex: 1; min-width: 0; }
.wait-tx b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.wait-tx i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wait-cta { flex: none; font-size: 13px; font-weight: 650; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; }
.pa-mic { white-space: nowrap; }
.pa-heard { font-size: 12.5px; color: var(--muted); line-height: 1.5; border-left: 2px solid var(--line); padding-left: 10px; }

/* ===== L'ÉTAT-MAJOR · le plan CA du jour (brief v4) ===== */
.asso-etatmajor { margin: 26px 0; }
.asso-em-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.asso-em { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: rgba(255,255,255,.03); }
.asso-em i { font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.asso-em b { font-size: 15px; font-weight: 650; line-height: 1.35; display: block; }
.asso-em p { font-size: 12.5px; color: var(--text); opacity: .8; margin-top: 8px; line-height: 1.5; }
.asso-em .asso-em-why { color: var(--muted); opacity: 1; }
.asso-em .asso-btn { margin-top: 12px; }
.asso-em-hp { border-color: rgba(255,107,82,.35); }


/* ═══ ENTITÉ · FRANSOU CRÈME : le socle crème #FBF9F4 + encre #1A1712 + accent bleu #2B57E6.
   L'orbe existe par la lumière et l'ombre sur crème chaud ; les points restent encre ; le bouton d'action est bleu. ═══ */
body.ent-on { background: #FBF9F4; }
.ent-scene { background: radial-gradient(120% 120% at 50% 42%, #FFFDF9 0%, #F4EFE6 100%); }
.ent-core { background: radial-gradient(circle at 38% 32%, #ffffff 0%, #FDFBF6 55%, #F1EBDF 100%);
  box-shadow: 0 24px 60px rgba(26,23,18,.10), 0 6px 18px rgba(26,23,18,.07), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -10px 24px rgba(26,23,18,.05); }
.ent-say, .ent-panel, .ent-sat span { color: #4a463e; }
.ent-panel b, .ent-big { color: #1A1712; }
.ent-dot { background: transparent; }
.ent-go, .ent-panel .btn { background: #2B57E6; color: #fff; border: 0; }
.ent-actions button, .ent-classic { color: #6b665c; }
/* étiquettes de domaines : pas de pavé sombre sur crème · juste le point encre + le mot espacé */
.ent-dot-c { background: #1A1712 !important; box-shadow: none !important; }   /* le POINT est encre ; le bouton reste nu */
.ent-sat .ent-lbl, .ent-sat span:not(.ent-dot-c) { color: #6b665c; }


/* ═══ LOGIN FRANSOU · CRÈME (11 juil.) : fini l'écran cinéma sombre du moule FLF.
   Le socle est clair dès la première seconde : crème, encre, bouton bleu. ═══ */
#login { background: radial-gradient(120% 120% at 50% 30%, #FFFDF9 0%, #F4EFE6 100%); }
#login .login-card .tagline { color: #1A1712; }
#login .field { background: #fff; color: #1A1712; border: 1px solid #DDD6C9; }
#login .field::placeholder { color: #9a948a; }
#login .field:focus { border-color: #2B57E6; outline: none; box-shadow: 0 0 0 3px rgba(43,87,230,.12); }
#login form button, #login .btn { background: #2B57E6; color: #fff; }
#login .login-error { color: #c0392b; }
#login .login-hint, #login .link-btn { color: #6b665c; }
#login .lang-mount .seg-b, #login .theme-mount button { color: #1A1712; }

/* ═══ FRANSOU · CHALEUR & RYTHME (12 juil.) · retour François : « trop de blanc, tristonnet, illisible par endroits ».
   Trois gestes : (1) les héros deviennent des BLOCS ENCRE (la ponctuation cinéma, sans aucun asset FLF),
   (2) les textes secondaires regagnent du contraste (lisibilité), (3) les surfaces se réchauffent. ═══ */

/* 1 · Héros encre : le bloc sombre qui donne le rythme sur crème */
.cine-hero-c.cine-ink { background: radial-gradient(130% 160% at 12% 0%, #262119 0%, #14110C 55%, #0E0C08 100%); box-shadow: 0 26px 70px -34px rgba(26,23,18,.55); }
.cine-hero-c.cine-ink .cine-grad { background: radial-gradient(90% 120% at 85% 10%, rgba(43,87,230,.16) 0%, transparent 55%); }
.cine-hero-c.cine-ink .cine-eyebrow { color: rgba(255,253,249,.55); }
.cine-hero-c.cine-ink .cine-h1 { color: #FFFDF9; }
.cine-hero-c.cine-ink .cine-sub { color: rgba(255,253,249,.72); }

/* 2 · Lisibilité : fini le gris fantôme sur crème */
body.theme-light { --muted: #5d574c; --faint: #837c6f; --line: rgba(26,23,18,.16); --line-2: rgba(26,23,18,.09); }

/* 3 · Chaleur : cartes définies, ombres douces et chaudes */
body.theme-light .card, body.theme-light .w, body.theme-light .abento > div, body.theme-light .tile {
  border: 1px solid rgba(26,23,18,.10); box-shadow: 0 10px 30px -18px rgba(87,74,50,.25);
}
body.theme-light .empty-note { color: #5d574c; background: #F4EFE6; border: 1px dashed rgba(26,23,18,.18); }

/* Le titre du matin se sait cliquable */
#chTitle { cursor: pointer; }
#chTitle:hover em { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* puce active des segmented : jamais noir-sur-noir en clair */
body.theme-light .segmented button.on, body.theme-light .ars-zt.on, body.theme-light .ct-chip.on { background: #1A1712; color: #FFFDF9; }
body.theme-light .segmented button, body.theme-light .ars-zt { color: #1A1712; }

/* ═══ CHAÎNE CRÉATION · la Bibliothèque répond dans la fiche idée ═══ */
.mi-list { display: flex; flex-direction: column; gap: 6px; }
.mi-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 13px; }
.mi-row b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 570; }
.mi-row i { color: var(--muted); font-style: normal; font-size: 11.5px; }
.mi-k { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.mi-prompt { font-size: 12.5px; line-height: 1.6; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }

/* ═══ BILAN DE LA SEMAINE ═══ */
.bil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 6px; }
.bil-stat { border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.bil-stat b { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.bil-stat span { font-size: 12.5px; color: var(--muted); }
.bil-stat i { font-size: 11.5px; color: var(--faint); font-style: normal; }
.bil-sec { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.bil-learn { font-size: 14px; line-height: 1.65; color: var(--muted); }
.bil-learn b { color: var(--text); }
.bil-points { display: flex; flex-direction: column; gap: 8px; }
.bil-point { padding: 12px 14px; border: 1px solid var(--line-2); border-left: 3px solid #2F80FF; border-radius: 12px; font-size: 13.5px; line-height: 1.55; background: var(--surface); }

/* Garde-fou du dialogue de classement : virement interne classé à la main */
.ov-warn { background: rgba(232,194,104,.12); border: 1px solid rgba(232,194,104,.4); color: #b98a1e; border-radius: 12px; padding: 10px 13px; font-size: 12.5px; line-height: 1.5; margin-bottom: 14px; }
body.theme-light .ov-warn { color: #8a6410; background: #fbf3dd; border-color: #e6cf8b; }
/* ===== La Paie (logiciel pleine page) ===== */
.pr-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pr-mois { display: flex; align-items: center; gap: 10px; }
.pr-mois-t { font-size: 20px; font-weight: 700; text-transform: capitalize; min-width: 180px; text-align: center; }
.pr-tot { display: flex; gap: 22px; flex-wrap: wrap; }
.pr-tot > div { display: flex; flex-direction: column; }
.pr-tot span { font-size: 12px; color: #9a9a9a; }
.pr-tot b { font-size: 16px; }
.pr-rows { display: flex; flex-direction: column; gap: 8px; }
.pr-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line, #222); border-radius: 12px; }
.pr-who { display: flex; flex-direction: column; min-width: 200px; flex: 1; }
.pr-who .muted { font-size: 12.5px; }
.pr-brut { display: flex; align-items: center; gap: 8px; }
.pr-brut-inp { width: 110px; }
.pr-res { display: flex; gap: 14px; align-items: center; min-width: 200px; }
.pr-act { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.pp-add { margin-top: 22px; padding: 18px; border: 1px solid var(--line, #222); border-radius: 12px; }
.pb-table-wrap { overflow-x: auto; }
.pb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pb-table th { text-align: left; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: #9a9a9a; padding: 8px 10px; border-bottom: 1px solid var(--line, #222); }
.pb-table td { padding: 9px 10px; border-bottom: 1px solid var(--line, #1a1a1a); font-variant-numeric: tabular-nums; }
.pb-table a { color: inherit; }
/* ===== La Paie · tableau de bord + éléments variables + DSN ===== */
.pd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pd-card { padding: 14px 16px; border: 1px solid var(--line, #222); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.pd-card span { font-size: 12px; color: #9a9a9a; }
.pd-card b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pd-alerte { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line, #222); border-radius: 10px; margin-bottom: 8px; font-size: 13.5px; }
.pr-vars { display: flex; gap: 10px; flex-wrap: wrap; }
.pr-vars label { display: flex; flex-direction: column; font-size: 11px; color: #9a9a9a; gap: 3px; }
.pr-vars .pr-inp { width: 86px; }
.pr-vars.off { opacity: .45; pointer-events: none; }

/* ============================================================
   LA PAIE · monde propre : blanc, précis, SaaS premium.
   Tout est scopé sous .lp : le reste du portail garde le noir cinéma.
   Tokens : fond #F6F7F9, surfaces #FFFFFF, encre #0E1116, accent bleu #2B57E6.
   ============================================================ */
.lp { --lp-bg: #F6F7F9; --lp-card: #FFFFFF; --lp-ink: #0E1116; --lp-mut: #6B7280; --lp-line: #E6E8EC; --lp-acc: #2B57E6; --lp-ok: #0E9F6E; --lp-warn: #B45309; --lp-bad: #DC2626;
  background: var(--lp-bg); color: var(--lp-ink); margin: -24px -18px 0; padding: 0 0 60px; min-height: 100vh; border-radius: 0;
  font-family: -apple-system, "SF Pro Text", Inter, sans-serif; }
.lp .muted { color: var(--lp-mut); }
/* L'entête de l'app colle SOUS la barre noire du portail (50px), jamais par-dessus : la barre du site reste entière. */
.lp-head { position: sticky; top: 50px; z-index: 15; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--lp-line); padding: 14px 26px 0; }
/* Au-dessus d'une app claire, la barre du portail redevient un vrai bandeau noir opaque, comme sur le site. */
body:has(.lp) header.topbar { background: rgba(8,8,9,.94); }
.lp-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.lp-back { border: 1px solid var(--lp-line); background: #fff; color: var(--lp-ink); width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.lp-logo { width: 36px; height: 36px; border-radius: 11px; background: var(--lp-acc); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.lp-brand-t { display: flex; flex-direction: column; line-height: 1.25; }
.lp-brand-t b { font-size: 16px; letter-spacing: -.01em; }
.lp-brand-t span { font-size: 12px; color: var(--lp-mut); }
.lp-tabs { display: flex; gap: 2px; overflow-x: auto; }
.lp-tab { border: 0; background: none; color: var(--lp-mut); font: inherit; font-size: 13.5px; font-weight: 550; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.lp-tab:hover { color: var(--lp-ink); }
.lp-tab.on { color: var(--lp-acc); border-bottom-color: var(--lp-acc); font-weight: 650; }
.lp-body { max-width: 1060px; margin: 0 auto; padding: 26px 26px 0; }
/* Surfaces et composants existants, re-peints dans le monde clair */
.lp .pr-row, .lp .pd-card, .lp .pd-alerte, .lp .pp-add { background: var(--lp-card); border-color: var(--lp-line); box-shadow: 0 1px 2px rgba(14,17,22,.04); }
.lp .pr-row { border-radius: 14px; }
.lp .pd-card b { color: var(--lp-ink); font-size: 20px; letter-spacing: -.01em; }
.lp .pd-card span, .lp .pr-tot span { color: var(--lp-mut); }
.lp .df-input { background: #fff; border: 1px solid var(--lp-line); color: var(--lp-ink); border-radius: 10px; }
.lp .df-input:focus { border-color: var(--lp-acc); outline: none; box-shadow: 0 0 0 3px rgba(43,87,230,.12); }
.lp .df-label { color: var(--lp-ink); font-weight: 650; }
.lp .cd-hint, .lp .cs-explain { color: var(--lp-mut); }
.lp .btn { background: var(--lp-acc); color: #fff; border: 0; border-radius: 10px; font-weight: 600; }
.lp .btn:hover { filter: brightness(1.06); }
.lp .btn.ghost { background: #fff; color: var(--lp-ink); border: 1px solid var(--lp-line); }
.lp .pill { background: #EEF1F6; color: #3B4252; border: 0; }
.lp .pill.ok { background: #E6F6EF; color: var(--lp-ok); }
.lp .pill.warn { background: #FEF3E2; color: var(--lp-warn); }
.lp .pr-vars label { color: var(--lp-mut); }
.lp .pb-table th { color: var(--lp-mut); border-bottom-color: var(--lp-line); }
.lp .pb-table td { border-bottom-color: #EFF1F4; }
.lp .pb-table a { color: var(--lp-acc); text-decoration: none; }
.lp .pr-mois-t { color: var(--lp-ink); }
.lp .spinner { border-color: var(--lp-line); border-top-color: var(--lp-acc); }
.lp .pa-daf-dot.ok { background: var(--lp-ok); } .lp .pa-daf-dot.mid { background: var(--lp-warn); } .lp .pa-daf-dot.high { background: var(--lp-bad); }
@media (max-width: 720px) { .lp-body { padding: 18px 14px 0; } .lp-head { padding: 10px 14px 0; } }
.lp-cfo { align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-cfo > div { flex: 1; min-width: 260px; }
.lp-cfo-nums { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--lp-mut); }
.lp-cfo-nums b { color: var(--lp-ink); }
/* ===== La Paie · Documents (templates) ===== */
.lp-tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.lp-tpl { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 15px 16px; background: var(--lp-card, #fff); border: 1px solid var(--lp-line, #E6E8EC); border-radius: 14px; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 1px 2px rgba(14,17,22,.04); transition: border-color .15s, transform .15s; }
.lp-tpl:hover { border-color: var(--lp-acc, #2B57E6); transform: translateY(-1px); }
.lp-tpl b { font-size: 14px; }
.lp-tpl span { font-size: 12.5px; color: var(--lp-mut, #6B7280); line-height: 1.45; }
.lp-champ { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--lp-mut, #6B7280); font-weight: 550; }
.lg-row { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; align-items: center; }
.lg-row .df-input { flex: 1; min-width: 100px; }

/* ===== La Paie · v2 : PLEIN ÉCRAN, dense, costaud (retour François : le blanc doit remplir la page) ===== */
.lp { position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw; min-height: calc(100vh - 60px); margin-top: -24px; padding-bottom: 80px; }
.lp-body { max-width: 1500px; padding: 30px 40px 0; }
.lp-head { padding: 16px 40px 0; }
.lp-tab { font-size: 14px; padding: 12px 18px; }
.lp-brand-t b { font-size: 17px; }
.pd-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.lp .pd-card { padding: 20px 22px; border-radius: 16px; }
.lp .pd-card b { font-size: 26px; }
.lp .pr-row { padding: 18px 22px; border-radius: 16px; }
.lp .pd-alerte { padding: 16px 20px; border-radius: 14px; font-size: 14px; }
.lp .df-label { font-size: 15px; }
.lp .cs-explain { font-size: 14.5px; max-width: 900px; }
/* Le pipeline DSN : des étapes visibles, pas un paragraphe */
.lp-pipe { display: flex; gap: 0; align-items: stretch; margin: 18px 0 22px; flex-wrap: wrap; }
.lp-pipe-step { flex: 1; min-width: 170px; background: var(--lp-card); border: 1px solid var(--lp-line); padding: 16px 18px; position: relative; }
.lp-pipe-step:first-child { border-radius: 14px 0 0 14px; }
.lp-pipe-step:last-child { border-radius: 0 14px 14px 0; }
.lp-pipe-step + .lp-pipe-step { border-left: 0; }
.lp-pipe-step .n { display: inline-flex; width: 24px; height: 24px; border-radius: 8px; background: #EEF1F6; color: var(--lp-mut); font-size: 12px; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 8px; }
.lp-pipe-step.done .n { background: #E6F6EF; color: var(--lp-ok); }
.lp-pipe-step.cur .n { background: var(--lp-acc); color: #fff; }
.lp-pipe-step b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.lp-pipe-step span { font-size: 12px; color: var(--lp-mut); line-height: 1.45; }
/* ===== La Paie · composeur de bulletin ===== */
.lpc-wrap { display: flex; gap: 24px; align-items: flex-start; margin-top: 16px; }
.lpc-main { flex: 1; min-width: 0; }
.lpc-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; }
.lpc-head b { font-size: 20px; letter-spacing: -.01em; }
.lpc-sect { background: var(--lp-card, #fff); border: 1px solid var(--lp-line, #E6E8EC); border-radius: 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(14,17,22,.04); }
.lpc-sect summary { padding: 15px 18px; cursor: pointer; font-weight: 650; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lpc-sect summary::after { content: "▾"; color: var(--lp-mut, #6B7280); transition: transform .15s; }
.lpc-sect[open] summary::after { transform: rotate(180deg); }
.lpc-corps { padding: 0 18px 16px; }
.lpc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lpc-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--lp-mut, #6B7280); font-weight: 550; }
.lpc-lock { padding: 13px 18px; opacity: .72; }
.lpc-lock-t { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.lpc-lock-m { font-size: 12px; color: var(--lp-mut, #6B7280); margin-top: 3px; }
.lpc-cumuls { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.lpc-cumuls > div { display: flex; flex-direction: column; gap: 3px; }
.lpc-cumuls span { font-size: 11.5px; color: var(--lp-mut, #6B7280); }
.lpc-cumuls b { font-variant-numeric: tabular-nums; }
.lpc-side { width: 300px; position: sticky; top: 96px; background: var(--lp-card, #fff); border: 1px solid var(--lp-line, #E6E8EC); border-radius: 16px; padding: 20px; box-shadow: 0 6px 24px rgba(14,17,22,.06); }
.lpc-fig { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #EFF1F4; }
.lpc-fig span { font-size: 12.5px; color: var(--lp-mut, #6B7280); }
.lpc-fig b { font-size: 16px; font-variant-numeric: tabular-nums; }
.lpc-fig.hi b { font-size: 22px; color: var(--lp-acc, #2B57E6); }
.lpc-fig.hi { border-bottom: 0; padding-bottom: 12px; }
.lpc-err { color: var(--lp-bad, #DC2626); font-size: 12.5px; min-height: 16px; margin: 6px 0; }
@media (max-width: 900px) { .lpc-wrap { flex-direction: column-reverse; } .lpc-side { width: 100%; position: static; } }
.lw-tc-why { font-size: 12.5px !important; color: var(--muted) !important; font-style: italic; }
.lw-tc-notes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.lw-tc-n { background: none; border: 1px solid var(--line); color: var(--text); font-size: 12.5px; padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.lw-tc-n:hover { background: var(--text); color: var(--bg); }
.lw-tc-done { font-size: 13.5px; color: var(--muted); padding: 6px 0; }

/* ===== Banques (connecteur multi-banques) ===== */
.bk-conn { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line, #222); border-radius: 12px; margin-bottom: 8px; }
.bk-conn-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.bk-cpt { padding: 12px 16px; border: 1px solid var(--line, #222); border-radius: 12px; margin-bottom: 8px; }
.bk-picker { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; }
.bk-picker-in { width: 100%; max-width: 640px; background: var(--card, #0d0d0d); border: 1px solid var(--line, #222); border-radius: 16px; padding: 16px; }
.bk-picker-head { display: flex; gap: 8px; margin-bottom: 12px; }
.bk-picker-head input { flex: 1; }
#bkList { max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.bk-bank { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; background: none; border: 1px solid transparent; border-radius: 10px; color: inherit; cursor: pointer; font: inherit; }
.bk-bank:hover { border-color: var(--line, #333); background: rgba(255,255,255,.04); }
.bk-bank img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #fff; }
.bk-bank .muted { margin-left: auto; font-size: 12px; }
.pill.warn { background: #4a3200; color: #ffb84d; }
.bk-usage { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.bk-usage-opt { padding: 6px 14px; border: 1px solid var(--line, #333); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.bk-usage-opt.on { background: #fff; color: #000; border-color: #fff; }
/* ===== Paie · bulletins réels ===== */
.pa-reel { margin-top: 28px; padding: 18px; border: 1px solid var(--line, #222); border-radius: 14px; }
.pa-bul-rows { display: flex; flex-direction: column; gap: 6px; }
.pa-bul-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line, #222); border-radius: 10px; }
.pa-bul-row > div:last-child { display: flex; align-items: center; gap: 8px; }
/* ===== Perso (observatoire hors studio) ===== */
.ps-cpts { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-flux { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.ps-mois { text-align: center; min-width: 84px; }
.ps-bars { display: flex; gap: 5px; align-items: flex-end; justify-content: center; height: 96px; }
.ps-bar { width: 16px; border-radius: 4px 4px 0 0; min-height: 2px; }
.ps-bar.in { background: #2ecc71; }
.ps-bar.out { background: #ff5a3c; }
.ps-mois-l { margin-top: 6px; font-size: 12px; color: #9a9a9a; text-transform: capitalize; }
.ps-mois-v { font-size: 11.5px; line-height: 1.5; margin-top: 2px; }
.ps-abos { display: flex; flex-direction: column; gap: 6px; }
.ps-abo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line, #222); border-radius: 10px; }

/* ═══ ONBOARDING · L'ACCUEIL VIVANT (première connexion, esprit Entité) ═══ */
.ob-scene { min-height: calc(100vh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 44px 20px 60px; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #FBF9F4 58%, #F3EFE5 100%); }
.ob-orb { width: 104px; height: 104px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #F7F4EC 55%, #EBE6D9 100%);
  box-shadow: 0 18px 42px rgba(26,23,18,.10), 0 2px 8px rgba(26,23,18,.06), inset 0 1px 0 #fff, 0 0 0 1px rgba(26,23,18,.04);
  animation: obBreath 5.2s ease-in-out infinite; }
.ob-orb::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(43,87,230,.22); animation: obRing 5.2s ease-in-out infinite; }
.ob-orb.ob-build { animation-duration: 1.5s; }
.ob-orb.ob-build::after { animation-duration: 1.5s; border-color: rgba(43,87,230,.45); }
@keyframes obBreath { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.055) } }
@keyframes obRing { 0%, 100% { transform: scale(1); opacity: .45 } 50% { transform: scale(1.09); opacity: 1 } }
.ob-say { min-height: 36px; font-size: clamp(19px, 2.6vw, 25px); font-weight: 650; letter-spacing: -.015em; color: #1A1712; text-align: center; max-width: 660px; }
.ob-caret { display: inline-block; width: 2px; height: 1em; background: #2B57E6; margin-left: 3px; vertical-align: -2px; animation: obCaret 1s steps(1) infinite; }
@keyframes obCaret { 50% { opacity: 0 } }
.ob-step { width: 100%; max-width: 520px; min-height: 150px; }
.ob-anim { display: flex; flex-direction: column; gap: 13px; opacity: 0; transform: translateY(16px); animation: obIn .55s cubic-bezier(.2, .7, .2, 1) .1s forwards; }
@keyframes obIn { to { opacity: 1; transform: none } }
.ob-q { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: #8A8378; text-align: center; }
.ob-scene .ob-big { font-size: 17px; padding: 15px 16px; text-align: center; background: #fff; border: 1px solid #E7E2D7; color: #1A1712; border-radius: 12px; }
.ob-scene .df-input { background: #fff; border: 1px solid #E7E2D7; color: #1A1712; border-radius: 11px; }
.ob-scene .df-input:focus { border-color: rgba(43,87,230,.55); outline: none; box-shadow: 0 0 0 3px rgba(43,87,230,.1); }
.ob-duo { display: flex; gap: 10px; } .ob-duo > * { flex: 1; min-width: 0; }
.ob-go { width: 100%; margin-top: 6px; }
.ob-dots { display: flex; gap: 8px; min-height: 8px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 50%; background: #E7E2D7; transition: all .35s; }
.ob-dots i.on { width: 24px; border-radius: 5px; background: #2B57E6; }
.ob-dots i.ok { background: rgba(43,87,230,.35); }
.ob-hint { font-size: 12px; color: #8A8378; font-style: italic; text-align: center; max-width: 460px; margin: 0; }
.ob-check { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: #1A1712; align-items: center; }
.ob-check div { opacity: 0; transform: translateY(8px); animation: obIn .45s forwards; }
.ob-check b { color: #2B57E6; margin-right: 9px; }
@media (max-width: 560px) { .ob-duo { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .ob-orb, .ob-orb::after, .ob-anim, .ob-check div, .ob-caret { animation: none !important; opacity: 1 !important; transform: none !important; } }

/* ═══ CONFIGURATEUR / ONBOARDING · plus jamais de bords blancs sur les scènes crème ═══ */
body.page-white:has(.ob-scene), body.page-white:has(.cfg-scene) { background: #FBF9F4; }
html:has(.ob-scene), html:has(.cfg-scene) { background: #FBF9F4; }
.ob-scene { min-height: 100vh; }

/* ═══ LE CONFIGURATEUR · la maison apprend de tout ═══ */
.cfg-scene { min-height: calc(100vh - 60px); background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #FBF9F4 58%, #F3EFE5 100%); padding: 40px 20px 80px; }
.cfg-in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.cfg-tete { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cfg-orb { width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #F7F4EC 55%, #EBE6D9 100%); box-shadow: 0 14px 34px rgba(26,23,18,.10), inset 0 1px 0 #fff, 0 0 0 1px rgba(26,23,18,.04); animation: obBreath 5.2s ease-in-out infinite; position: relative; }
.cfg-orb::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 1px solid rgba(43,87,230,.22); animation: obRing 5.2s ease-in-out infinite; }
.cfg-orb.va { animation-duration: 1.3s; } .cfg-orb.va::after { animation-duration: 1.3s; border-color: rgba(43,87,230,.5); }
.cfg-t { font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -.015em; color: #1A1712; }
.cfg-s { font-size: 14px; color: #8A8378; max-width: 520px; }
.cfg-depot { background: #fff; border: 1.5px dashed #D8D2C4; border-radius: 18px; padding: 26px 22px; text-align: center; transition: border-color .25s, background .25s; cursor: pointer; }
.cfg-depot.sur { border-color: #2B57E6; background: rgba(43,87,230,.04); }
.cfg-depot b { font-size: 15px; } .cfg-depot p { font-size: 12.5px; color: #8A8378; margin: 6px 0 0; }
.cfg-ligne { display: flex; gap: 10px; } .cfg-ligne .df-input { flex: 1; background: #fff; }
.cfg-apports { display: flex; flex-direction: column; gap: 8px; }
.cfg-apport { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #E7E2D7; border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.cfg-apport .typ { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #2B57E6; font-weight: 800; background: rgba(43,87,230,.08); border-radius: 6px; padding: 3px 8px; flex: none; }
.cfg-apport .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-apport .tl { color: #b3ab9e; font-size: 11.5px; flex: none; }
.cfg-apport button { background: none; border: none; color: #8A8378; cursor: pointer; font-size: 14px; }
.cfg-penser { width: 100%; }
.cfg-machine { position: fixed; inset: 0; z-index: 200; background: radial-gradient(120% 90% at 50% 30%, #fff 0%, #FBF9F4 55%, #F3EFE5 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.cfg-machine .dit { min-height: 60px; font-size: clamp(18px, 2.6vw, 24px); font-weight: 650; letter-spacing: -.015em; color: #1A1712; text-align: center; max-width: 640px; padding: 0 20px; }
.cfg-machine .sous { font-size: 12.5px; color: #8A8378; letter-spacing: .1em; text-transform: uppercase; }
.cfg-cartes { display: flex; flex-direction: column; gap: 14px; }
.cfg-carte { background: #fff; border: 1px solid #E7E2D7; border-radius: 16px; padding: 20px 22px; opacity: 0; transform: translateY(14px); animation: obIn .5s cubic-bezier(.2,.7,.2,1) forwards; }
.cfg-carte h3 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #8A8378; margin: 0 0 10px; font-weight: 800; }
.cfg-carte p, .cfg-carte li { font-size: 14px; line-height: 1.5; color: #1A1712; }
.cfg-carte ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.cfg-carte .cible b { color: #2B57E6; }
.cfg-ok { background: rgba(14,159,110,.08); border: 1px solid rgba(14,159,110,.3); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: #0E7A56; }
@media (prefers-reduced-motion: reduce) { .cfg-orb, .cfg-orb::after, .cfg-carte { animation: none !important; opacity: 1 !important; transform: none !important; } }

/* ═══ CONFIGURATEUR · guides pas à pas + jauge de connaissance ═══ */
.cfg-jauge { background: #fff; border: 1px solid #E7E2D7; border-radius: 16px; padding: 18px 20px; }
.cfg-jauge .haut { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.cfg-jauge b { font-size: 14.5px; } .cfg-jauge .pc { font-size: 22px; font-weight: 800; color: #2B57E6; font-variant-numeric: tabular-nums; }
.cfg-jauge .barre { height: 8px; background: #F2EEE4; border-radius: 5px; overflow: hidden; }
.cfg-jauge .barre i { display: block; height: 100%; background: linear-gradient(90deg, #2B57E6, #5f83f0); border-radius: 5px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.cfg-jauge .manque { margin: 12px 0 0; font-size: 12.5px; color: #8A8378; line-height: 1.6; }
.cfg-jauge .manque b { color: #1A1712; font-size: 12.5px; }
.cfg-guides { display: flex; flex-direction: column; gap: 8px; }
.cfg-guide { background: #fff; border: 1px solid #E7E2D7; border-radius: 14px; overflow: hidden; }
.cfg-guide > button { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 14px 18px; cursor: pointer; font-family: inherit; text-align: left; }
.cfg-guide .ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(43,87,230,.08); color: #2B57E6; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: none; }
.cfg-guide .tt { flex: 1; font-size: 14px; font-weight: 650; color: #1A1712; }
.cfg-guide .tt small { display: block; font-weight: 400; font-size: 12px; color: #8A8378; margin-top: 1px; }
.cfg-guide .chev { color: #b3ab9e; transition: transform .25s; }
.cfg-guide.ouvert .chev { transform: rotate(90deg); }
.cfg-guide .corps { display: none; padding: 0 18px 16px 60px; }
.cfg-guide.ouvert .corps { display: block; }
.cfg-guide ol { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 7px; }
.cfg-guide li { font-size: 13.5px; line-height: 1.5; color: #1A1712; }
.cfg-guide li b { color: #2B57E6; }
.cfg-guide .astuce { margin: 10px 0 0; font-size: 12.5px; color: #8A8378; font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════
   FRANSOU LUMIÈRE · l'app dans la peau EXACTE du site
   (crème #FBF9F4, encre #1A1712, bleu #2B57E6, même police, épuré)
   Couche finale : elle gagne sur tout ce qui est piloté par variables.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --bg:        #FBF9F4;
  --surface:   #FFFFFF;
  --surface-2: #F6F2E9;
  --glass:     rgba(26, 23, 18, 0.04);
  --line:      #E7E2D7;
  --line-2:    #EFEAE0;
  --text:      #1A1712;
  --muted:     #8A8378;
  --faint:     #B3AB9E;
  --shadow:    0 18px 44px rgba(26, 23, 18, 0.10);
  --display:   -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
html, body { background: var(--bg); color: var(--text); }
body.page-white { background: var(--bg); }

/* ── La barre de navigation : costaud, claire, comme le site ── */
header.topbar {
  background: rgba(251, 249, 244, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nb-top { color: var(--text); font-weight: 650; }
.nb-top:hover { color: #2B57E6; }
.nb-top.nb-ent { color: #2B57E6; }
.nb-drop { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(26, 23, 18, 0.14); }
.nb-drop button { color: var(--text); }
.nb-drop button:hover { background: var(--surface-2); color: var(--text); }

/* ── Boutons : encre pleine + bleu signature (comme le site) ── */
.btn { background: #1A1712; color: #FBF9F4; border: 1px solid #1A1712; }
.btn:hover { background: #2B57E6; border-color: #2B57E6; color: #fff; }
.btn.approve, .btn.accent, .in-btn, .ob-go, .cfg-penser { background: #2B57E6; border-color: #2B57E6; color: #fff; }
.btn.approve:hover, .in-btn:hover, .ob-go:hover, .cfg-penser:hover { background: #1A1712; border-color: #1A1712; }
.btn.ghost, .btn.small.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--text); background: transparent; color: var(--text); }

/* ── Surfaces communes : cartes blanches, lignes sable, ombres douces ── */
.card, .modal, .panel, .toast { background: var(--surface); color: var(--text); border-color: var(--line); }
input, select, textarea { background: var(--surface); color: var(--text); border-color: var(--line); }
::placeholder { color: var(--faint); }

/* ── Le sombre volontaire qui RESTE sombre (personnalité, pas héritage) :
      la sidebar de la Messagerie et les écrans plein-noir signés ── */
.msg-cotes { background: #1A1712; }

/* Lumière · la barre reste claire PARTOUT (y compris au-dessus des pages .lp qui la forçaient noire) */
body:has(.lp) header.topbar { background: rgba(251, 249, 244, 0.9); border-bottom-color: var(--line); }
header.topbar .logo, body.page-white .topbar .logo, body:has(.lp) .topbar .logo { filter: none; color: var(--text); }
body:has(.lp) header.topbar a, body:has(.lp) header.topbar button { color: var(--text); }
header.topbar a, header.topbar button, header.topbar .client-name { color: var(--text); }
header.topbar .nb-top.nb-ent { color: #2B57E6; }

/* Lumière · les scènes plein écran cassent la largeur du conteneur : plus jamais de bandes */
.ob-scene, .cfg-scene { width: 100vw; margin-left: calc(50% - 50vw); }
.ob-manuel { display: flex; flex-direction: column; gap: 8px; }
.ob-manuel .titre { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8A8378; text-align: left; margin-top: 4px; }

/* Lumière · sélecteur de langue : lisible, définitif (la langue active = encre, texte BLANC) */
.lang-sel { background: #EFEAE0; border-color: var(--line); }
.lang-sel button { color: #8A8378; }
.lang-sel button:hover { color: #1A1712; }
.lang-sel button.on { background: #1A1712 !important; color: #FFFFFF !important; }

/* ═══ LE GRAND PARCOURS · la maison se construit chapitre par chapitre ═══ */
.ob-prog { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ob-prog-t { display: flex; justify-content: space-between; align-items: baseline; }
.ob-prog-t b { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #8A8378; font-weight: 800; }
.ob-prog-t span { font-size: 15px; font-weight: 800; color: #2B57E6; font-variant-numeric: tabular-nums; }
.ob-prog-b { height: 6px; background: #EFEAE0; border-radius: 4px; overflow: hidden; }
.ob-prog-b i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #2B57E6, #6E90FF); border-radius: 4px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ob-chip { border: 1px solid var(--line); background: #fff; color: #1A1712; border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-family: inherit; cursor: pointer; transition: all .18s; }
.ob-chip.on { background: #2B57E6; border-color: #2B57E6; color: #fff; }
.ob-chip.plus { border-style: dashed; color: #8A8378; }
.ob-ajout { display: flex; gap: 8px; } .ob-ajout .df-input { flex: 1; }
.ob-conn { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.ob-conn b { font-size: 14.5px; } .ob-conn p { font-size: 12.5px; color: #8A8378; margin: 0; line-height: 1.5; }
.ob-conn .actes { display: flex; gap: 8px; flex-wrap: wrap; }
.ob-conn .ok { color: #0E7A56; font-size: 12.5px; font-weight: 650; }
.ob-import { border: 1.5px dashed #D8D2C4; border-radius: 14px; padding: 14px 16px; font-size: 12.5px; color: #8A8378; cursor: pointer; transition: all .2s; text-align: center; }
.ob-import:hover { border-color: #2B57E6; color: #1A1712; }
.ob-compris { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; text-align: left; font-size: 13.5px; line-height: 1.55; }
.ob-compris b { color: #2B57E6; }
.ob-fin-liste { display: flex; flex-direction: column; gap: 9px; font-size: 14px; text-align: left; max-width: 440px; margin: 0 auto; }
.ob-fin-liste div { opacity: 0; transform: translateY(8px); animation: obIn .45s forwards; }
.ob-fin-liste b { color: #2B57E6; margin-right: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   LE RAIL GLOBAL · sidebar sur TOUTES les pages (façon SaaS/Stripe)
   ═══════════════════════════════════════════════════════════════════ */
#appRail { position: fixed; left: 20px; top: 66px; bottom: 20px; width: 226px; z-index: 45;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
#appRail .rail-brand { font-weight: 800; font-size: 18px; letter-spacing: .04em; color: #1A1712; padding: 6px 10px 14px; cursor: pointer; background: none; border: none; text-align: left; width: 100%; font-family: inherit; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-b { width: 100%; text-align: left; background: none; border: none; font-family: inherit; cursor: pointer; color: #6b6459; font-size: 13.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: all .15s; }
.rail-b:hover { background: #F6F2E9; color: #1A1712; }
.rail-b.on { background: rgba(43,87,230,.08); color: #2B57E6; font-weight: 650; }
.rail-b.rail-solo { font-size: 14.5px; font-weight: 650; color: #1A1712; }
.rail-grp { margin-top: 10px; }
.rail-gt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: #B3AB9E; font-weight: 800; padding: 4px 12px 4px; }
.rail-grp .rail-b { padding-left: 16px; }

/* le contenu se décale à droite du rail ; le footer et l'accueil suivent */
body.rail-on #view.wrap, body.rail-on #view { margin-left: 262px; max-width: none; width: auto; }
body.rail-on .foot { margin-left: 262px; }
/* l'ancienne navbar inline de l'accueil : masquée (le rail global la remplace) */
body.rail-on .navbar { display: none !important; }
#view:has(.navbar) { padding-left: 0; }

/* l'accueil épuré : hero calme (fini le titre Druk géant en capitales) */
body.rail-on .cine-hero { padding: 6px 0 8px; }
body.rail-on .ch-title { font-family: var(--font); text-transform: none; font-weight: 750; letter-spacing: -.02em; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.06; color: #1A1712; margin: 6px 0 12px; }
body.rail-on .ch-title em { font-family: var(--font) !important; font-style: normal !important; font-weight: 750 !important; font-size: 1em !important; line-height: inherit !important; color: #2B57E6 !important; }
body.rail-on .ch-eyebrow { color: #8A8378; margin-bottom: 14px; }
body.rail-on .ch-sub { font-family: var(--font); font-style: normal; font-weight: 400; color: #8A8378; font-size: 15px; }
body.rail-on .ask-bar { background: #fff; border: 1px solid var(--line); }
body.rail-on .ask-in { color: #1A1712; }

/* toutes les tuiles de l'accueil : blanches, texte encre (fin du blanc sur blanc) */
.abento-tile, .abento-tile.white { background: #fff !important; border: 1px solid var(--line) !important; color: #1A1712 !important; }
.abento-tile .abento-fig { color: #1A1712 !important; }
.abento-tile .abento-eyebrow, .abento-tile .abento-sub { color: #8A8378 !important; }
.abento-tile:hover { border-color: #2B57E6 !important; }
.ac-sec-title, h2.ac-sec-title { color: #1A1712 !important; }
.ac-eyebrow { color: #8A8378 !important; }

@media (max-width: 940px) {
  #appRail { position: static; left: 0; top: 0; width: auto; height: auto; margin: 12px; flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .rail-nav { flex-direction: row; flex-wrap: wrap; }
  .rail-grp { margin-top: 0; } .rail-gt { display: none; }
  body.rail-on #view.wrap, body.rail-on #view, body.rail-on .foot { margin-left: 0; }
}

/* Rail global · les entêtes des pages internes s'alignent sur le site (calmes, encre, alignées à gauche) */
body.rail-on .cine-hero-c { text-align: left; align-items: flex-start; padding: 8px 0 14px; }
body.rail-on .cine-hero-c .ch-title, body.rail-on .cine-hero-c h1 { font-family: var(--font); text-transform: none; font-weight: 780; letter-spacing: -.02em; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; color: #1A1712; }
body.rail-on .cine-hero-c .ch-title em, body.rail-on .cine-hero-c h1 em { font-family: var(--font) !important; font-style: normal !important; font-weight: 780 !important; font-size: 1em !important; color: #2B57E6 !important; }
body.rail-on .cine-hero-c .ch-sub, body.rail-on .cine-hero-c .ch-eyebrow { text-align: left; }
body.rail-on .cine-hero-c .ch-sub { font-family: var(--font); font-style: normal; color: #8A8378; }

/* ═══ DENSITÉ LOGICIEL (étude FRANSOU-DESIGN-ETUDE.md) · petit, calme, dense, lisible ═══ */
body.rail-on #view { font-size: 14px; }
body.rail-on .cine-hero-c .ch-title, body.rail-on .cine-hero-c h1,
body.rail-on .ch-title { font-size: 22px !important; font-weight: 700 !important; }
body.rail-on .cine-hero-c .ch-sub, body.rail-on .ch-sub { font-size: 13.5px !important; max-width: 560px; }
body.rail-on .ch-eyebrow { font-size: 10.5px; letter-spacing: .16em; margin-bottom: 8px; }
body.rail-on .cine-hero, body.rail-on .cine-hero-c { padding-top: 2px; padding-bottom: 8px; }
body.rail-on .abento-fig { font-size: 26px !important; font-variant-numeric: tabular-nums; }
body.rail-on .abento-tile { padding: 16px 18px; border-radius: 14px; }
body.rail-on .btn { font-size: 13.5px; }
body.rail-on .btn.small { font-size: 12.5px; }
body.rail-on .ask-bar { max-width: 620px; border-radius: 12px; }
body.rail-on .ask-in { font-size: 14px; padding: 10px 0; }
body.rail-on .fold-t { font-size: 14.5px; font-weight: 650; }
body.rail-on .tile { border-radius: 14px; }
body.rail-on table { font-size: 13.5px; }
body.rail-on th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #8A8378; }

/* Lumière · la pastille R2 : encre pleine, R2 en BLANC, lisible partout */
#r2Pill { background: #1A1712 !important; color: #FFFFFF !important; border-color: #1A1712 !important; box-shadow: 0 8px 26px rgba(26,23,18,.25) !important; }
#r2Pill:hover { border-color: #2B57E6 !important; background: #2B57E6 !important; }
#r2Panel { background: #fff !important; border-color: var(--line) !important; box-shadow: 0 24px 70px rgba(26,23,18,.18) !important; }
#r2Panel .r2-ava { color: #1A1712; } #r2Panel .r2-h b { color: #1A1712; }
.r2-chip { border-color: var(--line) !important; background: #F6F2E9 !important; color: #1A1712 !important; }

/* Mon identité · les propositions de la maison */
.id-propose { background: rgba(43,87,230,.07); border: 1px solid rgba(43,87,230,.28); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: #1A1712; margin: 12px 0; }
.id-field.propose .field { border-color: rgba(43,87,230,.4); }
.id-tag { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2B57E6; margin-left: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   FEUILLE BLANCHE 2026 · le design de l'app repart de zéro.
   Base BLANCHE, système SaaS (étude FRANSOU-DESIGN-ETUDE.md) :
   14px, bordures 1px neutres chaudes, rayons 10-14, ombres discrètes,
   icônes trait fin, un seul accent bleu. Cette couche est LA référence.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --bg:        #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #F7F6F3;
  --glass:     rgba(24, 23, 20, 0.04);
  --line:      #EAE8E3;
  --line-2:    #F1EFEA;
  --text:      #1A1712;
  --muted:     #75706A;
  --faint:     #A8A29B;
  --shadow:    0 1px 2px rgba(24, 23, 20, 0.05), 0 8px 24px rgba(24, 23, 20, 0.06);
  --radius:    12px;
  --radius-lg: 16px;
}
html, body, body.page-white { background: #FFFFFF; }
html:has(.ob-scene), html:has(.cfg-scene), body.page-white:has(.ob-scene), body.page-white:has(.cfg-scene) { background: #FFFFFF; }
.ob-scene, .cfg-scene { background: radial-gradient(110% 70% at 50% 0%, #FFFFFF 0%, #FAF9F6 70%, #F5F3EE 100%); }

/* la barre du haut : blanche, fine, pro */
header.topbar, body:has(.lp) header.topbar, body.page-white header.topbar {
  background: rgba(255, 255, 255, 0.86); border-bottom: 1px solid var(--line);
}

/* le rail : le cœur du look logiciel (icônes trait fin + libellés, actif en pilule bleue douce) */
#appRail { left: 16px; top: 62px; bottom: 16px; width: 230px; border-radius: 16px; border-color: var(--line); padding: 14px 10px; box-shadow: var(--shadow); }
#appRail .rail-brand { font-size: 16px; padding: 6px 12px 12px; }
.rail-b { display: flex; align-items: center; gap: 10px; color: #4c4842; font-size: 13.5px; padding: 7.5px 12px; border-radius: 9px; }
.rail-b .ic-svg { width: 16px; height: 16px; flex: none; opacity: .75; }
.rail-b:hover { background: var(--surface-2); color: var(--text); }
.rail-b:hover .ic-svg { opacity: 1; }
.rail-b.on { background: rgba(43, 87, 230, 0.09); color: #2B57E6; font-weight: 600; }
.rail-b.on .ic-svg { opacity: 1; }
.rail-gt { font-size: 10px; letter-spacing: .12em; color: var(--faint); padding: 10px 12px 3px; }
body.rail-on #view.wrap, body.rail-on #view { margin-left: 258px; }
body.rail-on .foot { margin-left: 258px; }

/* contrôles : le système 2026 (fini les pilules géantes : rayons 10, hauteurs contenues) */
.btn { border-radius: 10px; padding: 9px 16px; font-weight: 600; box-shadow: 0 1px 2px rgba(24,23,20,.06); }
.btn.small { border-radius: 9px; padding: 6px 12px; }
input.field, .df-input, select.field, textarea.field, select.df-input { border-radius: 10px; }
.card, .tile, .abento-tile, .fold { border-radius: var(--radius) !important; }
.modal { border-radius: var(--radius-lg); }

/* tableaux et listes : denses et nets */
body.rail-on td { padding-top: 10px; padding-bottom: 10px; }
body.rail-on .fold-t { padding: 12px 14px; }

/* scènes du parcours : blanches elles aussi (le dégradé chaud reste en bas de page, discret) */
.ob-prog-b { background: #F1EFEA; }
.ob-chip { border-radius: 9px; }
.cfg-depot, .ob-import { border-radius: 12px; }

/* Feuille blanche · la marque vit dans le rail : plus de doublon délavé dans le bandeau */
body.rail-on header.topbar .logo { display: none; }
span.logo, header.topbar span.logo { filter: none !important; opacity: 1 !important; color: #1A1712 !important; }

/* ═══ FEUILLE BLANCHE · L'ACCUEIL v2 : dashboard dense ═══ */
.fs-page { padding: 4px 0 14px; }
.fs-eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); font-weight: 700; margin-bottom: 6px; }
.fs-title { font-family: var(--font); font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--text); margin: 0; }
.fs-title em { font-style: normal; color: #2B57E6; }
.fs-sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; max-width: 640px; line-height: 1.5; }
.fs-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fs-ask { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2px 4px 2px 12px; min-width: 320px; box-shadow: 0 1px 2px rgba(24,23,20,.04); }
.fs-ask .ask-in { font-size: 13.5px; padding: 9px 0; }
.fs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.fs-kpi { position: relative; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, box-shadow .15s; min-height: 86px; }
.fs-kpi:hover { border-color: #2B57E6; box-shadow: 0 2px 10px rgba(43,87,230,.08); }
.fs-kpi-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; }
.fs-kpi-v { font-size: 22px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.fs-kpi-s { font-size: 11.5px; color: var(--muted); }
.fs-kpi-bar { display: block; height: 4px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.fs-kpi-bar i { display: block; height: 100%; background: #2B57E6; border-radius: 3px; }
.fs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin: 0 0 16px; }
.fs-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.fs-card-t { font-size: 13px; font-weight: 650; color: var(--text); }
.fs-card-p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.fs-card-a { margin-top: 4px; }

/* ═══════════ UNIFICATION 20/07 · UNE SEULE ENTÊTE, MATIÈRE LOGICIEL PARTOUT ═══════════
   Diagnostic capture par capture : 4 systèmes d'entêtes hérités (air-h1 84px, bannières vidéo
   cine-hero, dw-hero centré géant, shf-hero gradient) + tuiles noires + cartes crème.
   Règle (étude SaaS) : eyebrow 11.5 caps · titre 22/750 · sous-titre 13.5 gris · gauche ·
   les DONNÉES sont les vedettes, jamais le titre. */

/* 1 · air-intro (Paramètres, Mails, Semaine, Forteresse, Comptabilité, Réseaux, Entreprises...) */
#view .air-intro { padding: 6px 0 18px; max-width: none; }
#view .air-eyebrow { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #75706A; margin-bottom: 6px; }
#view .air-h1 { font-size: 22px !important; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; margin: 0; color: #1A1712; font-family: var(--font); }
#view .air-h1 em { font-style: normal; color: inherit; }
#view .air-lead { font-size: 13.5px; color: #75706A; max-width: 680px; margin: 5px 0 0; line-height: 1.55; }

/* 2 · cine-hero (Commandement, Activité, Contacts, Radar, Finance) : plus de bannière vidéo sombre */
#view .cine-hero-c { position: static; min-height: 0; height: auto; background: none; border: 0; border-radius: 0; padding: 6px 0 18px; margin: 0; overflow: visible; box-shadow: none; }
#view .cine-hero-c .cine-bg, #view .cine-hero-c .cine-grad { display: none; }
#view .cine-in { position: static; padding: 0; max-width: none; transform: none; }
#view .cine-eyebrow { display: block; font-size: 11.5px !important; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #75706A !important; margin-bottom: 6px; }
#view .cine-h1 { font-size: 22px !important; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; margin: 0; color: #1A1712 !important; font-family: var(--font); text-shadow: none; }
#view .cine-sub { font-size: 13.5px !important; color: #75706A !important; max-width: 680px; margin: 5px 0 0; text-shadow: none; }
#view .cine-sub b { color: #2B57E6 !important; }

/* 3 · shf-hero (Commercial) */
.shf .shf-hero { min-height: 0; height: auto; background: none !important; padding: 6px 0 0; margin: 0; border-radius: 0; text-align: left; overflow: visible; }
.shf .shf-hero video { display: none; }
.shf .shf-eyebrow { display: block; position: static; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #75706A; margin-bottom: 6px; }
.shf .shf-title { position: static; font-size: 22px !important; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; margin: 0; color: #1A1712 !important; font-family: var(--font); text-shadow: none; -webkit-text-fill-color: #1A1712; }
.shf .shf-sub { position: static; font-size: 13.5px; color: #75706A !important; max-width: 680px; margin: 5px 0 0; text-shadow: none; }
.shf .ct-chips { justify-content: flex-start !important; margin: 14px 0 22px !important; }
.shf .cl-pcm-h b { font-size: 15px; } .shf .cl-pcm-h span { font-size: 13.5px; color: #75706A; }

/* 4 · dw-hero (Devis & Factures, Coordonnées) : fini le titre centré plein écran */
#view .dw-hero { text-align: left; padding: 6px 0 14px; margin: 0; }
#view .dw-eyebrow { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #75706A; margin-bottom: 6px; }
#view .dw-title { font-size: 22px !important; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; margin: 0; color: #1A1712; font-family: var(--font); }
#view .dw-sub { font-size: 13.5px; color: #75706A; max-width: 680px; margin: 5px 0 0; }
#view .dw-actions { justify-content: flex-start; margin: 0 0 14px; }
#view .dw-actions > span:empty { display: none; }

/* 5 · xhero (Conseiller, Arsenal, R2, Environnement, Constructeur, Liasse...) */
#view .xhero { text-align: left; padding: 6px 0 18px; margin: 0; }
#view .xh-eyebrow { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #75706A; margin-bottom: 6px; }
#view .xh-title { font-size: 22px !important; line-height: 1.25; font-weight: 750; letter-spacing: .02em; margin: 0; color: #1A1712; font-family: var(--font); background: none; -webkit-text-fill-color: #1A1712; }
#view .xh-sub { font-size: 13.5px; color: #75706A; max-width: 680px; margin: 5px 0 0; }

/* 6 · tuiles zones (Commandement) : blanches, l'accent couleur reste sur la tranche */
#view .pz-z, body.page-white #view .pz-z { background: #fff; border: 1px solid #EAE8E3; border-left: 3px solid var(--zc, #2B57E6); border-radius: 12px; padding: 14px 16px; }
#view .pz-z .pz-z-l, body.page-white #view .pz-z .pz-z-l { color: #75706A; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
#view .pz-z b, body.page-white #view .pz-z b { color: #1A1712; font-size: 26px; font-family: var(--font); font-weight: 750; letter-spacing: -.01em; margin: 6px 0 2px; }
#view .pz-z .pz-z-s, body.page-white #view .pz-z .pz-z-s { color: #A8A29B; font-size: 12px; }
#view .pz-z:hover { transform: none; box-shadow: 0 2px 10px rgba(26,23,18,.06); }

/* 7 · grands compteurs (ph-stat) : chiffres logiciels, pas d'affiche */
#view .ph-stat { padding: 16px 18px; border-radius: 12px; background: #fff; }
#view .ph-stat b { font-size: 26px; font-family: var(--font); font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
#view .ph-stat span { font-size: 12px; margin-top: 4px; }
#view .ph-stat:hover { transform: none; background: #fff; }

/* 8 · cartes hub (Comptabilité...) : blanches, denses, icône discrète */
#view .soc-hub-card { min-height: 0; padding: 16px 18px; border-radius: 12px; background: #fff; gap: 6px; }
#view .soc-hub-card:hover { transform: none; border-color: rgba(43,87,230,.45); box-shadow: 0 2px 10px rgba(26,23,18,.06); }
#view .shc-ic { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; font-weight: 750; }

/* 9 · titres de section intérieurs (Commercial...) : 15px, plus jamais 44px */
#view .cl-pcm-h { font-size: 15px; font-weight: 650; margin: 0 0 12px; letter-spacing: 0; }
#view .cl-pcm-h b { font-size: 15px; font-weight: 650; }
#view .cl-pcm-h span { font-size: 13.5px; color: #75706A; font-weight: 400; }

/* 3b · shf-hero : tuer aussi le voile gradient et le centrage hérités */
.shf .shf-hero::after, .shf .shf-hero::before { display: none; }
.shf .shf-hero { align-items: flex-start; justify-content: flex-start; }
.shf .shf-hero .shf-hero-bg { display: none; }
.shf .shf-hero-sm { min-height: 0; border-radius: 0; }
.shf .shf-hero-sm .shf-title { font-size: 22px !important; }
.shf .shf-hero-sm .shf-sub { font-size: 13.5px; max-width: 680px; }

/* 10 · finitions découvertes en re-capture */
#view .xh-eyebrow, #view .xh-sub { font-family: var(--font); font-style: normal; font-weight: 650; }
#view .xh-sub { font-weight: 400; line-height: 1.55; }
#view .fx-box { background: #fff; border: 1px solid #EAE8E3; border-radius: 12px; padding: 14px 18px; }
#view .fx-box b { font-family: var(--font); font-size: 13.5px; font-weight: 700; letter-spacing: 0; color: #1A1712; }
#view .fx-box span { color: #75706A; font-size: 12px; }
#view .crm-modes { background: #F7F6F3; border: 1px solid #EAE8E3; border-radius: 10px; padding: 3px; display: inline-flex; gap: 2px; }
#view .crm-mode { font-size: 13.5px; padding: 7px 14px; border-radius: 8px; color: #75706A; }
#view .crm-mode b { font-weight: 650; }
#view .crm-mode span { background: rgba(26,23,18,.06); color: inherit; opacity: 1; }
#view .crm-mode.on { background: #1A1712; color: #fff; }
#view .crm-mode.on span { background: rgba(255,255,255,.18); color: #fff; }
#view .empty-note { font-style: normal; font-size: 13px; color: #75706A; background: #FAFAF8; border: 1px solid #EAE8E3; border-radius: 12px; padding: 22px 18px; text-align: center; }
#view .ech-empty { border: 1px solid #EAE8E3; background: #FAFAF8; border-radius: 12px; }

/* 11 · LE RADAR : du show MacBook au logiciel calme */
#view .rad-hero { align-items: flex-start; text-align: left; padding: 6px 0 18px; }
#view .rad-title { font-size: 22px !important; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; margin: 0; color: #1A1712; }
#view .rad-title br { display: none; }
#view .rad-title em { background: none; -webkit-text-fill-color: #1A1712; color: #1A1712; }
#view .rad-sub { font-size: 13.5px; color: #75706A; max-width: 680px; margin: 5px 0 0; text-align: left; }
#view .rad-ctas { justify-content: flex-start; margin-top: 14px; }
#view .rad-pill { background: #2B57E6; color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; font-size: 13.5px; }
#view .rad-pill:hover { transform: none; opacity: .92; }
#view .rad-pill.ghost { background: #fff; color: #1A1712; border: 1px solid #EAE8E3; }
#view .rad-note { font-size: 12px; color: #A8A29B; }
#view .rad-stats { gap: 12px; margin: 14px 0 28px; }
#view .rad-stat { background: #fff; border: 1px solid #EAE8E3; border-radius: 12px; padding: 16px 18px; }
#view .rad-stat i { height: 3px; width: 40px; margin-bottom: 12px; }
#view .rad-stat b { font-family: var(--font); font-size: 26px; font-weight: 750; color: #1A1712; }
#view .rad-stat span { color: #1A1712; font-size: 13px; font-weight: 650; display: block; margin-top: 4px; }
#view .rad-stat small { color: #75706A; font-size: 12px; }
#view .rad-sec-head { align-items: flex-start; text-align: left; margin-bottom: 18px; }
#view .rad-sec-head h2 { font-size: 15px; font-weight: 650; color: #1A1712; margin: 0; }
#view .rad-sec-head h2 em { font-style: normal; }
#view .rad-sec-head p { font-size: 13px; color: #75706A; max-width: 680px; margin: 4px 0 0; }

/* 12 · sections éditoriales (Création, Environnement...) : sections logiciel */
#view .env-sech { margin: 28px 0 14px; }
#view .env-sech .es-num { display: none; }
#view .env-sech em { font-family: var(--font); font-style: normal; font-size: 12px; color: #75706A; order: 2; }
#view .env-sech b { font-family: var(--font); text-transform: none; font-size: 15px; font-weight: 650; letter-spacing: 0; color: #1A1712; margin-top: 0; line-height: 1.3; }

/* 13 · L'ACTION PRIMAIRE EST BLEUE, PARTOUT (le noir = texte, le bleu = action) */
#view .btn:not(.ghost):not(.danger), .shf .rad-pill, #view .in-btn { background: #2B57E6; border-color: #2B57E6; color: #fff; }
#view .btn:not(.ghost):not(.danger):hover { opacity: .92; transform: none; }
#view .btn.ghost { background: #fff; border: 1px solid #EAE8E3; color: #1A1712; }
#view .btn.ghost:hover { border-color: #2B57E6; color: #2B57E6; }

/* 14 · plus aucun texte fantôme (dégradés clip-text hérités) ; champs blancs partout */
#view .rad-title, #view .rad-sec-head h2 { background: none !important; -webkit-text-fill-color: #1A1712 !important; color: #1A1712 !important; }
#view .rad-title em, #view .rad-sec-head h2 em { background: none !important; -webkit-text-fill-color: #2B57E6 !important; color: #2B57E6 !important; }
#view .field, #view .df-input, #view select.field, #view textarea.field { background: #fff; border-color: #EAE8E3; }

/* 15 · La Paie sous le rail : le monde .lp respecte la colonne du rail */
body.rail-on .lp { left: 0; right: 0; margin-left: -28px; margin-right: -28px; width: auto; }

/* 16 · Apprendre : entête logiciel, bouton bleu */
#view .lw-hero { padding: 6px 0 18px; }
#view .lw-eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; color: #75706A; margin-bottom: 6px; }
#view .lw-title { font-size: 22px !important; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; margin: 0; background: none !important; -webkit-text-fill-color: #1A1712; color: #1A1712; animation: none; }
#view .lw-sub { font-size: 13.5px; color: #75706A; max-width: 680px; margin: 5px 0 0; }
#view .lw-hero .fx-cta-row { margin-top: 14px !important; }
#view .fx-btn { background: #2B57E6; border: 0; color: #fff; border-radius: 10px; padding: 9px 16px; font-size: 13.5px; font-weight: 650; }
#view .fx-btn:hover { transform: none; opacity: .92; }
#view .lw-ring { transform: scale(.72); transform-origin: top right; }

/* 17 · Équipe (et pages tm-*) : entête logiciel, bento blanc, CTA bleu */
#view .tm-hero { text-align: left; padding: 6px 0 18px; }
#view .tm-eyebrow { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #75706A; margin-bottom: 6px; }
#view .tm-title, #view .tm-title.fx-grad { font-size: 22px !important; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; margin: 0; font-family: var(--font); background: none !important; -webkit-text-fill-color: #1A1712 !important; color: #1A1712 !important; animation: none; }
#view .tm-sub { font-size: 13.5px; color: #75706A; max-width: 680px; margin: 5px 0 0; text-align: left; }
#view .tm-cta-row { justify-content: flex-start; margin-top: 14px; }
#view .tm-cta { background: #2B57E6; color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; font-size: 13.5px; font-weight: 650; }
#view .tm-cta:hover { transform: none; opacity: .92; }
#view .tm-bento { gap: 12px; margin: 0 0 18px; }
#view .tm-b { background: #fff; border: 1px solid #EAE8E3; border-radius: 12px; padding: 16px 18px; text-align: left; }
#view .tm-b b { font-size: 26px; font-weight: 750; color: #1A1712; font-variant-numeric: tabular-nums; font-family: var(--font); }
#view .tm-b span { font-size: 12px; color: #75706A; }
#view .tm-empty { text-align: left; padding: 22px 18px; background: #FAFAF8; border: 1px solid #EAE8E3; border-radius: 12px; }
#view .tm-empty .tm-h2 { font-size: 15px; margin: 0; }
#view .tm-h2 { font-size: 15px; font-weight: 650; }
#view .tm-b b { background: none !important; -webkit-text-fill-color: #1A1712 !important; color: #1A1712 !important; font-size: 26px !important; margin-bottom: 4px; }
/* 18 · .hero générique (Forteresse vide...) : même entête logiciel */
#view .hero { text-align: left; padding: 6px 0 18px; }
#view .hero h1 { font-size: 22px !important; font-weight: 750; font-family: var(--font); letter-spacing: -.01em; color: #1A1712; margin: 0; }
#view .hero h1 em { font-style: normal; font-family: var(--font); color: inherit; }
#view .hero p { font-size: 13.5px; color: #75706A; margin: 5px 0 0; max-width: 680px; font-family: var(--font); font-style: normal; }

/* ═══ 19 · ACCUEIL v2 (20/07) : la fameuse phrase, une barre de demande visible, des KPI vivants ═══ */
#view .fs-home-v2 { display: block; }
#view .fs-title-home { font-size: 26px; letter-spacing: -.015em; }
#view .fs-ask-home { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 780px; margin: 16px 0 2px; height: 48px; padding: 0 6px 0 16px; border: 1px solid #EAE8E3; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(26,23,18,.05); transition: border-color .15s, box-shadow .15s; }
#view .fs-ask-home:focus-within { border-color: #2B57E6; box-shadow: 0 0 0 3px rgba(43,87,230,.12); }
#view .fs-ask-home .ask-spark { color: #2B57E6; }
#view .fs-ask-home .ask-in { flex: 1; border: 0; background: none; font-size: 14.5px; font-family: inherit; color: #1A1712; outline: none; }
#view .fs-ask-home .ask-go { width: 36px; height: 36px; border: 0; border-radius: 9px; background: #2B57E6; color: #fff; font-size: 16px; cursor: pointer; }
#view .fs-ask-home .ask-go:hover { opacity: .92; }
#view .fs-kpi { transition: border-color .15s, transform .15s, box-shadow .15s; }
#view .fs-kpi:hover { border-color: rgba(43,87,230,.45); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,23,18,.06); }
#view .fs-kpi-l::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--kc, #2B57E6); margin-right: 6px; vertical-align: 1px; }
#view .fs-kpi:nth-child(1) { --kc: #2B57E6; } #view .fs-kpi:nth-child(2) { --kc: #0E9F6E; }
#view .fs-kpi:nth-child(3) { --kc: #8B5CF6; } #view .fs-kpi:nth-child(4) { --kc: #F59E0B; }
#view .fs-kpi:nth-child(5) { --kc: #EC4899; }

/* 20 · plus AUCUNE couche décorative héritée (grain, voiles) : le calme */
#view .lux::before, #view .lux::after, .shf::before, .shf::after, .shf-hero::before, .shf-hero::after { display: none !important; content: none !important; }
#view .lux { min-height: 0; }

/* ═══ 21 · MATIÈRE LOGICIEL NIVEAU 2 (20/07) : sparklines, tableaux 40px, panneaux réglages ═══ */
#view .fs-spark { display: block; width: 100%; height: 26px; margin-top: 8px; }
#view .fs-kpi { display: flex; flex-direction: column; align-items: flex-start; }

/* tableaux : 40px la rangée, entêtes en capitales discrètes, chiffres tabulaires */
#view table { border-collapse: collapse; width: 100%; }
#view table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #75706A; font-weight: 650; text-align: left; padding: 9px 12px; border-bottom: 1px solid #EAE8E3; }
#view table td { font-size: 13.5px; padding: 10px 12px; border-bottom: 1px solid #F0EEE9; font-variant-numeric: tabular-nums; }
#view table tbody tr { transition: background .12s; }
#view table tbody tr:hover { background: #FAFAF8; }

/* panneaux réglages (Paramètres, structures) : le panneau blanc calme façon Zapier */
#view .prm-struct { background: #fff; border: 1px solid #EAE8E3; border-radius: 12px; padding: 16px 18px; }
#view .prm-sect { font-size: 15px; font-weight: 650; letter-spacing: 0; text-transform: none; }
#view .prm-sub { font-size: 13px; color: #75706A; }
