    /* ============ TOKENS ============ */
    :root {
      --bg-base:      #0a0a0a;
      --bg-elevated:  #111111;
      --bg-floating:  #181818;
      --bg-sidebar:   #0d0d0d;

      --red-accent:   #cc2222;
      --red-vivid:    #e05555;
      --red-glow:     rgba(204,34,34,0.15);
      --red-dim:      rgba(204,34,34,0.08);

      --text-primary:   #f5f5f5;
      --text-secondary: #888888;
      --text-tertiary:  #555555;
      --text-faint:     #333333;

      --border-base:   #1c1c1c;
      --border-subtle: #161616;
      --border-hover:  #2e2e2e;

      --cat-course-bg:      #1f0000;
      --cat-course-fg:      #e05555;
      --cat-coulisses-bg:   #001020;
      --cat-coulisses-fg:   #5599dd;
      --cat-partenaires-bg: #001a0a;
      --cat-partenaires-fg: #55cc77;

      --state-live:     #cc2222;
      --state-done:     #3a8a4a;
      --state-upcoming: #555555;

      --radius-sm: 4px;
      --radius-md: 6px;
      --radius-lg: 10px;

      --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);

      --sidebar-w: 220px;
      --topbar-h:  56px;

      /* Spacing — échelle unifiée */
      --space-1: 4px;
      --space-2: 8px;
      --space-3: 12px;
      --space-4: 16px;
      --space-5: 20px;
      --space-6: 24px;
      --space-8: 32px;
      --space-10: 40px;

      /* États (indicateurs, badges, save status) */
      --state-ok:    #5acf6a;
      --state-warn:  #e0a64a;
      --state-err:   #e05555;
      --state-info:  #6aa4e0;
    }

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

    html { height: 100%; }

    body {
      background: var(--bg-base);
      color: var(--text-primary);
      font-family: "Inter", system-ui, sans-serif;
      font-size: 14px;
      line-height: 1.6;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      height: 100%;
      display: flex;
      overflow: hidden;
    }

    /* noise overlay */
    body::after {
      content: "";
      position: fixed; inset: 0;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.35 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
      opacity: 0.03; mix-blend-mode: overlay; pointer-events: none; z-index: 999;
    }

    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; border: none; background: none; }
    input, textarea, select { font: inherit; }

    /* ============ LAYOUT SHELL ============ */

    .sidebar {
      width: var(--sidebar-w);
      flex-shrink: 0;
      background: var(--bg-sidebar);
      border-right: 1px solid var(--border-base);
      display: flex;
      flex-direction: column;
      height: 100vh;
      position: relative;
      z-index: 10;
    }

    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
    }

    /* ============ SIDEBAR ============ */

    .sidebar__brand {
      padding: 18px 20px 16px;
      border-bottom: 1px solid var(--border-base);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .sidebar__logo {
      height: 22px;
      width: auto;
    }

    .sidebar__pill {
      font-family: "JetBrains Mono", monospace;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.05em;
      color: var(--text-tertiary);
      background: var(--bg-floating);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-sm);
      padding: 2px 6px;
      margin-left: auto;
    }

    .sidebar__nav {
      flex: 1;
      padding: 12px 0;
      overflow-y: auto;
    }

    .sidebar__section {
      padding: 16px 20px 6px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-faint);
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 20px;
      color: var(--text-secondary);
      border-left: 2px solid transparent;
      transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out), background 150ms var(--ease-out);
      cursor: pointer;
      position: relative;
    }

    .nav-item:hover {
      color: var(--text-primary);
      background: rgba(255,255,255,0.02);
    }

    .nav-item.is-active {
      color: var(--text-primary);
      border-left-color: var(--red-accent);
      background: var(--red-dim);
      font-weight: 600;
    }

    .nav-item.is-active::after {
      content: "";
      position: absolute;
      left: -2px;
      top: 50%;
      transform: translateY(-50%);
      width: 2px;
      height: 24px;
      background: var(--red-accent);
      box-shadow: 0 0 6px rgba(204,34,34,0.6);
      border-radius: 1px;
    }

    .nav-item__icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      opacity: 0.65;
      transition: opacity 150ms var(--ease-out), color 150ms var(--ease-out);
    }

    .nav-item.is-active .nav-item__icon {
      opacity: 1;
      color: var(--red-vivid);
    }

    .nav-item__label {
      font-size: 13px;
      font-weight: 500;
    }

    .nav-item__badge {
      margin-left: auto;
      font-size: 10px;
      font-weight: 600;
      background: var(--bg-floating);
      border: 1px solid var(--border-base);
      border-radius: 10px;
      padding: 1px 7px;
      color: var(--text-tertiary);
      font-family: "JetBrains Mono", monospace;
    }

    .nav-item.is-active .nav-item__badge {
      background: var(--red-dim);
      border-color: rgba(204,34,34,0.2);
      color: var(--red-vivid);
    }

    .sidebar__footer {
      padding: 14px 20px;
      border-top: 1px solid var(--border-base);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .sidebar__avatar {
      width: 30px; height: 30px;
      border-radius: 50%;
      background: var(--bg-floating);
      border: 1px solid var(--border-base);
      display: flex; align-items: center; justify-content: center;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-secondary);
      flex-shrink: 0;
    }

    .sidebar__user-info { flex: 1; min-width: 0; }
    .sidebar__user-name {
      font-size: 12px; font-weight: 600;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .sidebar__user-role {
      font-size: 10px; color: var(--text-tertiary);
    }

    /* ============ TOPBAR ============ */

    .topbar {
      height: var(--topbar-h);
      border-bottom: 1px solid var(--border-base);
      display: flex;
      align-items: center;
      padding: 0 28px;
      gap: 12px;
      flex-shrink: 0;
      background: var(--bg-base);
    }

    .topbar__breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
    }

    .topbar__breadcrumb-root {
      color: var(--text-tertiary);
      font-weight: 500;
    }

    .topbar__breadcrumb-sep {
      color: var(--text-faint);
    }

    .topbar__breadcrumb-current {
      font-weight: 600;
      color: var(--text-primary);
      font-family: "Archivo", sans-serif;
    }

    .topbar__actions {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* ============ BUTTONS ============ */

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 14px;
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 500;
      transition: transform 150ms var(--ease-spring), opacity 150ms var(--ease-out);
      cursor: pointer;
    }

    .btn:active { transform: scale(0.98) translateY(1px); }

    .btn--primary {
      background: var(--red-accent);
      color: #fff;
      border: 1px solid transparent;
      box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 4px 12px rgba(204,34,34,0.25);
    }
    .btn--primary:hover { opacity: 0.9; transform: translateY(-1px); }

    .btn--ghost {
      background: transparent;
      color: var(--text-secondary);
      border: 1px solid var(--border-base);
    }
    .btn--ghost:hover {
      color: var(--text-primary);
      border-color: var(--border-hover);
      background: rgba(255,255,255,0.02);
    }

    .btn--icon {
      padding: 7px 10px;
      color: var(--text-secondary);
      border: 1px solid var(--border-base);
      background: transparent;
      border-radius: var(--radius-md);
    }
    .btn--icon:hover {
      color: var(--text-primary);
      border-color: var(--border-hover);
    }

    .btn--sm { padding: 4px 10px; font-size: 12px; }

    /* ============ CONTENT AREA ============ */

    .content {
      flex: 1;
      overflow-y: auto;
      padding: 28px;
    }

    /* ============ VIEW SWITCHING ============ */

    .view { display: none; }
    .view.is-visible { display: block; }

    /* ============ DASHBOARD ============ */

    .page-title {
      font-family: "Archivo", sans-serif;
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--text-primary);
      margin-bottom: 6px;
    }

    .page-subtitle {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 28px;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 28px;
    }

    .stat-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-lg);
      padding: 18px 20px;
      box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 4px 16px rgba(0,0,0,0.3);
      transition: transform 200ms var(--ease-spring), border-color 150ms;
    }

    .stat-card:hover {
      transform: translateY(-2px);
      border-color: var(--border-hover);
    }

    .stat-card__label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-tertiary);
      margin-bottom: 10px;
    }

    .stat-card__value {
      font-family: "Archivo", sans-serif;
      font-size: 32px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text-primary);
      line-height: 1;
    }

    .stat-card__sub {
      margin-top: 8px;
      font-size: 11px;
      color: var(--text-tertiary);
    }

    .stat-card__accent {
      display: inline-block;
      width: 24px; height: 2px;
      background: var(--red-accent);
      margin-bottom: 10px;
    }

    .stat-card--highlight {
      border-color: rgba(204,34,34,0.2);
      background: linear-gradient(135deg, var(--bg-elevated) 60%, rgba(204,34,34,0.04));
    }

    .stat-card--highlight .stat-card__value { color: var(--red-vivid); }

    .dashboard-grid {
      display: grid;
      grid-template-columns: 1fr 360px;
      gap: 20px;
    }

    .panel {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-lg);
      box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 4px 20px rgba(0,0,0,0.3);
      overflow: hidden;
    }

    .panel__head {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-base);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .panel__title {
      font-family: "Archivo", sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--text-primary);
    }

    .panel__action {
      margin-left: auto;
      font-size: 12px;
      color: var(--text-tertiary);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-sm);
      padding: 3px 9px;
      transition: color 150ms, border-color 150ms;
      cursor: pointer;
    }
    .panel__action:hover { color: var(--text-primary); border-color: var(--border-hover); }

    /* Activity feed */
    .activity-list { padding: 4px 0; }

    .activity-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 20px;
      border-bottom: 1px solid var(--border-subtle);
      transition: background 150ms;
      cursor: pointer;
    }

    .activity-item:hover { background: rgba(255,255,255,0.015); }
    .activity-item:last-child { border-bottom: none; }

    .activity-item__dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--red-accent);
      margin-top: 6px;
      flex-shrink: 0;
    }

    .activity-item__dot--green { background: var(--state-done); }
    .activity-item__dot--grey  { background: var(--text-faint); }

    .activity-item__body { flex: 1; min-width: 0; }
    .activity-item__title {
      font-size: 13px; font-weight: 500;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .activity-item__meta {
      font-size: 11px; color: var(--text-tertiary); margin-top: 2px;
      font-family: "JetBrains Mono", monospace;
    }

    /* Quick links */
    .quicklinks { padding: 12px; display: flex; flex-direction: column; gap: 6px; }

    .quicklink {
      display: flex; align-items: center; gap: 10px;
      padding: 11px 14px;
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      color: var(--text-secondary);
      font-size: 13px; font-weight: 500;
      transition: color 150ms, border-color 150ms, background 150ms, transform 150ms var(--ease-spring);
      cursor: pointer;
    }
    .quicklink:hover {
      color: var(--text-primary);
      border-color: var(--border-hover);
      background: rgba(255,255,255,0.02);
      transform: translateX(2px);
    }
    .quicklink__arrow { margin-left: auto; color: var(--text-faint); font-size: 12px; }

    /* Next round card */
    .next-round {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-base);
    }

    .next-round__badge {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--red-vivid);
      background: var(--red-dim);
      border: 1px solid rgba(204,34,34,0.15);
      border-radius: var(--radius-sm);
      padding: 3px 8px;
      margin-bottom: 10px;
    }

    .next-round__title {
      font-family: "Archivo", sans-serif;
      font-size: 16px; font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 4px;
    }

    .next-round__date {
      font-size: 12px; color: var(--text-tertiary);
      font-family: "JetBrains Mono", monospace;
      margin-bottom: 12px;
    }

    .next-round__sessions { display: flex; flex-direction: column; gap: 4px; }

    .session-row {
      display: flex; align-items: center; justify-content: space-between;
      font-size: 12px;
      padding: 5px 0;
      border-bottom: 1px solid var(--border-subtle);
      color: var(--text-secondary);
    }
    .session-row:last-child { border-bottom: none; }
    .session-row__name { font-weight: 500; }
    .session-row__time { font-family: "JetBrains Mono", monospace; font-size: 11px; }

    /* ============ TABLE ============ */

    .table-toolbar {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .filter-tabs {
      display: flex;
      gap: 4px;
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      padding: 3px;
    }

    .filter-tab {
      padding: 5px 12px;
      border-radius: var(--radius-sm);
      font-size: 12px; font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: color 150ms, background 150ms;
    }
    .filter-tab.is-active {
      background: var(--bg-floating);
      color: var(--text-primary);
      border: 1px solid var(--border-base);
    }
    .filter-tab:not(.is-active):hover { color: var(--text-primary); }

    .search-input {
      display: flex; align-items: center; gap: 8px;
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      padding: 6px 12px;
      min-width: 220px;
      transition: border-color 150ms;
    }
    .search-input:focus-within { border-color: var(--border-hover); }
    .search-input input {
      background: none; border: none; outline: none;
      color: var(--text-primary); font-size: 13px;
      flex: 1;
    }
    .search-input input::placeholder { color: var(--text-tertiary); }
    .search-icon { color: var(--text-faint); }

    .data-table {
      width: 100%;
      border-collapse: collapse;
    }

    .data-table th {
      text-align: left;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--text-tertiary);
      padding: 10px 16px;
      border-bottom: 1px solid var(--border-base);
      background: var(--bg-elevated);
      white-space: nowrap;
    }

    .data-table td {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border-subtle);
      font-size: 13px;
      vertical-align: middle;
    }

    .data-table tr:hover td { background: rgba(255,255,255,0.015); }
    .data-table tr:last-child td { border-bottom: none; }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      border-radius: var(--radius-sm);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.04em;
    }

    .badge--course    { background: var(--cat-course-bg);      color: var(--cat-course-fg); }
    .badge--coulisses { background: var(--cat-coulisses-bg);   color: var(--cat-coulisses-fg); }
    .badge--partenaires { background: var(--cat-partenaires-bg); color: var(--cat-partenaires-fg); }
    .badge--live      { background: rgba(204,34,34,0.1);       color: var(--red-vivid); }
    .badge--done      { background: rgba(58,138,74,0.1);       color: #55cc77; }
    .badge--draft     { background: rgba(255,255,255,0.05);    color: var(--text-secondary); }
    .badge--upcoming  { background: rgba(255,255,255,0.04);    color: var(--state-upcoming); }

    .row-actions {
      display: flex; gap: 6px; opacity: 0;
      transition: opacity 150ms;
    }
    .data-table tr:hover .row-actions { opacity: 1; }

    .row-btn {
      padding: 4px 9px;
      border-radius: var(--radius-sm);
      font-size: 11px; font-weight: 500;
      border: 1px solid var(--border-base);
      color: var(--text-secondary);
      transition: color 150ms, border-color 150ms, background 150ms;
    }
    .row-btn:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--bg-floating); }
    .row-btn--red { color: rgba(224,85,85,0.7); }
    .row-btn--red:hover { color: var(--red-vivid); border-color: rgba(204,34,34,0.3); background: var(--red-dim); }

    .mono { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--text-tertiary); }

    /* ============ ARTICLE EDITOR ============ */

    .editor-layout {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 20px;
      align-items: start;
    }

    .editor-meta {
      display: flex; flex-direction: column; gap: 14px;
    }

    .field-group { display: flex; flex-direction: column; gap: 6px; }

    .field-label {
      font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
      color: var(--text-tertiary);
    }

    .field-input {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      padding: 9px 12px;
      color: var(--text-primary);
      font-size: 14px;
      outline: none;
      transition: border-color 150ms;
      width: 100%;
    }
    .field-input:focus { border-color: var(--red-accent); box-shadow: 0 0 0 2px var(--red-dim); }
    .field-input::placeholder { color: var(--text-tertiary); }

    .field-input--title {
      font-family: "Archivo", sans-serif;
      font-size: 20px; font-weight: 700;
      letter-spacing: -0.02em;
    }

    .field-select {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      padding: 9px 12px;
      color: var(--text-primary);
      font-size: 13px;
      outline: none;
      transition: border-color 150ms;
      width: 100%;
      appearance: none;
      cursor: pointer;
    }
    .field-select:focus { border-color: var(--red-accent); box-shadow: 0 0 0 2px var(--red-dim); }

    .field-textarea {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      padding: 9px 12px;
      color: var(--text-primary);
      font-size: 13px;
      outline: none;
      transition: border-color 150ms;
      width: 100%;
      resize: vertical;
      min-height: 80px;
      line-height: 1.6;
    }
    .field-textarea:focus { border-color: var(--red-accent); box-shadow: 0 0 0 2px var(--red-dim); }

    /* Block builder */
    .block-builder {
      margin-top: 24px;
    }

    .block-builder__header {
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 14px;
    }

    .block-builder__title {
      font-family: "Archivo", sans-serif;
      font-size: 13px; font-weight: 700;
      color: var(--text-primary);
    }

    .block-builder__count {
      font-family: "JetBrains Mono", monospace;
      font-size: 10px; color: var(--text-tertiary);
      background: var(--bg-floating);
      border: 1px solid var(--border-base);
      border-radius: 10px; padding: 2px 8px;
    }

    .blocks-list { display: flex; flex-direction: column; gap: 8px; }

    .block-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      overflow: hidden;
      transition: border-color 150ms, box-shadow 150ms;
      box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
    }

    .block-card:hover {
      border-color: var(--border-hover);
    }

    .block-card.is-dragging {
      border-color: var(--red-accent);
      box-shadow: 0 0 0 1px var(--red-dim), 0 8px 24px rgba(0,0,0,0.4);
      opacity: 0.9;
    }

    .block-card__head {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 14px;
      border-bottom: 1px solid var(--border-subtle);
      background: rgba(255,255,255,0.015);
    }

    .drag-handle {
      cursor: grab;
      color: var(--text-faint);
      display: flex; align-items: center;
      padding: 2px;
      border-radius: var(--radius-sm);
      transition: color 150ms, background 150ms;
    }
    .drag-handle:hover { color: var(--text-secondary); background: rgba(255,255,255,0.05); }
    .drag-handle:active { cursor: grabbing; }

    .block-type-badge {
      font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
      padding: 2px 8px; border-radius: var(--radius-sm);
    }
    .block-type-badge--intro      { background: rgba(204,34,34,0.1); color: var(--red-vivid); }
    .block-type-badge--paragraph  { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
    .block-type-badge--image      { background: rgba(85,153,221,0.1); color: #5599dd; }
    .block-type-badge--quote      { background: rgba(204,34,34,0.08); color: var(--red-accent); }
    .block-type-badge--video      { background: rgba(85,204,119,0.08); color: #55cc77; }

    .block-card__actions { margin-left: auto; display: flex; gap: 4px; }

    .block-action-btn {
      padding: 3px 7px; border-radius: var(--radius-sm);
      font-size: 11px; color: var(--text-tertiary);
      border: 1px solid transparent;
      transition: color 150ms, border-color 150ms, background 150ms;
    }
    .block-action-btn:hover {
      color: var(--text-secondary);
      border-color: var(--border-base);
      background: var(--bg-floating);
    }
    .block-action-btn--delete:hover { color: var(--red-vivid); border-color: rgba(204,34,34,0.2); background: var(--red-dim); }

    .block-card__body { padding: 12px 14px; }

    .block-preview-intro {
      font-size: 15px; font-weight: 500; line-height: 1.6;
      color: var(--text-primary);
      padding-left: 12px;
      border-left: 2px solid var(--red-accent);
    }

    .block-preview-paragraph {
      font-size: 13px; line-height: 1.8;
      color: var(--text-secondary);
    }

    .block-preview-image {
      border-radius: var(--radius-md);
      overflow: hidden;
      position: relative;
    }
    .block-preview-image img {
      width: 100%; height: 120px; object-fit: cover; display: block;
    }
    .block-preview-image__caption {
      font-size: 11px; color: var(--text-tertiary); text-align: center;
      margin-top: 8px; font-style: italic;
    }

    .block-preview-quote {
      border-left: 2px solid var(--red-accent);
      padding: 10px 14px;
      background: rgba(255,255,255,0.025);
      border-radius: 0 var(--radius-md) var(--radius-md) 0;
    }
    .block-preview-quote__text {
      font-style: italic; font-size: 14px; line-height: 1.6; color: var(--text-primary);
    }
    .block-preview-quote__author {
      font-size: 11px; color: var(--text-tertiary); margin-top: 6px;
    }

    .block-preview-video {
      background: var(--bg-base);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 20px; gap: 8px;
      color: var(--text-tertiary);
    }
    .block-preview-video__url {
      font-family: "JetBrains Mono", monospace;
      font-size: 11px;
      color: var(--text-faint);
      word-break: break-all;
      text-align: center;
    }

    /* Add block button */
    .add-block-btn {
      margin-top: 10px;
      width: 100%;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      padding: 11px;
      border: 1px dashed var(--border-hover);
      border-radius: var(--radius-md);
      color: var(--text-tertiary);
      font-size: 13px; font-weight: 500;
      transition: color 150ms, border-color 150ms, background 150ms;
      cursor: pointer;
      background: transparent;
    }
    .add-block-btn:hover {
      color: var(--text-primary);
      border-color: var(--red-accent);
      background: var(--red-dim);
    }

    /* Block type picker */
    .block-picker {
      display: none;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
      margin-top: 10px;
      padding: 14px;
      background: var(--bg-floating);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .block-picker.is-open { display: grid; }

    .block-picker-item {
      display: flex; flex-direction: column; align-items: center; gap: 6px;
      padding: 12px 8px;
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: border-color 150ms, background 150ms, transform 150ms var(--ease-spring);
    }
    .block-picker-item:hover {
      border-color: var(--red-accent);
      background: var(--red-dim);
      transform: translateY(-2px);
    }
    .block-picker-item__icon { font-size: 18px; }
    .block-picker-item__name {
      font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
      text-transform: uppercase; color: var(--text-secondary);
    }

    /* Sidebar editor */
    .editor-sidebar {
      display: flex; flex-direction: column; gap: 14px;
      position: sticky; top: 0;
    }

    .sidebar-panel {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 4px 16px rgba(0,0,0,0.25);
    }

    .sidebar-panel__head {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border-base);
      font-family: "Archivo", sans-serif;
      font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
      color: var(--text-primary);
    }

    .sidebar-panel__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }

    .status-selector {
      display: flex; gap: 6px;
    }

    .status-option {
      flex: 1; padding: 8px 4px;
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      text-align: center;
      font-size: 12px; font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      transition: color 150ms, border-color 150ms, background 150ms;
    }
    .status-option:hover { color: var(--text-primary); border-color: var(--border-hover); }
    .status-option.is-active {
      background: var(--red-dim);
      border-color: rgba(204,34,34,0.25);
      color: var(--red-vivid);
    }

    .publish-btn {
      width: 100%;
      padding: 10px;
      background: var(--red-accent);
      color: #fff;
      border: 1px solid transparent;
      border-radius: var(--radius-md);
      font-size: 13px; font-weight: 600;
      text-align: center;
      box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 4px 14px rgba(204,34,34,0.28);
      cursor: pointer;
      transition: opacity 150ms, transform 150ms var(--ease-spring);
    }
    .publish-btn:hover { opacity: 0.9; transform: translateY(-1px); }
    .publish-btn:active { transform: scale(0.98) translateY(1px); }

    .preview-btn {
      width: 100%;
      padding: 8px;
      background: transparent;
      color: var(--text-secondary);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      font-size: 12px; font-weight: 500;
      text-align: center;
      cursor: pointer;
      transition: color 150ms, border-color 150ms;
    }
    .preview-btn:hover { color: var(--text-primary); border-color: var(--border-hover); }

    .cover-dropzone {
      border: 1px dashed var(--border-hover);
      border-radius: var(--radius-md);
      padding: 24px 16px;
      text-align: center;
      color: var(--text-tertiary);
      font-size: 12px;
      cursor: pointer;
      transition: border-color 150ms, background 150ms;
    }
    .cover-dropzone:hover {
      border-color: var(--red-accent);
      background: var(--red-dim);
      color: var(--text-secondary);
    }
    .cover-dropzone__icon { font-size: 24px; margin-bottom: 8px; }

    /* ============ ROUNDS MANAGER ============ */

    .rounds-list { display: flex; flex-direction: column; gap: 10px; }

    .round-row {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-lg);
      padding: 16px 20px;
      display: grid;
      grid-template-columns: 48px 1fr 200px 140px 140px;
      gap: 16px;
      align-items: center;
      transition: border-color 150ms, transform 200ms var(--ease-spring);
      box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
    }
    .round-row:hover {
      border-color: var(--border-hover);
      transform: translateX(3px);
    }

    .round-number {
      font-family: "Archivo", sans-serif;
      font-size: 22px; font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text-faint);
      text-align: center;
    }

    .round-info__circuit {
      font-family: "Archivo", sans-serif;
      font-size: 15px; font-weight: 700;
      letter-spacing: -0.01em;
      margin-bottom: 3px;
    }

    .round-info__meta {
      font-family: "JetBrains Mono", monospace;
      font-size: 11px; color: var(--text-tertiary);
    }

    .round-sessions { display: flex; flex-direction: column; gap: 3px; }
    .round-session-pill {
      font-family: "JetBrains Mono", monospace;
      font-size: 10px; color: var(--text-tertiary);
    }

    .round-result {
      text-align: center;
    }

    .round-result__pos {
      font-family: "Archivo", sans-serif;
      font-size: 24px; font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--red-vivid);
    }

    .round-result__pts {
      font-size: 11px; color: var(--text-tertiary);
      font-family: "JetBrains Mono", monospace;
    }

    .round-actions { display: flex; gap: 6px; justify-content: flex-end; }

    /* ============ DRIVERS ============ */

    .drivers-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .driver-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: border-color 150ms, transform 200ms var(--ease-spring);
      box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 4px 16px rgba(0,0,0,0.3);
    }
    .driver-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

    .driver-card__img {
      width: 100%; height: 180px;
      object-fit: cover; display: block;
      background: var(--bg-floating);
      position: relative;
    }

    .driver-card__img-placeholder {
      width: 100%; height: 180px;
      background: linear-gradient(135deg, var(--bg-floating) 0%, rgba(204,34,34,0.06) 100%);
      display: flex; align-items: center; justify-content: center;
      color: var(--text-faint);
      font-size: 36px;
    }

    .driver-card__body { padding: 16px; }

    .driver-card__number {
      font-family: "Archivo", sans-serif;
      font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
      color: var(--red-vivid);
      margin-bottom: 4px;
    }

    .driver-card__name {
      font-family: "Archivo", sans-serif;
      font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
      margin-bottom: 2px;
    }

    .driver-card__role {
      font-size: 12px; color: var(--text-tertiary);
      margin-bottom: 14px;
    }

    .driver-card__footer {
      display: flex; gap: 6px; justify-content: flex-end;
    }

    /* ============ SPONSORS ============ */

    .sponsors-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .sponsor-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      padding: 20px 16px;
      display: flex; flex-direction: column; align-items: center; gap: 12px;
      text-align: center;
      transition: border-color 150ms, transform 200ms var(--ease-spring);
      box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
    }
    .sponsor-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

    .sponsor-card__logo {
      width: 80px; height: 48px;
      background: var(--bg-floating);
      border: 1px solid var(--border-base);
      border-radius: var(--radius-md);
      display: flex; align-items: center; justify-content: center;
      font-size: 10px; color: var(--text-faint);
    }

    .sponsor-card__name {
      font-family: "Archivo", sans-serif;
      font-size: 13px; font-weight: 700;
    }

    .sponsor-card__tier {
      font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    }
    .sponsor-card__tier--title  { color: var(--red-vivid); }
    .sponsor-card__tier--gold   { color: #d4a017; }
    .sponsor-card__tier--silver { color: #aaaaaa; }
    .sponsor-card__tier--media  { color: #5599dd; }

    .sponsor-card__footer { display: flex; gap: 5px; }

    /* ============ UTILITIES ============ */

    .section-gap { margin-bottom: 32px; }

    .text-muted { color: var(--text-secondary); }
    .text-faint { color: var(--text-tertiary); }

    .flex { display: flex; }
    .items-center { align-items: center; }
    .gap-8 { gap: 8px; }
    .gap-12 { gap: 12px; }
    .ml-auto { margin-left: auto; }

    .w-full { width: 100%; }

    .divider {
      height: 1px;
      background: var(--border-base);
      margin: 20px 0;
    }

    /* ============ IMAGE UPLOAD ZONE (bloc éditeur) ============ */

    .img-upload-zone {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 12px;
      background: var(--surface-base);
      border: 1px dashed var(--border-base);
      border-radius: 6px;
    }

    .img-upload-preview {
      width: 100%;
      max-height: 180px;
      object-fit: cover;
      border-radius: 4px;
    }

    .img-upload-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: var(--surface-elevated);
      border: 1px solid var(--border-base);
      border-radius: 4px;
      color: var(--text-secondary);
      font-size: 12px;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s;
      width: fit-content;
    }

    .img-upload-btn:hover  { border-color: var(--red-vivid); color: var(--text-primary); }
    .img-upload-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    .img-upload-status { font-size: 11px; min-height: 14px; }
    .img-upload-status.is-loading { color: var(--text-tertiary); }
    .img-upload-status.is-ok      { color: #55cc77; }
    .img-upload-status.is-error   { color: var(--red-vivid); }

    /* ============ SVG ICONS (inline) ============ */

    .icon { display: block; }


/* ============ Admin previews (covers + video thumbs) ============ */

.cover-thumb {
  width: 72px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border-base);
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}

.cover-thumb--empty {
  width: 72px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border-base);
  background: var(--bg-elevated);
  display: block;
}

.video-preview {
  margin-top: 8px;
  width: 160px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-base);
  background: var(--bg-elevated);
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Admin rounds form builder ============ */

.session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border-base);
  border-radius: 6px;
  background: var(--bg-elevated);
}

