/* ==========================================================================
   Unclaim — système de design
   Repris des tokens d'unclaim.fr : fond bleu-nuit, accent cyan, liserés fins,
   Space Grotesk en display, JetBrains Mono pour les micro-labels.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg:            oklch(12.9% 0.042 264.695);
  --bg-elevated:   oklch(16.5% 0.042 265);
  --card:          oklch(20.8% 0.042 265.755);
  --card-glass:    oklch(20.8% 0.042 265.755 / 0.55);
  --fg:            oklch(98.4% 0.003 247.858);
  --muted:         oklch(70.4% 0.04 256.788);
  --faint:         oklch(55% 0.03 257);
  --border:        oklch(100% 0 0 / 0.1);
  --border-strong: oklch(100% 0 0 / 0.18);

  --cyan:          #0ea5c4;
  --cyan-bright:   #22c9e8;
  --violet:        #7c5cf5;
  --ok:            oklch(69.6% 0.17 162.48);
  --warn:          oklch(76.9% 0.188 70.08);
  --danger:        oklch(70.4% 0.191 22.216);

  --radius:        0.375rem;
  --hud-line:      oklch(100% 0 0 / 0.08);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Grille HUD discrète, comme sur unclaim.fr */
  background-image:
    linear-gradient(var(--hud-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud-line) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 50% -10%, oklch(30% 0.08 230 / 0.5), transparent);
  background-size: 64px 64px, 64px 64px, 100% 100%;
  background-attachment: fixed;
}

a { color: var(--cyan-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

code, .mono { font-family: var(--font-mono); font-size: 0.86em; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 680px; }

.stack  { display: flex; flex-direction: column; gap: 14px; }
.row    { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow   { flex: 1 1 auto; min-width: 0; }

.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: oklch(12.9% 0.042 264.695 / 0.75);
  backdrop-filter: blur(12px);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 58px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: none;
  /* Le logo porte sa propre lumière : un halo discret le détache du fond */
  filter: drop-shadow(0 0 10px oklch(from var(--cyan) l c h / 0.45));
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--faint);
  text-transform: uppercase;
  margin-top: -2px;
}

.navlinks { display: flex; gap: 20px; margin-left: auto; }
.navlinks a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.navlinks a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 720px) { .navlinks { display: none; } }

/* ---------------------------------------------------------------- labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------------------------------------------------------------- cards */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-glass);
  backdrop-filter: blur(8px);
  padding: 20px;
}
.card--hover { transition: border-color 0.18s ease, transform 0.18s ease; }
.card--hover:hover { border-color: oklch(from var(--cyan) l c h / 0.6); }

/* Coins "HUD" : deux traits en angle, comme les encarts du site */
.card--hud::before,
.card--hud::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--border-strong);
  border-style: solid;
  pointer-events: none;
}
.card--hud::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.card--hud::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- stats */
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat--cyan   .stat__value { color: var(--cyan-bright); }
.stat--violet .stat__value { color: var(--violet); }
.stat--ok     .stat__value { color: var(--ok); }
.stat--danger .stat__value { color: var(--danger); }

/* ---------------------------------------------------------------- titles */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.04; margin: 14px 0 0; }
h2 { font-size: 1.25rem; margin: 40px 0 14px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 1.02rem; max-width: 60ch; margin: 14px 0 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--cyan);
  color: oklch(14% 0.03 260);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 2px; }
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-bright); }
.btn--danger { background: var(--danger); color: oklch(16% 0.03 20); }
.btn--sm { padding: 6px 11px; font-size: 10.5px; }

/* ---------------------------------------------------------------- pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.pill--ok     { color: var(--ok);     border-color: oklch(from var(--ok) l c h / 0.4); }
.pill--warn   { color: var(--warn);   border-color: oklch(from var(--warn) l c h / 0.4); }
.pill--danger { color: var(--danger); border-color: oklch(from var(--danger) l c h / 0.4); }
.pill--cyan   { color: var(--cyan-bright); border-color: oklch(from var(--cyan) l c h / 0.5); }
.pill--plain::before { display: none; }

/* ---------------------------------------------------------------- forms */
label.field { display: block; margin: 14px 0 0; }
label.field > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="text"], input[type="url"], input[type="search"], select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: oklch(12% 0.03 262);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
}
input:focus, select:focus { outline: none; border-color: var(--cyan); }

/* ---------------------------------------------------------------- tables */
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: oklch(100% 0 0 / 0.025); }
td.mono, .table-mono { font-family: var(--font-mono); font-size: 12px; }
.table-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }

