/* ==========================================================================
   AXIS — Composants (v1.0)
   Dépend de tokens.css. Chaque composant expose ses états :
   normal, hover, focus, actif, désactivé, erreur.
   Les classes .is-hover / .is-focus / .is-active existent uniquement pour
   afficher les états dans le styleguide ; en production, ce sont les
   pseudo-classes natives (:hover, :focus-visible, :active) qui s'appliquent.
   ========================================================================== */

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--text); }
::selection { background: var(--accent-soft); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Focus visible partout : anneau sable, décalé */
:focus-visible, .is-focus {
  outline: 2px solid var(--focus-ring); outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Typographie -------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-title); margin: 0; }
.t-display { font-family: var(--font-title); font-weight: var(--fw-extrabold); font-size: var(--fs-display); line-height: .95; letter-spacing: var(--tracking-title); text-transform: uppercase; }
.t-h1 { font-weight: var(--fw-extrabold); font-size: var(--fs-h1); line-height: var(--lh-title); letter-spacing: var(--tracking-title); text-transform: uppercase; }
.t-h2 { font-weight: var(--fw-bold); font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.015em; }
.t-h3 { font-weight: var(--fw-bold); font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
.t-h4 { font-weight: var(--fw-bold); font-size: var(--fs-h4); letter-spacing: var(--tracking-h3); text-transform: uppercase; color: var(--text-muted); }
.t-lead { font-weight: var(--fw-light); font-size: var(--fs-lead); line-height: 1.45; color: var(--text-muted); }
.t-small { font-size: var(--fs-small); }
.t-caption { font-size: var(--fs-caption); color: var(--text-subtle); }
.t-label { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-subtle); }
.t-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.t-muted { color: var(--text-muted); }

/* Titre « en deux temps » du Brand Book : gras puis léger */
.t-twostep { font-family: var(--font-title); font-size: var(--fs-h2); line-height: 1.1; font-weight: var(--fw-regular); }
.t-twostep strong { font-weight: var(--fw-extrabold); }

/* --- Icônes (SVG du kit, via <img>) --------------------------------------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--control-height); padding: 0 var(--space-6);
  border: var(--border-width) solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-text); font-weight: var(--fw-semibold); font-size: 0.875rem; letter-spacing: -0.005em;
  line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.btn-sm { height: var(--control-height-sm); padding: 0 var(--space-5); font-size: var(--fs-small); }
.btn-lg { height: var(--control-height-lg); padding: 0 var(--space-8); font-size: var(--fs-body); }
.btn-icon { width: var(--control-height); padding: 0; }
.btn-icon.btn-sm { width: var(--control-height-sm); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-hover); }
.btn-primary:active, .btn-primary.is-active { background: var(--accent-active); box-shadow: inset 0 2px 4px rgba(0,0,0,.30); }

.btn-secondary { background: var(--secondary); color: var(--axis-tache-blanche); }
[data-theme="light"] .btn-secondary { color: var(--axis-brun-fonce); }
.btn-secondary:hover, .btn-secondary.is-hover { background: var(--secondary-hover); }
.btn-secondary:active, .btn-secondary.is-active { box-shadow: inset 0 2px 4px rgba(0,0,0,.30); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover, .btn-outline.is-hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-outline:active, .btn-outline.is-active { background: var(--accent-soft); box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--accent-soft); color: var(--text); }
.btn-ghost:active, .btn-ghost.is-active { background: var(--accent-soft); box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }

.btn-danger { background: transparent; color: var(--state-danger-text); border-color: var(--state-danger); }
.btn-danger:hover, .btn-danger.is-hover { background: var(--state-danger-bg); }
.btn-danger:active, .btn-danger.is-active { background: var(--state-danger-bg); box-shadow: inset 0 2px 4px rgba(0,0,0,.25); }

.btn:disabled, .btn.is-disabled { opacity: .42; cursor: not-allowed; pointer-events: none; }

/* --- Champs de formulaire ------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 10px; }
.field-label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text); }
.field-label .req { color: var(--accent-text); }
.field-hint { font-size: var(--fs-caption); color: var(--text-subtle); }
.field-error { font-size: var(--fs-caption); color: var(--state-danger-text); display: none; }
.field.is-error .field-error { display: block; }

.input, .select, .textarea {
  width: 100%; height: var(--control-height); padding: 0 var(--space-4);
  background: var(--surface); color: var(--text);
  border: var(--border-width) solid var(--border); border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.textarea { height: auto; min-height: 112px; padding: var(--space-4); resize: vertical; }
.select { appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23C9B39A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:hover, .select:hover, .textarea:hover, .is-hover.input { border-color: var(--accent); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible, .input.is-focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
.input:disabled, .select:disabled, .textarea:disabled, .input.is-disabled { opacity: .45; cursor: not-allowed; background: var(--surface); }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--state-danger); background: var(--state-danger-bg); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); opacity: .8; pointer-events: none; }
.input-icon .input { padding-left: 46px; }

/* Case à cocher / radio / interrupteur */
.check { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; font-size: var(--fs-small); }
.check > input { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); display: grid; place-items: center; }
.check > input[type="radio"] { border-radius: 50%; }
.check > input:hover { border-color: var(--accent); }
.check > input:checked { background: var(--accent); border-color: var(--accent); }
.check > input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.check > input[type="radio"]:checked::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-accent); }
.check > input:disabled { opacity: .4; cursor: not-allowed; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { appearance: none; width: 100%; height: 100%; margin: 0; cursor: pointer; border-radius: var(--radius-pill); background: var(--surface-strong); border: 1px solid var(--border-strong); transition: background var(--duration-fast); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-muted); box-shadow: var(--shadow-sm); transition: transform var(--duration-fast) var(--ease), background var(--duration-fast); }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(20px); background: var(--on-accent); }
.switch input:disabled { opacity: .4; cursor: not-allowed; }

