/* ───────────────────────────────────────────────────────────────────────────
   MAISON ÉPHÉSIA · SIA V42 UNIFIÉ
   Identité visuelle exacte V42 : Ivoire chaud #F4EFE6 · Blanc #FFFFFF · Noir #141414
   Zéro séparation Boule / Portail / Maquette · Responsive Mac App & iPhone
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #F4EFE6;
  --bg-2: #EBE3D5;
  --card: #FFFFFF;
  --ink: #141414;
  --ink-soft: #52514E;
  --ink-faint: #8A8780;
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.16);
  --bar: rgba(244, 239, 230, 0.86);
  --gold: #A98952;
  --ok: #2E6F4E;
  --warn: #A66B1F;
  --danger: #9B2C2C;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --r: 20px;
  --r-sm: 13px;
  --sh: 0 2px 10px rgba(20,20,20,.035), 0 14px 36px rgba(20,20,20,.045);
  --sh-hover: 0 6px 20px rgba(20,20,20,.07), 0 20px 44px rgba(20,20,20,.08);
}

[data-theme="white"] {
  --bg: #F7F7F8;
  --bg-2: #EEEEF0;
  --card: #FFFFFF;
  --ink: #111111;
  --ink-soft: #525257;
  --ink-faint: #8E8E93;
  --line: rgba(0, 0, 0, 0.075);
  --bar: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] {
  --bg: #0B0B0D;
  --bg-2: #16161A;
  --card: #16161A;
  --ink: #F5F2EB;
  --ink-soft: #B4B0A8;
  --ink-faint: #78756E;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --bar: rgba(16, 16, 20, 0.86);
  --sh: 0 10px 34px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { max-width: 100%; }

/* ── Bandeau supérieur V42 (Accès Fondatrice / Équipe / Client) ── */
.role-band {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #141414;
  color: #F4EFE6;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
}
.role-band-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.role-band-left { display: flex; align-items: center; gap: 9px; color: rgba(244,239,230,.85); }
.role-band-left strong { color: #FFFFFF; font-weight: 600; }
.role-dot { width: 8px; height: 8px; border-radius: 50%; background: #D4B475; box-shadow: 0 0 10px rgba(212,180,117,.7); }
.role-band-actions { display: flex; align-items: center; gap: 8px; }
.rb-btn {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #F4EFE6;
  font-size: 12px;
  font-weight: 600;
  transition: background .16s ease, transform .12s ease;
}
.rb-btn:hover { background: rgba(255,255,255,.22); }
.rb-btn.rb-ghost { background: transparent; border: 1px solid rgba(255,255,255,.18); font-weight: 500; }

/* ── Barre de navigation V42 Desktop ── */
.v42-app {
  max-width: 1360px;
  margin: 0 auto;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.v42-desktop-bar {
  position: sticky;
  top: 39px;
  z-index: 80;
  margin: 14px 20px 6px;
  padding: 10px 16px;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--sh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.brand-home-btn { display: flex; align-items: center; gap: 12px; text-align: left; }
.brand-emblem {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}
[data-theme="dark"] .brand-emblem { filter: invert(1) brightness(1.1); }
.brand-txt { display: flex; flex-direction: column; }
.brand-kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.brand-sub { font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }

.v42-top-tabs {
  display: none;
}
.vtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .18s ease;
  white-space: nowrap;
}
.vtab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vtab:hover { color: var(--ink); }
.vtab.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20,20,20,.08);
}
.vbadge {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(20,20,20,.09);
  color: var(--ink);
}
.vbadge.dark { background: #141414; color: #F4EFE6; }
[data-theme="dark"] .vbadge.dark { background: #D4B475; color: #141414; }

.orb-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #141414;
  color: #F4EFE6;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(20,20,20,.18);
  transition: transform .15s ease;
}
[data-theme="dark"] .orb-pill-btn { background: #F4EFE6; color: #141414; }
.orb-pill-btn:hover { transform: translateY(-1px); }
.orb-mini-glow {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E6F8FF, #5CC8FF 55%, #1E5CE6 100%);
  box-shadow: 0 0 12px #5CC8FF;
  animation: pulseOrb 2.4s ease-in-out infinite;
}
@keyframes pulseOrb {
  0%, 100% { transform: scale(1); opacity: .95; }
  50% { transform: scale(1.22); opacity: 1; }
}

/* ── Contenu principal & En-têtes V42 ── */
.v42-main { padding: 12px 20px 30px; }
.v42-view[hidden], [hidden] { display: none !important; }

.e-head {
  padding: 10px 4px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.e-k {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.e-head h1, .v42-h1 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.028em;
  margin-top: 4px;
}
.lead { font-size: 15px; color: var(--ink-soft); margin-top: 5px; line-height: 1.42; }
.serif { font-family: var(--serif); letter-spacing: -.01em; font-weight: 500; }

.sec {
  margin: 22px 2px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.sec h3 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sec-link { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.sec-link:hover { color: var(--ink); text-decoration: underline; }

/* ── Tuiles Bento & Cartes V42 ── */
.bento-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}
.bento-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.bento-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bento-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.e-tile, .v42-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--sh);
  position: relative;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}
button.e-tile:hover, .clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-hover);
}
.e-tile-dark, .day-tile, .next-move {
  background: #141414;
  color: #F4EFE6;
  border-color: rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 14px 34px rgba(20,20,20,.18);
}
[data-theme="dark"] .e-tile-dark, [data-theme="dark"] .day-tile, [data-theme="dark"] .next-move {
  background: #1D1D23;
  border-color: rgba(212,180,117,.28);
}
.e-tile-dark .e-k, .day-tile .dt-k, .next-move .nm-eye {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(244,239,230,.58);
}
.e-v { display: block; font-size: 25px; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; margin-top: 6px; }
.e-sub { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.42; }
.e-tile-dark .e-sub { color: rgba(244,239,230,.75); }
.e-go {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(20,20,20,.05);
  display: grid;
  place-items: center;
}
.e-go svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.e-tile-dark .e-go { background: rgba(255,255,255,.12); color: #F4EFE6; }

/* ── Image juste sous « Bonjour Ismaël » ── */
.client-hello-visual {
  display: block;
  width: 100%;
  margin: 2px 0 18px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #111;
}
.client-hello-visual img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.client-hello-visual span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-family: var(--serif);
  font-size: 26px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

/* ── Panneau dossier dans Directeurs ── */
.director-dossier-panel {
  margin: 16px 0 20px;
}
.director-dossier-panel .proj-artifact {
  margin-bottom: 0;
}

/* ── Artefact d'un projet (vues et plans réels, rien d'inventé) ── */
.proj-artifact {
  cursor: pointer;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  background: #141414;
  color: #F4EFE6;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
}
.pa-stage { position: relative; min-height: 320px; background: #111; }
.pa-main { width: 100%; height: 420px; object-fit: cover; object-position: center; display: block; }
.pa-main.is-plan { object-fit: contain; background: #fff; height: 420px; }
.pa-cap {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(12,12,12,.72); color: #F4EFE6;
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; max-width: 80%;
}
.pa-side { padding: 20px 20px 18px; }
.pa-side h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 6px 0 12px; }
.pa-facts { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pa-facts div { display: grid; grid-template-columns: 118px 1fr; gap: 8px; font-size: 13px; }
.pa-facts dt { color: rgba(244,239,230,.55); }
.pa-facts dd { margin: 0; }
.pa-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pa-thumb { width: 64px; height: 48px; padding: 0; border-radius: 8px; overflow: hidden; border: 1.5px solid transparent; background: #222; }
.pa-thumb.on { border-color: #E8C987; }
.pa-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .proj-artifact { grid-template-columns: 1fr; }
  .pa-main { height: 260px; }
}

/* ── Carte Boule SIA intégrée au Tableau ── */
.tableau-orb-card {
  background: #070b16;
  color: #F4EFE6;
  border-radius: 22px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  box-shadow: 0 14px 34px rgba(20,20,20,.18);
  overflow: hidden;
}
.toc-network {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.toc-network img {
  width: 100%;
  height: auto;
  display: block;
}
.toc-talk { width: 100%; }
.toc-sphere {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.95), rgba(125,222,255,.85) 28%, rgba(44,116,255,.55) 62%, rgba(12,24,64,.1) 100%);
  box-shadow: 0 0 22px rgba(92,200,255,.45), inset 0 0 12px rgba(255,255,255,.55);
  animation: floatSphere 4.2s ease-in-out infinite;
}
.toc-orbit {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(155, 222, 255, 0.36);
  animation: spinSlow 18s linear infinite;
}
.toc-orbit::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E8C987;
  box-shadow: 0 0 10px #E8C987;
}
@keyframes floatSphere {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ── Boutons V42 ── */
.v42-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform .14s ease, opacity .14s ease;
}
.v42-cta:hover { transform: translateY(-1px); opacity: .94; }
.v42-cta.light { background: #F4EFE6; color: #141414; }
.v42-cta.ghost { background: rgba(20,20,20,.06); color: var(--ink); }
[data-theme="dark"] .v42-cta.ghost { background: rgba(255,255,255,.10); color: #F4EFE6; }
.v42-cta.ghost-light { background: rgba(255,255,255,.13); color: #F4EFE6; border: 1px solid rgba(255,255,255,.18); }
.v42-cta:disabled { opacity: .42; pointer-events: none; }

/* ── GRANDES CARTES PROJETS PHOTO V42 (.pcard) ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--sh);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); }
.pcard-vis {
  height: 205px;
  position: relative;
  overflow: hidden;
  background: #1C1B19;
}
.pcard-vis img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.pcard:hover .pcard-vis img { transform: scale(1.04); }
.pcard-vis::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,.22) 0%, rgba(12,12,12,0) 42%, rgba(12,12,12,.58) 100%);
  pointer-events: none;
}
.pcard-code-pill {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.68);
  backdrop-filter: blur(12px);
  color: #F4EFE6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.pcard-phase {
  position: absolute;
  bottom: 13px;
  left: 13px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  color: #141414;
  font-size: 11.5px;
  font-weight: 600;
}
.pring {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.62);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}
.pring svg { position: absolute; inset: 3px; width: 40px; height: 40px; transform: rotate(-90deg); }
.pring circle { fill: none; stroke-width: 2.8; }
.pring .bg { stroke: rgba(255,255,255,.24); }
.pring .fg { stroke: #F4EFE6; stroke-linecap: round; }

.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-addr { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.pcard-name { font-size: 21px; font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.pcard-sub { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.pcard-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.pill-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(46, 111, 78, 0.11);
  color: var(--ok);
}
.pill-status.warn { background: rgba(166, 107, 31, 0.13); color: var(--warn); }
.pill-status.danger { background: rgba(155, 44, 44, 0.12); color: var(--danger); }

/* ── THE EPHESIA LINE (.eline · 9 étapes) ── */
.eline {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--sh);
}
.eline-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.eline-top .cur { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.eline-top .cnt { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.eline-track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eline-track::before {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--line-strong);
}
.eline-fill {
  position: absolute;
  left: 6px;
  height: 2.5px;
  background: var(--ink);
  transition: width .4s ease;
}
.eline-dot {
  position: relative;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--ink-faint);
  transition: transform .18s ease;
}
.eline-dot.done { background: var(--ink); border-color: var(--ink); }
.eline-dot.now {
  width: 16px;
  height: 16px;
  background: var(--ink);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 2px var(--ink);
}
.eline-steps-labels {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--ink-faint);
  text-align: center;
}
.eline-steps-labels span.active { color: var(--ink); font-weight: 700; }

/* ── Fiche Détail Projet V42 + Comparateur Avant/Après ── */
.proj-hero-banner {
  height: 290px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--sh);
  margin-bottom: 16px;
}
.proj-hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,.72) 100%);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}
.back-pill {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(20,20,20,.58);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.gal-thumb {
  height: 132px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gal-thumb:hover img { transform: scale(1.05); }
.gal-thumb span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15,15,15,.68);
  color: #FFF;
  font-size: 11px;
  font-weight: 600;
}

