/* ==================================================================
   Atelier — thème terminal monochrome
   Noir pur, blanc/gris, aucune couleur d’accent.
   ================================================================== */

:root {
  --sans: "Cascadia Mono", "Cascadia Code", "JetBrains Mono", "IBM Plex Mono", Consolas, "Courier New",
    monospace;
  --serif: var(--sans);
  --mono: var(--sans);
  --bg: #000000;
  --bg-deep: #000000;
  --panel: #030303;
  --panel-2: #060606;
  --panel-3: #0a0a0a;
  --line: #1b1b1b;
  --line-2: #2b2b2b;
  --text: #ededed;
  --text-soft: #c7c7c7;
  --muted: #8a8a8a;
  --muted-2: #565656;
  --red: #ffffff;
  --red-bright: #ffffff;
  --red-deep: #111111;
  --gold: #e8e8e8;
  --gold-2: #bdbdbd;
  --green: #ffffff;
  --radius: 2px;
  --shadow-red: none;
}

html {
  scrollbar-color: #333 #000;
}

body {
  background: #000;
  color: var(--text);
  font-family: var(--mono);
}

body.app-body {
  background: #000;
}

body::after {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.35;
}

::selection {
  background: #fff;
  color: #000;
}

:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- */
/* Barre haute                                                       */
/* ---------------------------------------------------------------- */

.topbar {
  height: 58px;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid #222;
  backdrop-filter: blur(10px);
}

.brand__mark,
.wordmark__mark {
  border-radius: 2px;
  border-color: #3a3a3a;
  background: #000;
  color: transparent;
  box-shadow: none;
  font-size: 0;
  line-height: 1;
}

.brand__mark::before,
.wordmark__mark::before {
  content: ">_";
  color: #f2f2f2;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.wordmark__mark::before {
  font-size: 15px;
}

.brand__name {
  color: #ededed;
  letter-spacing: 0.24em;
}

.topbar__divider {
  background: #222;
}

.topbar__crumb {
  color: #666;
  text-transform: lowercase;
  letter-spacing: 0.06em;
}

.topbar__crumb b {
  color: #ddd;
  font-weight: 500;
}

.protect-pill {
  height: 26px;
  border-radius: 2px;
  border-color: #333;
  background: #000;
  color: #aaa;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.protect-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  animation: term-blink 1.3s steps(1) infinite;
}

@keyframes term-blink {
  50% {
    opacity: 0;
  }
}

.user-chip {
  border-radius: 2px;
  border-color: #2a2a2a;
  background: #000;
  padding: 3px 8px 3px 3px;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  border-color: #444;
  background: #111;
  color: #fff;
  font-family: var(--mono);
  font-weight: 500;
}

.user-chip__meta b {
  color: #eee;
  font-weight: 500;
}