/* --- Cartes -------------------------------------------------------------- */
.card { background: var(--surface); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.card.is-interactive { cursor: pointer; transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), background var(--duration) var(--ease); }
.card.is-interactive:hover, .card.is-hover { border-color: var(--border-strong); background: var(--surface-raised); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Carte indicateur (tableau de bord) */
.stat { display: flex; flex-direction: column; gap: var(--space-2); }
.stat-value { font-family: var(--font-title); font-weight: var(--fw-extrabold); white-space: nowrap; font-size: 2rem; line-height: 1; letter-spacing: var(--tracking-title); font-variant-numeric: tabular-nums; }
.stat-delta { font-size: var(--fs-caption); color: var(--text-muted); }
.stat-delta.up { color: var(--state-success-text); } .stat-delta.down { color: var(--state-danger-text); }

/* Carte athlète — pas de contact direct : l'action passe par AXIS */
.athlete-card { padding: 0; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.athlete-card .media { position: relative; aspect-ratio: 4 / 3; background: var(--fond-nuit), var(--axis-brun-fonce); display: grid; place-items: center; overflow: hidden; }
.athlete-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18,13,9,.7)); }
.athlete-card .media .ph-x { width: 46%; opacity: .16; }
.athlete-card .media .badge { position: absolute; top: 16px; left: 16px; z-index: 1; }
.athlete-card .body { padding: var(--space-5) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.athlete-card .name { font-family: var(--font-title); font-weight: var(--fw-bold); font-size: var(--fs-h3); line-height: 1.2; }
.athlete-card .meta { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.athlete-card .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--divider); }
.athlete-card .stats dt { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-subtle); }
.athlete-card .stats dd { margin: 2px 0 0; font-weight: var(--fw-semibold); font-size: var(--fs-small); }