.ba-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--sh);
}
.ba-stage {
  position: relative;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  user-select: none;
}
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after-clip { position: absolute; inset: 0; overflow: hidden; }
.ba-tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20,20,20,.7);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  z-index: 4;
}
.ba-tag.left { left: 12px; }
.ba-tag.right { right: 12px; }

/* ── Listes iOS V42 (.ioslist / .iosrow) ── */
.ioslist {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}
.iosrow {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
  transition: background .15s ease;
}
.iosrow:last-child { border-bottom: 0; }
button.iosrow:hover, .iosrow.clickable:hover { background: rgba(20,20,20,.028); }
.r-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.r-ico.dark { background: #141414; color: #F4EFE6; }
.r-body { flex: 1; min-width: 0; }
.r-t { font-size: 14.5px; font-weight: 600; line-height: 1.28; }
.r-s { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; line-height: 1.35; }
.r-end { font-size: 12.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.chk-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink-faint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.chk-circle.done { background: var(--ok); border-color: var(--ok); color: #FFF; }

/* ── Contrôle segmenté iOS V42 (.seg) ── */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(120, 116, 108, 0.12);
  padding: 4px;
  border-radius: 13px;
}
.seg button {
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .16s ease;
}
.seg button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(20,20,20,.09);
}

/* ── VUE AGENTS & STUDIO 3D (6 Grands Studios + 88 Missions) ── */
.studio-switcher {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.studio-tab-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 17px;
  padding: 14px 15px;
  text-align: left;
  box-shadow: var(--sh);
  transition: all .18s ease;
}
.studio-tab-card:hover { transform: translateY(-2px); }
.studio-tab-card.active {
  background: #141414;
  color: #F4EFE6;
  border-color: #141414;
}
[data-theme="dark"] .studio-tab-card.active {
  background: #F4EFE6;
  color: #141414;
}
.studio-tab-card .st-k { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .62; }
.studio-tab-card .st-t { font-size: 14.5px; font-weight: 700; margin-top: 4px; line-height: 1.2; }
.studio-tab-card .st-s { font-size: 11.5px; opacity: .72; margin-top: 4px; }

.studio-3d-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 18px;
}
.axon-stage {
  background: #141311;
  border-radius: 20px;
  padding: 16px;
  color: #F4EFE6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#studio3d-canvas {
  width: 100%;
  height: 330px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, #26231E 0%, #12110F 100%);
  cursor: grab;
}
.studio-form { display: flex; flex-direction: column; gap: 12px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fblock { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.fblock input, .fblock select, .fblock textarea {
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
  font-size: 13.5px;
}
.code-box {
  background: #121214;
  color: #E8E4DC;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  line-height: 1.48;
  padding: 14px;
  border-radius: 14px;
  max-height: 250px;
  overflow: auto;
  white-space: pre-wrap;
}

.mission-output {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  line-height: 1.56;
  white-space: pre-wrap;
}

/* ── Cartes Risques CR (Mission n°1 · 4 blocs obligatoires) ── */
.risk-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--sh);
  margin-bottom: 12px;
}
.risk-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.risk-box {
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.42;
}
.risk-box strong { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.risk-box.fix { background: rgba(46, 111, 78, 0.09); border: 1px solid rgba(46, 111, 78, 0.22); }

/* ── Catalogue des 88 Missions actionnables ── */
.poles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}
.pole-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--sh);
}
.mission-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 12.8px;
  font-weight: 500;
  text-align: left;
  transition: background .15s ease, transform .12s ease;
}
.mission-btn-row:hover { background: #141414; color: #F4EFE6; transform: translateX(2px); }
.mission-btn-row em { font-style: normal; font-size: 11px; font-weight: 700; opacity: .75; flex-shrink: 0; }

/* ── CONCIERGE SIA + SPHÈRE NEURALE 3D ── */
.concierge-layout {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}
.concierge-orb-card {
  background: radial-gradient(circle at 50% 44%, #102544 0%, #070B14 66%, #04050A 100%);
  color: #F4EFE6;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 44px rgba(5, 8, 18, 0.34);
  min-height: 580px;
}
.orb-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.orb-card-title { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.1; margin-top: 4px; }
.orb-card-sub { font-size: 13px; color: rgba(226, 236, 250, 0.72); margin-top: 5px; }
.orb-state-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(125, 218, 255, 0.15);
  border: 1px solid rgba(125, 218, 255, 0.32);
  color: #CBEFFF;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.universe-stage-wrap {
  position: relative;
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sia-network-visual {
  width: min(100%, 520px);
  height: auto;
  display: block;
  border-radius: 18px;
}
.concierge-universe-host {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  touch-action: none;
}
#concierge-universe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
.orb-voice-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.orb-metrics { text-align: center; font-size: 11.5px; color: rgba(226, 236, 250, 0.62); margin-top: 10px; }

.concierge-chat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  min-height: 580px;
}
.suggest-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 20px 12px;
}
.chip-q {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .14s ease;
}
.chip-q:hover { background: var(--ink); color: var(--bg); }
.concierge-thread {
  flex: 1;
  padding: 12px 20px;
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bub {
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.48;
  white-space: pre-wrap;
}
.bub.them { background: var(--bg); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.bub.me { background: #141414; color: #F4EFE6; align-self: flex-end; border-bottom-right-radius: 5px; }
.bub-who { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.composer {
  margin: 12px 16px 16px;
  padding: 7px 7px 7px 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}
.composer input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; }
.composer button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
}

/* ── Planning Gantt & Semaine V42 ── */
.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.day-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--sh);
}
.day-col-head { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.slot-pill {
  padding: 10px 11px;
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 8px;
  font-size: 12.5px;
  border-left: 3px solid var(--ink);
}
.gantt-row {
  display: grid;
  grid-template-columns: 230px 1fr 90px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.gantt-track { height: 12px; border-radius: 999px; background: var(--bg-2); position: relative; overflow: hidden; }
.gantt-bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--ink); }

