/* ==========================================================================
   iReaz — design system partagé
   DA : ruelle japonaise de nuit, violets profonds, sakura rose, néon turquoise,
   titres condensés au dégradé "glacier" (cf. écran OFFLINE de la chaîne).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --night-950: #0a0618;
  --night-900: #100a24;
  --night-800: #171032;
  --night-700: #211746;
  --night-600: #2d2059;
  --night-500: #3d2c75;

  --violet: #8a6cf0;
  --violet-soft: #b6a2ff;
  --sakura: #f08ad8;
  --sakura-deep: #c95bb8;
  --neon: #4fe8cc;
  --neon-deep: #1fb79d;
  --ice-1: #f3f9ff;
  --ice-2: #cfe3f2;
  --ice-3: #93b7d3;
  --gold: #ffd36b;

  --text: #ece6ff;
  --text-muted: #ab9fcc;
  --text-dim: #7a6d9f;

  --ok: #4ff0a8;
  --bad: #ff5f84;

  --line: rgba(182, 162, 255, 0.16);
  --line-strong: rgba(182, 162, 255, 0.32);
  --panel: rgba(21, 14, 46, 0.74);
  --panel-solid: #171032;
  --panel-2: rgba(33, 23, 70, 0.7);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(5, 2, 15, 0.55);

  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 68px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--neon); text-decoration: none; }
a:hover { color: var(--ice-1); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
[hidden] { display: none !important; }

::selection { background: var(--sakura-deep); color: #fff; }

/* ------------------------------------------------------------------ scène */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 8% 0%, rgba(240, 138, 216, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 45% at 100% 30%, rgba(79, 232, 204, 0.12), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(138, 108, 240, 0.25), transparent 70%),
    linear-gradient(180deg, var(--night-800), var(--night-950));
}
.scene::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: url('../img/ireaz-shop-blur.webp') center / cover no-repeat;
  opacity: 0.28;
  filter: saturate(1.2);
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 30%, rgba(8, 4, 20, 0.75) 100%);
}

.sakura-corner {
  position: absolute;
  width: min(34vw, 340px);
  opacity: 0.85;
  filter: drop-shadow(0 6px 18px rgba(240, 138, 216, 0.25));
}
.sakura-corner.tl { top: -30px; left: -40px; }
.sakura-corner.br { bottom: -40px; right: -50px; transform: rotate(180deg); }

.petal {
  position: absolute;
  top: -5vh;
  left: var(--x, 50%);
  width: var(--s, 12px);
  height: calc(var(--s, 12px) * 0.75);
  background: linear-gradient(135deg, #ffc4ee, var(--sakura));
  border-radius: 80% 0 80% 0;
  opacity: 0.7;
  animation: petal-fall var(--d, 14s) linear var(--delay, 0s) infinite;
}
@keyframes petal-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(calc(var(--drift, 60px) * -1), 55vh, 0) rotate(220deg); }
  100% { transform: translate3d(var(--drift, 60px), 110vh, 0) rotate(480deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(10, 6, 24, 0.92), rgba(10, 6, 24, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 32px;
  background: linear-gradient(180deg, #f4f1fb, #d8d1ea);
  color: #17112b;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  padding-top: 3px;
  border-radius: 3px;
  box-shadow: inset 0 -3px 0 rgba(23, 17, 43, 0.18), 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}
.logo span:first-child { width: 18px; }
.logo:hover span { transform: translateY(-2px); }
.logo:hover span:nth-child(2) { transition-delay: 0.03s; }
.logo:hover span:nth-child(3) { transition-delay: 0.06s; }
.logo:hover span:nth-child(4) { transition-delay: 0.09s; }
.logo:hover span:nth-child(5) { transition-delay: 0.12s; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a,
.nav summary {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s, background 0.15s;
}
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover,
.nav summary:hover,
.nav a[aria-current="page"],
.nav details[open] summary { color: var(--ice-1); background: rgba(182, 162, 255, 0.08); }

.nav details { position: relative; }
.nav summary::after { content: " ▾"; font-size: 12px; opacity: 0.7; }
.nav .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 270px;
  padding: 8px;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
}
.nav .menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 17px;
  color: var(--text);
}
.nav .menu a .ico { font-size: 20px; width: 26px; text-align: center; }

.btn-twitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9146ff, #7a3cf0);
  color: #fff !important;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(145, 70, 255, 0.35);
}
.btn-twitch svg { width: 18px; height: 18px; }
.btn-twitch:hover { filter: brightness(1.1); }

@media (max-width: 640px) {
  .nav > a.hide-sm { display: none; }
  .btn-twitch .lbl { display: none; }
  .btn-twitch { padding: 8px 10px; }
  .nav .menu { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) - 4px); min-width: 0; }
}