/* --- Avatars -------------------------------------------------------------- */
.avatar { --size: 40px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden;
  background: var(--surface-strong); color: var(--text); font-family: var(--font-title); font-weight: var(--fw-bold); font-size: calc(var(--size) * .36); letter-spacing: .02em; border: 1px solid var(--border); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { --size: 28px; } .avatar-lg { --size: 56px; } .avatar-xl { --size: 80px; }
.avatar.tone-1 { background: var(--axis-brun-axis); color: var(--axis-tache-blanche); }
.avatar.tone-2 { background: var(--axis-sable); color: var(--axis-brun-nuit); }
.avatar.tone-3 { background: var(--axis-brun-fonce); color: var(--axis-sable); }
.avatar-stack { display: inline-flex; } .avatar-stack .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); } .avatar-stack .avatar:first-child { margin-left: 0; }

/* --- Badges de statut ------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  background: var(--state-neutral-bg); color: var(--state-neutral-text); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-plain::before { display: none; }
.badge-success { background: var(--state-success-bg); color: var(--state-success-text); }
.badge-warning { background: var(--state-warning-bg); color: var(--state-warning-text); }
.badge-danger  { background: var(--state-danger-bg);  color: var(--state-danger-text); }
.badge-info    { background: var(--state-info-bg);    color: var(--state-info-text); }
.badge-accent  { background: var(--accent-soft);      color: var(--accent-text); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface-strong); color: var(--text-muted); font-size: var(--fs-caption); font-weight: var(--fw-medium); }

/* --- Navigation : sidebar + topbar ------------------------------------------ */
.sidebar { width: var(--sidebar-width); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: var(--space-8) var(--space-5) var(--space-6); gap: var(--space-8); }
.sidebar-logo { padding: 0 var(--space-3); } .sidebar-logo img { height: 40px; width: auto; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-title { padding: var(--space-8) var(--space-4) var(--space-2); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-subtle); }
.nav-item { display: flex; align-items: center; gap: var(--space-4); height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-md);
  color: var(--text-muted); text-decoration: none; font-weight: var(--fw-medium); font-size: var(--fs-body); letter-spacing: -0.005em; position: relative; transition: background var(--duration-fast), color var(--duration-fast); }
.nav-item:hover, .nav-item.is-hover { background: var(--accent-soft); color: var(--text); }
.nav-item[aria-current="page"], .nav-item.is-active { background: var(--accent-soft); color: var(--text); font-weight: var(--fw-semibold); }
.nav-item[aria-current="page"] .icon, .nav-item.is-active .icon { opacity: 1; }
.nav-item .count { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-caption); background: var(--accent); color: var(--on-accent); border-radius: var(--radius-pill); padding: 2px 9px; font-weight: 500; }
.nav-item.is-disabled { opacity: .4; pointer-events: none; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--accent-soft); }
.sidebar-user .who { line-height: 1.2; min-width: 0; } .sidebar-user .who b { display: block; font-size: var(--fs-small); } .sidebar-user .who span { font-size: var(--fs-caption); color: var(--text-subtle); }

.topbar { position: sticky; top: 0; z-index: 10; height: var(--topbar-height); display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-8); border-bottom: 1px solid var(--border); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.topbar .search { flex: 1; max-width: 440px; }
.topbar .spacer { flex: 1; }
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--text-subtle); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; } .breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); font-weight: var(--fw-semibold); }
.dot-alert { position: relative; } .dot-alert::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }

/* Sélecteur d'espace : sépare « Agence » (gestion de l'entreprise) et « Projet »
   (gestion de projet et base de connaissance). Placé en haut de la barre latérale. */
.space-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-strong); border-radius: var(--radius-md); }
.space-switch button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: var(--radius-sm); background: none; cursor: pointer;
  color: var(--text-muted); font-weight: var(--fw-semibold); font-size: var(--fs-small); transition: background var(--duration-fast), color var(--duration-fast); }
.space-switch button:hover { color: var(--text); }
.space-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.space-switch button[aria-pressed="true"] .icon { filter: brightness(0); }
.space-label { padding: 0 var(--space-4); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-subtle); }
[data-space-panel][hidden] { display: none; }