/* ---------------------------------------------------------------- code */
pre {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(10% 0.025 262);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: oklch(88% 0.02 250);
}
pre .k { color: var(--violet); }
pre .s { color: var(--ok); }
pre .c { color: var(--faint); font-style: italic; }

/* ---------------------------------------------------------------- avatar */
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  object-fit: cover;
  flex: none;
}
.avatar--lg { width: 76px; height: 76px; }

/* ---------------------------------------------------------------- misc */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.sep { height: 1px; background: var(--border); border: 0; margin: 28px 0; }
.empty { padding: 34px 20px; text-align: center; color: var(--faint); font-family: var(--font-mono); font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  padding: 10px 18px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 60;
}
.toast.show { opacity: 1; }

footer.site {
  margin-top: 60px;
  padding: 24px 0 50px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ----------------------------------------------- utilitaires d'espacement
   La CSP interdit les attributs style="" : tout passe par des classes. */
.pt-xl { padding-top: 72px; }
.pt-l  { padding-top: 48px; }
.mt-0  { margin-top: 0; }
.mt-s  { margin-top: 10px; }
.mt-m  { margin-top: 18px; }
.mt-l  { margin-top: 26px; }
.mt-xl { margin-top: 44px; }
.mb-s  { margin-bottom: 10px; }
.mb-m  { margin-bottom: 18px; }
.m-0   { margin: 0; }

.h-sm  { font-size: 1.9rem; }
.h-xs  { font-size: 1.5rem; }
.inset { background: oklch(12% 0.03 262); }
.list-clean { margin: 0; padding-left: 18px; }
.list-clean li { margin-bottom: 6px; }
.nowrap { white-space: nowrap; }
.full { width: 100%; }
.hidden { display: none !important; }
.break { word-break: break-all; }
.gap-0 { gap: 0; }

/* Lignes clé/valeur des encarts d'état : la valeur ne doit pas coller au label */
.card .stack > .spread { gap: 18px; align-items: baseline; }
.card .stack > .spread > code { text-align: right; }

/* =========================================================================
   Écran de connexion — ce que voit l'utilisateur final
   ========================================================================= */
.auth-screen {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 40px 20px 80px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  text-align: center;
  box-shadow: 0 24px 60px -24px oklch(0% 0 0 / 0.7);
}

.auth-card__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 0 18px oklch(from var(--cyan) l c h / 0.5));
}

.auth-card__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cyan-bright);
}

.auth-card__kicker {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.auth-card__title {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--fg);
}

.auth-card__site {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.auth-card__site strong { color: var(--fg); font-weight: 600; }

/* Bouton Discord : couleur officielle, pleine largeur, comme l'exemple client */
.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 13px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: oklch(24% 0.03 265);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.btn-discord:hover {
  background: #5865f2;
  border-color: #5865f2;
  color: #fff;
  text-decoration: none;
}
.btn-discord:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 2px; }
.btn-discord svg { width: 20px; height: 20px; flex: none; }

/* Liste des informations transmises */
.auth-scopes {
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: oklch(12% 0.03 262);
  text-align: left;
}
.auth-scopes__title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.auth-scopes ul { margin: 0; padding-left: 18px; }
.auth-scopes li { font-size: 0.87rem; color: var(--muted); margin-bottom: 4px; }
.auth-scopes li:last-child { margin-bottom: 0; }

.auth-foot {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
  line-height: 1.7;
}
.auth-foot a { color: var(--muted); }

/* Aperçu de la carte sur la page d'accueil : même composant, non cliquable */
.auth-card--preview { max-width: 380px; margin: 0; transform: scale(0.96); transform-origin: top center; }

/* Cases à cocher présentées comme des pastilles, dans le portail */
.scope-pill {
  cursor: pointer;
  user-select: none;
  padding: 5px 11px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11.5px;
  font-family: var(--font-body);
}
.scope-pill:has(input:checked) {
  color: var(--cyan-bright);
  border-color: oklch(from var(--cyan) l c h / 0.5);
}
.scope-pill:has(input:disabled) { opacity: 0.75; cursor: default; }
.scope-pill input { accent-color: var(--cyan); margin: 0 2px 0 0; vertical-align: middle; }

/* Bandeau des demandes en attente, sur le tableau de bord */
.pending-banner {
  border: 1px solid oklch(from var(--warn) l c h / 0.45);
  background: oklch(from var(--warn) l c h / 0.08);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.topbar__inner { gap: 14px; }
.topbar__account { margin-left: 0; gap: 10px; }

.navlinks a.is-active {
  color: var(--cyan-bright);
  position: relative;
}
.navlinks a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -20px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* Bouton du menu repliable */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px; height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: flex; }
  .navlinks {
    display: none;
    position: absolute;
    top: 58px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border);
    background: oklch(12.9% 0.042 264.695 / 0.97);
    backdrop-filter: blur(12px);
  }
  .navlinks.is-open { display: flex; }
  .navlinks a { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
  .navlinks a:last-child { border-bottom: none; }
  .navlinks a.is-active::after { display: none; }
  .topbar__account { margin-left: auto; }
}