/* ----------------------------------------------------------------- layout */

.page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 32px) 64px;
}
.page.wide { width: min(1400px, 100%); }

.page-head {
  text-align: center;
  margin-bottom: clamp(22px, 4vw, 36px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 6px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-size: clamp(48px, 9vw, 104px);
  background: linear-gradient(180deg, var(--ice-1) 10%, var(--ice-2) 55%, var(--ice-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(147, 183, 211, 0.18));
}
.display.md { font-size: clamp(40px, 6.5vw, 76px); }

.tagline {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 0.42em;
  color: var(--ice-2);
  opacity: 0.85;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  color: var(--ice-1);
}
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

/* ----------------------------------------------------------------- panels */

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 26px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.panel-title {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sakura);
  box-shadow: 0 0 12px var(--sakura);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --b-bg: rgba(182, 162, 255, 0.08);
  --b-border: var(--line-strong);
  --b-color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--b-border);
  background: var(--b-bg);
  color: var(--b-color);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s, filter 0.2s;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--violet-soft); color: var(--b-color); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary {
  --b-bg: linear-gradient(135deg, var(--violet), var(--sakura-deep));
  --b-border: transparent;
  --b-color: #fff;
  box-shadow: 0 8px 26px rgba(201, 91, 184, 0.35), inset 0 1px rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 10px 34px rgba(201, 91, 184, 0.5), inset 0 1px rgba(255, 255, 255, 0.2); border-color: transparent; }

.btn-neon {
  --b-bg: rgba(79, 232, 204, 0.08);
  --b-border: rgba(79, 232, 204, 0.55);
  --b-color: var(--neon);
}
.btn-neon:hover { border-color: var(--neon); box-shadow: 0 0 24px -4px var(--neon); }

.btn-ok { --b-bg: rgba(79, 240, 168, 0.1); --b-border: rgba(79, 240, 168, 0.55); --b-color: #b8ffd9; }
.btn-ok:hover { border-color: var(--ok); box-shadow: 0 0 24px -4px var(--ok); }
.btn-danger { --b-bg: rgba(255, 95, 132, 0.08); --b-border: rgba(255, 95, 132, 0.5); --b-color: #ffc2d0; }
.btn-danger:hover { border-color: var(--bad); box-shadow: 0 0 24px -4px var(--bad); }
.btn-ghost { --b-bg: transparent; --b-border: transparent; --b-color: var(--text-muted); }
.btn-ghost:hover { --b-color: var(--text); background: rgba(182, 162, 255, 0.08); }

.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 20px; border-radius: 12px; }
.btn-icon { width: 34px; min-height: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 15px; }

/* ----------------------------------------------------------------- forms */

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  background: rgba(10, 6, 24, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder,
.textarea::placeholder { color: var(--text-dim); }
.input:focus,
.select:focus,
.textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(79, 232, 204, 0.15); }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.select option { background: var(--night-800); color: var(--text); }
.textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.label {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-muted); }
.check input { accent-color: var(--sakura); width: 18px; height: 18px; }

/* ----------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th,
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(10, 6, 24, 0.5);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.3s; }
.table tbody tr:hover { background: rgba(182, 162, 255, 0.04); }
.table .num { font-family: var(--font-display); font-size: 24px; color: var(--text-dim); width: 56px; text-align: center; }

/* ----------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------- dialog */