.session-row__actions {
  display: flex;
  gap: 4px;
}

.session-row__btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-floating);
  border: 1px solid var(--border-base);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.session-row__btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.session-row__btn--del:hover {
  border-color: var(--red-accent);
  color: var(--red-vivid);
}

.session-add-btn {
  margin-top: 12px;
  padding: 10px;
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border-base);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
}

.session-add-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.results-grid {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.results-grid__head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.results-grid__label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Galerie admin ─────────────────────────────────────────── */
.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-admin-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.gallery-admin-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-base);
  overflow: hidden;
}

.gallery-admin-card__thumb img,
.gallery-admin-card__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.gallery-admin-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.gallery-admin-card__type {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.gallery-admin-card__type--video {
  background: rgba(190,10,10,0.85);
}

.gallery-admin-card__inactive {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.gallery-admin-card__body {
  padding: 10px 12px;
}

.gallery-admin-card__caption {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px;
}

.gallery-admin-card__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.gallery-admin-card__actions {
  display: flex;
  gap: 6px;
}

/* Type radio buttons */
.gallery-type-btn {
  flex: 1;
  cursor: pointer;
}

.gallery-type-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gallery-type-btn span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.gallery-type-btn input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(190,10,10,0.08);
}

/* ============ PREMIUM POLISH LAYER ============ */
/* Système de boutons, badges et indicateurs unifié — DA cohérente avec le site public.
   Ces composants prennent le pas sur les styles ad-hoc dans les vues. */

/* ── Boutons unifiés ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 200ms var(--ease-spring),
    background 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--red-vivid);
  outline-offset: 2px;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--red-accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(204,34,34,0.25), 0 8px 22px -10px rgba(204,34,34,0.5);
}
.btn--primary:hover { background: #d83333; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.btn--ghost:hover {
  border-color: var(--red-accent);
  color: var(--red-vivid);
  background: rgba(204,34,34,0.04);
}

.btn--danger {
  background: transparent;
  border-color: rgba(204,34,34,0.35);
  color: var(--red-vivid);
}
.btn--danger:hover {
  background: rgba(204,34,34,0.08);
  border-color: var(--red-accent);
}

.btn--sm {
  padding: 5px 10px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.btn--full { width: 100%; }

/* ── Badge de statut unifié ──────────────────────────────── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-base);
}

.badge-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-status--published { color: var(--state-ok); border-color: rgba(90,207,106,0.25); }
.badge-status--draft     { color: var(--text-tertiary); }
.badge-status--live      { color: var(--state-err); border-color: rgba(224,85,85,0.3); }
.badge-status--live::before { animation: bs-pulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 0 currentColor; }
.badge-status--done      { color: var(--state-ok); }
.badge-status--upcoming  { color: var(--state-info); }
.badge-status--warn      { color: var(--state-warn); border-color: rgba(224,166,74,0.25); }

@keyframes bs-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ── Save indicator (topbar) ─────────────────────────────── */
.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out), background 200ms var(--ease-out);
  cursor: default;
  user-select: none;
}