.user-chip__meta span {
  color: #666;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------- */
/* Boutons                                                           */
/* ---------------------------------------------------------------- */

.btn {
  height: 34px;
  border-radius: 2px;
  border-color: #333;
  background: #000;
  color: #ccc;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.btn:hover {
  background: #0d0d0d;
  border-color: #777;
  color: #fff;
}

.btn--primary {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: none;
}

.btn--primary:hover {
  background: #000;
  border-color: #fff;
  color: #fff;
}

.btn--danger {
  background: #000;
  border-color: #444;
  color: #aaa;
}

.btn--danger:hover {
  background: #111;
  border-color: #fff;
  color: #fff;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  border-color: #2a2a2a;
  background: #000;
  color: #888;
}

.icon-btn:hover {
  border-color: #777;
  background: #0d0d0d;
  color: #fff;
}

/* ---------------------------------------------------------------- */
/* Fil d’Ariane, titres, recherche                                   */
/* ---------------------------------------------------------------- */

.breadcrumb {
  padding-top: 24px;
  color: #555;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.breadcrumb b {
  color: #ddd;
  font-weight: 500;
}

.breadcrumb span {
  color: #333;
}

.page-head {
  padding: 18px 0 24px;
}

.page-head h1,
.admin-head h1 {
  font-family: var(--mono);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  color: #f2f2f2;
}

.page-head h1::before,
.admin-head h1::before {
  content: "> ";
  color: #555;
}

.page-head h1::after,
.admin-head h1::after {
  content: "_";
  color: #fff;
  margin-left: 2px;
  animation: term-blink 1.2s steps(1) infinite;
}

.page-head__sub {
  margin-top: 10px;
  font-size: 11px;
  color: #777;
  text-transform: lowercase;
}

.page-head__sub::before {
  content: "// ";
  color: #444;
}

.page-head__eyebrow {
  color: #888;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.page-head__eyebrow::before {
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.page-head__meta {
  gap: 20px;
}

.meta-stat b {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: #eee;
}

.meta-stat span {
  color: #666;
  text-transform: lowercase;
  letter-spacing: 0.06em;
}

.toolbar {
  gap: 12px;
  margin-bottom: 16px;
}

.search {
  max-width: 440px;
}

.search svg {
  display: none;
}

.search::before {
  content: "$";
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #666;
  font-family: var(--mono);
  font-size: 11px;
  pointer-events: none;
}

.search input {
  height: 41px;
  padding-left: 31px;
  border-radius: 2px;
  border-color: #2a2a2a;
  background: #000;
  color: #eee;
  font-size: 11px;
}

.search input::placeholder {
  color: #4f4f4f;
}

.search input:focus {
  border-color: #fff;
  background: #000;
  box-shadow: none;
}

.search__clear {
  border-radius: 2px;
}

.toolbar__note {
  color: #555;
  font-size: 9.5px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.toolbar__note svg {
  color: #666;
}

/* ---------------------------------------------------------------- */
/* Filtres                                                           */
/* ---------------------------------------------------------------- */

.chips {
  gap: 6px;
  padding-bottom: 18px;
  border-bottom-color: #1e1e1e;
}

.chip {
  height: 31px;
  padding: 0 10px;
  border-radius: 2px;
  border-color: #2a2a2a;
  background: #000;
  color: #999;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.chip:hover {
  border-color: #777;
  background: #0a0a0a;
  color: #fff;
}

.chip.is-active {
  border-color: #fff;
  background: #fff;
  color: #000;
  box-shadow: none;
}

.chip.is-active svg {
  color: #000;
}

.chip__count {
  min-width: 18px;
  height: 17px;
  border-radius: 2px;
  background: #111;
  color: #888;
  font-size: 8.5px;
  font-weight: 500;
}

.chip.is-active .chip__count {
  background: #000;
  color: #fff;
}

/* ---------------------------------------------------------------- */
/* Sections                                                          */
/* ---------------------------------------------------------------- */

.section-head {
  gap: 9px;
  margin: 24px 0 14px;
}

.section-head::before {
  content: "#";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #666;
  font-family: var(--mono);
  font-size: 10px;
  box-shadow: none;
}

.section-head h2 {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #bbb;
}

.section-head__count {
  color: #555;
  text-transform: lowercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------- */
/* Cartes                                                            */
/* ---------------------------------------------------------------- */

.grid {
  gap: 14px;
}

.card {
  border-radius: 2px;
  border-color: #222;
  background: #020202;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #777;
  box-shadow: none;
}

.card__logo {
  height: 148px;
  background: #000;
  border-bottom: 1px solid #1e1e1e;
}

.card__logo::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(75% 90% at 50% 40%, #000 0%, transparent 100%);
  opacity: 0.32;
}

.card__logo::after {
  display: none;
}

.card__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  opacity: 0.92;
  transition: transform 260ms ease, opacity 260ms ease;
}

.card:hover .card__image {
  opacity: 1;
  transform: scale(1.025);
}

.card__open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #171717;
  color: #666;
  font-size: 8.5px;
  text-transform: lowercase;
}

.card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  color: #777;
  font-size: 9px;
  line-height: 1.55;
  text-transform: lowercase;
}

.card:hover .card__open {
  color: #fff;
}

.logo-code {
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  color: #f2f2f2;
  background: none;
  -webkit-text-fill-color: #f2f2f2;
  filter: none;
}

.card:hover .logo-code {
  filter: none;
  transform: none;
}

.logo-code--serif {
  font-family: var(--mono);
  font-style: normal;
  font-size: 38px;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.logo-code--wide {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.3em;
  padding-left: calc(16px + 0.3em);
  text-transform: lowercase;
  color: #eee;
}

.logo-code--mono {
  font-family: var(--mono);
  font-size: 32px;
  letter-spacing: -0.05em;
  color: #eee;
}

.logo-code--long {
  font-size: 25px;
  letter-spacing: -0.02em;
}

.card__body {
  padding: 12px 13px 13px;
  background: #020202;
}

.card__head {
  min-height: 34px;
  margin-bottom: 7px;
}

.card__title {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: #e8e8e8;
}

.card__title::before {
  content: "> ";
  color: #555;
}

.card__title .arrow {
  color: #666;
  font-size: 9px;
}

.tag {
  padding: 2px 4px;
  border-radius: 0;
  border-color: #3a3a3a;
  background: #000;
  color: #aaa;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.tag::before {
  content: "[";
}

.tag::after {
  content: "]";
}

.meta__row {
  padding: 4.5px 0;
  border-top: 1px dashed #171717;
  font-size: 9.5px;
}

.meta__row dt {
  color: #666;
  text-transform: lowercase;
}

.meta__row dt::after {
  content: ":";
}

.meta__row dd {
  color: #ccc;
  font-weight: 500;
}

.meta__row--note dd {
  color: #999;
  font-size: 9px;
}

.meta__row--progress dd {
  color: #ccc;
}

.card__progress {
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #171717;
}

.card__progress .bar {
  height: 3px;
  border-radius: 0;
  background: #1c1c1c;
}

.card__progress .bar i {
  border-radius: 0;
  background: #e8e8e8;
  box-shadow: none;
}

.card__progress span {
  color: #777;
  font-size: 8.5px;
  text-transform: lowercase;
}

.card__progress span.is-done {
  color: #fff;
}

/* ---------------------------------------------------------------- */
/* Connexion / setup                                                 */
/* ---------------------------------------------------------------- */

.auth__brand {
  background: #000;
  border-right: 1px solid #1c1c1c;
}

.auth__brand::before {
  top: -22%;
  right: -16%;
  width: 560px;
  height: 560px;
  border: 1px solid #1a1a1a;
  background: none;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.012),
    0 0 0 140px rgba(255, 255, 255, 0.007);
}

.auth__brand::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
  opacity: 0.22;
}

