:root {
  --bg: #070914;
  --panel: rgba(17, 22, 42, .76);
  --panel-solid: #11162a;
  --line: rgba(255, 255, 255, .12);
  --text: #f5f7fb;
  --muted: #aab3c7;
  --blue: #1e8cff;
  --violet: #8d5bff;
  --cyan: #3de1ff;
  --green: #48e6a3;
  --warning: #ffd166;
  --danger: #ff657a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(30, 140, 255, .22), transparent 28rem),
    radial-gradient(circle at 86% 20%, rgba(141, 91, 255, .2), transparent 30rem),
    linear-gradient(135deg, #070914, #0d111f 54%, #05060d);
  color: var(--text);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; }
textarea { min-height: 120px; resize: vertical; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(7, 9, 20, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}

.brand span, .brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 12px 30px rgba(30, 140, 255, .28);
}

.topbar nav, .sidebar nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar a, .sidebar a {
  color: var(--muted);
  transition: color .2s ease, transform .2s ease;
}

.topbar a:hover, .sidebar a:hover { color: var(--text); transform: translateY(-1px); }
.nav-cta { color: var(--text) !important; }

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

#hero3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 110px);
  padding-top: 64px;
}

.hero h1, .workspace h1 {
  font-size: clamp(42px, 7vw, 88px);
  line-height: .98;
  margin: 10px 0 18px;
}

.hero p, .lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-actions, .section-head, .workspace-head, .list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.btn-primary, .btn-ghost {
  border: 0;
  border-radius: 8px;
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 14px 34px rgba(30, 140, 255, .3);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}

.btn-primary:hover, .btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.two-cols, .contact-section, .dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: start;
}

.section h2, .panel h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.cards-grid, .portfolio-grid, .metric-grid, .module-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card, .quote-card, .portfolio-card, .panel, .metric, .module-tile, .glass-panel, .login-card, .install-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.service-card, .quote-card, .portfolio-card, .panel, .metric, .module-tile { padding: 22px; }
.service-card { transition: transform .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(61, 225, 255, .45); }
.service-card p, .quote-card p, .module-tile p, .mini-item, .list-row span, small { color: var(--muted); line-height: 1.55; }

.card-icon {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(61, 225, 255, .95), rgba(141, 91, 255, .9));
}

.choose-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span, .badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-row div {
  padding: 24px;
  border-left: 1px solid var(--line);
}

.stats-row strong {
  display: block;
  font-size: clamp(34px, 5vw, 64px);
  color: var(--cyan);
}

.portfolio-visual {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(30, 140, 255, .28), rgba(141, 91, 255, .28)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 34px),
    #10172f;
}

.glass-form, .form-grid, .profile-grid {
  display: grid;
  gap: 12px;
}

.glass-form input, .glass-form textarea, .form-grid input, .form-grid textarea, .form-grid select, .profile-grid input, .profile-grid textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
}

.glass-form input:focus, .glass-form textarea:focus, .form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  border-color: rgba(61, 225, 255, .8);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.center-page, .install-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.glass-panel, .login-card, .install-panel {
  width: min(520px, 100%);
  padding: 30px;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 14px 0;
}

.success { background: rgba(72, 230, 163, .12); color: var(--green); }
.danger { background: rgba(255, 101, 122, .12); color: var(--danger); }
.muted { color: var(--muted); }

.app-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(7, 9, 20, .82);
  backdrop-filter: blur(18px);
}

.sidebar nav {
  flex-direction: column;
  align-items: stretch;
  margin-top: 32px;
}

.sidebar nav a {
  padding: 12px;
  border-radius: 8px;
}

.sidebar nav a:hover { background: rgba(255,255,255,.06); }

.workspace {
  padding: 34px;
  min-width: 0;
}

.workspace h1 { font-size: clamp(34px, 5vw, 62px); }
.workspace-head { margin-bottom: 28px; }
.wide { grid-column: span 1; }

.metric-grid {
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  margin-bottom: 18px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  overflow-x: auto;
}

.kanban-col {
  min-height: 160px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}

.kanban-col h3 { font-size: 14px; color: var(--muted); }

