@font-face {
  font-family: Space Grotesk;
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --brand: #0e046c;
  --accent: #f2b90d;
  --teal: #3fa6a6;
  --green: #246e65;
  --bg: #f6f7f9;
  --panel: #fff;
  --text: #171443;
  --muted: #667086;
  --line: #e2e5ec;
  --soft: #eaf4f2;
  --red: #b52c3a;
  --nav: #0e046c;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.55 "Avenir Next",
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
body.dark {
  --bg: #121724;
  --panel: #1b2231;
  --text: #eef0f8;
  --muted: #acb6cb;
  --line: #343c50;
  --soft: #213c3f;
  --brand: #c2baff;
  --green: #83d3c4;
  --red: #ffabb5;
  color-scheme: dark;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--brand);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}
h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
p {
  max-width: 78ch;
}
small,
.sub,
.muted {
  color: var(--muted);
}
.sub {
  font-size: 12px;
}
input,
select,
textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 10px;
  color: var(--text);
  max-width: 100%;
  min-width: 0;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--brand);
}
textarea {
  min-height: 170px;
  font:
    12px/1.6 ui-monospace,
    monospace;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 550;
}
label.check {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 15px;
}
legend {
  padding: 0 6px;
  font-size: 12px;
  color: var(--muted);
}
form {
  display: grid;
  gap: 16px;
}
.button {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.button:hover {
  background: var(--soft);
}
.button.primary {
  background: #0e046c;
  color: white;
  border-color: #0e046c;
}
.button.gold {
  background: var(--accent);
  border-color: var(--accent);
  color: #0e046c;
}
.button.danger {
  color: var(--red);
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.skip {
  position: fixed;
  left: 240px;
  top: -100px;
  padding: 10px;
  background: var(--panel);
  z-index: 100;
}
.skip:focus {
  top: 5px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  background: var(--nav);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 26px 16px 18px;
  z-index: 30;
  overflow-y: auto;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 16px;
  text-decoration: none;
  color: #fff;
}
.wordmark {
  font:
    600 43px/1.1 "Space Grotesk",
    sans-serif;
  letter-spacing: -2px;
}
.wordmark > span {
  color: var(--accent);
}
.brand-by {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c6c3e5;
  font-size: 10px;
  margin-top: 2px;
}
.brand-by img {
  object-fit: contain;
  width: 100px;
  height: 45px;
}
.sidebar-sub {
  font-size: 11px;
  color: #c9c6e4;
  margin: 8px 16px 24px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav details {
  border: 0;
}
.nav summary {
  list-style: none;
  cursor: pointer;
  color: #e0ddf1;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav summary::-webkit-details-marker {
  display: none;
}
.nav summary:after {
  content: "⌄";
  margin-left: auto;
  opacity: 0.6;
}
.nav details[open] > summary {
  color: white;
  background: #ffffff0d;
}
.nav a {
  display: block;
  padding: 7px 10px 7px 36px;
  border-radius: 4px;
  color: #c6c4df;
  font-size: 11px;
  text-decoration: none;
}
.nav a:hover,
.nav summary:hover {
  background: #ffffff12;
}
.nav a.active {
  background: #ffffff1c;
  color: white;
  box-shadow: inset 3px 0 var(--accent);
}
.nav-icon {
  font-size: 17px;
  width: 18px;
  text-align: center;
}
/* Intranet : titres de section du menu et liens directs (espace à une seule page). */
.nav-section {
  margin: 14px 12px 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9f9bc4;
}
.nav > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #e0ddf1;
}
/* Page d'accueil : une tuile par espace ouvert. */
.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.space-tile {
  display: block;
  margin: 0;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.space-tile:hover,
.space-tile:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.space-tile h2 {
  margin: 10px 0 6px;
  font-size: 17px;
}
.space-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
/* Synthèse du jour sous la tuile « Suivi des projets » (administration). */
.space-tile .space-resume {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}
.space-tile .space-resume.calme {
  color: var(--muted);
  font-weight: 500;
}
.space-icon {
  font-size: 24px;
}
.sidebar-foot {
  font-size: 10px;
  color: #bbb6db;
  margin-top: auto;
  padding: 24px 16px 0;
}
.workspace {
  margin-left: 228px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px 12px;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--text);
}
.menu-button {
  display: none;
}
.filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.filters label {
  font-size: 10px;
  color: var(--muted);
}
.filters input,
.filters select {
  font-size: 11px;
  padding: 6px 8px;
  height: 33px;
}
.source-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
}
.dot.off {
  background: #a0a6b5;
}
main {
  padding: 28px 32px 48px;
  max-width: 1900px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.page-head .badge {
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  background: var(--soft);
  border-radius: 4px;
  font-size: 10px;
  color: var(--green);
  white-space: nowrap;
}
.badge.neutral {
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
}
.badge.warn {
  background: #fff3d9;
  color: #805d0d;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
  margin-bottom: 20px;
  min-width: 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.grid > .card {
  margin: 0;
}
.grid.wide {
  grid-template-columns: 1.6fr 1fr;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.kpi {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
}
.kpi h2 {
  font-size: 11px;
  color: var(--muted);
  font-weight: 550;
  min-height: 30px;
  margin-bottom: 12px;
}
.kpi .value {
  font-size: 29px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.kpi small {
  display: block;
  font-size: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.intro {
  border-left: 3px solid var(--teal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 25px;
  background: var(--soft);
}
.intro h2 {
  font-size: 19px;
  margin-bottom: 7px;
}
.intro p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  padding: 30px 15px;
  color: var(--muted);
}
.empty-symbol {
  color: var(--teal);
  font-size: 30px;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 6px;
}
.empty p {
  font-size: 12px;
  max-width: 48ch;
  margin-bottom: 18px;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  margin-top: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--soft);
}
td small {
  display: block;
  font-size: 10px;
}
td a {
  font-weight: 600;
  text-decoration: none;
}
td a:hover {
  text-decoration: underline;
}
.link-button {
  color: var(--brand);
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-weight: 600;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notice {
  background: var(--soft);
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.error {
  background: #fce9ec;
  color: #9a2433;
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.error:empty {
  display: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-full {
  grid-column: 1/-1;
}
.source-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.source-icon {
  width: 42px;
  height: 42px;
  background: var(--soft);
  color: var(--brand);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font:
    600 21px "Space Grotesk",
    sans-serif;
}
.source-logo h2 {
  margin: 0;
  font-size: 19px;
}
.source-logo small {
  font-size: 11px;
}
.source-logo .badge {
  margin-left: auto;
}
.steps {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.steps li {
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  flex: 1;
  padding: 9px 0;
}
.steps li.current {
  color: var(--brand);
  border-color: var(--teal);
  font-weight: 650;
}
.upload-zone {
  padding: 30px;
  background: var(--bg);
  border: 1px dashed #8c9baa;
  border-radius: 5px;
}
.upload-zone input {
  border: 0;
  padding: 10px 0;
}
.mapping {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.mapping label {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(100px, 1.2fr);
  align-items: center;
  font-size: 11px;
}
.mapping select {
  font-size: 11px;
}
.mapping-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 10px;
}
.muted-link {
  font-size: 11px;
  color: var(--muted);
}
.list-row {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border: 0;
}
.list-row p {
  margin: 2px 0;
  font-size: 12px;
  color: var(--muted);
}
progress {
  accent-color: var(--teal);
  height: 9px;
  width: 100%;
}
.bars {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
}
.directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.person {
  padding: 20px;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--text);
}
.person:hover {
  border-color: var(--teal);
}
.avatar {
  height: 40px;
  width: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 50%;
  color: var(--green);
  font-weight: 650;
}
.person small {
  display: block;
  font-size: 11px;
}
.search {
  max-width: 280px;
}
.auth-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: #0e046c;
  color: white;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side .brand {
  padding: 0;
}
.auth-side .wordmark {
  font-size: 65px;
}
.auth-side h1 {
  font:
    500 clamp(30px, 3.5vw, 53px)/1.15 "Space Grotesk",
    sans-serif;
  max-width: 13ch;
  letter-spacing: -1.5px;
  margin-top: 80px;
}
.auth-side p {
  color: #c8c3e8;
  font-size: 14px;
  max-width: 37ch;
}
.auth-side footer {
  font-size: 11px;
  color: #aaa5cd;
  margin-top: 70px;
}
.auth-panel {
  padding: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-content {
  width: 100%;
  max-width: 385px;
}
.auth-content h1 {
  font-size: 26px;
}
.auth-content > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.auth-content .button {
  min-height: 43px;
}
.auth-content .qr {
  display: block;
  margin: 15px auto;
  max-width: 100%;
  background: white;
  border-radius: 4px;
}
.secret {
  display: block;
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px;
  font:
    12px ui-monospace,
    monospace;
}
.recovery-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 0;
  list-style: none;
  font:
    11px ui-monospace,
    monospace;
}
.recovery-list li {
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}
#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: calc(100vw - 44px);
  background: #0e046c;
  color: white;
  border: 1px solid #777099;
  padding: 13px 20px;
  z-index: 100;
  border-radius: 6px;
  box-shadow: 0 5px 30px #0002;
  font-size: 12px;
}
dialog {
  width: min(800px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 28px;
  border-radius: 8px;
}
dialog::backdrop {
  background: #080a2766;
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
}
.definition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 25px;
}
.definition > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.definition dt {
  font-size: 11px;
  color: var(--muted);
}
.definition dd {
  margin: 3px 0;
  font-size: 13px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  padding-top: 12px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.tv-mode .sidebar,
.tv-mode .topbar,
.tv-mode .footer {
  display: none;
}
.tv-mode .workspace {
  margin: 0;
}
.tv-mode main {
  max-width: none;
  padding: 35px 45px 100px;
}
.tv-mode h1 {
  font-size: 40px;
}
.tv-mode .kpi {
  min-height: 180px;
  padding: 24px;
}
.tv-mode .kpi h2 {
  font-size: 18px;
}
.tv-mode .kpi .value {
  font-size: 46px;
}
.tv-mode .kpi small {
  font-size: 13px;
}
.tv-mode .table-scroll {
  max-height: 50vh;
}
.tv-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 15px 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 40;
}
.tv-controls .wordmark {
  font-size: 30px;
  margin-right: auto;
}
.tv-controls select {
  width: auto;
}
.tv-mode .card .empty {
  min-height: 200px;
}
@media (min-width: 1600px) {
  main {
    padding: 35px 45px;
  }
  .topbar {
    padding: 18px 45px;
  }
  .kpi .value {
    font-size: 34px;
  }
}
@media (max-width: 1100px) {
  .directory {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar {
    width: 210px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .workspace {
    margin-left: 210px;
  }
  .topbar {
    padding: 14px 24px;
  }
  main {
    padding: 24px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .grid.wide {
    grid-template-columns: 1fr 1fr;
  }
  .mapping {
    grid-template-columns: 1fr;
  }
  .auth-side {
    padding: 45px;
  }
  .topline .breadcrumb {
    display: none;
  }
}
@media (max-width: 800px) {
  .grid,
  .grid.wide {
    grid-template-columns: 1fr;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .auth-side {
    padding: 25px 30px;
  }
  .auth-side .brand {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .auth-side .wordmark {
    font-size: 40px;
  }
  .auth-side .brand-by {
    margin: 0;
  }
  .auth-side h1,
  .auth-side p,
  .auth-side footer {
    display: none;
  }
  .auth-panel {
    padding: 35px 24px;
  }
  .topline .actions {
    gap: 6px;
  }
  .topline .button {
    font-size: 10px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .source-line {
    flex-wrap: wrap;
  }
  .tv-mode main {
    padding: 20px 18px 120px;
  }
  .tv-mode .kpi .value {
    font-size: 32px;
  }
}
@media (max-width: 640px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    width: 230px;
  }
  .sidebar.open {
    transform: none;
    visibility: visible;
    box-shadow: 0 0 0 100vmax #06062977;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 12px 14px;
  }
  .menu-button {
    display: inline-flex;
  }
  .topline {
    align-items: start;
  }
  .topline .actions {
    margin-left: auto;
    justify-content: flex-end;
  }
  .topline .user-label {
    display: none;
  }
  main {
    padding: 22px 14px;
  }
  .card {
    padding: 18px 16px;
  }
  .kpis {
    gap: 9px;
  }
  .kpi {
    padding: 14px;
  }
  .kpi .value {
    font-size: 27px;
  }
  .kpi h2 {
    font-size: 10px;
  }
  .directory {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .definition {
    grid-template-columns: 1fr;
  }
  .form-full {
    grid-column: auto;
  }
  .mapping label {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 8px;
  }
  .steps li {
    font-size: 10px;
  }
  .source-line span:last-child {
    display: none;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .source-logo {
    flex-wrap: wrap;
  }
  .source-logo .badge {
    margin-left: 0;
  }
  .recovery-list {
    grid-template-columns: 1fr;
  }
  .tv-controls {
    padding: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tv-controls .wordmark {
    width: 100%;
  }
  .tv-mode .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .tv-mode .kpi {
    min-height: 150px;
  }
  .tv-mode h1 {
    font-size: 28px;
  }
  .tv-mode .kpi h2 {
    font-size: 13px;
  }
  .footer {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.brand-by img {
  background: #fff;
  border-radius: 4px;
  padding: 4px 7px;
  width: 100px;
  height: 45px;
}
.auth-content > form + p {
  margin-top: 18px;
}
.tv-mode .page-head {
  margin-bottom: 18px;
}
.tv-mode .card {
  margin-bottom: 0;
}
@media (min-width: 1101px) {
  .tv-mode .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Graphiques (ECharts, rendu canvas) */
.chart-scroll { max-width: 100%; min-width: 0; overflow: hidden; }
.chart { width: 100%; height: 360px; margin-top: 14px; }
.chart.tall { height: 520px; }
.chart.flow { min-width: 0; }
.chart.funnel { height: 420px; }
.chart.cohort { min-width: 0; }
.data-detail { margin-top: 14px; padding-top: 12px; border-top: 1px solid #E3E6ED; font-size: 13px; }
.data-detail summary { cursor: pointer; color: #647086; }
.data-detail table { margin-top: 8px; }
.card:has(.chart) { min-width: 0; }

@media (max-width: 760px) { .chart.tall.flow { height: 680px; } }

/* Tuile HubSpot : consigne de première connexion. */
.tile-login .tile-url {
  user-select: all;
  font-family: ui-monospace, monospace;
}
.tile-login-alert {
  outline: 2px solid var(--accent);
}