.auth__headline {
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.05em;
  text-transform: lowercase;
  color: #f2f2f2;
}

.auth__headline::before {
  content: "> ";
  color: #555;
}

.term-cursor {
  color: #fff;
  animation: term-blink 1.1s steps(1) infinite;
}

.auth__lead {
  max-width: 420px;
  padding-left: 12px;
  border-left: 1px solid #222;
  font-size: 10.5px;
  line-height: 1.8;
  color: #777;
  text-transform: lowercase;
}

.auth__lead::before {
  content: "// ";
  color: #444;
}

.auth__features {
  gap: 9px;
  margin-top: 26px;
}

.auth__features li {
  gap: 9px;
  font-size: 9.5px;
  color: #999;
  text-transform: lowercase;
}

.auth__features svg {
  display: none;
}

.auth__features li::before {
  content: "[ok]";
  color: #fff;
  font-family: var(--mono);
  font-size: 8.5px;
}

.auth__foot {
  color: #555;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.auth__foot::before {
  background: #333;
}

.auth__panel {
  background: #000;
}

.auth-card__kicker {
  color: #888;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.auth-card__kicker::before {
  background: #555;
}

.auth-card h1 {
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #f2f2f2;
}

.auth-card h1::before {
  content: "> ";
  color: #555;
}