dialog.modal {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(170deg, var(--night-700), var(--night-800) 60%);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
dialog.modal::backdrop { background: rgba(6, 3, 16, 0.72); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: modal-in 0.22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
}
.modal-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: 0.03em; color: var(--ice-1); }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.modal-foot .spacer { margin-right: auto; }
.modal-section { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.modal-section:first-child { padding-top: 0; }
.modal-section:last-child { border-bottom: none; padding-bottom: 0; }
.modal-section h3 { margin: 0 0 10px; font-family: var(--font-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 16px; color: var(--violet-soft); }

/* --------------------------------------------------------- feedback / fx */

.toast-zone {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  z-index: 100;
  pointer-events: none;
}
.toast {
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-weight: 600;
  animation: toast 2.6s ease forwards;
}
@keyframes toast {
  0% { opacity: 0; transform: translateY(10px); }
  10%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}

.big-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  font-size: clamp(100px, 20vw, 170px);
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.big-pop.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.big-pop.win { filter: drop-shadow(0 0 40px var(--ok)); }
.big-pop.lose { filter: drop-shadow(0 0 40px var(--bad)); }

.float-pts {
  position: fixed;
  z-index: 95;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 40px;
  transform: translateX(-50%);
  animation: float-up 1.1s ease-out forwards;
}
.float-pts.good { color: var(--ok); text-shadow: 0 0 16px var(--ok); }
.float-pts.mid { color: var(--gold); text-shadow: 0 0 16px var(--gold); }
@keyframes float-up {
  from { opacity: 1; transform: translate(-50%, 0) scale(1); }
  to { opacity: 0; transform: translate(-50%, -60px) scale(1.4); }
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 4, 20, 0.7);
  padding: 28px clamp(16px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 14px;
}

.socials { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ice-2);
  transition: color 0.15s, transform 0.15s;
}
.socials a:hover { color: var(--ice-1); transform: translateY(-1px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.socials.sm a { font-size: 18px; }
.socials.sm svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------- utilities */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.stack { display: grid; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ------------------------------------------------------------ connexion */

.auth-slot { display: inline-flex; align-items: center; gap: 4px; }
.nav .nav-login,
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav .nav-login svg,
.user-chip svg { width: 16px; height: 16px; flex-shrink: 0; }
.user-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 232, 204, 0.45);
  background: rgba(79, 232, 204, 0.08);
  color: var(--neon);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  max-width: 180px;
}
.user-chip .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .user-menu summary.user-chip {
  text-transform: none;
  color: var(--neon);
  padding: 6px 12px;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.nav .user-menu summary.user-chip:hover,
.nav .user-menu[open] summary.user-chip { background: rgba(79, 232, 204, 0.14); color: var(--ice-1); }
.role-tag {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 211, 107, 0.16);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav .menu .nav-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.nav .menu .nav-logout .ico { font-size: 18px; width: 26px; text-align: center; }
.nav .menu .nav-logout:hover { color: var(--bad); background: rgba(255, 95, 132, 0.08); }
.nav .user-menu .menu { min-width: 220px; }
@media (max-width: 640px) {
  .user-chip .lbl,
  .user-chip .role-tag,
  .nav .nav-login .lbl { display: none; }
  .nav .nav-login { padding: 8px; }
}

.readonly-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 138, 216, 0.4);
  background: linear-gradient(90deg, rgba(240, 138, 216, 0.14), rgba(138, 108, 240, 0.1));
  color: var(--text);
}
.readonly-banner b { color: var(--sakura); }

/* Lecture seule : les contrôles restent visibles mais inactifs. */
body:is(.readonly, .auth-pending) main :is(button, input, select, textarea, label):not([data-public] *) { cursor: not-allowed; }
body.readonly main :is(button.btn, .input, .select, .textarea, .check):not([data-public] *) { opacity: 0.5; filter: saturate(0.6); }
body.readonly main :is(button, .cell, .aug, .theme-card):not([data-public] *):hover { transform: none; }