.save-indicator__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.save-indicator--saved   { color: var(--state-ok); }
.save-indicator--saved .save-indicator__dot { box-shadow: 0 0 8px rgba(90,207,106,0.4); }

.save-indicator--saving  { color: var(--text-secondary); }
.save-indicator--saving .save-indicator__dot { animation: si-pulse 1s ease-in-out infinite; }

.save-indicator--offline,
.save-indicator--error {
  color: var(--state-err);
  border-color: rgba(224,85,85,0.3);
  background: rgba(224,85,85,0.05);
  cursor: pointer;
}

.save-indicator--idle    { color: var(--text-faint); }
.save-indicator--idle .save-indicator__dot { background: var(--text-faint); }

@keyframes si-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.save-indicator--fade { opacity: 0; transition: opacity 800ms ease-out; }

/* ── Icon button (SVG action button, ex: ↑/↓/✕) ──────────── */
.icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-floating);
  border-color: var(--border-hover);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--red-vivid);
  outline-offset: 1px;
}

.icon-btn--danger:hover {
  color: var(--red-vivid);
  border-color: rgba(204,34,34,0.4);
  background: rgba(204,34,34,0.08);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}

/* ── Drop zone (cover upload, etc.) ──────────────────────── */
.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  background: var(--bg-floating);
  border: 1.5px dashed var(--border-hover);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out);
  text-align: center;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--red-accent);
  background: rgba(204,34,34,0.04);
  color: var(--text-primary);
}