.auth-card__sub {
  margin-bottom: 24px;
  font-size: 10.5px;
  color: #777;
  text-transform: lowercase;
}

.field {
  margin-bottom: 13px;
}

.field label {
  margin-bottom: 6px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #888;
}

.field label span {
  color: #555;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.input {
  height: 43px;
  border-radius: 2px;
  border-color: #2a2a2a;
  background: #000;
  color: #eee;
  font-size: 11px;
}

.input::placeholder {
  color: #4f4f4f;
}

select.input,
select.input option {
  background: #000;
  color: #ccc;
}

select.input {
  border-color: #2a2a2a;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eee;
  box-shadow: 0 0 0 1000px #000 inset;
  caret-color: #eee;
}

.input:focus {
  border-color: #fff;
  background: #000;
  box-shadow: none;
}

.input-toggle {
  border-radius: 2px;
  color: #666;
}

.input-toggle:hover {
  background: #111;
  color: #fff;
}

.check {
  font-size: 9.5px;
  color: #888;
}

.check input {
  accent-color: #fff;
  border-radius: 0;
}

.auth-submit {
  height: 42px;
  border: 1px solid #fff;
  border-radius: 2px;
  background: #fff;
  color: #000;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
}

.auth-submit::before {
  content: "[ ";
}

.auth-submit::after {
  content: " ]";
}

.auth-submit:hover {
  background: #000;
  color: #fff;
  filter: none;
}

.form-error {
  border-radius: 2px;
  border-color: #555;
  background: #080808;
  color: #ddd;
  font-size: 10px;
}

.form-error svg {
  color: #fff;
}

.auth-footnote {
  border-top-color: #1a1a1a;
  color: #555;
  font-size: 8.5px;
  text-transform: lowercase;
}

.auth-footnote b {
  color: #999;
}

.password-meter i {
  border-radius: 0;
  background: #1c1c1c;
}

.password-meter[data-score="1"] i:nth-child(-n + 1),
.password-meter[data-score="2"] i:nth-child(-n + 2),
.password-meter[data-score="3"] i:nth-child(-n + 3),
.password-meter[data-score="4"] i {
  background: #e8e8e8;
}

.password-hint {
  color: #555;
  font-size: 8.5px;
}

.device-pending__spinner {
  border-color: #222;
  border-top-color: #fff;
}

.device-pending h2 {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  text-transform: lowercase;
}

.device-pending__text,
.device-pending__hint {
  color: #777;
  font-size: 9.5px;
}

.device-code {
  border-radius: 2px;
  border-color: #333;
  background: #000;
  color: #fff;
  font-family: var(--mono);
}

.device-pending.is-denied .device-code {
  color: #aaa;
  border-color: #555;
}

/* ---------------------------------------------------------------- */
/* Fiche formation                                                   */
/* ---------------------------------------------------------------- */

.modal__backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.modal__panel {
  border-radius: 2px;
  border-color: #333;
  background: #020202;
  box-shadow: 0 30px 90px -40px #000;
}

.modal__hero {
  min-height: 132px;
  border-bottom: 1px solid #1e1e1e;
  background: #000;
}

.modal__hero::after {
  display: none;
}

.modal__hero-code {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  color: #f2f2f2;
  background: none;
  -webkit-text-fill-color: #f2f2f2;
  filter: none;
}

.modal__hero-code.logo-code--wide {
  font-size: 22px;
  letter-spacing: 0.24em;
}

.modal__hero-code.logo-code--mono {
  font-size: 38px;
}

.modal__hero-code.logo-code--long {
  font-size: 27px;
  letter-spacing: 0;
}

