/* ==========================================================================
   NDAJE by Jundle Event : design system du Command Center
   Fond nuit #070B14, bleu #0D85C4, orange #FFA900, navy #0B3552
   Typo : Khand (titres, chiffres) + Inter (texte). Polices auto-hébergées.
   ========================================================================== */

@font-face { font-family: "Khand"; src: url("../fonts/Khand-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Khand"; src: url("../fonts/Khand-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Khand"; src: url("../fonts/Khand-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --night: #070B14;
  --night-2: #0A1020;
  --surface: #0D1526;
  --surface-2: #121C31;
  --surface-3: #18243D;
  --line: rgba(150, 175, 215, 0.12);
  --line-strong: rgba(150, 175, 215, 0.22);
  --text: #E9EEF7;
  --text-2: #B6C2D6;
  --muted: #7E8DA8;
  --blue: #0D85C4;
  --blue-2: #3FA8E0;
  --orange: #FFA900;
  --orange-2: #FFC24D;
  --navy: #0B3552;
  --green: #2DC58C;
  --red: #FF5D66;
  --amber: #F5B83D;
  --violet: #9B8CFF;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 32px -18px rgba(0,0,0,0.7);
  --font-display: "Khand", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar: 264px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--night);
  color: var(--text);
  font: 400 14.5px/1.55 var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: #7CC6EE; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 0.8em; }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.mono { font-variant-numeric: tabular-nums; }
.ic { flex: none; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sr-only:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; margin: 0; padding: 10px 14px; clip: auto; clip-path: none; z-index: 200; background: var(--orange); color: #1A1200; border-radius: 8px; font-weight: 600; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255,169,0,0.35); }

/* ---------- Fond aurora (une seule source, discrète) ---------- */
.aurora {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32;
}
.aurora::before { width: 620px; height: 420px; top: -180px; right: -120px; background: radial-gradient(closest-side, rgba(13,133,196,0.55), transparent); }
.aurora::after { width: 520px; height: 380px; bottom: -220px; left: 18%; background: radial-gradient(closest-side, rgba(255,169,0,0.28), transparent); }

/* ---------- Marque ---------- */
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: 0.14em; line-height: 1; }
.brand-sig { display: block; font: 500 11px/1.2 var(--font-body); color: var(--muted); letter-spacing: 0.02em; margin-top: 3px; }

/* ---------- Structure Command Center ---------- */
.shell { position: relative; display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(13,21,38,0.96), rgba(7,11,20,0.98));
  border-right: 1px solid var(--line);
  padding: 20px 14px 18px; display: flex; flex-direction: column; gap: 18px;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.sidebar .brand { padding: 4px 8px 6px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font: 600 11.5px/1 var(--font-body); color: var(--muted); padding: 10px 10px 8px; letter-spacing: 0.02em; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px;
  color: var(--text-2); font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease);
  position: relative;
}
.nav-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-link.is-active { background: linear-gradient(90deg, rgba(13,133,196,0.22), rgba(13,133,196,0.04)); color: #fff; }
.nav-link.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.nav-link .ic { color: var(--muted); }
.nav-link.is-active .ic, .nav-link:hover .ic { color: var(--blue-2); }
.nav-soon { display: flex; align-items: center; gap: 11px; padding: 7px 10px; color: #5C6B86; font-size: 13.5px; cursor: default; }
.nav-soon .ic { color: #43506A; }
.nav-soon .lot { margin-left: auto; font-size: 11px; color: #5C6B86; border: 1px solid rgba(150,175,215,0.12); padding: 1px 7px; border-radius: 999px; }
details.roadmap summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 10px; border-radius: 9px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
details.roadmap summary::-webkit-details-marker { display: none; }
details.roadmap summary:hover { background: rgba(255,255,255,0.03); }
details.roadmap[open] summary .ic { transform: rotate(180deg); }
.sidebar-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 64px;
  display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: rgba(7,11,20,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .menu-toggle { display: none; }
.search-trigger {
  flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font: inherit; text-align: left;
  transition: border-color .15s;
}
.search-trigger:hover { border-color: var(--line-strong); color: var(--text-2); }
.search-trigger span { flex: 1; }
kbd { font: 600 11px/1 var(--font-body); padding: 4px 6px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--text-2); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.content { padding: 28px 28px 64px; width: 100%; max-width: 1360px; margin: 0 auto; }

/* ---------- Menus déroulants ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; z-index: 40;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .14s, transform .14s var(--ease);
}
.dropdown.is-open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px;
  color: var(--text-2); background: none; border: 0; font: inherit; text-align: left; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.dropdown-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head strong { display: block; font-weight: 600; }
.dropdown-sep { height: 1px; background: var(--line); margin: 6px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s, border-color .15s, color .15s, box-shadow .15s;
  color: var(--text); background: var(--surface-2); border-color: var(--line-strong);
}
.btn:hover { background: var(--surface-3); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #1A1200; }
.btn-primary:hover { background: var(--orange-2); border-color: var(--orange-2); color: #1A1200; box-shadow: 0 8px 24px -10px rgba(255,169,0,0.7); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: #1594D6; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-danger { background: transparent; border-color: rgba(255,93,102,0.4); color: #FF8A91; }
.btn-danger:hover { background: rgba(255,93,102,0.12); color: #FFB1B6; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 40px; padding: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- En-têtes de page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head p { color: var(--text-2); margin: 6px 0 0; max-width: 64ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cartes ---------- */
.card {
  background: linear-gradient(180deg, rgba(18,28,49,0.86), rgba(13,21,38,0.86));
  border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 19px; }
.card-body { padding: 20px 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.grid > *, .stack > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Héros du tableau de bord ---------- */
.hero-panel {
  position: relative; overflow: hidden; padding: 28px 30px; margin-bottom: 20px;
  border-radius: 22px; border: 1px solid var(--line);
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(13,133,196,0.28), transparent 70%),
    linear-gradient(135deg, #0B3552 0%, #0C1A33 55%, #0A1222 100%);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 28px; align-items: end;
}
.hero-panel .date { color: rgba(233,238,247,0.7); font-size: 13px; margin-bottom: 6px; }
.hero-panel h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: 0.005em; }
.hero-panel p { color: rgba(233,238,247,0.82); font-size: 15.5px; margin: 10px 0 0; max-width: 56ch; }
.spark { display: flex; flex-direction: column; gap: 10px; }
.spark-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: rgba(233,238,247,0.7); }
.spark-head strong { font: 700 30px/1 var(--font-display); color: #fff; }
.spark-bars { display: flex; align-items: flex-end; gap: 5px; height: 74px; }
.spark-bars span {
  flex: 1; min-height: 3px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--orange), rgba(255,169,0,0.35));
  transform-origin: bottom; animation: grow .7s var(--ease) both;
}
.spark-bars span.is-zero { background: rgba(255,255,255,0.12); }
.spark-axis { display: flex; justify-content: space-between; font-size: 11px; color: rgba(233,238,247,0.5); }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 18px 20px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.kpi-label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.kpi-label .ic { color: var(--blue-2); }
.kpi-value { font: 700 42px/1 var(--font-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 12.5px; color: var(--muted); }
.kpi-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pilules de statut ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill-green { color: #4FDCA4; background: rgba(45,197,140,0.12); border-color: rgba(45,197,140,0.25); }
.pill-blue { color: #6EC3F0; background: rgba(13,133,196,0.14); border-color: rgba(13,133,196,0.3); }
.pill-orange { color: var(--orange-2); background: rgba(255,169,0,0.12); border-color: rgba(255,169,0,0.28); }
.pill-amber { color: #F8CB6B; background: rgba(245,184,61,0.12); border-color: rgba(245,184,61,0.25); }
.pill-red { color: #FF8A91; background: rgba(255,93,102,0.12); border-color: rgba(255,93,102,0.28); }
.pill-violet { color: #B9AEFF; background: rgba(155,140,255,0.12); border-color: rgba(155,140,255,0.26); }
.pill-muted { color: var(--text-2); background: rgba(150,175,215,0.08); border-color: var(--line); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: rgba(150,175,215,0.08); color: var(--text-2); border: 1px solid var(--line); }
.tag-orange { color: var(--orange-2); border-color: rgba(255,169,0,0.3); background: rgba(255,169,0,0.08); }

/* ---------- Points d'attention ---------- */
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: flex; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.alerts li:last-child { border-bottom: 0; }
.alerts .ic { margin-top: 2px; }
.alerts .warn .ic { color: var(--amber); }
.alerts .info .ic { color: var(--blue-2); }
.alerts .ok .ic { color: var(--green); }
.alerts a { margin-left: auto; white-space: nowrap; font-size: 13px; font-weight: 600; }

/* ---------- Fil d'activité ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 22px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .who { font-size: 13.5px; }
.feed .who strong { font-weight: 600; }
.feed .when { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Avatars ---------- */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font: 700 13px/1 var(--font-body); color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy)); border: 1px solid rgba(255,255,255,0.1);
}
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--text-2); font: inherit; }
.logo-tile { width: 52px; height: 52px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--line); }
.logo-tile img { max-width: 86%; max-height: 86%; object-fit: contain; }
.logo-tile.is-empty { background: var(--surface-3); color: var(--text-2); font: 700 16px/1 var(--font-display); letter-spacing: 0.04em; }
.logo-tile.sm { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }

/* ---------- Tableaux ---------- */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(7,11,20,0.25); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255,255,255,0.025); }
.table tr:last-child td { border-bottom: 0; }
.cell-user { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-user .name { font-weight: 600; color: var(--text); }
.cell-user .sub { font-size: 12.5px; color: var(--muted); }
.row-link { color: inherit; }
.row-link:hover .name { color: var(--blue-2); }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.filters .input { height: 38px; }
.filters .grow { flex: 1 1 220px; }
.result-count { font-size: 13px; color: var(--muted); padding: 0 4px; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.req { color: var(--orange); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px;
  background: var(--night-2); border: 1px solid var(--line-strong); color: var(--text);
  font: 400 14.5px/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237E8DA8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input::placeholder, .textarea::placeholder { color: #56647E; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(150,175,215,0.32); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,133,196,0.25); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: rgba(255,93,102,0.6); }
.field-error { font-size: 12.5px; color: #FF8A91; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-wrap .reveal { position: absolute; right: 4px; top: 4px; height: 34px; width: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.input-wrap .reveal:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.form-section { padding: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section > h3 { margin-bottom: 4px; }
.form-section > .muted { margin-bottom: 16px; font-size: 13.5px; }

/* Interrupteur */
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 23px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; flex: none; transition: background .15s; margin-top: 1px; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #C9D3E4; transition: transform .18s var(--ease), background .15s; }
.switch input:checked + .track { background: var(--blue); border-color: var(--blue); }
.switch input:checked + .track::after { transform: translateX(17px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--orange); outline-offset: 2px; }
.switch strong { display: block; font-weight: 600; font-size: 14px; }
.switch span.desc { font-size: 12.5px; color: var(--muted); }

/* Cases à cocher (rôles, permissions) */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.check-card { position: relative; display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--night-2); cursor: pointer; transition: border-color .15s, background .15s; }
.check-card:hover { border-color: rgba(150,175,215,0.35); }
.check-card input { margin: 3px 0 0; accent-color: var(--orange); width: 16px; height: 16px; flex: none; }
.check-card:has(input:checked) { border-color: rgba(255,169,0,0.55); background: rgba(255,169,0,0.06); }
.check-card strong { display: block; font-size: 14px; font-weight: 600; }
.check-card small { color: var(--muted); }
.check-card.is-disabled { opacity: 0.55; cursor: not-allowed; }
.perm-module { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.perm-module:last-child { border-bottom: 0; }
.perm-module-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.perm-module-head h3 { font-size: 17px; }
.link-btn { background: none; border: 0; color: var(--blue-2); font: 600 12.5px/1 var(--font-body); cursor: pointer; padding: 4px; }

/* Téléversement de logo */
.upload-zone { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--night-2); }
.upload-zone .logo-tile { width: 72px; height: 72px; }
.upload-zone input[type=file] { font: inherit; color: var(--text-2); font-size: 13px; max-width: 100%; }
.upload-zone input[type=file]::file-selector-button { font: 600 13px var(--font-body); color: var(--text); background: var(--surface-3); border: 1px solid var(--line-strong); padding: 8px 12px; border-radius: 8px; margin-right: 10px; cursor: pointer; }

/* ---------- Bloc à usage unique (lien, mot de passe) ---------- */
.secret { display: flex; gap: 8px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 11px; background: rgba(255,169,0,0.08); border: 1px solid rgba(255,169,0,0.35); }
.secret code { flex: 1; overflow-wrap: anywhere; font: 500 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--orange-2); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; }
.notice .ic { margin-top: 2px; color: var(--blue-2); }
.notice-warn { border-color: rgba(245,184,61,0.35); background: rgba(245,184,61,0.07); }
.notice-warn .ic { color: var(--amber); }
.notice-danger { border-color: rgba(255,93,102,0.35); background: rgba(255,93,102,0.07); }
.notice-danger .ic { color: var(--red); }
.notice p:last-child { margin: 0; }

/* ---------- État vide ---------- */
.empty { text-align: center; padding: 48px 24px; }
.empty .ic { color: var(--blue-2); margin: 0 auto 14px; }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 16px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pagination nav { display: flex; gap: 6px; }

/* ---------- Organisations (cartes) ---------- */
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; padding: 18px; }
.org-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--night-2); color: var(--text); transition: border-color .15s, transform .15s var(--ease); }
.org-card:hover { border-color: rgba(13,133,196,0.5); color: var(--text); transform: translateY(-2px); }
.org-card-top { display: flex; gap: 14px; align-items: center; }
.org-card h3 { font-size: 19px; }
.org-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px 13px 16px; border-radius: 13px;
  background: #142039; border: 1px solid var(--line-strong); box-shadow: 0 24px 50px -16px rgba(0,0,0,0.75);
  animation: toast-in .28s var(--ease) both; font-size: 14px;
}
.toast.is-leaving { animation: toast-out .22s var(--ease) both; }
.toast-success .ic { color: var(--green); }
.toast-error { border-color: rgba(255,93,102,0.45); }
.toast-error .ic { color: var(--red); }
.toast-info .ic { color: var(--blue-2); }
.toast p { margin: 0; flex: 1; }
.toast button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 6px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Palette de commandes ---------- */
.cmdk { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(3,6,12,0.66); backdrop-filter: blur(6px); }
.cmdk.is-open { display: flex; }
.cmdk-box { width: min(640px, 100%); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8); overflow: hidden; animation: toast-in .18s var(--ease); }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-input input { flex: 1; height: 58px; background: none; border: 0; color: var(--text); font: 400 16px var(--font-body); }
.cmdk-input input:focus { outline: none; }
.cmdk-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 10px 10px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--text-2); cursor: pointer; }
.cmdk-item .sub { margin-left: auto; font-size: 12px; color: var(--muted); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item.is-active { background: rgba(13,133,196,0.18); color: #fff; }
.cmdk-item.is-active .ic { color: var(--orange); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- Barres horizontales (statuts) ---------- */
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13.5px; }
.hbar .track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(150,175,215,0.1); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 999px; background: var(--blue); }

/* ---------- Définitions (système) ---------- */
.deflist { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; }
.deflist dt, .deflist dd { margin: 0; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.deflist dt { color: var(--muted); }
.deflist dt:nth-last-of-type(1), .deflist dd:last-of-type { border-bottom: 0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.checklist li:last-child { border-bottom: 0; }
.checklist .ok { color: var(--green); }
.checklist .ko { color: var(--red); }
.checklist .opt { color: var(--amber); }

/* ==========================================================================
   Écrans d'authentification et d'installation
   ========================================================================== */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-side {
  position: relative; overflow: hidden; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(800px 400px at 0% 100%, rgba(255,169,0,0.16), transparent 60%), linear-gradient(160deg, #0B3552, #08142A 60%, #070B14);
  border-right: 1px solid var(--line);
}
.auth-side .orbit { position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); opacity: 0.9; }
.auth-quote { position: relative; max-width: 30ch; }
.auth-quote h2 { font-size: clamp(34px, 3.6vw, 50px); font-weight: 700; line-height: 1.02; }
.auth-quote p { color: rgba(233,238,247,0.78); margin-top: 16px; font-size: 15.5px; max-width: 42ch; }
.auth-foot { position: relative; font-size: 12.5px; color: rgba(233,238,247,0.55); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 34px; margin-bottom: 6px; }
.auth-card .lead { color: var(--text-2); margin-bottom: 26px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-links { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.auth-wide { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 32px 20px 64px; }
.auth-wide-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 12px; }

.install { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.install-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); counter-increment: step; }
.steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font-body); background: var(--surface-2); border: 1px solid var(--line-strong); }
.steps li + li::after { content: none; }
.steps li.is-current { color: var(--text); }
.steps li.is-current::before { background: var(--orange); border-color: var(--orange); color: #1A1200; }
.steps li.is-done::before { content: "✓"; background: rgba(45,197,140,0.18); border-color: rgba(45,197,140,0.45); color: var(--green); }
.steps .sep { width: 22px; height: 1px; background: var(--line-strong); align-self: center; }

/* Pages d'erreur */
.error-page { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.error-code { font: 700 clamp(96px, 18vw, 168px)/0.9 var(--font-display); background: linear-gradient(180deg, #fff, rgba(255,255,255,0.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { margin: 10px 0 10px; }
.error-page p { color: var(--text-2); max-width: 48ch; margin: 0 auto 22px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: 30px 0 60px -20px rgba(0,0,0,0.7); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(3,6,12,0.6); z-index: 55; }
  .topbar .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 22px 16px 56px; }
  .hero-panel { grid-template-columns: 1fr; padding: 24px 22px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: flex; }
  .search-trigger kbd { display: none; }
}
@media (max-width: 640px) {
  .form-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kpi-value { font-size: 36px; }
  .page-head { align-items: flex-start; }
  .card-head, .card-body, .form-section, .card-foot { padding-left: 16px; padding-right: 16px; }
  .alerts li, .feed li, .checklist li { padding-left: 16px; padding-right: 16px; }
  .deflist { grid-template-columns: 1fr; }
  .deflist dt { padding-bottom: 0; border-bottom: 0; }
  .search-trigger span { display: none; }
  .search-trigger { flex: 0 0 40px; padding: 0; justify-content: center; }
  .topbar-actions .btn-label { display: none; }
  .steps li span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Lot 2 : événements, Event Builder, aperçu
   ========================================================================== */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--night-2); border: 1px solid var(--line-strong); }
.seg-item { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; color: var(--text-2); font: 600 13px/1 var(--body, var(--font-body)); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.seg-item:hover { color: var(--text); }
.seg-item.is-on { background: var(--surface-3); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset; }
.seg-sm .seg-item { height: 28px; padding: 0 9px; }
.seg label.seg-item { font-family: var(--font-body); }

.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; padding: 18px; }
.ev-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s var(--ease); }
.ev-card:hover { color: var(--text); border-color: rgba(13,133,196,0.5); transform: translateY(-2px); }
.ev-cover { position: relative; height: 112px; background: linear-gradient(135deg, var(--ev), color-mix(in srgb, var(--ev) 40%, #070B14)); }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.ev-pill { position: absolute; top: 10px; right: 10px; backdrop-filter: blur(8px); background: rgba(7,11,20,0.7); }
.ev-body { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 16px; }
.ev-top { display: flex; gap: 12px; align-items: center; margin-top: -32px; }
.ev-top .logo-tile { width: 46px; height: 46px; border: 3px solid var(--night-2); border-radius: 12px; }
.ev-top > span:last-child { padding-top: 26px; }
.ev-label { display: block; font: 700 21px/1.05 var(--font-display); }
.ev-name { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); }
.ev-meta .ic { color: var(--muted); }
.ev-ready { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.ev-ready .track { flex: 1; height: 5px; border-radius: 999px; background: rgba(150,175,215,0.12); overflow: hidden; }
.ev-ready .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 999px; }
.ev-ready small { color: var(--muted); font-size: 12px; }

.cal { overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span { padding: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.is-out { background: rgba(0,0,0,0.18); }
.cal-day.is-out .cal-num { color: #4A5873; }
.cal-num { font: 600 13px/1 var(--font-body); color: var(--text-2); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.is-today .cal-num { background: var(--orange); color: #1A1200; }
.cal-ev { display: block; padding: 4px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; background: color-mix(in srgb, var(--ev) 70%, #0D1526); border-left: 3px solid var(--ev); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { color: #fff; filter: brightness(1.15); }
.cal-more { font-size: 11.5px; color: var(--muted); padding-left: 4px; }

.ev-statusbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; padding: 22px 24px; margin-bottom: 18px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--ev) 38%, #0D1526), #0D1526 70%); position: relative; overflow: hidden; }
.ev-statusbar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ev); }
.ev-statusbar-main { display: flex; gap: 16px; align-items: center; min-width: 0; }
.ev-statusbar-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ev-statusbar-main p { margin: 4px 0 0; color: var(--text-2); }
.ev-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 28px; margin: 0; grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); justify-content: start; }
.ev-facts dt { font-size: 12px; color: var(--muted); }
.ev-facts dd { margin: 2px 0 0; font-weight: 600; }
.ev-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; grid-row: 1; grid-column: 2; }

.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 11px 14px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.is-on { color: #fff; border-color: var(--orange); }
.tab-count { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }

.ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(150,175,215,0.14) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface-2); }
.ring span { position: relative; font: 700 13px/1 var(--font-body); }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 18px 22px; }
.module { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: #5C6B86; font-size: 13.5px; font-weight: 500; }
.module .lot { margin-left: auto; font-size: 11px; border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; }
.module.is-ready { color: var(--text); background: var(--night-2); border-color: var(--line-strong); }
.module.is-ready .ic { color: var(--blue-2); }
.module.is-ready:hover { border-color: rgba(13,133,196,0.55); color: #fff; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.secret-neutral { background: var(--night-2); border-color: var(--line-strong); }
.secret-neutral code { color: var(--text-2); }

.builder { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.stepper { position: sticky; top: 84px; padding: 18px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.stepper-head { padding: 0 8px 14px; }
.stepper-count { font: 700 34px/1 var(--font-display); }
.stepper-count small { font-size: 18px; color: var(--muted); }
.stepper-bar { display: block; height: 4px; margin-top: 10px; border-radius: 999px; background: rgba(150,175,215,0.12); overflow: hidden; }
.stepper-bar span { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width .3s var(--ease); }
.stepper ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.stepper li a, .stepper-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.stepper li a { color: var(--text-2); }
.stepper li a:hover { background: rgba(255,255,255,0.04); color: #fff; }
.stepper .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 12px/1 var(--font-body); border: 1px solid var(--line-strong); background: var(--night-2); }
.stepper li.is-done .dot { background: rgba(45,197,140,0.16); border-color: rgba(45,197,140,0.45); color: var(--green); }
.stepper li.is-current .stepper-item { background: rgba(255,169,0,0.1); color: #fff; }
.stepper li.is-current .dot { background: var(--orange); border-color: var(--orange); color: #1A1200; }
.stepper-later { margin-top: 14px; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.stepper-later .nav-soon { padding: 5px 0; font-size: 12.5px; }

.row-2 { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.color-field { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--night-2); }
.color-field input[type=color] { width: 44px; height: 44px; border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer; flex: none; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; }
.color-field label { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.color-field .hint { font-size: 12px; }
.contrast-note { font-size: 13px; padding: 10px 12px; border-radius: 10px; display: none; }
.contrast-note.is-ok { display: block; background: rgba(45,197,140,0.1); color: #7BE3B8; }
.contrast-note.is-warn { display: block; background: rgba(245,184,61,0.1); color: #F8CB6B; }
.brand-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.brand-preview { margin: 22px; border-radius: 16px; overflow: hidden; background: #fff; color: #0B1220; align-self: start; box-shadow: 0 20px 50px -24px rgba(0,0,0,0.8); }
.bp-hero { position: relative; min-height: 210px; background: var(--p) center / cover no-repeat; color: #fff; display: flex; align-items: flex-end; }
.bp-shade { position: absolute; inset: 0; background: linear-gradient(100deg, var(--p) 10%, color-mix(in srgb, var(--p) 55%, transparent)); }
.bp-in { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; color: var(--on-p, #fff); }
.bp-logo { height: 34px; width: auto; max-width: 110px; object-fit: contain; background: rgba(255,255,255,0.9); border-radius: 6px; padding: 3px; }
.bp-in strong { font: 700 38px/0.9 var(--font-display); }
.bp-in span { font-size: 12.5px; opacity: 0.85; }
.bp-btn { margin-top: 8px; padding: 8px 14px; border-radius: 999px; background: var(--a); color: var(--on-a, #1A1200); font-weight: 700; font-size: 12px !important; opacity: 1 !important; }
.bp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.bp-title { font: 700 20px/1 var(--font-display); color: #0B1220; position: relative; padding-top: 10px; }
.bp-title::before { content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 3px; border-radius: 3px; background: var(--a); }
.bp-line { height: 8px; border-radius: 4px; background: #E7ECF3; }
.bp-line.short { width: 60%; }
.bp-link { font-size: 12.5px; font-weight: 700; color: var(--s); }
.logo-tile.wide { width: 128px; height: 72px; }
.logo-tile.wide img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.slug-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slug-field .input { flex: 1; min-width: 180px; }
.social-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #F2F4F7; color: #111; align-self: start; }
.social-img { aspect-ratio: 1.91 / 1; background: center / cover no-repeat; }
.social-txt { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.social-txt .muted { color: #65676B; text-transform: lowercase; }
.social-txt strong { font-size: 15px; line-height: 1.3; color: #050505; }
.social-txt .text-2 { color: #65676B; }
.faq-edit { border-bottom: 1px solid var(--line); }
.faq-edit summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; font-weight: 600; }
.faq-edit summary::-webkit-details-marker { display: none; }
.faq-edit[open] summary .ic { transform: rotate(180deg); }
.faq-edit form { padding: 0 22px 18px; }

.device-stage { border-radius: 20px; border: 1px solid var(--line); background: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 10px, transparent 10px 20px), var(--night-2); padding: 22px; overflow: auto; }
.device-frame { width: var(--w); max-width: 100%; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9); transition: width .3s var(--ease); border: 6px solid #1A2440; }
.device-frame iframe { display: block; width: 100%; height: 78vh; border: 0; background: #fff; }

@media (max-width: 1100px) {
  .builder { grid-template-columns: 1fr; }
  .stepper { position: static; }
  .stepper ol { flex-direction: row; overflow-x: auto; }
  .stepper li a, .stepper-item { white-space: nowrap; }
  .stepper-later { display: none; }
  .brand-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ev-statusbar { grid-template-columns: 1fr; }
  .ev-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .ev-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-day { min-height: 74px; padding: 4px; }
  .cal-ev { font-size: 10.5px; padding: 3px 4px; }
  .cal-head span { padding: 8px 4px; text-align: center; }
  .device-stage { padding: 10px; }
  .row-2 { grid-template-columns: 1fr 104px; }
}
.builder > *, .brand-layout > *, .ev-statusbar > *, .form-grid > * { min-width: 0; }
.stepper ol { scrollbar-width: none; }
.stepper ol::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Lot 3 : inscriptions (Command Center)
   ========================================================================== */
[hidden] { display: none !important; }
.kpis-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
a.kpi { color: var(--text); transition: border-color .15s; }
a.kpi:hover { border-color: rgba(13,133,196,0.5); color: var(--text); }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1px solid rgba(255,255,255,0.2); }
.form-pad { padding: 0 22px 18px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.mini-color { width: 42px; height: 42px; border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer; flex: none; }
.faq-edit summary > span { min-width: 0; }
fieldset.form-section { border: 0; border-bottom: 1px solid var(--line); margin: 0; min-width: 0; }
fieldset.form-section legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--font-display); padding: 0; margin-bottom: 16px; }
fieldset.form-section legend + * { clear: both; }
.rf-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font: 700 12px/1 var(--font-body); }
.rf-spacer { visibility: hidden; }
.rf-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rf-cat { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--night-2); cursor: pointer; }
.rf-cat:has(input:checked) { border-color: rgba(255,169,0,0.6); background: rgba(255,169,0,0.06); }
.rf-cat input { accent-color: var(--orange); width: 16px; height: 16px; flex: none; margin: 0; }
.rf-cat-body { flex: 1; min-width: 0; }
.rf-cat-body strong { display: block; font-size: 14px; }
.rf-cat-body small { display: block; color: var(--muted); font-size: 12px; }
.rf-price { font: 700 17px/1 var(--font-display); white-space: nowrap; }
.rf-price small { font: 500 11px var(--font-body); color: var(--muted); }
.rf-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; color: var(--text) !important; }
.rf-check input { accent-color: var(--orange); width: 16px; height: 16px; margin: 3px 0 0; flex: none; }
.rf-radios { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1180px) { .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-pad { padding: 0 16px 16px; } .rf-spacer { display: none; } }
.mini-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.mini-kpis > div { background: var(--surface-2); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.mini-kpis strong { font: 700 28px/1 var(--font-display); }
.mini-kpis span { font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   Lot 4 : programme, intervenants, partenaires (Command Center)
   ========================================================================== */
.pg-list { list-style: none; margin: 0; padding: 0; }
.pg-item { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.pg-item:last-child { border-bottom: 0; }
.pg-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--t); }
.pg-item.is-draft { opacity: 0.6; }
.pg-item.is-editing { background: rgba(255,169,0,0.07); }
.pg-time { font: 700 17px/1 var(--font-display); }
.pg-time small { display: block; font: 500 12px var(--font-body); color: var(--muted); margin-top: 3px; }
.pg-type { display: block; font-size: 12px; color: var(--muted); }
.pg-body strong { display: block; font-weight: 600; }
.pg-people { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.pg-actions { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--night-2); }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 18px; }
.sp-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--night-2); color: var(--text); }
.sp-card:hover { border-color: rgba(13,133,196,0.5); color: var(--text); }
.sp-card img, .sp-card .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.sp-card strong { font-size: 14px; }
.sp-card span { font-size: 12.5px; color: var(--text-2); }
.sp-card small { font-size: 11.5px; color: var(--muted); }
.sp-card.is-draft { opacity: 0.55; }
.lvl-platinum { color: #E9EEF7; border-color: #9AA6B8; }
.lvl-gold { color: #F8CB6B; border-color: rgba(245,184,61,0.5); }
.lvl-silver { color: #C9D3E4; }
.lvl-bronze { color: #E0A27A; border-color: rgba(224,162,122,0.4); }
.poll-row { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.poll-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.file-input { font: inherit; color: var(--text-2); font-size: 13px; }
.file-input::file-selector-button { font: 600 13px var(--font-body); color: var(--text); background: var(--surface-3); border: 1px solid var(--line-strong); padding: 8px 12px; border-radius: 8px; margin-right: 10px; cursor: pointer; }
@media (max-width: 640px) { .pg-item { grid-template-columns: 52px minmax(0, 1fr); } .pg-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ==========================================================================
   Lot 5 : statistiques, import, vérification
   ========================================================================== */
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.an-spark { width: 100%; height: 150px; display: block; }
.hbar small { font-weight: 400; }
.imp-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; counter-reset: s; flex-wrap: wrap; }
.imp-steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.imp-steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); font-size: 12px; }
.imp-steps li.is-current { border-color: var(--orange); color: var(--text); }
.imp-steps li.is-current::before { background: var(--orange); color: #1A1100; }
.imp-steps li.is-done { color: var(--text-2); }
.imp-steps li.is-done::before { content: "✓"; background: rgba(46,204,113,.2); color: var(--green); }

/* Page publique de vérification (mise en page bare) */
.vf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 18px; }
.vf-card { width: 100%; max-width: 560px; padding: 34px 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.vf-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin-bottom: 14px; }
.vf-card.is-valid { border-color: rgba(46,204,113,.45); box-shadow: 0 0 0 6px rgba(46,204,113,.08); }
.vf-card.is-valid .vf-icon { background: rgba(46,204,113,.16); color: var(--green); }
.vf-card.is-revoked .vf-icon { background: rgba(255,169,0,.16); color: var(--amber); }
.vf-card.is-unknown .vf-icon { background: rgba(229,72,77,.16); color: var(--red); }
.vf-kicker { margin: 0; color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.vf-card h1 { font-size: clamp(30px, 6vw, 40px); margin: 6px 0 18px; }
.vf-card p { color: var(--text-2); }
.vf-dl { text-align: left; margin: 0; border-top: 1px solid var(--line); }
.vf-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vf-dl dt { color: var(--muted); font-size: 13px; }
.vf-dl dd { margin: 0; font-weight: 600; }
.vf-foot { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 480px) { .vf-dl div { grid-template-columns: 1fr; gap: 2px; } }
.filters .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filters .seg::-webkit-scrollbar { display: none; }
.seg-item { white-space: nowrap; }

/* Lot 6 : comité, enquêtes, NDAJE AI */
.ab-admin-text h3 { font-size: 17px; margin: 16px 0 4px; color: var(--blue-2, #5EC2F2); }
.ab-admin-text p { line-height: 1.6; }
.rev-row { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.rev-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.rev-scores { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rev-scores span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.rev-scores b { color: var(--text); margin-left: 4px; }
.rv-reco-admin { display: flex; flex-direction: column; gap: 8px; }
.ai-out { padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(13,133,196,.1), rgba(255,169,0,.06)); border: 1px solid rgba(13,133,196,.25); line-height: 1.6; }
.ai-out h3, .ai-out p strong { color: var(--text); }
.ai-out ul { margin: 6px 0 10px; padding-left: 18px; }
.ai-draft { padding: 14px; border-radius: 14px; border: 1px dashed rgba(13,133,196,.45); background: rgba(13,133,196,.06); }
.ai-draft label { display: flex; gap: 6px; align-items: center; font-weight: 600; margin-bottom: 8px; }
.ai-draft-row { display: flex; gap: 8px; }
.ai-draft-row .input { flex: 1; }
.ai-draft [data-ai-msg] { margin: 8px 0 0; }
.ai-draft [data-ai-msg].is-err { color: var(--red); }
.sv-texts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sv-texts li { padding: 9px 12px; border-radius: 10px; background: var(--surface-3); font-size: 13.5px; line-height: 1.45; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); }
.pager .small:first-child { margin-right: auto; }
.preset-box { padding: 18px; border-radius: 16px; border: 1px solid rgba(46,204,113,.4); background: rgba(46,204,113,.07); }
.preset-box p { margin: 0 0 8px; }

/* Page d'accueil : gestion des photos */
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; padding: 18px 22px 22px; }
.hc-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--night-2); display: flex; flex-direction: column; }
.hc-thumb { position: relative; aspect-ratio: 16 / 10; background: #000; }
.hc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hc-n, .hc-def { position: absolute; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(5,10,24,.75); color: #fff; }
.hc-n { left: 8px; } .hc-def { right: 8px; color: #F7C948; }
.hc-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.hc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hc-actions { display: flex; gap: 4px; align-items: center; }
.hc-add { flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.hc-add .input { flex: 1; min-width: 200px; }
.hc-figs { display: grid; gap: 10px; }
.hc-fig { display: grid; grid-template-columns: 34px 110px 1fr 150px; gap: 8px; align-items: center; }
@media (max-width: 700px) { .hc-fig { grid-template-columns: 30px 90px 1fr; } .hc-fig select { grid-column: 2 / -1; } }
