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

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

:root {
  --bg:        #000000;
  --surface:   #0b0b0b;
  --surface-2: #151515;
  --line:      rgba(255,255,255,0.12);
  --line-2:    rgba(255,255,255,0.06);
  --text:      #ffffff;
  --muted:     rgba(255,255,255,0.56);
  --faint:     rgba(255,255,255,0.34);

  --font:    "TWK Lausanne", "Helvetica Neue", Arial, sans-serif;
  --display: "Druk Wide", "Helvetica Neue", Arial, sans-serif;
  --serif:   "PP Editorial", Georgia, serif;

  --radius: 12px;
  --maxw:   1120px;
  font-synthesis: none;
}

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

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

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

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--text);
  color: #000;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 16px;
  letter-spacing: 0.01em;
  transition: opacity .18s, transform .05s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.99); }
.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); }
.btn.small { width: auto; padding: 11px 20px; font-size: 13px; }

.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(0,0,0,0.7);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line-2);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar .right { display: flex; align-items: center; gap: 16px; }
.client-name { font-size: 13px; color: var(--muted); }
.client-name b { color: var(--text); font-weight: 600; }

/* ============================================================
   HERO / KPIs
   ============================================================ */
.hero { padding: 64px 0 28px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.0;
  font-size: 34px;
  margin-bottom: 14px;
}
.hero p { color: var(--muted); font-size: 15px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0 12px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.kpi .val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.kpi .val small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.kpi .lbl { font-size: 12px; color: var(--muted); margin-top: 10px; letter-spacing: 0.02em; }

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

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

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

.project {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.project:hover { border-color: var(--line); background: var(--surface-2); }
.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 */
.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 .meta { font-size: 13px; }
.modal-close {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; flex-shrink: 0;
}
.modal-close:hover { color: var(--text); border-color: rgba(255,255,255,0.4); }

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

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

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

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

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

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

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

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

.desktop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding-bottom: 40px;
}
.tile {
  position: relative;
  background: linear-gradient(165deg, #111111 0%, #0a0a0a 100%);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px 20px;
  cursor: pointer;
  transition: transform .18s var(--ease-out), border-color .25s, box-shadow .25s;
  min-height: 162px;
  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: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}
.tile:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 22px 48px -26px rgba(0,0,0,.95); }
.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: 14px; 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: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.tile .t-meta { display: flex; align-items: center; gap: 8px; }
.tile .t-count { font-size: 12px; color: var(--muted); }
.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); }

/* 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; }
.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); }

/* ---------- 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; }
.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;
}
.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; }
.lb-cap { font-size: 13px; color: var(--muted); letter-spacing: 0.01em; animation: fadeIn .5s var(--ease) .15s both; }
.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); }

@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); }

/* 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: 13.5px; line-height: 1.5; min-height: 38px; outline: none; white-space: pre-wrap; word-break: break-word; }
.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: 2px; bottom: 2px; width: 16px; height: 16px; cursor: nwse-resize; opacity: 0; transition: opacity .15s; }
.bcard-resize::before { content: ""; position: absolute; right: 4px; bottom: 4px; width: 7px; height: 7px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); }
.bcard:hover .bcard-resize { opacity: 1; }

/* 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; }
.client-logo { height: 46px; width: auto; max-width: 170px; object-fit: contain; }
.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; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); 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); }
.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; }
.bcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bcard-date { color: var(--faint); font-size: 10px; white-space: nowrap; }

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

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

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

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

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

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

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

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

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

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

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

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

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