/*
 * Visual tokens from the Figma file (pages « Fondations » and « Composants »),
 * identical to the workshop deck variables (brief-design.md). Aeonik is not
 * licensed for the web yet (QST-DES-005): the system fallback stack applies.
 */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --rule: #e4e5e8;
  --fg: #1a1b1d;
  --muted: #5e5f63;
  --faint: #6d6f73;
  --ink: #050608;
  --accent: #4b2fe6;
  --accent-soft: rgba(75, 47, 230, 0.1);
  --on-accent: #ffffff;
  --focus: #4b2fe6;
  --ok: #1c7b51;
  --ok-soft: rgba(31, 138, 91, 0.12);
  --bad: #bc392d;
  --bad-soft: rgba(194, 59, 46, 0.12);
  --g1: #6041ff;
  --g2: #00c2ff;
  --g3: #ffa0ea;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --surface-2: #eeeef2;
  --off: #6c6d70;
  --off-soft: rgba(26, 27, 29, 0.06);
  --warn: #9a4b0f;
  --warn-soft: rgba(230, 126, 34, 0.12);
  --radius-sm: 4px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font: "Aeonik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --logo-filter: none;
  --theme-moon: block;
  --theme-sun: none;
  color-scheme: light dark;
}

/*
 * Mode sombre : il suit la préférence du système, sauf si le switch de la
 * barre d'en-tête a forcé un thème (data-theme sur <html>, brief-design.md).
 * Les deux blocs portent les mêmes jetons.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f11;
    --surface: #16181b;
    --rule: #26292e;
    --surface-2: #1d2024;
    --off: #a9abb0;
    --off-soft: rgba(241, 242, 245, 0.08);
    --warn: #f3b07a;
    --warn-soft: rgba(243, 176, 122, 0.14);
    --fg: #f1f2f5;
    --muted: #a9abb0;
    --faint: #7b7e84;
    --accent: #9a88ff;
    --accent-soft: rgba(154, 136, 255, 0.16);
    --on-accent: #050608;
    --focus: #00c2ff;
    --ok: #52c48f;
    --ok-soft: rgba(82, 196, 143, 0.16);
    --bad: #f2837a;
    --bad-soft: rgba(242, 131, 122, 0.16);
    --logo-filter: invert(1);
    --theme-moon: none;
    --theme-sun: block;
  }
}

:root[data-theme="dark"] {
  --bg: #0e0f11;
  --surface: #16181b;
  --rule: #26292e;
  --surface-2: #1d2024;
  --off: #a9abb0;
  --off-soft: rgba(241, 242, 245, 0.08);
  --warn: #f3b07a;
  --warn-soft: rgba(243, 176, 122, 0.14);
  --fg: #f1f2f5;
  --muted: #a9abb0;
  --faint: #7b7e84;
  --accent: #9a88ff;
  --accent-soft: rgba(154, 136, 255, 0.16);
  --on-accent: #050608;
  --focus: #00c2ff;
  --ok: #52c48f;
  --ok-soft: rgba(82, 196, 143, 0.16);
  --bad: #f2837a;
  --bad-soft: rgba(242, 131, 122, 0.16);
  --logo-filter: invert(1);
  --theme-moon: none;
  --theme-sun: block;
  color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

h1, h2, h3, p { margin: 0; }

a, button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.logo { display: block; filter: var(--logo-filter); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Bouton (Figma 5:31) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
}

.button--block { width: 100%; }

/* Connexion (Figma 15:327, 15:336) */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--ink);
}

.auth__card {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.auth__card form { width: 100%; }

.brand-gradient {
  width: 120px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--g1), var(--g2) 49%, var(--g3));
}

.kicker {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.heading-2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.muted { color: var(--muted); }

.caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.alert {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bad-soft);
}

.alert__title { font-weight: 500; color: var(--bad); }
.alert__body { font-size: 13px; line-height: 1.5; }

/* En-tête (composant « Barre d'en-tête », Figma 31:174) et pages de l'application */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 64px;
  padding: 0 var(--space-5);
  border-bottom: 1px solid var(--rule);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}

.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--faint); font-weight: 400; }
.breadcrumb__brand { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb__dot { color: var(--faint); font-weight: 400; }

.user-chip { display: flex; align-items: center; gap: var(--space-2); }

.app-header__actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }

/* Switch de thème (Figma 28:123) : l'icône annonce l'autre mode. */
.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}