.modal__hero-text h2 {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.modal__close {
  border-radius: 2px;
  border-color: #333;
  background: #000;
  color: #aaa;
}

.modal__close:hover {
  background: #111;
  color: #fff;
}

.modal__desc {
  color: #999;
  font-size: 10.5px;
}

.modal__image {
  margin-bottom: 16px;
  max-height: 340px;
  overflow: hidden;
  border: 1px solid #222;
  background: #000;
}

.modal__image img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  padding: 10px;
  background: #000;
}

.modal__fields {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  border-top: 1px dashed #1e1e1e;
}

.modal__field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed #1e1e1e;
  font-size: 10px;
}

.modal__field span {
  flex: none;
  color: #666;
  text-transform: lowercase;
}

.modal__field b {
  color: #ddd;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.modal__note {
  margin-top: 16px;
  padding: 10px 12px;
  border-left: 1px solid #333;
  color: #999;
  font-size: 10px;
  line-height: 1.65;
  text-transform: lowercase;
}

.modal__stats {
  border-radius: 2px;
  border-color: #222;
  background: #222;
}

.modal__stat {
  background: #000;
}

.modal__stat span {
  color: #666;
  text-transform: lowercase;
}

.modal__stat b {
  color: #ddd;
  font-weight: 500;
  font-size: 11.5px;
}

.modal__section-title h3 {
  color: #bbb;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.modal__section-title span {
  color: #555;
  text-transform: lowercase;
}

.modal__objectives li {
  color: #999;
  font-size: 10px;
}

.modal__objectives svg {
  color: #fff;
}

.modules {
  border-top-color: #1c1c1c;
}

.module {
  border-bottom-color: #1c1c1c;
}

.module:hover {
  background: #080808;
}

.module__check {
  border-radius: 2px;
  border-color: #333;
  background: #000;
}

.module input:checked + .module__check {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.module input:focus-visible + .module__check {
  outline: 1px solid #fff;
}

.module__index {
  color: #555;
}

.module__title {
  color: #ccc;
  font-size: 10.5px;
}

.module input:checked ~ .module__title {
  color: #666;
  text-decoration-color: #444;
}

.module__time {
  color: #555;
  font-size: 8.5px;
}

.modal__progress {
  border-radius: 2px;
  border-color: #222;
  background: #000;
}

.modal__progress .bar {
  height: 3px;
  border-radius: 0;
  background: #222;
}

.modal__progress .bar i {
  border-radius: 0;
  background: #fff;
}

.modal__progress span {
  color: #777;
  font-size: 9px;
}

/* ---------------------------------------------------------------- */
/* Masquage / toasts                                                 */
/* ---------------------------------------------------------------- */

.shield {
  background: rgba(0, 0, 0, 0.96);
}

.shield__card {
  border-radius: 2px;
  border-color: #333;
  background: #000;
  box-shadow: none;
}

.shield__icon {
  border-radius: 2px;
  border-color: #444;
  background: #000;
  color: #fff;
}

.shield__card h2 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  text-transform: lowercase;
}

.shield__card p {
  color: #888;
  font-size: 10px;
}

.shield__hint {
  border-radius: 2px;
  border-color: #333;
  color: #777;
  font-size: 8.5px;
  text-transform: lowercase;
}

.shield__hint i {
  border-radius: 0;
  background: #fff;
}

.toast {
  border-radius: 2px;
  border-color: #444;
  background: #000;
  color: #ddd;
  font-size: 9.5px;
  box-shadow: none;
}

.toast svg {
  color: #fff;
}

.toast--warn {
  border-color: #666;
  background: #000;
}

.toast--ok svg {
  color: #fff;
}

/* ---------------------------------------------------------------- */
/* Administration                                                    */
/* ---------------------------------------------------------------- */