.dropzone__icon {
  width: 28px;
  height: 28px;
  color: var(--text-tertiary);
  stroke-width: 1.5;
}

.dropzone__hint {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: var(--space-1);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone--with-preview {
  padding: 0;
  background: var(--bg-elevated);
  border-style: solid;
  border-color: var(--border-base);
}

.dropzone__preview {
  width: 100%;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dropzone__actions {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-top: 1px solid var(--border-base);
  background: var(--bg-elevated);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ── Status pill toggle (publication brouillon ⇄ publié) ──── */
.status-toggle {
  display: inline-flex;
  background: var(--bg-floating);
  border: 1px solid var(--border-base);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  width: 100%;
}

.status-toggle__opt {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
  user-select: none;
}

.status-toggle__opt::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-toggle__opt.is-active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}

.status-toggle__opt[data-value="published"].is-active { color: var(--state-ok); }
.status-toggle__opt[data-value="draft"].is-active     { color: var(--text-primary); }

/* ── Sidebar panel divider (alternative à panel sombre) ──── */
.meta-panel {
  border-bottom: 1px solid var(--border-base);
  padding: var(--space-5) 0;
}

.meta-panel:last-child { border-bottom: none; }

.meta-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.meta-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

details.meta-panel > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  transition: color 160ms var(--ease-out);
}

details.meta-panel > summary::-webkit-details-marker { display: none; }
details.meta-panel > summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1;
  color: var(--text-tertiary);
  transition: transform 200ms var(--ease-spring), color 160ms var(--ease-out);
}