.theme-switch:hover { border-color: var(--accent); }
.theme-switch__moon { display: var(--theme-moon); }
.theme-switch__sun { display: var(--theme-sun); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.page {
  padding: var(--space-7) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.stack { display: flex; flex-direction: column; gap: var(--space-4); }

.heading-1 { font-size: 44px; font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }

.card {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.card__title { display: flex; align-items: center; gap: var(--space-2); font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.card .button { align-self: flex-start; }

/* Bouton désactivé (Figma 5:31, État=Désactivé) */
.button:disabled { opacity: 0.4; cursor: not-allowed; }

/* « Mon compte » : projets à gauche, comptes à droite (Figma 15:348, 37:1974) */
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: var(--space-7); align-items: start; }
.account-layout__column { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.account-layout__column--side { gap: var(--space-4); }
.account-layout__column--side > .account-layout__header { margin-bottom: var(--space-2); }
.account-layout__header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 42px; }

/* Ligne de projet (Figma 36:142) */
.project-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.project-list__item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); }
.project-list__item + .project-list__item { border-top: 1px solid var(--rule); }
.project-list__project { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; min-width: 0; }
.project-list__name { color: var(--fg); font-weight: 500; text-decoration: none; }
.project-list__name:hover { text-decoration: underline; }
.project-list__state { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); text-align: right; }
.project-list__workshop { color: var(--fg); }
.card form { display: contents; }

.badge {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--todo { border: 1px dashed var(--faint); color: var(--faint); }

.breadcrumb__muted { color: var(--muted); font-weight: 400; }

.button--secondary { background: var(--bg); color: var(--fg); border: 1px solid var(--rule); }

/* Formulaire (Figma 15:376) */
.form { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: var(--space-4); }
.form turbo-frame { display: block; }

.banner {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  font-size: 13px;
  line-height: 1.5;
}

.banner__link { font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--accent); }

.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field__label { font-weight: 500; }

.field__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.field__input[aria-invalid="true"] { border-color: var(--bad); }
.field__error { font-size: 13px; line-height: 1.5; color: var(--bad); }

.actions { display: flex; gap: var(--space-2); }

/* Projet (Figma 15:416) */
.mono { font-family: var(--mono); font-size: 13px; line-height: 1.5; }

.project-header { display: flex; align-items: flex-end; gap: var(--space-4); }
.project-header__title { flex: 1; display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.project-header__actions { display: flex; gap: var(--space-2); }
.project-header__actions form { display: contents; }

.tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--rule); }
.tabs__tab { padding-bottom: var(--space-3); color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__tab[aria-current="page"] { color: var(--fg); font-weight: 500; border-bottom-color: var(--accent); }

.toast { padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--surface); font-size: 13px; }

.snapshot-grid { display: flex; gap: var(--space-5); align-items: flex-start; }
.card--wide { flex: 1; max-width: none; min-width: 0; }
.card--side { width: 520px; max-width: 100%; flex-shrink: 0; }
.card--full { max-width: none; }
.card__subtitle { font-size: 15px; font-weight: 500; }

.inline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: 15px; font-weight: 400; }