.role-pill {
  border-radius: 2px;
  border-color: #333;
  background: #000;
  color: #999;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.role-pill--admin {
  border-color: #777;
  background: #111;
  color: #eee;
}

.role-pill--warn {
  border-color: #666;
  background: #111;
  color: #ccc;
}

.stat-card {
  border-radius: 2px;
  border-color: #222;
  background: #000;
}

.stat-card b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 20px;
}

.stat-card span {
  text-transform: lowercase;
  letter-spacing: 0.06em;
}

.live-panel {
  margin-bottom: 18px;
  border-color: #333;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px;
  color: #777;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.live-status i {
  width: 6px;
  height: 6px;
  background: #666;
}

.live-status.is-live i {
  background: #fff;
  animation: term-blink 1.3s steps(1) infinite;
}

.live-status.is-error i {
  background: #333;
}

.live-events {
  max-height: 190px;
  overflow-y: auto;
}

.live-item {
  display: grid;
  grid-template-columns: 54px 150px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed #161616;
  font-size: 9.5px;
  color: #999;
}

.live-item:first-child {
  border-top: 0;
}

.live-item time {
  color: #555;
  font-size: 8.5px;
}

.live-item .live-event {
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-item .live-detail {
  min-width: 0;
  color: #777;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-item .live-user {
  color: #555;
  font-size: 8.5px;
}

.live-item.is-alert {
  color: #fff;
}

.live-item.is-alert .live-event {
  color: #fff;
}

.live-empty {
  padding: 6px 0;
  color: #555;
  font-size: 9.5px;
  text-transform: lowercase;
}

.admin-note {
  border-radius: 2px;
  border-color: #222;
  background: #000;
  color: #666;
  font-size: 9px;
}

.panel {
  border-radius: 2px;
  border-color: #222;
  background: #020202;
}

.panel__head {
  border-bottom-color: #1e1e1e;
}

.panel__head h2 {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #bbb;
}

.panel__head span {
  text-transform: lowercase;
}

.table th {
  color: #666;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.table td {
  border-bottom-color: #161616;
  color: #aaa;
  font-size: 10.5px;
}

.table tr:hover td {
  background: #060606;
}

.table .mono {
  color: #777;
  font-size: 9px;
}

.admin-note {
  border-radius: 2px;
  border-color: #222;
  background: #000;
  color: #666;
  font-size: 9px;
}

.admin-note b {
  color: #999;
  font-weight: 500;
}

.audit-item {
  border-bottom-color: #161616;
}

.audit-item time,
.audit-item .who {
  color: #555;
}

.audit-item .event {
  color: #aaa;
}

.audit-item .event b {
  color: #ccc;
  font-weight: 500;
}

.audit-item--warn .event b {
  color: #fff;
}

.form-grid select.input {
  background-image: linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
}

/* ---------------------------------------------------------------- */
/* Pied de page                                                      */
/* ---------------------------------------------------------------- */

.footer {
  border-top-color: #1a1a1a;
  color: #4f4f4f;
  font-size: 9px;
  text-transform: lowercase;
}

.footer b {
  color: #777;
  font-weight: 500;
}

.footer__session {
  color: #444;
  font-size: 8.5px;
}

/* ---------------------------------------------------------------- */
/* Filigrane                                                         */
/* ---------------------------------------------------------------- */

/* ---------------------------------------------------------------- */
/* Sidebar admin                                                     */
/* ---------------------------------------------------------------- */

.admin-shell {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 58px);
}

.sidebar {
  position: sticky;
  top: 58px;
  display: flex;
  flex-direction: column;
  flex: 0 0 232px;
  width: 232px;
  min-height: calc(100vh - 58px);
  padding: 24px 14px 18px;
  border-right: 1px solid #1b1b1b;
  background: #000;
}

.admin-main {
  flex: 1;
  width: auto;
  max-width: none;
  min-width: 0;
}

.sidebar__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px 20px;
  border-bottom: 1px dashed #1e1e1e;
}