details.meta-panel[open] > summary::after { content: "−"; color: var(--text-secondary); }
details.meta-panel:hover > summary { color: var(--text-secondary); }

/* ── Page Contenu du site (index : liste des sections) ──── */
.content-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  margin-top: var(--space-6);
}

.content-section-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), transform 200ms var(--ease-spring);
}

.content-section-card:hover {
  border-color: var(--red-accent);
  background: var(--bg-floating);
  transform: translateY(-2px);
}

.content-section-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204,34,34,0.06);
  border: 1px solid rgba(204,34,34,0.2);
  border-radius: var(--radius-sm);
  color: var(--red-vivid);
  flex-shrink: 0;
}

.content-section-card__icon svg { width: 22px; height: 22px; }

.content-section-card__body { flex: 1; min-width: 0; }

.content-section-card__title {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.content-section-card__desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.content-section-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.content-section-card__chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 2px 8px;
  background: var(--bg-floating);
  border: 1px solid var(--border-base);
  border-radius: 999px;
}

.content-section-card__arrow {
  color: var(--text-faint);
  flex-shrink: 0;
  transition: color 200ms var(--ease-out), transform 200ms var(--ease-spring);
}

.content-section-card__arrow svg { width: 18px; height: 18px; }

.content-section-card:hover .content-section-card__arrow {
  color: var(--red-vivid);
  transform: translateX(3px);
}