.identifier {
  display: inline-flex;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.figures { display: flex; flex-wrap: wrap; gap: var(--space-6); margin: 0; }
.figures__item { display: flex; flex-direction: column-reverse; }
.figures__item dt { font-size: 13px; line-height: 1.5; color: var(--muted); }
.figures__item dd { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }

.code-line {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.badge--bad { background: var(--bad-soft); color: var(--bad); }

.history { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }

/* Points (Figma 15:498) */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.chip {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.chip[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }

.point-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.point-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--rule);
  border-left-width: 3px;
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.point-card__label { font-size: 17px; line-height: 1.6; }
.point-card--retired { border-style: dashed; border-color: var(--faint); opacity: 0.75; }

.badge--off { background: var(--off-soft); color: var(--off); }

/* Référentiel (Figma 15:586) */
.repository { display: flex; gap: var(--space-6); align-items: flex-start; }

.repository__tree { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.repository__tree summary { color: var(--muted); cursor: pointer; list-style: none; }
.repository__tree summary::-webkit-details-marker { display: none; }
.repository__tree summary.is-current { color: var(--accent); font-weight: 500; }
.repository__tree ul { margin: var(--space-2) 0 0; padding-left: var(--space-4); list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.repository__tree a { color: var(--muted); font-family: var(--mono); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.repository__tree a[aria-current="page"] { color: var(--fg); font-weight: 500; }

.artifact { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }

.traceability { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 13px; }
.traceability a { color: var(--accent); }

.markdown { font-size: 17px; line-height: 1.6; max-width: 80ch; }
.markdown > * + * { margin-top: var(--space-4); }
.markdown h2 { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; margin-top: var(--space-5); }
.markdown h3 { font-size: 17px; font-weight: 500; }
.markdown a { color: var(--accent); }
.markdown code { font-family: var(--mono); font-size: 0.85em; }
.markdown pre { padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface); overflow-x: auto; }
.markdown table { border-collapse: collapse; font-size: 15px; }
.markdown th, .markdown td { padding: var(--space-2) var(--space-3); border: 1px solid var(--rule); text-align: left; vertical-align: top; }

.broken-link { color: var(--bad); text-decoration: line-through; }

@media (max-width: 1100px) {
  .snapshot-grid { flex-direction: column; }
  .card--side { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Sessions (« séances », EPIC-002) */
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.actions--end { justify-content: flex-end; }
.workshop-list { margin: 0; padding: var(--space-2) var(--space-4); list-style: none; display: flex; flex-direction: column; gap: 0; }
.workshop-list__item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2) 0; }
.workshop-list__title { color: var(--fg); font-weight: 500; text-decoration: none; }
.workshop-list__title:hover { text-decoration: underline; }
.workshop-header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.dialog { width: min(520px, calc(100vw - 32px)); padding: var(--space-6); border: none; border-radius: var(--radius-lg); background: var(--bg); color: var(--fg); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.dialog__title { margin: 0 0 var(--space-4); font-size: 22px; font-weight: 500; }
.dialog .form { max-width: none; }

/* Agenda composition (US-010, Figma "17:480") */
.heading-3 { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.3; }
.banner--bad { background: var(--bad-soft); color: var(--bad); }
.link-button { padding: 2px 4px; border: none; background: none; color: var(--accent); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.composer { display: flex; gap: var(--space-5); align-items: flex-start; margin-top: var(--space-4); }
.composer__available { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.composer__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.composer__agenda { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); }
.composer__agenda .button { align-self: flex-start; }
.point-options, .agenda-entries { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.point-option { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--bg); }
.point-option--selected { border-color: var(--accent-soft); background: var(--accent-soft); }
.point-option--retired { border-style: dashed; border-color: var(--faint); background: var(--surface); }
.point-option__check { margin-top: 4px; accent-color: var(--accent); }
.point-option__body { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; cursor: pointer; }
.point-option--retired .point-option__body { cursor: default; }
.point-option__label { font-size: 15px; line-height: 1.5; }
.agenda-entry { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-3); border-radius: var(--radius-md); background: var(--bg); }
.agenda-entry--dragging { opacity: 0.5; }
.agenda-entry__handle { color: var(--faint); cursor: grab; }
.agenda-entry__rank { min-width: 1.5em; font-size: 12px; color: var(--muted); text-align: right; }
.agenda-entry__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); align-items: flex-start; }
.agenda-entry__label { margin: 0; font-size: 14px; line-height: 1.5; }
.agenda-entry__actions { display: flex; gap: var(--space-1); }
.workshop-agenda { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); max-width: 640px; }
.workshop-agenda__heading { display: flex; flex-direction: column; gap: var(--space-1); }
.workshop-agenda__list { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.workshop-agenda__item { display: flex; flex-direction: column; gap: var(--space-1); }
.workshop-agenda .button { align-self: flex-start; }

@media (max-width: 1100px) {
  .composer { flex-direction: column; }
  .composer__agenda { width: 100%; }
}

.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.banner__button { align-self: flex-start; padding: 0; border: none; background: none; cursor: pointer; text-decoration: underline; }
.banner form { display: contents; }

/* Prepared session (Figma "12:127") */
.workshop-layout { display: flex; gap: var(--space-6); align-items: flex-start; }
.workshop-layout__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.workshop-layout__side { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.share-panel { background: var(--surface); }
.share-panel__link { display: flex; flex-direction: column; gap: var(--space-2); }
.share-panel__url { font-size: 13px; overflow-wrap: anywhere; }
.share-panel .actions { flex-wrap: wrap; }
.waiting-room { display: flex; flex-direction: column; gap: var(--space-2); }
.attendee-list { list-style: none; margin: 0; padding: 0; }
.attendee-list__item { display: grid; grid-template-columns: 8px 1fr auto; column-gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
.attendee-list__name { grid-column: 2; grid-row: 1; font-weight: 500; }
.attendee-presence { display: contents; }
.attendee-presence .presence-dot { grid-column: 1; grid-row: 1; }
.attendee-presence .caption { grid-column: 2; grid-row: 2; }
.attendee-list__edit { grid-column: 2 / 4; grid-row: 1 / 3; justify-self: end; align-self: start; display: flex; flex-direction: column; }
.attendee-list__edit[open] { grid-column: 2 / 4; grid-row: 3; justify-self: stretch; margin-top: var(--space-2); }
.attendee-list__edit summary { color: var(--accent); text-decoration: underline; cursor: pointer; font-size: 13px; list-style: none; align-self: flex-end; }
.attendee-list__edit summary::-webkit-details-marker { display: none; }
.attendee-form { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.presence-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.presence-dot--online { background: var(--ok); }
/* Session in progress (Figma "9:2") */
.conduct { display: flex; gap: var(--space-6); align-items: flex-start; }
.conduct__agenda { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.conduct__progress { width: 100%; height: 4px; accent-color: var(--accent); }
.conduct__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.conduct__list form { display: contents; }
.conduct__item { display: flex; flex-direction: column; gap: var(--space-1); width: 100%; padding: var(--space-3); border: 1px solid transparent; border-radius: var(--radius-md); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.conduct__item:hover { background: var(--surface); }
.conduct__item--presented { border-color: var(--accent); background: var(--accent-soft); }
.conduct__side { width: 380px; flex-shrink: 0; }
.workshop-header__end { margin-left: auto; }
.conduct__point { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.excerpt { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-3); }

@media (max-width: 1100px) {
  .conduct { flex-direction: column; }
  .conduct__agenda, .conduct__side { width: 100%; }
}
/* Summary of the session (Figma "23:1016") */
.summary-layout { display: flex; gap: var(--space-6); align-items: flex-start; }
.summary-layout__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.summary-layout__side { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); }
.summary-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.summary-count { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border-top: 3px solid var(--faint); border-radius: var(--radius-md); background: var(--surface); }
.summary-count--settled_or_validated { border-top-color: var(--ok); }
.summary-count--to_adjust_or_investigate { border-top-color: var(--accent); }
.summary-count__value { font-size: 28px; font-weight: 500; }
.summary-points { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.summary-point { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-2) var(--space-4); border-left: 3px solid var(--rule); }
.summary-point p { margin: 0; }
.summary-point--ok { border-left-color: var(--ok); }
.summary-point--accent { border-left-color: var(--accent); }
.summary-point__label { font-weight: 500; }
.summary-attendees { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.summary-attendees li { display: flex; flex-direction: column; }

@media (max-width: 1100px) {
  .summary-layout { flex-direction: column; }
  .summary-layout__side { width: 100%; }
}
.start-panel { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }

@media (max-width: 1100px) {
  .workshop-layout { flex-direction: column; }
  .workshop-layout__side { width: 100%; }
}
.workshop-header form { margin-left: auto; }
.closure__effects-title { margin: var(--space-4) 0 var(--space-1); font-weight: 500; }
.closure__effects { margin: 0 0 var(--space-5); padding-left: var(--space-4); color: var(--muted); }
.dialog > .muted { margin: 0 0 var(--space-4); }

/* Pages du participant (Figma 18:537, 11:87, 18:562, 11:109) */
.participant-header__session { display: flex; align-items: center; gap: var(--space-3); min-width: 0; flex-wrap: wrap; }
.participant-header__title { font-weight: 500; }
.participant-header__attendee { margin: 0; }

.participant {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-4);
  background: var(--surface);
}

.participant__card {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-7) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.participant__card > * { margin: 0; }
.participant__form { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.participant__form .field { width: 100%; }

@media (max-width: 600px) {
  .participant-header__logo { display: none; }
  .participant { justify-content: flex-start; padding: var(--space-5) 0 0; background: var(--bg); }
  .participant__card { padding: var(--space-4); }
  .participant__submit { width: 100%; }
}

/* Salle d'attente du participant (Figma 18:575, 11:119) */
.participant__card--wide { max-width: 720px; }
.participant-agenda { display: flex; flex-direction: column; gap: var(--space-3); }
.participant-agenda > .kicker { margin: 0; }
.participant-agenda__list { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.participant-agenda__item { display: flex; align-items: baseline; gap: var(--space-3); }

@media (max-width: 600px) {
  .participant-agenda__rank { display: none; }
  .participant-agenda__item { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
}

/* Suivi de la séance par le participant (Figma 18:625, 11:152) */
.participant--live { display: block; min-height: calc(100vh - 64px); padding: var(--space-6) var(--space-6); background: var(--bg); }
.decision-card { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--ok-soft); display: flex; flex-direction: column; gap: var(--space-2); }
.decision-card > * { margin: 0; }
.decision-card__kicker { color: var(--ok); }
.decision-card__comment { font-size: 15px; line-height: 1.6; }

@media (max-width: 600px) {
  .participant--live { padding: var(--space-4); }
  .conduct--read-only .conduct__point { order: -1; }
}
.conduct--read-only .conduct__item { cursor: default; }
.conduct--read-only .conduct__item:hover { background: none; }
.conduct--read-only .conduct__item--presented:hover { background: var(--accent-soft); }

@media (max-width: 600px) {
  .participant-header { height: auto; min-height: 64px; padding: var(--space-3) var(--space-4); }
  .participant-header__attendee { display: none; }
  .participant-header__session .breadcrumb__dot { display: none; }
  .participant-header__project { flex-basis: 100%; order: 3; font-size: 13px; }
  .conduct--read-only .conduct__point h1 { font-size: 22px; line-height: 1.3; }
  .conduct--read-only .conduct__point .mono { display: none; }
}
.participant-banner { margin-bottom: var(--space-5); }
.participant-banner > * { margin: 0; }
.conduct--read-only a.conduct__item { text-decoration: none; cursor: pointer; }
.conduct--read-only a.conduct__item:hover { background: var(--surface); }
.banner--warn { background: var(--warn-soft); color: var(--fg); }
.banner--warn .banner__link { color: var(--warn); }
.participant-banner[hidden] { display: none; }

/* Écran de fin du participant (Figma 18:907, 11:232) */
.end-screen { display: flex; flex-direction: column; gap: var(--space-4); }
.end-screen > * { margin: 0; }
.end-screen__point { padding: var(--space-4) var(--space-5); border: 1px solid var(--rule); border-left-width: 3px; border-radius: var(--radius-md); }
.end-screen__point.summary-point--ok { border-color: var(--ok); }
.end-screen__label { font-size: 17px; }

@media (max-width: 600px) {
  .end-screen .summary-counts { grid-template-columns: repeat(2, 1fr); }
  .end-screen__point { padding: 0; border: 0; }
}

/* « Décision » panel (Figma "9:2", "26:1025") */
.conduct__side { display: flex; flex-direction: column; gap: var(--space-5); }
.decision-panel { display: flex; flex-direction: column; gap: var(--space-5); }
.decision-panel__header { display: flex; flex-direction: column; gap: var(--space-1); }
.decision-panel__header > * { margin: 0; }
.decision-form { display: flex; flex-direction: column; gap: var(--space-5); }
.decision-form__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.decision-form__group[hidden] { display: none; }
.decision-form__deciders { display: flex; flex-direction: column; gap: var(--space-2); }
.decision-form__deciders legend { padding: 0; margin-bottom: var(--space-2); }
.checkbox { display: flex; gap: var(--space-2); align-items: flex-start; min-height: 24px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.checkbox__input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.decision-form__action { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.decision-form__action > * { margin: 0; }
.status-selector { display: inline-flex; align-self: flex-start; gap: 2px; padding: 2px; border: 1px solid var(--rule); border-radius: var(--radius-full); background: var(--bg); }
.status-selector__option { padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.status-selector__option:has(:focus-visible), .decider-chip:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.status-selector__option:has(:checked) { background: var(--accent-soft); color: var(--accent); }
.status-selector__option--settled:has(:checked), .status-selector__option--validated:has(:checked) { background: var(--ok-soft); color: var(--ok); }
.status-selector__option--to_investigate:has(:checked), .status-selector__option--to_adjust:has(:checked) { background: var(--warn-soft); color: var(--warn); }
.status-selector__option--postponed:has(:checked), .status-selector__option--canceled:has(:checked) { background: var(--off-soft); color: var(--off); }
.decider-chip { display: inline-flex; align-items: center; gap: var(--space-1); cursor: pointer; }
.decider-chip__organization { color: var(--muted); }
.decider-chip:has(:checked) { border-color: var(--accent); background: var(--accent-soft); }
.decider-chip:has(:checked)::before { content: "✓"; color: var(--accent); }

/* History of the point (Figma "22:953") */
.decision-recorded { display: flex; flex-direction: column; gap: var(--space-5); }
.decision-recorded__card { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--ok-soft); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.decision-recorded__card > * { margin: 0; }
.decision-recorded__text { font-size: 15px; line-height: 1.6; }
.decision-recorded__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.decision-recorded__actions form { margin: 0; }
.decision-recorded > .caption { margin: 0; }
.decision-history { display: flex; flex-direction: column; gap: var(--space-2); }
.decision-history__title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.6; }
.decision-history__list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.decision-history__list .caption { margin: 0; }