/* ── Messagerie V42 ── */
.messages-split {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 16px;
  min-height: 520px;
}

/* ── Mini-Boule Vocale Flottante ── */
.floating-sia-dock {
  position: fixed;
  right: 22px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.floating-orb-btn { display: none !important; }
.floating-orb-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: #101420;
  color: #F4EFE6;
  border: 1px solid rgba(130, 214, 255, 0.35);
  box-shadow: 0 12px 32px rgba(8, 14, 30, 0.35);
}
.floating-orb-core {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #FFFFFF, #7AD9FF 40%, #2468F2 85%);
  box-shadow: 0 0 14px #64CEFF;
}
.floating-orb-txt { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.floating-sia-bubble {
  width: 330px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 18px 44px rgba(20,20,20,.18);
}
.fsb-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-faint); margin-bottom: 6px; }
.fsb-body { font-size: 13.5px; line-height: 1.45; max-height: 170px; overflow-y: auto; }
.fsb-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.dz-btn { font-size: 12.5px; font-weight: 600; text-decoration: underline; }

/* ── Modales V42 (Coulisses / Verrou PIN / Exécution Mission) ── */
.v42-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
}
.v42-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.54);
  backdrop-filter: blur(10px);
}
.v42-modal-sheet {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 26px 70px rgba(0,0,0,.32);
}
.v42-modal-sheet.wide { width: min(820px, 100%); }
body.sia-locked > *:not(#modal-entry) { display: none !important; }
body.sia-locked #modal-entry { display: grid; }
body.sia-locked .v42-modal-backdrop { background: #E7E1D6; backdrop-filter: none; }
body.sia-locked #modal-entry-close { display: none; }
.client-enter { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.client-enter label { font-size: 12px; letter-spacing: .04em; color: var(--ink-faint); }
.client-enter input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
}
.client-enter-error { color: #8A3B32; font-size: 13px; margin: 0; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20,20,20,.08);
  font-size: 20px;
  display: grid;
  place-items: center;
}
.entry-doors-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.who-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.who-list .team-pick-btn { width: 100%; min-width: 0; }
.entry-team-card { display: flex; flex-direction: column; gap: 12px; }
.team-pills-row { display: flex; gap: 8px; flex-wrap: wrap; }
.team-pick-btn {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
}
.team-pick-btn:hover { background: #141414; color: #F4EFE6; }
.ini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #141414;
  color: #F4EFE6;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.lockwrap { text-align: center; padding: 12px 8px; }
.lock-ico { width: 58px; height: 58px; border-radius: 18px; background: #141414; color: #F4EFE6; display: grid; place-items: center; margin: 0 auto 12px; }
.lock-title { font-size: 21px; font-weight: 700; }
.lock-sub { font-size: 13px; color: var(--ink-soft); max-width: 360px; margin: 6px auto 16px; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.pin-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.8px solid var(--ink); display: block; }
.pin-dots i.on { background: var(--ink); }
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  justify-content: center;
  gap: 10px;
}
.pin-pad button {
  height: 54px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  box-shadow: var(--sh);
}
.pin-pad button:hover { background: #141414; color: #F4EFE6; }

/* ── Barre d'onglets en bas, toujours visible ── */
.v42-bottom-bar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-top: 0.5px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.btab {
  flex: 1;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-faint);
}
.btab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btab.active { color: var(--ink); }
.btab-talk.active { color: var(--ink); }

.v42-toast {
  position: fixed;
  bottom: calc(78px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #141414;
  color: #F4EFE6;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all .22s ease;
  z-index: 200;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.v42-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  .v42-app { overflow-x: clip; }
  .v42-main { padding: 8px 14px 20px; }
  .v42-desktop-bar {
    margin: 8px 10px 4px;
    padding: 8px 12px;
    border-radius: 16px;
  }
  .brand-sub { display: none; }
  .brand-emblem { width: 36px; height: 36px; }
  .role-band { font-size: 12px; }
  .role-band-inner { padding: 8px 12px; }
  .e-k, .e-tile-dark .e-k, .day-tile .dt-k, .next-move .nm-eye { letter-spacing: .06em; overflow-wrap: anywhere; }
  .e-head { padding: 6px 0 12px; align-items: flex-start; }
  .e-head h1, .v42-h1 { font-size: 28px; }
  .lead { font-size: 14.5px; }
  .client-hello-visual { border-radius: 18px; }
  .client-hello-visual img { height: 190px; }
  .kpi-pill-card { padding: 12px 14px; }
  .kpi-pill-card .kv { font-size: 26px; }
  .projects-grid { grid-template-columns: 1fr; gap: 14px; }
  .pcard, .cguide-card, .e-tile, .v42-card { border-radius: 18px; }
  .pcard-vis { height: 176px; }
  .pcard-name { font-size: 19px; }
  .pcard-foot { flex-wrap: wrap; }
  .bento-top, .bento-3, .bento-2, .concierge-layout, .studio-3d-grid, .messages-split,
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .bento-4 { grid-template-columns: 1fr 1fr; }
  .studio-switcher { grid-template-columns: 1fr 1fr; }
  .week-grid { grid-template-columns: 1fr 1fr; }
  .e-tile-dark, .day-tile, .next-move { padding: 16px; }
  .iosrow { flex-wrap: wrap; align-items: flex-start; }
  .plan-edit select, .plan-edit input { min-width: 0; width: 100%; }
  .gantt-v42 { padding: 12px; }
  .v42-modal { padding: 0; align-items: end; }
  .v42-modal-sheet, .v42-modal-sheet.wide {
    width: 100%;
    max-height: min(92dvh, 100%);
    border-radius: 22px 22px 0 0;
    padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .pin-pad { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 280px; margin-inline: auto; }
  .pin-pad button { width: 100%; height: 52px; }
  .btab { font-size: 10px; line-height: 1.15; min-height: 48px; }
  .btab span { text-align: center; max-width: 72px; }
  .floating-sia-dock { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   EXTENSIONS V42/V43 : VISIONNEUSE 3D INTERACTIVE, COMPTEURS M²/M€, GANTT PROJET,
   PASTILLES AMO/MOE CLIENT, PROFIL LUDIQUE 4 ICÔNES, PLU 34 969 COMMUNES & PIÈCES SIA
   ========================================================================== */
.hidden { display: none !important; }

/* Compteurs globaux m² & Millions € */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0 20px;
}
.kpi-pill-card {
  background: var(--card, #FAF7F2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-pill-card .kk {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.kpi-pill-card .kv {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
}
.kpi-pill-card .ks {
  font-size: 12px;
  color: var(--ink-soft);
}

/* Visionneuse 3D Interactive Multi-Étages */
.v3d-shell {
  background: var(--card, #FAF7F2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(20,18,14,.05);
}
.v3d-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.v3d-kicker {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  display: block;
}
.v3d-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  margin: 2px 0 0;
  color: var(--ink);
}
.v3d-scene-pills {
  display: inline-flex;
  background: rgba(20,18,14,.06);
  padding: 3px;
  border-radius: 999px;
  gap: 3px;
}
.v3d-pill {
  border: 0;
  background: transparent;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}
.v3d-pill.active {
  background: #161513;
  color: #F4EFE6;
}
.v3d-ControlsRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.v3d-floor-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.v3d-floor-btn {
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: #181715;
  border-radius: 10px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.v3d-floor-btn.active {
  background: #181715;
  color: #FFFFFF;
  border-color: #181715;
}
.v3d-explode-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.v3d-stage-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.v3d-canvas {
  display: block;
  width: 100%;
  cursor: grab;
  touch-action: none;
}
.v3d-canvas:active { cursor: grabbing; }
.v3d-hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: rgba(20,18,15,.92);
  color: #F4EFE6;
}
.v3d-toggles, .v3d-cam-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.v3d-chip, .v3d-mini-btn {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #F4EFE6;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.v3d-chip.on {
  background: #F4EFE6;
  color: #161513;
  border-color: #F4EFE6;
}
.v3d-btn-rb {
  background: #C6A46C;
  color: #14120E;
  border-color: #C6A46C;
}
.v3d-plan-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(340px, 46%);
  background: #FFFFFF;
  border: 2px solid #161616;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  z-index: 4;
}
.v3d-plan-overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #161616;
  margin-bottom: 6px;
}
.v3d-plan-overlay-head .v3d-mini-btn {
  background: #161616;
  color: #FFFFFF;
  padding: 3px 8px;
}
.v3d-plan-overlay img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  border: 1px solid #E5E5E5;
}
.v3d-stats-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.v3d-hint { margin-left: auto; opacity: .78; }
.v3d-dropzone {
  margin-top: 12px;
  border: 1.5px dashed var(--ink-faint);
  border-radius: 14px;
  padding: 13px 16px;
  background: rgba(255,255,255,.55);
  transition: border-color .18s, background .18s;
}
.v3d-dropzone.dragover {
  border-color: #161513;
  background: rgba(198,164,108,.16);
}
.v3d-drop-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.v3d-drop-main strong { font-size: 13.5px; color: var(--ink); display: block; }
.v3d-drop-main p { font-size: 12px; color: var(--ink-soft); margin: 3px 0 0; }
.v3d-upload-status {
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #161513;
  color: #F4EFE6;
  font-size: 12px;
}

/* Grand Gantt détaillé par Projet (Style V42) */
.gantt-v42 {
  background: var(--card, #FAF7F2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  overflow-x: auto;
}
.gantt-head-weeks {
  display: grid;
  grid-template-columns: 250px repeat(16, minmax(26px, 1fr));
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.gantt-row-v42 {
  display: grid;
  grid-template-columns: 250px repeat(16, minmax(26px, 1fr));
  gap: 4px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.gantt-lot-meta strong { display: block; font-size: 12.8px; color: var(--ink); }
.gantt-lot-meta span { font-size: 11px; color: var(--ink-soft); }
.gantt-bar-v42 {
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-bar-v42.done { background: #264E36; color: #FFFFFF; }
.gantt-bar-v42.active { background: #181715; color: #F4EFE6; }
.gantt-bar-v42.alert { background: #8E2A2A; color: #FFFFFF; }
.gantt-bar-v42.todo { background: rgba(24,23,21,.13); color: var(--ink); }

.plan-lead { margin: 8px 0 0; max-width: 640px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 16px; font-size: 12.5px; color: var(--ink-soft); }
.plan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.plan-legend .lg { width: 18px; height: 8px; border-radius: 99px; display: inline-block; }
.plan-legend .lg.done { background: #264E36; }
.plan-legend .lg.active { background: #181715; }
.plan-legend .lg.alert { background: #8E2A2A; }
.plan-legend .lg.todo { background: rgba(24,23,21,.22); }
.plan-stack { display: flex; flex-direction: column; gap: 22px; }
.plan-block h2 { font-size: 22px; letter-spacing: -.03em; margin: 2px 0 0; }
.plan-block-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.plan-due { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); max-width: 720px; }
.plan-open, .plan-recalc, .plan-reset {
  border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
}
.plan-open, .plan-reset { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.plan-recalc { background: #161513; color: #F4EFE6; }
.plan-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 12px; }
.plan-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.plan-edit select, .plan-edit input {
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); min-width: 220px;
}
.plan-edit input { min-width: 88px; width: 88px; }
.plan-shift-note { margin: 0 0 12px; font-size: 13px; line-height: 1.4; color: #8E2A2A; }
.plan-empty { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* Deux pastilles ludiques Client : AMO Maison Éphésia & MOE Maison Éphésia */
.client-guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.cguide-card {
  background: var(--card, #FAF7F2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cguide-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cguide-medal {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #161513;
  color: #F4EFE6;
  flex-shrink: 0;
}
.cguide-medal.gold {
  background: #C6A46C;
  color: #161513;
}
.cguide-medal svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Profil Client ludique (Photo personnalisable + 4 rubriques) */
.cprof-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card, #FAF7F2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cprof-avatar-box {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #161513;
  color: #F4EFE6;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 30px;
  overflow: hidden;
  border: 2px solid #C6A46C;
  cursor: pointer;
  flex-shrink: 0;
}
.cprof-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.cprof-4grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.cprof-tile {
  border: 1px solid var(--line);
  background: var(--card, #FAF7F2);
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.cprof-tile:hover { transform: translateY(-2px); border-color: var(--ink); }
.cprof-tile.active {
  background: #161513;
  color: #F4EFE6;
  border-color: #161513;
}
.cprof-tile .ct-ico {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(198,164,108,.22);
  margin-bottom: 10px;
}
.cprof-tile .ct-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Pièces jointes PDF N&B / Google Drive dans les réponses courtes de SIA */
.sia-attach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.sia-attach-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 11px;
  background: #161513;
  color: #F4EFE6 !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.sia-attach-pill small { display: block; font-size: 10px; opacity: .75; font-weight: 400; }

/* Recherche PLU 34 969 communes */
.plu-results-list {
  max-height: 195px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 6px;
  background: #FFFFFF;
}
.plu-res-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: transparent;
  padding: 8px 12px;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plu-res-item:hover { background: rgba(198,164,108,.15); }

@media (max-width: 900px) {
  .kpi-strip, .cprof-4grid, .client-guides-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .kpi-strip, .cprof-4grid, .client-guides-grid { grid-template-columns: 1fr; }
}