/* =========================================================================
   Onglets de section
   ========================================================================= */
.tabs {
  display: flex;
  gap: 4px;
  margin: 26px 0 20px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab {
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover { color: var(--fg); }
.tab.is-active { color: var(--cyan-bright); border-bottom-color: var(--cyan); }
.tab__count {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--border-strong);
  color: var(--fg);
  font-size: 10px;
}
.tab__count--alert { background: var(--warn); color: oklch(18% 0.04 70); }

/* =========================================================================
   Catalogue des autorisations
   ========================================================================= */
.scope-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .scope-grid { grid-template-columns: minmax(0, 1fr); } }

.scope-item {
  display: flex;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(12% 0.03 262);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.scope-item:hover { border-color: var(--border-strong); }
.scope-item:has(input:checked) { border-color: oklch(from var(--cyan) l c h / 0.55); }
.scope-item:has(input:disabled) { opacity: 0.8; cursor: default; }
.scope-item input { margin-top: 3px; accent-color: var(--cyan); flex: none; }

.scope-item__name { font-weight: 600; font-size: 0.92rem; }
.scope-item__code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.scope-item__desc { margin: 5px 0 0; font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.scope-item__flags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }

/* =========================================================================
   Fiches d'application
   ========================================================================= */
.app-card__grid {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 14px;
}
.metric__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.metric__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 3px;
}

/* =========================================================================
   Page des clés
   ========================================================================= */
.key-card { border-left: 2px solid var(--cyan); }
.key-card--old { border-left-color: var(--faint); opacity: 0.75; }

/* =========================================================================
   Documents légaux
   ========================================================================= */
.legal .card { line-height: 1.75; }
.legal h2.card__title { font-size: 1.05rem; margin: 0; }
.legal h3 { font-size: 0.95rem; color: var(--fg); margin-bottom: 6px; }
.legal p { color: var(--muted); }
.legal p:last-child { margin-bottom: 0; }
.legal li { color: var(--muted); margin-bottom: 7px; }
.legal li strong { color: var(--fg); }
.legal .spread span:last-child { text-align: right; color: var(--fg); }
.legal table td { font-size: 0.86rem; color: var(--muted); }
.legal table td:first-child { color: var(--fg); }

/* Les onglets deviennent des liens sur ces pages */
a.tab { text-decoration: none; display: inline-block; }
a.tab:hover { text-decoration: none; }

/* Valeur manquante dans legal.json : impossible à rater */
.todo {
  display: inline-block;
  padding: 1px 7px;
  border: 1px dashed var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.legal-warning {
  border-color: oklch(from var(--danger) l c h / 0.5);
  background: oklch(from var(--danger) l c h / 0.08);
}

/* Pied de page avec les liens légaux */
footer.site .legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}
footer.site .legal-links a { color: var(--muted); }

/* =========================================================================
   Boutons de fournisseur
   ========================================================================= */
.btn-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 13px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: oklch(24% 0.03 265);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn-provider:hover { text-decoration: none; }
.btn-provider:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 2px; }
.btn-provider svg { width: 20px; height: 20px; flex: none; }

.btn-provider--discord:hover      { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-provider--google:hover       { background: #fff;    border-color: #fff;    color: #1f1f1f; }
.btn-provider--microsoft:hover    { background: #fff;    border-color: #fff;    color: #1f1f1f; }
.btn-provider--apple:hover        { background: #fff;    border-color: #fff;    color: #000; }
.btn-provider--twitch:hover       { background: #9146ff; border-color: #9146ff; color: #fff; }
.btn-provider--nationsglory:hover { background: #f0b232; border-color: #f0b232; color: #1a1400; }

.auth-providers { margin-top: 20px; }

/* Identités rattachées, dans le portail */
.identity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(12% 0.03 262);
}
.identity-row + .identity-row { margin-top: 8px; }
.identity-row svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.identity-row__name { font-weight: 600; font-size: 0.9rem; }
.identity-row__meta { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }

/* Sélecteur de fournisseur, dans le formulaire du portail */
.provider-toggle { cursor: pointer; align-items: flex-start; gap: 11px; }
.provider-toggle input { margin-top: 4px; accent-color: var(--cyan); flex: none; }