/* ── Page Contenu du site (edit : formulaire) ──────────── */
.content-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.content-edit-form {
  max-width: 880px;
}

.content-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content-field {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-base);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-field:last-child { border-bottom: none; }

.content-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.content-field__label {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.content-field__key {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.content-field__help {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

.content-field__input,
.content-field__textarea {
  width: 100%;
  background: var(--bg-floating);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
}

.content-field__textarea {
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
}

.content-field__input:hover,
.content-field__textarea:hover {
  border-color: var(--border-hover);
}

.content-field__input:focus,
.content-field__textarea:focus {
  outline: none;
  border-color: var(--red-accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(204,34,34,0.08);
}

.content-field__updated {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-faint);
  margin: 4px 0 0;
}

/* Image field */
.content-field__image {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-field__image-preview {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.content-field__image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-field__image-meta code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-faint);
  word-break: break-all;
  background: var(--bg-floating);
  padding: 2px 6px;
  border-radius: 3px;
}

.content-field__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-floating);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out), background 160ms var(--ease-out);
  width: fit-content;
}

.content-field__file:hover {
  border-color: var(--red-accent);
  color: var(--red-vivid);
}

.content-field__file input[type="file"] {
  display: none;
}

.content-field__image-hint {
  font-size: 11px;
  color: var(--text-faint);
}

/* Actions */
.content-edit-actions {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.content-edit-preview {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.content-edit-preview:hover { color: var(--red-vivid); }
.content-edit-preview svg { width: 12px; height: 12px; }

/* ── Live admin list ─────────────────────────────────────── */
.live-list { display: flex; flex-direction: column; }
.live-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-base);
}
.live-row:last-child { border-bottom: none; }
.live-row__main { display: flex; align-items: center; gap: var(--space-3); }
.live-row__circuit { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.live-row__sub { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-tertiary); margin-top: 2px; }
.live-row__url .field-input { font-size: 12px; padding: 6px 10px; font-family: 'JetBrains Mono', monospace; }
.live-row__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) {
  .live-row { grid-template-columns: 1fr; }
  .live-row__actions { justify-content: flex-start; }
}