.sidebar__eyebrow {
  color: #555;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar__title {
  color: #ddd;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}

.sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar__label {
  padding: 0 8px 5px;
  color: #4d4d4d;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #888;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: none;
  text-transform: lowercase;
  cursor: pointer;
}

.sidebar__item:hover {
  border-color: #242424;
  background: #080808;
  color: #fff;
}

.sidebar__item.is-active {
  border-color: #777;
  background: #fff;
  color: #000;
}

.sidebar__icon {
  width: 14px;
  color: #555;
  font-size: 11px;
  text-align: center;
}

.sidebar__item.is-active .sidebar__icon {
  color: #000;
}

.sidebar__foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px dashed #1e1e1e;
  color: #4d4d4d;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.sidebar__dot {
  width: 5px;
  height: 5px;
  background: #fff;
  animation: term-blink 1.4s steps(1) infinite;
}

@media (max-width: 900px) {
  .admin-shell {
    display: block;
    min-height: 0;
  }

  .sidebar {
    position: relative;
    top: 0;
    width: 100%;
    min-height: 0;
    padding: 10px 14px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #1b1b1b;
  }

  .sidebar__head,
  .sidebar__label,
  .sidebar__foot {
    display: none;
  }

  .sidebar__nav {
    flex-direction: row;
    gap: 12px;
    padding-top: 0;
  }

  .sidebar__group {
    flex-direction: row;
    gap: 3px;
  }

  .sidebar__item {
    width: auto;
    white-space: nowrap;
  }
}

/* ---------------------------------------------------------------- */
/* Aperçu client                                                     */
/* ---------------------------------------------------------------- */

.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: #000;
}

.preview-overlay__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid #222;
  background: #000;
}

.preview-overlay__bar strong {
  color: #ddd;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: lowercase;
}

.preview-overlay__bar span {
  color: #555;
  font-size: 8.5px;
}

.preview-overlay__actions {
  display: flex;
  gap: 8px;
}

.preview-overlay iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #000;
}

body.preview-open {
  overflow: hidden;
}

body.is-embedded .topbar,
body.is-embedded .breadcrumb,
body.is-embedded .footer {
  display: none;
}

body.is-embedded .container {
  padding-top: 18px;
}

@media (max-width: 760px) {
  .live-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .live-item .live-detail,
  .live-item .live-user {
    display: none;
  }
}

.builder-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.builder-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.builder-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.builder-inline .input {
  flex: 1;
  min-width: 0;
  height: 38px;
}

.builder-inline .btn {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.section-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-item {
  display: flex;
  align-items: stretch;
  border: 1px solid #1e1e1e;
  background: #000;
}

.section-item.is-active {
  border-color: #777;
}

.section-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 8px;
  padding: 8px 9px;
  border: 0;
  background: none;
  color: #bbb;
  font: inherit;
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}

.section-main:hover {
  color: #fff;
  background: #080808;
}

.section-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: lowercase;
}

.section-count {
  color: #666;
  font-size: 9px;
}

.section-action {
  width: 28px;
  border: 0;
  border-left: 1px solid #1a1a1a;
  background: transparent;
  color: #666;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}

.section-action:hover {
  background: #111;
  color: #fff;
}

.builder-reset {
  margin-top: 12px;
}

.builder-right {
  min-width: 0;
}

.builder-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.builder-tools .input {
  width: 190px;
  height: 32px;
  padding: 0 8px;
  font-size: 9.5px;
}

.cards-admin {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #1d1d1d;
  background: #020202;
  padding: 8px;
}

.admin-card:hover {
  border-color: #444;
}

.admin-card__thumb {
  display: grid;
  place-items: center;
  width: 98px;
  height: 62px;
  overflow: hidden;
  border: 1px solid #222;
  background: #000;
  color: #ddd;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.admin-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-card__body {
  min-width: 0;
}

.admin-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-card__head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 500;
  color: #ddd;
  text-transform: lowercase;
}