/* --- Onglets ---------------------------------------------------------------- */
.tabs { display: flex; gap: var(--space-8); border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { position: relative; height: 52px; padding: 0 var(--space-1); background: none; border: 0; cursor: pointer; white-space: nowrap;
  color: var(--text-subtle); font-weight: var(--fw-semibold); font-size: var(--fs-small); display: inline-flex; align-items: center; gap: var(--space-2); }
.tab:focus-visible, .tab.is-focus { outline-offset: -2px; }
.tab:hover, .tab.is-hover { color: var(--text); }
.tab[aria-selected="true"], .tab.is-active { color: var(--text); }
.tab[aria-selected="true"]::after, .tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.tab:disabled, .tab.is-disabled { opacity: .4; cursor: not-allowed; }
.tab .count { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-subtle); }
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-strong); border-radius: var(--radius-md); }
.segmented button { height: 36px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-muted); font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }

/* --- Tableaux ---------------------------------------------------------------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: auto; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th { position: sticky; top: 0; text-align: left; padding: 0 var(--space-6); height: 52px; background: var(--surface-strong); white-space: nowrap;
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.table th.sortable { cursor: pointer; } .table th.sortable:hover { color: var(--text); }
.table td { padding: 0 var(--space-6); height: 68px; border-top: 1px solid var(--divider); vertical-align: middle; }
.table tbody tr { transition: background var(--duration-fast); }
.table tbody tr:hover, .table tbody tr.is-hover { background: var(--accent-soft); }
.table tbody tr.is-selected { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.table tbody tr:focus-within { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.table .cell-person { display: flex; align-items: center; gap: var(--space-3); } .table .cell-person b { display: block; font-weight: var(--fw-semibold); } .table .cell-person span { color: var(--text-subtle); font-size: var(--fs-caption); }
.table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--divider); color: var(--text-subtle); font-size: var(--fs-caption); }

/* --- Barres de progression ---------------------------------------------------- */
.progress { height: 6px; border-radius: var(--radius-pill); background: var(--surface-strong); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

/* --- Modales -------------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); display: none; place-items: center; padding: var(--space-4); z-index: 100; }
.modal-backdrop.is-open { display: grid; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-8) var(--space-8) var(--space-3); }
.modal-body { padding: var(--space-2) var(--space-8) var(--space-8); color: var(--text-muted); display: flex; flex-direction: column; gap: var(--space-4); }
.modal-footer { display: flex; justify-content: flex-end; gap: var(--space-3); padding: var(--space-5) var(--space-8); border-top: 1px solid var(--divider); }
.modal-static { position: relative; } /* aperçu dans le styleguide */

/* --- Notifications (toasts) et bandeaux -------------------------------------------- */
.toast { display: flex; gap: var(--space-3); align-items: flex-start; width: min(400px, 100%); padding: var(--space-5) var(--space-6); background: var(--surface-raised);
  border: 1px solid var(--border-strong); border-left: 3px solid var(--state-info); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.toast b { display: block; font-size: var(--fs-small); } .toast p { margin: 2px 0 0; font-size: var(--fs-caption); color: var(--text-muted); }
.toast-success { border-left-color: var(--state-success); } .toast-warning { border-left-color: var(--state-warning); } .toast-danger { border-left-color: var(--state-danger); }
.toast-stack { position: fixed; right: var(--space-6); bottom: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); z-index: 200; }
.alert { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); font-size: var(--fs-small); background: var(--state-info-bg); color: var(--state-info-text); }
.alert-warning { background: var(--state-warning-bg); color: var(--state-warning-text); } .alert-danger { background: var(--state-danger-bg); color: var(--state-danger-text); } .alert-success { background: var(--state-success-bg); color: var(--state-success-text); }

/* --- États vides -------------------------------------------------------------------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); padding: var(--space-16) var(--space-8); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty img { width: 120px; opacity: .9; } .empty p { margin: 0; max-width: 40ch; color: var(--text-muted); }

/* --- Info-bulle ------------------------------------------------------------------------ */
.kbd { font-family: var(--font-mono); font-size: var(--fs-caption); padding: 1px 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-muted); }
.divider { height: 1px; background: var(--divider); border: 0; margin: var(--space-6) 0; }

/* Réduction des animations à la demande de l'utilisateur */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