.kanban-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.progress {
  width: 180px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.list-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child { border-bottom: 0; }
.mini-item { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.badge.success { color: var(--green); }
.badge.info { color: var(--cyan); }
.badge.warning { color: var(--warning); }
.badge.muted { color: var(--muted); }

.profile-grid {
  grid-template-columns: repeat(2, 1fr);
}

.profile-grid textarea, .profile-grid button { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .topbar { position: static; flex-direction: column; align-items: flex-start; }
  .topbar nav { flex-wrap: wrap; }
  .hero { min-height: 760px; }
  .two-cols, .contact-section, .dashboard-grid, .choose-band { grid-template-columns: 1fr; }
  .cards-grid, .portfolio-grid, .stats-row, .metric-grid, .module-map { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 40px; }
  .hero-overlay { margin: 0 auto; }
  .hero-actions, .section-head, .workspace-head, .footer, .list-row { align-items: flex-start; flex-direction: column; }
  .cards-grid, .portfolio-grid, .stats-row, .metric-grid, .module-map, .profile-grid { grid-template-columns: 1fr; }
  .workspace { padding: 20px; }
  .progress { width: 100%; }
}

/* Direction visuelle proche de la référence fournie */
:root {
  --bg: #020816;
  --panel: rgba(16, 25, 42, .84);
  --panel-solid: #10192a;
  --line: rgba(137, 158, 196, .16);
  --muted: #8f9bb4;
  --blue: #1777ff;
  --violet: #7c4dff;
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(35, 113, 255, .18), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(124, 77, 255, .14), transparent 32rem),
    linear-gradient(135deg, #020816, #061225 52%, #020713);
}

.topbar {
  background: rgba(2, 8, 22, .72);
  padding-top: 16px;
  padding-bottom: 16px;
}

.topbar nav { gap: 22px; }
.topbar a, .sidebar a { font-size: 13px; }
.topbar .nav-cta {
  padding: 10px 16px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6f45ff, #8a5cff);
  color: #fff !important;
}

.hero {
  min-height: 760px;
  border-bottom: 1px solid rgba(137, 158, 196, .1);
}

.hero-overlay {
  width: min(560px, calc(100% - 36px));
  padding-top: 34px;
}

.hero h1 {
  font-size: clamp(40px, 5.8vw, 72px);
  line-height: 1.02;
}

.hero h1 span {
  display: block;
  color: #8a5cff;
}

.hero p, .lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.58;
}

.btn-primary {
  background: linear-gradient(135deg, #6f45ff, #8a5cff);
  box-shadow: 0 14px 34px rgba(124, 77, 255, .3);
}

.btn-ghost { background: rgba(255, 255, 255, .035); }

.hero-studio {
  position: absolute;
  z-index: 1;
  right: clamp(24px, 6vw, 110px);
  top: 140px;
  width: min(640px, 48vw);
  height: 360px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(2,8,22,.38), rgba(2,8,22,.05)),
    radial-gradient(circle at 55% 40%, rgba(23, 119, 255, .42), transparent 17rem),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px rgba(0,0,0,.45);
  overflow: hidden;
}

.hero-studio:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(61,225,255,.07) 36px),
    linear-gradient(to top, rgba(2,8,22,.9), transparent 46%);
}

.studio-screen {
  position: absolute;
  display: grid;
  gap: 9px;
  padding: 20px;
  border-radius: 8px;
  background: #071126;
  border: 1px solid rgba(61,225,255,.28);
  box-shadow: 0 0 36px rgba(23,119,255,.35);
}

.screen-main { width: 220px; height: 142px; left: 230px; top: 62px; }
.screen-left { width: 174px; height: 116px; left: 62px; top: 94px; transform: perspective(500px) rotateY(13deg); }
.screen-right { width: 174px; height: 116px; right: 54px; top: 92px; transform: perspective(500px) rotateY(-13deg); }

.studio-screen span {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  opacity: .86;
}

.studio-screen span:nth-child(2) { width: 68%; opacity: .58; }
.studio-screen span:nth-child(3) { width: 82%; opacity: .42; }
.studio-screen span:nth-child(4) { width: 46%; opacity: .72; }

.studio-desk {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 78px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(180deg, #111a2d, #070b15);
  transform: skewX(-10deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.55);
}

.studio-chair {
  position: absolute;
  left: 174px;
  bottom: 34px;
  width: 92px;
  height: 142px;
  border: 12px solid rgba(21, 31, 51, .92);
  border-radius: 45px 45px 16px 16px;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.5));
}

.hero-benefits {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 5vw, 56px);
  right: clamp(18px, 5vw, 56px);
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 20px;
  border-radius: 8px;
  background: rgba(8, 17, 33, .74);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.hero-benefits span {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 10px;
  align-items: center;
  font-weight: 800;
}