.admin-card__meta {
  margin-top: 5px;
  color: #666;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: lowercase;
}

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

.builder-modal {
  width: min(780px, 100%);
}

.ai-modal {
  width: min(820px, 100%);
}

.ai-status {
  min-height: 18px;
  margin: 4px 0 10px;
  color: #777;
  font-size: 9px;
  text-transform: lowercase;
}

.ai-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.ai-card {
  padding: 9px 11px;
  border: 1px solid #1e1e1e;
  background: #020202;
}

.ai-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-card__head strong {
  color: #ddd;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: lowercase;
}

.ai-card__desc {
  margin-top: 5px;
  color: #777;
  font-size: 9px;
  line-height: 1.5;
  text-transform: lowercase;
}

.ai-card__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  margin-top: 6px;
  font-size: 8.5px;
}

.ai-card__fields div {
  display: flex;
  gap: 5px;
}

.ai-card__fields dt {
  color: #555;
  text-transform: lowercase;
}

.ai-card__fields dd {
  color: #aaa;
}

.csv-modal {
  width: min(900px, 100%);
}

.csv-preview {
  margin-top: 10px;
}

.csv-table-wrap {
  max-height: 230px;
  overflow: auto;
  border: 1px solid #222;
  background: #000;
}

.csv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.csv-table th,
.csv-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #1a1a1a;
  text-align: left;
  white-space: nowrap;
}

.csv-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #050505;
  color: #777;
  font-weight: 400;
  text-transform: lowercase;
}

.csv-table td {
  color: #bbb;
}

.csv-status {
  min-height: 16px;
  margin-top: 8px;
  color: #777;
  font-size: 9px;
  text-transform: lowercase;
}

#csv-file {
  padding: 7px 8px;
  color: #777;
  font-size: 9px;
}

#csv-file::file-selector-button {
  margin-right: 9px;
  padding: 5px 9px;
  border: 1px solid #333;
  border-radius: 0;
  background: #000;
  color: #ccc;
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  cursor: pointer;
}

#csv-file::file-selector-button:hover {
  border-color: #777;
  color: #fff;
}

.admin-note code {
  color: #bbb;
  font-family: var(--mono);
  font-size: 8.5px;
}

.builder-modal .modal__hero {
  min-height: 96px;
  padding: 20px 26px;
  align-items: center;
}

.builder-modal .modal__hero-text h2 {
  font-size: 18px;
}

.builder-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.builder-form-grid .field {
  margin-bottom: 12px;
}

.field--check {
  display: flex;
  align-items: flex-end;
  padding-bottom: 7px;
}

.field--check .check {
  margin: 0;
}

textarea.input {
  height: auto;
  min-height: 64px;
  padding: 9px 11px;
  line-height: 1.6;
  resize: vertical;
}

.builder-image-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 14px;
}

.builder-image-preview {
  display: grid;
  place-items: center;
  width: 180px;
  height: 96px;
  flex: none;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #000;
  color: #555;
  font-size: 9px;
  text-transform: lowercase;
}

.builder-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.builder-image-actions .admin-note {
  flex-basis: 100%;
  margin: 0;
  padding: 6px 8px;
  border: 0;
}

.builder-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #1e1e1e;
}

@media (max-width: 960px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .builder-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .builder-tools .input {
    width: 150px;
  }
}

@media (max-width: 600px) {
  .admin-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .admin-card__thumb {
    width: 70px;
    height: 52px;
    font-size: 13px;
  }

  .admin-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .builder-form-grid {
    grid-template-columns: 1fr;
  }

  .builder-image-row {
    align-items: flex-start;
  }

  .builder-image-preview {
    width: 120px;
    height: 82px;
  }
}

@media (max-width: 760px) {
  .live-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .live-item .live-detail,
  .live-item .live-user {
    display: none;
  }
}