.hero-benefits b {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(61,225,255,.6), rgba(124,77,255,.3));
  border: 1px solid rgba(124,77,255,.52);
}

.hero-benefits small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 500;
}

.section { padding: 58px 0; }

.section h2, .panel h2 {
  font-size: clamp(24px, 3.2vw, 38px);
}

.compact-head {
  display: grid;
  justify-content: center;
  text-align: center;
}

.service-card, .quote-card, .portfolio-card, .panel, .metric, .module-tile {
  padding: 18px;
}

.service-card h3, .portfolio-card h3, .module-tile h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.service-card p, .portfolio-card p, .module-tile p { font-size: 13px; }

.filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -22px 0 26px;
}

.filter-pills span {
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 12px;
}

.filter-pills span:first-child {
  background: linear-gradient(135deg, #6f45ff, #8a5cff);
  color: #fff;
}

.stats-row div {
  text-align: center;
  background: rgba(16, 25, 42, .55);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-shell { grid-template-columns: 250px 1fr; }

.sidebar {
  background: rgba(2, 8, 22, .88);
  padding: 22px;
}

.sidebar nav a {
  padding: 12px 14px;
  border-radius: 8px;
}

.sidebar nav a:first-child,
.sidebar nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, #6f45ff, #7d50ff);
}

.workspace { padding: 34px 38px; }
.workspace-head { margin-bottom: 24px; }
.workspace-head h1 { font-size: 24px; margin: 4px 0 0; }

.metric {
  min-height: 132px;
  display: grid;
  align-content: space-between;
}

.metric:before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong { font-size: 30px; }

.user-chip {
  margin-left: auto;
  display: grid;
  grid-template-columns: 38px auto;
  gap: 0 10px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.user-chip span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a8cff, #8a5cff);
}

.user-chip strong { font-size: 13px; }
.user-chip small { color: var(--muted); font-size: 11px; }

@media (max-width: 980px) {
  .hero-studio {
    opacity: .42;
    width: 72vw;
    right: -14vw;
  }

  .hero-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 760px;
    align-items: start;
    padding-top: 28px;
  }

  .hero-studio {
    top: 320px;
    left: 18px;
    right: 18px;
    width: auto;
    height: 250px;
    opacity: .75;
  }

  .screen-main { left: 32%; top: 46px; }
  .screen-left { left: 20px; top: 76px; }
  .screen-right { right: 20px; top: 76px; }

  .hero-benefits {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 560px 18px 0;
    grid-template-columns: 1fr;
  }

.user-chip { margin-left: 0; }
}

/* Correctifs placement et responsive */
img, canvas, svg, video { max-width: 100%; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { min-width: 0; }
.hero-overlay { max-width: 58%; }
.hero-studio { pointer-events: none; }
.portfolio-grid { align-items: stretch; }
.portfolio-card { min-width: 0; }
.list-row { min-width: 0; }
.list-row > * { min-width: 0; }
.list-row strong, .mini-item strong { overflow-wrap: anywhere; }
.dashboard-grid { align-items: stretch; }
.panel { min-width: 0; }

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cards-grid, .portfolio-grid, .module-map {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-grid textarea, .profile-grid button { grid-column: 1 / -1; }

@media (max-width: 1180px) {
  .topbar nav { gap: 14px; }
  .topbar a { font-size: 12px; }
  .hero-overlay { max-width: 54%; }
  .hero-studio { right: 18px; width: 50vw; }
  .hero-benefits { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 900px) {
  body { overflow-x: hidden; }

  .topbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
  }

  .menu-toggle { display: grid; }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px !important;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 10, 24, .96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .menu-open .main-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .main-nav a:hover,
  .main-nav .nav-cta {
    background: linear-gradient(135deg, #6f45ff, #8a5cff);
    color: #fff !important;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: 42px 0 28px;
  }

  .hero-overlay {
    width: min(680px, calc(100% - 36px));
    max-width: none;
    margin: 0 auto;
    padding-top: 24px;
  }

  .hero-studio {
    position: relative;
    inset: auto;
    width: min(680px, calc(100% - 36px));
    height: 320px;
    margin: 28px auto 0;
    opacity: .95;
  }

  .hero-benefits {
    position: relative;
    inset: auto;
    width: min(680px, calc(100% - 36px));
    margin: 18px auto 0;
  }

  .section { padding: 46px 0; }
  .two-cols, .contact-section, .dashboard-grid, .choose-band { grid-template-columns: 1fr; }

  .app-shell { grid-template-columns: 1fr; }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    height: auto;
    padding: 16px 18px;
  }

  .sidebar nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sidebar nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .workspace {
    padding: 24px 18px;
  }

  .workspace-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .user-chip { margin-left: 0; width: fit-content; }
  .kanban { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
}

/* Patch responsive renforcé */
@media (max-width: 1100px) {
  .topbar {
    position: sticky !important;
    top: 0;
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .menu-toggle {
    display: grid !important;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px !important;
    padding: 12px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    border: 1px solid rgba(137, 158, 196, .22);
    border-radius: 8px;
    background: rgba(3, 10, 24, .98);
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .menu-open .main-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .main-nav a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.035);
  }

  .hero {
    min-height: auto !important;
    padding: 44px 0 28px;
    display: block !important;
  }

  .hero-overlay {
    width: min(720px, calc(100% - 32px)) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding-top: 18px !important;
  }

  .hero-studio {
    position: relative !important;
    inset: auto !important;
    width: min(720px, calc(100% - 32px)) !important;
    height: clamp(230px, 42vw, 340px) !important;
    margin: 24px auto 0 !important;
    opacity: 1 !important;
  }

  .hero-benefits {
    position: relative !important;
    inset: auto !important;
    width: min(720px, calc(100% - 32px)) !important;
    margin: 16px auto 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 14px !important;
  }

  .brand span {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 46px) !important;
  }

  .hero p {
    font-size: 15px !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .hero-studio {
    height: 230px !important;
  }

  .screen-main {
    width: 46% !important;
    height: 96px !important;
    left: 28% !important;
    top: 38px !important;
  }

  .screen-left,
  .screen-right {
    width: 34% !important;
    height: 78px !important;
    top: 72px !important;
  }

  .screen-left { left: 5% !important; }
  .screen-right { right: 5% !important; }

  .studio-desk {
    left: 7% !important;
    right: 7% !important;
    bottom: 44px !important;
  }

  .studio-chair {
    left: 22% !important;
    bottom: 16px !important;
    width: 64px !important;
    height: 94px !important;
  }

  .hero-benefits {
    grid-template-columns: 1fr !important;
  }

  .section {
    width: calc(100% - 28px) !important;
  }

  .cards-grid,
  .portfolio-grid,
  .stats-row,
  .metric-grid,
  .module-map,
  .profile-grid {
    grid-template-columns: 1fr !important;
  }

  .app-shell {
    display: block !important;
  }

  .sidebar {
    position: sticky !important;
    top: 0;
    height: auto !important;
    z-index: 15;
  }

  .sidebar nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }

  .sidebar nav a {
    white-space: nowrap;
  }

  .workspace {
    padding: 18px 14px !important;
  }

  .dashboard-grid,
  .two-cols,
  .contact-section,
  .choose-band {
    grid-template-columns: 1fr !important;
  }

  .list-row,
  .workspace-head,
  .footer {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 38px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { width: 100%; }

  .hero-studio {
    height: 230px;
    margin-top: 22px;
  }

  .studio-screen { padding: 12px; gap: 6px; }
  .screen-main { width: 44%; height: 104px; left: 30%; top: 42px; }
  .screen-left { width: 34%; height: 88px; left: 6%; top: 70px; }
  .screen-right { width: 34%; height: 88px; right: 6%; top: 70px; }
  .studio-desk { left: 8%; right: 8%; bottom: 46px; height: 38px; }
  .studio-chair { left: 24%; bottom: 20px; width: 68px; height: 98px; border-width: 9px; }

  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 38px 0;
  }

  .cards-grid, .portfolio-grid, .stats-row, .metric-grid, .module-map, .profile-grid {
    grid-template-columns: 1fr;
  }

  .list-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer {
    display: grid;
    align-items: start;
  }
}

/* Intranet / espace client : navigation et responsive applicatif */
.app-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.app-body .footer,
.app-body > .topbar {
  display: none !important;
}

.app-mobile-bar,
.app-nav-backdrop {
  display: none;
}

.app-shell {
  background:
    radial-gradient(circle at 72% 0%, rgba(124, 77, 255, .12), transparent 26rem),
    linear-gradient(135deg, #020816, #061225 58%, #020713);
}

.app-shell .sidebar {
  width: 250px;
  min-width: 250px;
}

.app-shell .sidebar .brand {
  min-height: 42px;
}

.app-shell .sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.workspace {
  max-width: 1480px;
  width: 100%;
}

.workspace-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
}

.workspace-head .btn-ghost {
  min-height: 40px;
  padding: 10px 14px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.panel {
  overflow: hidden;
}

.panel + .panel,
.dashboard-grid + .panel,
.panel + .dashboard-grid,
.dashboard-grid + .dashboard-grid,
.module-map {
  margin-top: 18px;
}

.panel h2 {
  font-size: clamp(18px, 2vw, 24px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.modules-panel {
  scroll-margin-top: 24px;
}

.admin-module-map {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.admin-module-map .module-tile {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 220px;
  align-content: start;
  overflow: hidden;
}

.admin-module-map .module-tile:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 0%, rgba(124, 77, 255, .22), transparent 12rem);
  pointer-events: none;
}

.module-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(61, 225, 255, .22), rgba(124, 77, 255, .32));
  border: 1px solid rgba(137, 158, 196, .2);
}

.module-icon:after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3de1ff, #8a5cff);
}

.module-tile h3,
.module-tile p,
.module-actions {
  position: relative;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.module-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 8px;
  color: #dcd6ff;
  background: rgba(124, 77, 255, .12);
  border: 1px solid rgba(124, 77, 255, .22);
  font-size: 12px;
  font-weight: 700;
}

.module-actions a:hover {
  background: linear-gradient(135deg, #6f45ff, #8a5cff);
  color: #fff;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)) !important;
}

.metric {
  min-width: 0;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.list-row > div {
  display: grid;
  gap: 4px;
}

.list-row a {
  justify-self: end;
  color: #9b7cff;
  font-weight: 700;
}

.badge {
  white-space: nowrap;
  justify-self: end;
}

.kanban {
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  padding-bottom: 6px;
}

.kanban-card strong,
.kanban-card span,
.list-row span,
.list-row strong {
  overflow-wrap: anywhere;
}

.form-grid,
.profile-grid {
  align-items: start;
}

.form-grid textarea,
.profile-grid textarea {
  min-height: 108px;
}

#adminChart {
  width: 100%;
  max-height: 260px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .app-shell .sidebar {
    width: 220px;
    min-width: 220px;
    padding: 18px;
  }

  .workspace {
    padding: 26px 22px !important;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body.app-menu-open {
    overflow: hidden;
  }

  .app-shell {
    display: block !important;
    min-height: 100vh;
    padding-top: 66px;
  }

  .app-mobile-bar {
    position: fixed;
    z-index: 45;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 12px 16px;
    background: rgba(2, 8, 22, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .app-menu-toggle {
    display: grid;
    place-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: var(--text);
  }

  .app-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .app-menu-open .app-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .app-menu-open .app-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .app-menu-open .app-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .app-nav-backdrop {
    position: fixed;
    z-index: 38;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, .52);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .app-menu-open .app-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .app-shell .sidebar {
    position: fixed !important;
    z-index: 44;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(310px, calc(100vw - 48px));
    min-width: 0;
    height: 100vh !important;
    padding: 18px;
    transform: translateX(-105%);
    transition: transform .25s ease;
    overflow-y: auto;
    border-right: 1px solid rgba(137, 158, 196, .22);
    box-shadow: 28px 0 80px rgba(0,0,0,.48);
  }

  .app-menu-open .app-shell .sidebar {
    transform: translateX(0);
  }

  .app-shell .sidebar nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    overflow: visible !important;
    margin-top: 28px;
    gap: 8px;
  }

  .app-shell .sidebar nav a {
    white-space: normal;
    width: 100%;
  }

  .workspace {
    padding: 20px 14px 34px !important;
  }

  .workspace-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workspace-head .user-chip,
  .workspace-head .btn-ghost {
    margin-left: 0;
    justify-self: start;
  }

  .metric-grid,
  .dashboard-grid,
  .module-map {
    gap: 14px;
  }

  .panel-heading {
    display: grid;
    align-items: start;
  }

  .panel,
  .metric,
  .module-tile {
    padding: 16px;
  }

  .kanban {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .kanban-col {
    flex: 0 0 min(82vw, 280px);
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .workspace-head h1 {
    font-size: 22px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .metric {
    min-height: 112px;
  }

  .metric strong {
    font-size: 26px;
  }

  .dashboard-grid,
  .profile-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .list-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .list-row a,
  .badge {
    justify-self: start;
  }

  .user-chip {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .panel h2 {
    font-size: 20px;
  }
}
